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.
0