lula / ngx-soap

Simple SOAP client for Angular
MIT License
66 stars 61 forks source link

Help with Soap XML body format #78

Open testanddeploy opened 4 years ago

testanddeploy commented 4 years ago

Hi,

I am consuming a third party SOAP service wich accepts request bodies like this:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <SOAP-ENV:Body>
        <NAMEOPERATION xmlns:impl="NAMEWSDL">
        </NAMEOPERATION>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

But this clients returns to me this body:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
xmlns:impl="http://schemas.meta4.com/" 
xmlns:intf="http://schemas.meta4.com/">
    <soap:Body>
        <impl:NAMEOPERATION
        xmlns:impl="http://schemas.meta4.com/"
        xmlns="http://schemas.meta4.com/">
        </impl:NAMEOPERATION>
        </soap:Body>
        </soap:Envelope>

Is possible to format the body like the first one? Thanks a lot