Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Exception while executing webservice

Hi All,

I am trying to call a webservice in WD java. On execution the following exception is getting displayed.

java.rmi.RemoteException: Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [BOM_COMPONENTS] of class [com.sands.demo.proxies.types.ZBAPI_BOM_GETCOMPONENTS] must exist and can not be null. This is required by schema description.

I am runnig this application in clients network using VPN.

The coding done are

wdDoInit()

Request_MI_ZBAPI_BOM_GETCOMPONENTS_MI_ZBAPI_BOM_GETCOMPONENTS requestWS=new Request_MI_ZBAPI_BOM_GETCOMPONENTS_MI_ZBAPI_BOM_GETCOMPONENTS();

ComplexType_ZBAPI_BOM_GETCOMPONENTS oParameters=new ComplexType_ZBAPI_BOM_GETCOMPONENTS();

requestWS.setParameters(oParameters);

wdContext.nodeRequest_MI_ZBAPI_BOM_GETCOMPONENTS_MI_ZBAPI_BOM_GETCOMPONENTS().bind(requestWS);

Execute Method

try {

wdContext.currentRequest_MI_ZBAPI_BOM_GETCOMPONENTS_MI_ZBAPI_BOM_GETCOMPONENTSElement().modelObject()._setUser("bapiuser");

wdContext.currentRequest_MI_ZBAPI_BOM_GETCOMPONENTS_MI_ZBAPI_BOM_GETCOMPONENTSElement().modelObject()._setPassword("bapiuser");

wdContext.currentRequest_MI_ZBAPI_BOM_GETCOMPONENTS_MI_ZBAPI_BOM_GETCOMPONENTSElement().modelObject().execute();

} catch (Exception e) {

}

Please let me know whether am missing something. I am using WebService Model.

Regards

George

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question