I found the solution. The problem was the call

envelope.setNamespace(this.omNs);


Regards,
Michele

Michele Mazzucco wrote:
> Hi all,
> 
> I'm getting the following error while attempting to create a SOAP message:
> 
> Unknown SOAP Version. Current Axis handles only SOAP 1.1 and SOAP 1.2
> messages
> 
> The SOAP envelope is:
> 
> <?xml version='1.0' encoding='utf-8'?>
> 
> <addNode:Envelope xmlns:addNode="http://org.ncl.ac.uk/qosp";
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
> 
>       <soapenv:Header>
>               <addNode:QOSP>
>                       <addNode:QOSPMessage>
>                               <addNode:value>New node</addNode:value>
>                       </addNode:QOSPMessage>
>               </addNode:QOSP>
>       </soapenv:Header>
> 
>       <soapenv:Body>
>       <addNode:addNode>
>               <addNode:name>10.8.149.156</addNode:name>
>       </addNode:addNode>
> 
> </soapenv:Body>
> 
> </addNode:Envelope>
> 
> 
> 
> Is it because the prefix is "addNode" and not "soapenv"? If so, how can
> I change it since I specify it only when I create the namespace used by
> my stuff?
> Please note that this happens with SOAP12Factory as well as with
> SOAP11Factory.
> 
> 
> Thanks in advance,
> Michele
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to