WsdlToPhp / PackageGenerator

Generates a PHP SDK based on a WSDL, simple and powerful, WSDL to PHP
https://providr.io
MIT License
422 stars 73 forks source link

How do I use the classes to parse SOAP? #216

Open TechOverflow opened 4 years ago

TechOverflow commented 4 years ago

I have created packages based on WSDLs for both the client and server. I'm creating a server that listens for requests from clients and would like to parse those requests to create the responses, based on data in them.

I not sure how to use the created classes to do the parsing. Can anyone give a few pointers?

TechOverflow commented 4 years ago

I think I understand the problem now. It seems that the generated classes are always for client calls to the server. Is there a way to generate responses as the server using the SoapServer class?

mikaelcom commented 4 years ago

Did you try instantiating a generated class then pass it as the response to SoapServer ?