Hi guys,
I need desperate advise on this because I have no idea why is my model execution keep giving me the error. I am executing this through ADAPTIVE web service while querying through OVS.
"com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'http://j2eedevt:50000/DemoWebOrderWSMaterial/Config1?wsdl ' with operation 'Get_MaterialBySalesArea' in interface 'DemoWebOrderWSMaterial_Document'"
when I tries to execute using the Material Model. As you can see I have set everything correctly. The logic of the code is EXACTLY the same as my other model like SalesOrg etc, but they all could be execute easily but not this. Can someone advise what could go wrong? I have checked almost everything but as the exception did not reveal much information, I could not really go about finding what's wrong.
public void onQuery(
IWDNodeElement queryInputNodeElement,
IWDNode queryOutputNode) {
IPublicDemoWSController.IMaterialElement ovsInput =
(IPublicDemoWSController.IMaterialElement) queryInputNodeElement;
IPublicDemoWSController.IMaterialDataNode ovsOutput =
(IPublicDemoWSController.IMaterialDataNode) queryOutputNode;
try {
// Bind the model to input node.
DemoWSMaterial model = new DemoWSMaterial();
Request_Get_MaterialBySalesArea request =
new Request_Get_MaterialBySalesArea(model);
wdContext.nodeRequest_Get_MaterialBySalesArea().bind(request);
Get_MaterialBySalesArea getMaterial =
new Get_MaterialBySalesArea(model);
getMaterial.setMaterial(ovsInput.getMaterialNum());
getMaterial.setSalesOrg(wdContext.nodeSalesOrgDT1().currentSalesOrgDT1Element().getSalesOrg());
getMaterial.setDescription(ovsInput.getDescription());
request.setGet_MaterialBySalesArea(getMaterial);
wdComponentAPI.getMessageManager().reportException(
"test1",
true);
// invalidate 'Output' model node via a top-down access
// approach
request.execute();
wdComponentAPI.getMessageManager().reportException(
"test2",
true);
// Sync data in the context with data from the model.
wdContext.nodeGet_MaterialBySalesAreaResponse().invalidate();
//ovsInput.node().getChildNode("MaterialDT", 0).invalidate();
} catch (Exception e) {
wdComponentAPI.getMessageManager().reportException(
e.toString(),
true);
}
}
Edited by: Jackson Yap on Feb 27, 2009 8:41 AM