I have Java code that exactly does this:
// Create a "Service" instance
Dispatch<SOAPMessage> dispatch = createDispatch();
// Build a SOAP request
SOAPMessage request = buildMessage(username, password);
// Invoke the request
SOAPMessage response = dispatch.invoke(request);
I want to do the same thing using PHP code. I m new to PHP and I came across a standard SoapClient class but it seems to work with WSDL files.
What I need is building a SOAP message with various properties in the code and then give service port name etc..
What is the PHP library that I should use? (similar to Java API for XML Web Services)
Can I do the job with standard SoapClient PHP lib class?
I need help from experienced PHP users. Thanks..
Yes, you can do that with the built in SoapClient. See the documentation on SoapClient::__soapCall()
http://www.php.net/manual/en/soapclient.soapcall.php
From the examples on that page: