简体   繁体   English

PHP SoapClient原始SOAP到对象

[英]PHP SoapClient Raw SOAP to Object

Is it possible to input raw SOAP web service response ( read from file ) to the PHP SoapClient as string and get response object mapped in classmap? 是否可以将原始SOAP Web服务响应(从文件读取)作为字符串输入到PHP SoapClient,并获取映射到类映射中的响应对象?

Basicly same thing like usually SoapClient would be used, except I have response XML already. 基本上会使用与通常的SoapClient相同的东西,除了我已经有响应XML。

Maybe you can create a local SOAP Server in PHP and call a method on it with your SOAP client. 也许您可以使用PHP创建本地SOAP服务器,然后使用SOAP客户端在其上调用方法。 Then, you make the server method return your SOAP string by constructing it from objects, the proper way, or by using the quick and dirty approach: https://stackoverflow.com/a/8749213/1174378 which allows you to alter the contents of the SOAP message before sending it to the client. 然后,通过以下方法使服务器方法通过从对象构造SOAP字符串(正确的方式)或使用快速而肮脏的方法来返回SOAP字符串: https : //stackoverflow.com/a/8749213/1174378 ,它允许您更改内容SOAP消息发送给客户端之前。

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

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