Service Virtualization

Expand all | Collapse all

Exception while Virtualizing SOAP services of SAP System

Jump to Best Answer
  • 1.  Exception while Virtualizing SOAP services of SAP System

    Posted 08-25-2016 05:43 PM

    There is a SAP system which has been exposed as SOAP Services to external system. I am able to Virtualize it using Live Recording but when we are hitting it via application it is failing with below error:

     

    2016-08-24 14:46:24][Thread-41][ERROR]: CorporateDataService.getBeginningInventory: Exception occured [Exception [java.lang.ClassCastException: org.apache.xmlbeans.impl.values.XmlAnyTypeImpl incompatible with sapComDocumentSapSoapFunctionsMcStyle.ZI0526FiorgResponseDocument], Message[org.apache.xmlbeans.impl.values.XmlAnyTypeImpl incompatible with sapComDocumentSapSoapFunctionsMcStyle.ZI0526FiorgResponseDocument], LocalizedMessage[org.apache.xmlbeans.impl.values.XmlAnyTypeImpl incompatible with sapComDocumentSapSoapFunctionsMcStyle.ZI0526FiorgResponseDocument]]
    [2016-08-24 14:46:24][Thread-41][ERROR]: CorporateDataService.handleCorporateData: Exception occured [Exception [com.{{CompanyName}}.gia.v1.exception.BaseRuntimeException: CorporateDataService.getBeginningInventory: Exception occurred ], Message[CorporateDataService.getBeginningInventory: Exception occurred ], LocalizedMessage[CorporateDataService.getBeginningInventory: Exception occurred ]]
    com.{{CompanyName}}.gia.v1.exception.BaseRuntimeException: CorporateDataService.getBeginningInventory: Exception occurred
    at com.{{CompanyName}}.gia.v1.service.impl.CorporateDataService.getBeginningInventory(CorporateDataService.java:1260)
    at com.{{CompanyName}}.gia.v1.service.impl.CorporateDataService.handleCorporateData(CorporateDataService.java:170)
    at com.{{CompanyName}}.gia.v1.thread.CorporateDataThread.run(CorporateDataThread.java:59)
    at java.lang.Thread.run(Thread.java:790)
    Caused by: java.lang.ClassCastException: org.apache.xmlbeans.impl.values.XmlAnyTypeImpl incompatible with sapComDocumentSapSoapFunctionsMcStyle.ZI0526FiorgResponseDocument
    at com.{{CompanyName}}.gia.v1.webservice.impl.SAPERPWebServiceClient.getCompanyCodeAndProfitCenter(SAPERPWebServiceClient.java:223)
    at com.{{CompanyName}}.gia.v1.service.impl.CorporateDataService.getBeginningInventory(CorporateDataService.java:1254)

     

    Also, in response body there is one namespace as: xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style"

     

    Please help.



  • 2.  Re: Exception while Virtualizing SOAP services of SAP System
    Best Answer

    Posted 09-02-2016 04:41 PM

    It was a namspace issue. resolved now.