<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsd="http://connectsm.ws.bwse.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://connectsm.ws.bwse.com/xsd" xmlns:ins1="http://connectsm.model.api.bwse.com/xsd" xmlns:ins2="http://model.api.ccb.primalsw.com/xsd"><soap:Body><ins0:findCustomerEntity><ins0:companyCd>290</ins0:companyCd><ins0:customerCd>000808</ins0:customerCd></ins0:findCustomerEntity></soap:Body></soap:Envelope>
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://connectsm.ws.bwse.com/xsd">
<soap:Body>
<xsd:findCustomerEntity2>
<xsd:companyCd>290</xsd:companyCd>
<xsd:customerCd>000997</xsd:customerCd>
</xsd:findCustomerEntity2>
</soap:Body>
</soap:Envelope>
I'm only on my BB for the next days. Therefore I can only quote from
memorym When I faced the problem you're in I injected the namespaces
in question into my request doing something like this:
soap.namespaces['ns1'] = 'ns1=xmlns:namspace'
That way you create a valid request. It worked for me at least.
Regards,
Steffen
--
Sent from my mobile device
<soap:Envelope xmlns:xsd="http://connectsm.ws.bwse.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://connectsm.ws.bwse.com/xsd" xmlns:ins1="http://connectsm.model.api.bwse.com/xsd" xmlns:ins2="http://model.api.ccb.primalsw.com/xsd">
this works:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://connectsm.ws.bwse.com/xsd">
So what I need to do is get savon to NOT put the extra stuff somehow... I hope that helps you get an idea of what my problem is and what I am looking to accomplish. Again to be clear I am looking to NOT have savon include these extra elements in the envelope.
Regards,John
There is a different way to get over this problem. You can create the
XML body manually. If my memory serves me correctly you have to set
soap.xml for this.
-st
On 06.11.2011, John Dyer <john...@gmail.com> wrote:
> Hello Steffen,
>
> The envelope being generated by Savon has extra namespaces which are the
> problem:
>
> This fails:
>
> <soap:Envelope xmlns:xsd="http://connectsm.ws.bwse.com/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ins0="http://connectsm.ws.bwse.com/xsd"
> xmlns:ins1="http://connectsm.model.api.bwse.com/xsd"
> xmlns:ins2="http://model.api.ccb.primalsw.com/xsd">
>
> *this works:*
> *
> *
-st
On 06.11.2011, John Dyer <john...@gmail.com> wrote:
--