BeSimple / BeSimpleSoapClient

NOT MAINTAINED - [READ-ONLY] Subtree split of the BeSimpleSoap -- clone into BeSimple/SoapClient/ (master at BeSimple/BeSimpleSoap)
http://besim.pl/
57 stars 54 forks source link

BeSimpleSoapClient does not add ns1-Namespace to Envelope and Parameters #15

Open phryneas opened 10 years ago

phryneas commented 10 years ago

Hi, I have a problem with the BeSimpleSoapClient: It does not add the ns1-Namespace to Envelope and Parameters.

When I do the request with php's \SoapClient, it looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://my/namespace"><SOAP-ENV:Body><ns1:getPlacesByPart><ns1:part>ha</ns1:part></ns1:getPlacesByPart></SOAP-ENV:Body></SOAP-ENV:Envelope>

when I do the same Request with BeSimpleSoapClient, I get this request:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><parameters><item><key>part</key><value>ha</value></item></parameters></SOAP-ENV:Body></SOAP-ENV:Envelope>

and my Web service quits with "OperationFormatter encountered an invalid Message body"

I am initializing the SOAPClient using the Symfony2 Bundle, so I haven't been able to play with the parameters too much (as I have yet to find a way to pass parameters to the constructor), so I'm sorry if I missed a simple point.

Is this a bug or am I just missing a feature?