ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Łukasz Budnik" <lukasz.bud...@gmail.com>
Subject Re: invoking Axis2 (AXIOM) web service [Solution]
Date Tue, 29 Jan 2008 17:25:26 GMT
Hi All!

The solution is so obvious, sorry for sending my previous e-mail.

Any way, if someone wants to use AXIOM WS in Ode, here's the solution:

On 29/01/2008, Łukasz Budnik <lukasz.budnik@gmail.com> wrote:
> Hi All!
> <xs:element name="logResponse">
>         <xs:complexType>
>         <xs:sequence>
> <xs:element minOccurs="0" name="return" nillable="true" type="xs:anyType"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
>

the response is of logResponse element which contains return element.

So the response should be of course:

OMFactory omFactory = OMAbstractFactory.getOMFactory();	
OMElement logResponse = omFactory.createOMElement(new QName("logResponse"));
logResponse.declareDefaultNamespace(namespace);		
OMElement returnPart = omFactory.createOMElement(new QName("return"));
returnPart.setText(Boolean.toString(success));
logResponse.addChild(returnPart);

// now return logResponse

best regards
Łukasz
Mime
View raw message