Hi, Im trying to create a web-service in Axis2 and access the service from a client using the stub (which was generated using the wsdl). One of the methods takes a OMElement as the input parameter. Thus, when I call that method using the stub, I get the following Exception.
*Exception in thread "main" java.lang.RuntimeException: Can not serialize OM Element Envelope at org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:963) at java.lang.String.valueOf(String.java:2854) at java.io.PrintStream.println(PrintStream.java:821) at client.SecureOrderProcessServiceStub.viewOrder(SecureOrderProcessServiceStub.java:471) at client.SecureOrderProcessClient.main(SecureOrderProcessClient.java:31)Caused by: javax.xml.stream.XMLStreamException: Unknow type can not serialize at org.apache.axis2.databinding.utils.ConverterUtil.serializeAnyType(ConverterUtil.java:1491) at client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1115) at client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1071) at org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90) ....* .... The OMElement which is sent as the parameter, takes the following format. *<ns:viewOrder xmlns:ns="orderprocessorns"> <ns:orderId>0001</ns:orderId></ns:viewOrder>* Any idea whats have been done wrong here? The other methods in the service stub, which takes data types int/string/etc as input parameters, work fine. Thanks, Supun -- *Supun Sethunga* Software Engineer WSO2, Inc. lean | enterprise | middleware Mobile : +94 716546324
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
