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
perrohunter
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
berkes
a source
to share