Search code examples
javaweb-serviceswebspherewebsphere-7

Facing issue in Webservice Call from IBM WAS7


I have a web service deployed on Oracle Weblogic 11G. The web service has been tested using weblogic's internal test client and is working.

The Client stubs for this web service is built using IBM WAS 7 inbuilt script (WSDL2JAVA.SH). The stub is then used to call the web service and has been deployed on IBM WAS7.

The issue as below is at the call of the web service.

The method call to the stub it self throws this exception.

The wierd part is that acitivity as per the request from the client is recorded in the Logs.

That means the web service is getting the request but the client is unable to analyse the response.

Please help.

[5/24/12 13:02:27:655 GMT+05:30] 00000027 SystemErr R java.lang.ClassCastException: com.ibm.ws.webservices.engine.xmlsoap.SOAPElement incompatible with java.lang.String [5/24/12 13:02:27:655 GMT+05:30] 00000027 SystemErr R at $Proxy21.inquireFinnOneLMS(Unknown Source) [5/24/12 13:02:27:655 GMT+05:30] 00000027 SystemErr R at com.iflex.fcat.hdfc_ln.LNRoot.sendRequest(LNRoot.java:1296) [5/24/12 13:02:27:655 GMT+05:30] 00000027 SystemErr R at com.iflex.fcat.hdfc_ln.RSLoanAccountSummaryBean.doProcess(RSLoanAccountSummaryBean.java:175)


Solution

  • The issue has been found to be on the IBM WAS server and has been fixed in the next FixPack.

    The WAS libraries were not able to understand the SOAP Element and was throwing and error.