rawrzors
rawrzors

Reputation: 167

How do I send XML to SOAP Web Services?

I used SOAP UI to test my implementation and it works there. However, I do not know how to do this without SOAP UI in a php environment.

I currently have php code pulling data from the MySQL database and outputting well-formed XML, but I do not know how to send this XML output to the web service to be processed.

Any help would be great.

Thanks

Upvotes: 0

Views: 10198

Answers (1)

Louis Huppenbauer
Louis Huppenbauer

Reputation: 3704

You don't have to create your own SOAP XML. There is a perfectly fine SOAP extension available, where you can create a SoapClient using the services WSDL-file.

https://www.php.net/soap

If it is really only about sending the data, use curl.

Configuration example: How can I send SOAP XML via Curl and PHP?

Upvotes: 2

Related Questions