Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
phryneas opened this issue Aug 3, 2014 · 0 comments

Comments

@phryneas
Copy link

phryneas commented Aug 3, 2014

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant