drjun1994 2012-05-21 11:40
浏览 76

PHP SoapClient原始SOAP到对象

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?

Basicly same thing like usually SoapClient would be used, except I have response XML already.

  • 写回答

1条回答 默认 最新

  • dongshuohuan5291 2012-05-21 13:50
    关注

    Maybe you can create a local SOAP Server in PHP and call a method on it with your SOAP client. 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.

    评论

报告相同问题?