Re: options available to SoapClient constructor

[email protected] (Ammarmar)
Newsgroups php.soap
Message-ID <[email protected]>
> I am writing a client that has to send "not valid" XML messages to the
> server for testing purposes.

Id depends on what you mean by "not valid". If you just wish to send  
message which is does not conform to WSDL, simply use non-WSDL mode. In  
non-WSDL mode you can send whatever you wish, but it will be translated to  
valid XML (SOAP envelope).

If you want to send some garbage which is not valid XML, use cURL.
Hijack sent data using __getLastRequest, __getLastRequestHeaders, build  
your own request (damaging the SOAP envelope however you wish) and send it  
just like you would send POST request using cURL.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.