Soap method namespace prefix prevents values from being passed correctly

H

HolmerJohn

When calling a .Net web service from an Axis client on an AS400, the
parameters are not being passed correctly. When the proxy is built in
C#, the soap envelope below is sent, which works:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ConvRate xmlns="http://services.genble.com/sandbox/">
<from>USD</from>
<to>GBP</to>
</ConvRate>
</soap:Body></soap:Envelope>

Axis builds the same envelope, but it includes a namespace prefix on
the method attribute. See below:

<?xml version='1.0' encoding='utf-8'?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<ns1:ConvRate xmlns:ns1="http://services.genble.com/sandbox/">
<from>GBP</from>
<to>USD</to>
</ns1:ConvRate>
</soap:Body></soap:Envelope>

Is there a way that I can modify the web service attributes to make
the prefixed namespace acceptable?

TIA

John
 

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

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top