Add specific namespace to SOAP envelope in PHP

I actually need to add a specific namespace to a SOAP envelope that is not listed in the WSDL for some reason, I already tried to use the uri parameter in the SoapCliente constructor but it doesn't work

how can i add this namespace to the SoapEnvelope?

early

+1
soap xml php namespaces web-services


a source to share


1 answer


You cannot change the namespace in SoapEnvelope.



Notice the xmlns: soap namespace in the above example. It should always be set to "http://www.w3.org/2001/12/soap-envelope". The namespace defines an envelope as a SOAP envelope. If a different namespace is used, the application generates an error and discards this message.

+1


a source to share







All Articles