This is what Axis2 client generates:
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
<soapenv:Header/>
<soapenv:Body>
<ns2:G110Request xmlns:ns2="urn:wsdltypes.nmvs.eu:v2.0">
<Body xmlns="urn:types.nmvs.eu:v2.0">
<Pack sn="PK0019AD10873229648"/>
</Body>
</ns2:G110Request>
</soapenv:Body>
</soapenv:Envelope>

And this is what server will accept:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"; xmlns:urn="urn:wsdltypes.nmvs.eu:v2.0" xmlns:urn1="urn:types.nmvs.eu:v2.0">
<soap:Header/>
<soap:Body>
<urn:G110Request>
<urn1:Body>
<urn1:Pack urn1:sn="PK0019AD10873229648"/>
</urn1:Body>
</urn:G110Request>
</soap:Body>
</soap:Envelope>

------ Original Message ------
From: "Andreas Veithen" <andreas.veit...@gmail.com>
To: "java-user" <java-user@axis.apache.org>; "Sterpu Victor" <vic...@caido.ro>
Sent: 10/9/2018 7:49:29 PM
Subject: Re: Namespace prefix in Axis 2 - 1.7.3

In which way are those namespace prefix not correct?

Andreas

On Mon, Sep 10, 2018 at 5:36 PM Sterpu Victor <vic...@caido.ro> wrote:

 Hello

 I use Axis 2, version 1.7.3.
I generated a SOAP client java source file with wsdl2java but I have problems using this service because the namespace prefix is not correct in the XML send from the client.
 How can I set the namespace in Axis client?

 Thank you,
 Victor Sterpu

Reply via email to