Re[2]: Namespace prefix in Axis 2 - 1.7.3

"Sterpu Victor" <[email protected]> Mon, 10 Sep 2018 16:56:55 +0000
Newsgroups gmane.text.xml.axis.user
Message-ID <em8aa95dab-cdc2-4bc1-9072-5ca254e8dae7@victor-pc>
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" <[email protected]>
To: "java-user" <[email protected]>; "Sterpu Victor" 
<[email protected]>
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 <[email protected]> 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