Invalid function when consuming SOAP web service

allanero
Member Posts: 6
Hi.
I have a problem to consume a web service made with SOAP in .net with Microsoft Business Central. It does not recognize the functions.
The fact is that I have been using the same web service since Nav 2009 and I have never had problems, but since Business Central (BC14 and BC15), it gives errors.
I discovered that the functions became [External] -> Scope ('Extension') -> Scope ('Cloud') depending on the version, but I've tried everything and it still doesn't work.
The SOAP Services of the service is active.
This is the error you make when calling the web service:
System.Web.Services.Protocols.SoapException: Method "Gfu_ObtUsuarios" is invalid!
en System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
en System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
en PasarelaWebServiceDvMobileLogistics.WS_Sailor.WS_MobileLogistic.Gfu_ObtUsuarios(String ps_Usuario, String ps_Password, String ps_IdAndroid, String& ps_xml)
en PasarelaWebServiceDvMobileLogistics.ServicioClientesAndroid.ObtUsuarios(Int32 p_nUsuario, Int32 p_nPassword, String p_strIdAndroid)
And in event viewer it gives this error:
Server instance: BC150
Category: Runtime
ClientSessionId: 15235b5c-0cf0-4507-82ea-1a1adbc21c47
ClientActivityId: e337ad39-51e8-40da-8837-dc15cd80fd6b
ServerSessionUniqueId: 3a8c2b8d-8354-439b-91dd-05995c6dbc89
ServerActivityId: bced3485-a43e-445f-95f8-ff333f0c46f7
EventTime: 12/17/2019 12:00:33
Message (ServiceBrokerException): RootException: ServiceBrokerException
Method "Gfu_User" is invalid!
ExceptionStackTrace:
at Microsoft.Dynamics.Nav.Service.SOAP.ServiceCodeunitXmlAdapter.Dispatch(XmlElement input, XmlWWriter output)
at Microsoft.Dynamics.Nav.Service.SOAP.XmlWWriter.Element(String name, XmlCallback elementHandler)
at Microsoft.Dynamics.Nav.Service.SOAP.XmlWWriter.Element(String name, XmlCallback elementHandler)
at Microsoft.Dynamics.Nav.Service.SOAP.XmlWWriter.SetNamespace(QNamespace namespace, XmlCallback nodeHandler)
at Microsoft.Dynamics.Nav.Service.SOAP.SoapHandler.Microsoft.Dynamics.Nav.Service.SOAP.IXmlRequestHandler.Dispatch(XmlElement input, XmlWWriter output)
at Microsoft.Dynamics.Nav.Service.SOAP.ServiceBroker.DispatchSoap(WebServiceUrlInfo relivantURLPart, XmlReader input, TextWriter output, NavTenant tenant, PerformanceLog perfLog)
at Microsoft.Dynamics.Nav.Service.SOAP.ServiceBroker.Invoke(Boolean isSoapMessage, Uri url, XmlReader input, TextWriter output, NavUserAuthentication navUserAuthentication, PerformanceLog performanceLog)
CallerStackTrace:
at Microsoft.Dynamics.Nav.Service.SOAP.ServiceBroker.Invoke(Boolean isSoapMessage, Uri url, XmlReader input, TextWriter output, NavUserAuthentication navUserAuthentication, PerformanceLog performanceLog)
at Microsoft.Dynamics.Nav.Service.SOAP.NavWebService.<>c__DisplayClass3_3.<ProcessMessage>b__2()
at Microsoft.Dynamics.Nav.Service.SOAP.Disposer.Scope(Code code)
at Microsoft.Dynamics.Nav.Service.SOAP.WCFUtil.GetPopulatedMemoryStream(StreamFillingCallback callback)
at Microsoft.Dynamics.Nav.Service.SOAP.NavWebService.ProcessMessage(Message message)
at SyncInvokeProcessMessage(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
at System.ServiceModel.Dispatcher.MessageRpc.Wrapper.Resume(Boolean& alreadyResumedNoLock)
at System.ServiceModel.Dispatcher.ThreadBehavior.ResumeProcessing(IResumeMessageRpc resume)
at Microsoft.Dynamics.Nav.Runtime.NavSynchronizationContext.<>c__DisplayClass1_0.<ClearThreadLocalStorageDelegate>b__0(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
ProcessId: 9464
Tag: 000000D
ThreadId: 24
CounterInformation:
CustomParameters: 00000000-0000-0000-0000-000000000000
If anyone knew the problem, I would be very grateful, because I have been behind the problem for a long time.
Thanks.
I have a problem to consume a web service made with SOAP in .net with Microsoft Business Central. It does not recognize the functions.
The fact is that I have been using the same web service since Nav 2009 and I have never had problems, but since Business Central (BC14 and BC15), it gives errors.
I discovered that the functions became [External] -> Scope ('Extension') -> Scope ('Cloud') depending on the version, but I've tried everything and it still doesn't work.
The SOAP Services of the service is active.
This is the error you make when calling the web service:
System.Web.Services.Protocols.SoapException: Method "Gfu_ObtUsuarios" is invalid!
en System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
en System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
en PasarelaWebServiceDvMobileLogistics.WS_Sailor.WS_MobileLogistic.Gfu_ObtUsuarios(String ps_Usuario, String ps_Password, String ps_IdAndroid, String& ps_xml)
en PasarelaWebServiceDvMobileLogistics.ServicioClientesAndroid.ObtUsuarios(Int32 p_nUsuario, Int32 p_nPassword, String p_strIdAndroid)
And in event viewer it gives this error:
Server instance: BC150
Category: Runtime
ClientSessionId: 15235b5c-0cf0-4507-82ea-1a1adbc21c47
ClientActivityId: e337ad39-51e8-40da-8837-dc15cd80fd6b
ServerSessionUniqueId: 3a8c2b8d-8354-439b-91dd-05995c6dbc89
ServerActivityId: bced3485-a43e-445f-95f8-ff333f0c46f7
EventTime: 12/17/2019 12:00:33
Message (ServiceBrokerException): RootException: ServiceBrokerException
Method "Gfu_User" is invalid!
ExceptionStackTrace:
at Microsoft.Dynamics.Nav.Service.SOAP.ServiceCodeunitXmlAdapter.Dispatch(XmlElement input, XmlWWriter output)
at Microsoft.Dynamics.Nav.Service.SOAP.XmlWWriter.Element(String name, XmlCallback elementHandler)
at Microsoft.Dynamics.Nav.Service.SOAP.XmlWWriter.Element(String name, XmlCallback elementHandler)
at Microsoft.Dynamics.Nav.Service.SOAP.XmlWWriter.SetNamespace(QNamespace namespace, XmlCallback nodeHandler)
at Microsoft.Dynamics.Nav.Service.SOAP.SoapHandler.Microsoft.Dynamics.Nav.Service.SOAP.IXmlRequestHandler.Dispatch(XmlElement input, XmlWWriter output)
at Microsoft.Dynamics.Nav.Service.SOAP.ServiceBroker.DispatchSoap(WebServiceUrlInfo relivantURLPart, XmlReader input, TextWriter output, NavTenant tenant, PerformanceLog perfLog)
at Microsoft.Dynamics.Nav.Service.SOAP.ServiceBroker.Invoke(Boolean isSoapMessage, Uri url, XmlReader input, TextWriter output, NavUserAuthentication navUserAuthentication, PerformanceLog performanceLog)
CallerStackTrace:
at Microsoft.Dynamics.Nav.Service.SOAP.ServiceBroker.Invoke(Boolean isSoapMessage, Uri url, XmlReader input, TextWriter output, NavUserAuthentication navUserAuthentication, PerformanceLog performanceLog)
at Microsoft.Dynamics.Nav.Service.SOAP.NavWebService.<>c__DisplayClass3_3.<ProcessMessage>b__2()
at Microsoft.Dynamics.Nav.Service.SOAP.Disposer.Scope(Code code)
at Microsoft.Dynamics.Nav.Service.SOAP.WCFUtil.GetPopulatedMemoryStream(StreamFillingCallback callback)
at Microsoft.Dynamics.Nav.Service.SOAP.NavWebService.ProcessMessage(Message message)
at SyncInvokeProcessMessage(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
at System.ServiceModel.Dispatcher.MessageRpc.Wrapper.Resume(Boolean& alreadyResumedNoLock)
at System.ServiceModel.Dispatcher.ThreadBehavior.ResumeProcessing(IResumeMessageRpc resume)
at Microsoft.Dynamics.Nav.Runtime.NavSynchronizationContext.<>c__DisplayClass1_0.<ClearThreadLocalStorageDelegate>b__0(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
ProcessId: 9464
Tag: 000000D
ThreadId: 24
CounterInformation:
CustomParameters: 00000000-0000-0000-0000-000000000000
If anyone knew the problem, I would be very grateful, because I have been behind the problem for a long time.
Thanks.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions