简体   繁体   English

如何在调用使用 SOAP 的外部 Web 服务后获得响应。 - 动态 AX 2012 R3

[英]How to get a response after calling an external Web Service that's using SOAP. - Dynamics AX 2012 R3

I'm consuming an external Web Service in Dynamics AX 2012 using a Service Reference I created in Visual Studio, the Visual Studio.dll file has been deployed to my AX AOT.我正在使用我在 Visual Studio 中创建的服务参考在 Dynamics AX 2012 中使用外部 Web 服务,Visual Studio.dll 文件已部署到我的 AX AOT。 This gives me references within AX to call the relevant services from the Web Service.这使我可以在 AX 中引用从 Web 服务调用相关服务。

I have created a class to call the web service to which i pass data from several tables, build a 'body' of data that the Web Service requires and then i send this body of data using the relevant Request service from the web service. I have created a class to call the web service to which i pass data from several tables, build a 'body' of data that the Web Service requires and then i send this body of data using the relevant Request service from the web service.

However, when the data is sent i am struggling to understand how i get a response back from the server if all was sent OK or if there was an error.但是,当发送数据时,我很难理解如果一切正常或出现错误,我如何从服务器获得响应。 At the moment the data is sent fine but don't get any response back.目前数据发送正常,但没有得到任何回复。

The Web Service is a SOAP envelope service and has reference values to pass the data to, for example, Web 服务是 SOAP 信封服务,具有将数据传递到的参考值,例如,

<iItemNumber>Int</iItemNumber> <sItemDescription>String</sItemDescription>

Is there anyway i can get a response back in AX to then know if all was received OK from the server?无论如何我可以在 AX 中得到响应,然后知道是否从服务器接收到一切正常?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM