Help sending to SOAP 1.2 web service

N

nomad

Hi,

I am having issues trying to send an xml request to a web service
which is SOAP 1.2. I have created a service request. I am then
calling the service loadaccountxml method and passing it the body of
the xml, but I get a web service error back. If I then copy the xml I
am sending it and put it in Xml Spy I can send it and get a successful
response. I have also gone down the HttpWebRequest route but I get a
validation error, again this works perfectly in Xml Spy. I have
included the xml request, which I have removed personal information
from, and error I am getting below. I appreciate any help on this.

<soap12:Envelope xmlns:soap12="http://www.w3.org/2003/05/soap-
envelope" xmlns:typ="http://test.wsdl/types/">
<soap12:Header/>
<soap12:Body>
<typ:loadaccountxmlElement>
<typ:accountxml>
<AccountRecords xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Account>
</Account>
</AccountRecords>
</typ:accountxml>
</typ:loadaccountxmlElement>
</soap12:Body>
</soap12:Envelope>


<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<env:Upgrade>
<env:SupportedEnvelope xmlns:soap12="http://www.w3.org/2003/05/soap-
envelope" qname="soap12:Envelope"/>
</env:Upgrade>
</env:Header>
<env:Body>
<env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>env:VersionMismatch</faultcode>
<faultstring>Version Mismatch</faultstring>
<faultactor>http://schemas.xmlsoap.org/soap/actor/next</faultactor>
</env:Fault>
</env:Body>
</env:Envelope>
 
R

ridvan1962

Hi,

I am having issues trying to send an xml request to a web service
which isSOAP1.2.  I have created a service request.  I am then
calling the service loadaccountxml method and passing it the body of
the xml, but I get a web service error back.  If I then copy the xml I
am sending it and put it in Xml Spy I can send it and get a successful
response.  I have also gone down the HttpWebRequest route but I get a
validation error, again this works perfectly in Xml Spy.  I have
included the xml request, which I have removed personal information
from, and error I am getting below. I appreciate any help on this.

<soap12:Envelope xmlns:soap12="http://www.w3.org/2003/05/soap-
envelope" xmlns:typ="http://test.wsdl/types/">
        <soap12:Header/>
        <soap12:Body>
                <typ:loadaccountxmlElement>
                        <typ:accountxml>
                                <AccountRecords xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                        <Account>
                                        </Account>
                                </AccountRecords>
                        </typ:accountxml>
                </typ:loadaccountxmlElement>
        </soap12:Body>
</soap12:Envelope>

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
        <env:Header>
                <env:Upgrade>
                        <env:SupportedEnvelope xmlns:soap12="http://www.w3.org/2003/05/soap-
envelope" qname="soap12:Envelope"/>
                </env:Upgrade>
        </env:Header>
        <env:Body>
                <env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
                        <faultcode>env:VersionMismatch</faultcode>
                        <faultstring>Version Mismatch</faultstring>
                        <faultactor>http://schemas.xmlsoap.org/soap/actor/next</faultactor>
                </env:Fault>
        </env:Body>
</env:Envelope>

Hi Nomad,

try also with SoaMoa, http://soamoa.org, its a nice way of SOAP
testing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top