Hi All,
I am doing Webservice migration from Axis1.4 to Axis2-1.5. Following process are done for this work:
1. Created *.aar file from the WSDL file [Existing one. Used in Axis1.4]
2. The axis2.war is generated with this *.aar and WAR is deployed in Weblogic 10.3 server.
3. This webservice calls EJB. So the EJB stuffs are packed in a EAR and deployed in same Weblogic 10.3
4. The both deployment are success.
In admin console my Service is listed in AVAILABLE SERVICE list.
Also EPR shows as
http://localhost:7001/axis2/services/xService When I hit
http://localhost:7001/axis2/services/xService?wsdl , a wsdl file is launched in browser
I have created SMSBrickStub.java using AXIS2 command. When calling my service by invoking Stub i am getting following error.
org.apache.axis2.AxisFault: com.---.core.brick.webservice.sms.data.MessageType
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:517)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at com.---.core.brick.webservices.sms.Stub.submitReq(Stub.java:181) at Client.main(Client.java:54)
Caused by: java.lang.InstantiationException: com.----.core.brick.webservi
ces.sms.data.MessageType at java.lang.Class.newInstance0(Class.java:340)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:40)
... 26 more
The MessageType is one of the parameter to be passed to service method. Please find the Client.java I have used. Operation : submitReq(),
I am not sure where i did mistake. Is it pblm with WSDL? OR Is it pblm with migration?
Please need suggestion. looking forward.
Client.java