Skip to content

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

@phryneas

Description

@phryneas

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions