cancel
Showing results for 
Search instead for 
Did you mean: 

webdynpro.model.webservice.api.WDWSModelExecuteException

Former Member
0 Kudos

Hi,

<P>

I have Dyn Pro application deployed on NW app server. The application uses webservices on PI and the whole process working until a month back. Recently the application stopped working and throwing following error. Also I use following code for Authentication.

<P>

<P>

I am not sure where the issue is? I looked at forums before posting and could not find anything. I wonder if any one ran into the issue and how is it fixed? I appreciate your help.

<P>

<P>

CODE

<P>

<P>

if ( port instanceof Stub ) {

final Stub stub = (Stub)port; stub._setProperty(Stub.USERNAME_PROPERTY, "abcd");

stub._setProperty(Stub.PASSWORD_PROPERTY, "123");

} else if (port instanceof DInterfaceInvoker) {

final DInterfaceInvoker invoker = (DInterfaceInvoker)port;

invoker.setProperty(Stub.USERNAME_PROPERTY, "abcd");

invoker.setProperty(Stub.PASSWORD_PROPERTY, "123");

}

<P>

}

<P>

Exception is:

<P>

<P>

java.lang.RuntimeException: com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'C:
cliqbook
wsdl
MI_Project_Search_Request_Response1.wsdl' with operation 'MI_Project_Search_Request_Response' in interface 'MI_Project_Search_Request_Response' at com.app.freeman.search.cliqbook.CliqBookSearch.executeRequest_MI_Project_Search_Request_Response(CliqBookSearch.java:294) at com.app.freeman.search.cliqbook.wdp.InternalCliqBookSearch.executeRequest_MI_Project_Search_Request_Response(InternalCliqBookSearch.java:387) at com.app.freeman.search.cliqbook.CliqBookSearchView.onActionSearch(CliqBookSearchView.java:160) at com.app.freeman.search.cliqbook.wdp.InternalCliqBookSearchView.wdInvokeEventHandler(InternalCliqBookSearchView.java:380) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420) at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132) at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335) at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143) at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666) at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250) at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176) Caused by: com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'C:
cliqbook
wsdl
MI_Project_Search_Request_Response1.wsdl' with operation 'MI_Project_Search_Request_Response' in interface 'MI_Project_Search_Request_Response' ... 33 more Caused by: java.lang.reflect.InvocationTargetException: Server Error at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.processDocumentFault(MimeHttpBinding.java:927) at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1440) at MI_ProjectSearchRequestResponseBindingStub._invoke(MI_ProjectSearchRequestResponseBindingStub.java:99) at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceInvokerImpl.invokeOperation(DInterfaceInvokerImpl.java:63) at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.execute(WSGenericModelClassExecutable.java:68) at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClassExecutable.execute(WSTypedModelClassExecutable.java:46) at com.app.freeman.search.cliqbook.CliqBookSearch.executeRequest_MI_Project_Search_Request_Response(CliqBookSearch.java:248) ... 32 more Caused by: javax.xml.rpc.soap.SOAPFaultException: Server Error at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.buildFaultException(MimeHttpBinding.java:737) at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.processDocumentFault(MimeHttpBinding.java:860) ...

<P>

Thank you,

Balaji

Edited by: balaji uppalapati on Jul 27, 2010 2:26 AM

Edited by: balaji uppalapati on Jul 27, 2010 2:29 AM

Edited by: balaji uppalapati on Jul 27, 2010 2:29 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You should check the Java stack logs in the PI system.

This may give you more information.

Looks like you may need to rebuild your Java proxy or something.... have you put any changes in the PI system recently?

Former Member
0 Kudos

Darryl,

Thank you for the reply. It seems to be the soap call is not reaching PI. THe failure is happening in the following code.

public void executeRequest_MI_Project_Search_Request_Response( )
  {
    //@@begin executeRequest_MI_Project_Search_Request_Response()
    //$$begin Service Controller(763118099)
	IWDMessageManager manager = wdComponentAPI.getMessageManager();
  try
   {
	wdContext.currentRequest_MI_Project_Search_Request_ResponseElement().modelObject().wdSetInvocationModifier(new WSDLAuthentication());

	 wdContext.currentRequest_MI_Project_Search_Request_ResponseElement().modelObject().execute();
	 wdContext.nodeResponse().invalidate();
	 wdContext.nodeMT_Project_Search_Response().invalidate();
	 wdContext.nodeRecords().invalidate();
	 wdContext.nodeReturn().invalidate();     
   }
   

    catch(Exception e)
    {
      manager.reportException(e.getMessage(), false);      
      throw new RuntimeException(e.fillInStackTrace());
    }
    //$$end
    //@@end
  }

  /*
   * The following code section can be used for any Java code that is 
   * not to be visible to other controllers/views or that contains constructs
   * currently not supported directly by Web Dynpro (such as inner classes or
   * member variables etc.). </p>
   *
   * Note: The content of this section is in no way managed/controlled
   * by the Web Dynpro Designtime or the Web Dynpro Runtime. 
   */
  //@@begin others
  private final class WSDLAuthentication implements IWDWSInvocationModifier {
		  public void doModifyInvocation(final Object port) {
				if ( port instanceof Stub ) {
					  final Stub stub = (Stub)port;
					  stub._setProperty(Stub.USERNAME_PROPERTY,  "abc");
					  stub._setProperty(Stub.PASSWORD_PROPERTY, "123");
				} else if (port instanceof DInterfaceInvoker) {
					  final DInterfaceInvoker invoker = (DInterfaceInvoker)port;
					  invoker.setProperty(Stub.USERNAME_PROPERTY,  "abc");
					  invoker.setProperty(Stub.PASSWORD_PROPERTY, "123");
				} else
					  throw new RuntimeException("Error"); 
				}
				public void doModifyAfterInvocation() {}

}

Thank you,

Balaji

Former Member
0 Kudos

Can you double check the WSDL for the service against the properties you're setting?

Is the system still talking to the SLD correctly? (TX: SLDCHECK)

Is the RFC to the PI system still valid? (TX: SM59)

Is the config of the calling system integration server complete? (TX: SXMB_ADM)

Former Member
0 Kudos

Darryl,

Thank you for the information. How do I check WSDL for the service against the properties?

From webdyn pro admin page, I checked the SLDCHECK and its looks good.

After importing the wsdl, I looked at the following properties on the model classes and they are empty.

defaultexecutiondestination

defaultmetadatadestination

I am not sure if this is an issue.

Also I verfied the designatedwsdlURL property and the value looks good. I verified the lolocation and wsdl file.

the value is C:
cliqbook
wsdl
MI_Project_Search_Request_Response1.wsdl and verified that wsdl exists.

Thank you,

Balaji