Skip to Content
0
Former Member
Jan 29, 2009 at 09:16 AM

Exception while calling webservice

13 Views

Hello.

I have to call webservice method from controller

As described in

Link: [tutorial|http://help.sap.com/saphelp_nw04/helpdata/en/98/4845b1557b8b43a79c4cd8e4518e5f/content.htm]

I made all steps:

1. In the Data Modeler, choose the icon for Component Controller and start the respective context menu.

2. From the context menu, choose the option Apply Template.

3. Choose the Service Controller template in the displayed wizard and then Next.

as a result I defined a structure of context elements.

I've made implementation in methds wdDoInit()

wdContext.nodeCompanyCheck().bind(new Request_CompanyServiceViDocument_filterCompany0());

also I implemented logic to call webservice in another method

	  try {
		wdContext.currentCompanyCheckElement().setACompanyId(contextElement.getCompanyID());
		wdContext.currentCompanyCheckElement().modelObject().execute();
		wdContext.nodeCompanyCheckResponse().invalidate();
		wdContext.nodeCompanyCheckResult().invalidate();
		sDebug = " <executed> ";
	  } catch (Exception ex) {
		  sDebug += getExceptionStackTrace(ex);
		  contextElement.setSDebug(sDebug);
		  wdComponentAPI.getMessageManager().reportException(getExceptionStackTrace(ex), true);
	  }
  
	  contextElement.setSDebug(sDebug);

As result I received runtime exception in line

wdContext.currentCompanyCheckElement().modelObject().execute();

com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.processDocumentFault(MimeHttpBinding.java:916)

com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1432)

com.accenture.mdp.company.model.companybasic.proxies.Config1BindingStub.filterCompany(Config1BindingStub.java:352)

com.accenture.mdp.company.model.companybasic.proxies.Config1BindingStub.filterCompany(Config1BindingStub.java:408)

com.accenture.mdp.company.model.companybasic.Request_CompanyServiceViDocument_filterCompany0.execute(Request_CompanyServiceViDocument_filterCompany0.java:89)

com.accenture.mdp.company.components.CompanyDataEntry.onActionCheckCompany(CompanyDataEntry.java:3890)

com.accenture.mdp.company.components.wdp.InternalCompanyDataEntry.wdInvokeEventHandler(InternalCompanyDataEntry.java:1281)

com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)

com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)

com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:101)

com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:304)

com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:659)

com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)

com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)

com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)

com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)

com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)

javax.servlet.http.HttpServlet.service(HttpServlet.java:760)/njavax.servlet.http.HttpServlet.service(HttpServlet.java:853)

com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)

com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)

com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer

Could anybody help me ?