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 <[EMAIL PROTECTED]> 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