Here is my problem My service class is [1]. It contains an operation called CreateOrder WSDL created for it is [2] Stub Class is [3]
When I try to use stub class inner classes to invoke CreateOrder operation, //////////////////////////// public class Client { public static void main(String ar[]) { CreateOrder createOrder = newOrderProcessorStub.CreateOrder(); createOrder.setCreateOrder(param); //Here param type is Object not OMElement } } ////////////////// As I understood parameter that should be passed to setCreateOrder method should be an OMElement object. But now it is an Java.lang.Object. If I pass an OMElement object it gives a serialising exception. In fact I just need to know what is the parameter that should be passed to setCreateOrder() method. Thank you [1] https://www.dropbox.com/s/3uw1rjve0gxbpia/OrderProcessor.java [2] https://www.dropbox.com/s/pj022zwqj8c3uys/OrderProcessor.wsdl [3] https://www.dropbox.com/s/1amvjvlpbqz78u5/OrderProcessorStub.java Dimuthu On Sun, Dec 1, 2013 at 2:24 AM, Deepal jayasinghe <deep...@gmail.com> wrote: > In the service you can take any type object, and that does not have any > relationship with the stub. The reason is communication between the > service and client happen through XML (SOAP). Axis2 knows how to > serialize and deserialize the objects. > > Deepal > > Hi Deepal, > > Thank you for your response. Yes I made a stub. It contains a method > > to access web service operations with a parameter of the type of > > "Object". Actually the parameters for operations in Axiom services are > > OMElements. So I created an OMElements with necessary data and passed > > it to the method provided by stub. When I run the client it gave an > > exception mentioning a serialising problem. Do you have an idea about > > the cause for this problem? > > > > Dimuthu > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > >