Exception in executing webservice
Problem which im facing is :
I have ZRFC which is exposed as a webservice and imported in webdynpro application.
The webservice structure(nested) has a table which I have to populate.
When I am trying to execute the webservice from my webdynpro application I get the following exception:
u201C com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException u201C
Note: when I try to execute a webservice(ZRFC exposed as webservice) which has a flat structure I am successfully able to execute it. Also I am able to execute the standard webservices with nested structures.
Thanks ,
Anumeha
Hi,
Is the webservice working fine when tested with webservice navigator.
If it is working fine then the problem is with mapping in weebdynpro if not the webservice itself is throwing an exception.
Regards,
Srinivasan Subbiah
Similar Messages
-
Exception during call webservice from Web Dyn Pro application
I receive exception when execute call to webservice. I found place where it fall, it is in stub classmdp\company\wd\_comp\src\packages\com\accenture\mdp\company\model\companybasic\proxies\Config1BindingStub.java
in method below, in line
this.transportBinding.call(this.stubConfiguration,this.globalProtocols,_getOperationProtocols("filterCompany"));
public com.accenture.mdp.company.model.companybasic.proxies.types.p4.FilterCompanyResponse filterCompany(com.accenture.mdp.company.model.companybasic.proxies.types.p4.FilterCompany parameters) throws java.rmi.RemoteException,com.accenture.mdp.company.model.companybasic.proxies.Exception,com.accenture.mdp.company.model.companybasic.proxies.MDPException {
try {
super._beginLogFrame();
// Operation input params initialization
this.inputParams = new ServiceParam[1];
this.inputParams[0] = new ServiceParam();
this.inputParams[0].isElement = true;
this.inputParams[0].schemaName = new QName("urn:CompanyServiceVi","filterCompany");
this.inputParams[0].name = "parameters";
this.inputParams[0].contentClass = com.accenture.mdp.company.model.companybasic.proxies.types.p4.FilterCompany.class;
this.inputParams[0].content = parameters;
// Operation output params initialization
this.outputParams = new ServiceParam[1];
this.outputParams[0] = new ServiceParam();
this.outputParams[0].isElement = true;
this.outputParams[0].schemaName = new QName("urn:CompanyServiceVi","filterCompanyResponse");
this.outputParams[0].name = "parameters";
this.outputParams[0].contentClass = com.accenture.mdp.company.model.companybasic.proxies.types.p4.FilterCompanyResponse.class;
// Operation faults initialization
this.faultParams = new ServiceParam[2];
this.faultParams[0] = new ServiceParam();
this.faultParams[0].isElement = true;
this.faultParams[0].schemaName = new QName("urn:CompanyServiceWsd/CompanyServiceVi","filterCompany_java.lang.Exception");
this.faultParams[0].name = "errorPart";
this.faultParams[0].contentClass = com.accenture.mdp.company.model.companybasic.proxies.Exception.class;
this.faultParams[1] = new ServiceParam();
this.faultParams[1].isElement = true;
this.faultParams[1].schemaName = new QName("urn:CompanyServiceWsd/CompanyServiceVi","filterCompany_com.accenture.mdp.common.exceptions.MDPException");
this.faultParams[1].name = "errorPart";
this.faultParams[1].contentClass = com.accenture.mdp.company.model.companybasic.proxies.MDPException.class;
com.accenture.mdp.company.model.companybasic.proxies.types.p4.FilterCompanyResponse parametersTemp;
this.transportBinding.setTypeMappingRegistry(this.typeRegistry);
this.transportBinding.startOperation(this.inputParams,this.outputParams,this.faultParams);
// Binding Context initialization
this.bindingConfiguration.clear();
bindingConfiguration.setProperty("soapAction","");
bindingConfiguration.setProperty("style","document");
bindingConfiguration.setProperty("transport","http://schemas.xmlsoap.org/soap/http");
PropertyContext bindingConfigurationX;
bindingConfigurationX = bindingConfiguration.getSubContext("output");
bindingConfigurationX.setProperty("operationName","filterCompany");
bindingConfigurationX.setProperty("use","literal");
bindingConfigurationX = bindingConfiguration.getSubContext("input");
bindingConfigurationX.setProperty("operationName","filterCompany");
bindingConfigurationX.setProperty("use","literal");
bindingConfigurationX.setProperty("parts","parameters");
super._fillEndpoint(bindingConfiguration);
_buildOperationContext("filterCompany",this.transportBinding);
this.transportBinding.call(this.stubConfiguration,this.globalProtocols,_getOperationProtocols("filterCompany"));
_setEndpoint((String) bindingConfiguration.getProperty(com.sap.engine.services.webservices.jaxrpc.wsdl2java.ClientTransportBinding.ENDPOINT));
if (this.faultParams[0].content != null) {
throw (com.accenture.mdp.company.model.companybasic.proxies.Exception) this.faultParams[0].content;
if (this.faultParams[1].content != null) {
throw (com.accenture.mdp.company.model.companybasic.proxies.MDPException) this.faultParams[1].content;
parametersTemp = (com.accenture.mdp.company.model.companybasic.proxies.types.p4.FilterCompanyResponse) this.outputParams[0].content;
return parametersTemp;
} catch (com.accenture.mdp.company.model.companybasic.proxies.Exception e) {
throw e;
} catch (com.accenture.mdp.company.model.companybasic.proxies.MDPException e) {
throw e;
} catch (javax.xml.rpc.soap.SOAPFaultException e) {
throw e;
} catch (java.lang.Exception e) {
throw new RemoteException("Service call exception",e);
} finally {
super._endLogFrame("filterCompany");
I receive Service call exception; nested exception is: java.lang.NullPointerException
May be anybody could suggest me how can I get more information about of reason of this exceprion ?
How to repair it ?Check the following path in your server:
If you are using NW04s: :\usr\sap\<InstanceName>\JC00\j2ee\cluster\server0\log\
If you are using CE: :\usr\sap\<InstanceName>\J00\j2ee\cluster\server0\log.
If you are using CE: [Log Viewing with the SAP MC|http://help.sap.com/saphelp_nwce10/helpdata/en/44/f71b59e38e2462e10000000a1553f7/content.htm]
Bala -
Hi Friends,
When I run my application i have got the following Exception while executing it:
com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException:
Error connecting using JCO.Client: null
What might be the problem.
Is it that the JCO connection created is null or the Exception means something else.
When i tried Deploying it locally its working well.
Please help me out in this regard.
Thanks and regards,
Chandrashekar.
Edited by: Armin Reichert on Jan 28, 2008 6:06 PMHi Priyanka/Sumith,
This is the required Stacktrace.
Please go through this stacktrace and let me know how to resolve this issue.
com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModel.prepareExecute(DynamicRFCModel.java:179)
com.utc.sap.testappm.allmodels.ALLMODELS.Z_test_input(ALLMODELS.java:709)
com.utc.sap.testappm.allmodels.Z_test_input.doExecute(Z_test_input.java:137)
com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)
com.test.testappCustomContoller.exuteCounterListData(testappCustomContoller.java:130)
com.test.wdp.InternaltestappCustomContoller.exuteCounterListData(InternaltestappCustomContoller.java:171)
com.test.testapp.onActionGo(testapp.java:188)
com.test.wdp.Internaltestapp.wdInvokeEventHandler(Internaltestapp.java:186)
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.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)
com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
Thanks and regards,
Chandrashekar.
Edited by: chandrashekar chandrashekar on Jan 28, 2008 2:03 PM -
How to handle exception propagation in webservice client?
Hi ,
Is there a way to catch an exception thrown by Webservice server handler?
We have a situation where we need to handle the exception on the client side thrown by the server handler.
We are using Webspehere webservices created thru RAD 7 and clients are generated using axis 2 code generator tool. We generate WSDL from java class rather than Java from WSDL.
We have vague idea that we can use wsld fault mechanism but does not have much implementation knowledge on it.
Any ideas on this will be great help.
Thanks in advance..Here is little more detail ::
We have our regular webservices which has some business methods. Also we have a custom handler which extends javax.xml.rpc.handler.GenericHandler to handle requests [public boolean handleRequest(MessageContext context){
return true;
}] for all our application Webservices.
So, in case of any application errors, handler throws an excpetion which we expect it to be caught in the client stub. e.g. if our application throws InvalidDataException with a specific message on it, we expect it to be caught in the client code as InvalidDataException with the original message on it.
Is there a way to achieve this?
Thanks, -
WD Runtime exception: while using webservices!
Hi all
I am facing a wd runtime exception. using a webservice call from wd on CE 7.1. any clues?
java.lang.ClassNotFoundException: Loader /L_local#wd_webserviceejb3 could not load class com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass
thank you.
regards
LNV
Edited by: vln on Jan 2, 2008 5:55 PMHi,
"Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Node <b><DisplayName></b> child of <b><response></b> not described in Schema"
From my point of view the response does not fit to the WSDL of the web service.The only solution that i can think of is to adjust the WSDL to the real response and to reimport the model after that.
Best regards,
Abhishek. -
Exception while invoking webservices using Dynamic client without WSDL
Hi All,
I am getting the below exception while invoking webservices using Dynamic client without WSDL.
javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.RuntimeException: Missing license file for: WebLogic Platform 8.1 (see Fault Detail for stacktrace)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
at atthi.webservice.TestWSWithWSDL.main(TestWSWithWSDL.java:41)
Exception in thread "main"
Please find my source file below....
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Service;
import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.namespace.QName;
public class TestWSWithoutWSDL {
public static void main(String[] args) {
try{
String address = "<WSDL's SOAP Address>";
String namespaceURI = "<namespaceURI>";
String serviceName = "<serviceName>";
String portName = "<portName>";
String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
String agencyID = "AGN00533";
String fileName = "testWS";
String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><web-services>Sample Application</web-services>";
System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
ServiceFactory factory = ServiceFactory.newInstance();
* Create an instance of the Service with the given service QName
Service service = factory.createService(new QName(serviceName));
Call call = service.createCall(new QName(portName));
call.setTargetEndpointAddress(address);
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
QName stringQName = new QName("http://www.w3.org/2001/XMLSchema", "string");
* Set operation name to invoke.
call.setOperationName(new QName(namespaceURI,"<operationName>"));
* Add parameters definitions in the call object.
call.addParameter("string", stringQName, String.class, ParameterMode.IN);
call.addParameter("string0", stringQName, String.class, ParameterMode.IN);
call.addParameter("string1", stringQName, String.class, ParameterMode.IN);
* Set definition of the return type.
call.setReturnType(stringQName);
Object[] inParams = new Object[3];
inParams[0] = new String(agencyID);
inParams[1] = new String(fileName);
inParams[2] = new String(xmlString);
String result = ((String)call.invoke(inParams)).toString();
System.out.println(result);
}catch (Exception e){
e.printStackTrace();
Please give your suggestions for the above said exception....
Thanks & Regards....Hi All,
I am getting the below exception while invoking webservices using Dynamic client without WSDL.
javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.RuntimeException: Missing license file for: WebLogic Platform 8.1 (see Fault Detail for stacktrace)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
at atthi.webservice.TestWSWithWSDL.main(TestWSWithWSDL.java:41)
Exception in thread "main"
Please find my source file below....
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Service;
import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.namespace.QName;
public class TestWSWithoutWSDL {
public static void main(String[] args) {
try{
String address = "<WSDL's SOAP Address>";
String namespaceURI = "<namespaceURI>";
String serviceName = "<serviceName>";
String portName = "<portName>";
String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
String agencyID = "AGN00533";
String fileName = "testWS";
String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><web-services>Sample Application</web-services>";
System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
ServiceFactory factory = ServiceFactory.newInstance();
* Create an instance of the Service with the given service QName
Service service = factory.createService(new QName(serviceName));
Call call = service.createCall(new QName(portName));
call.setTargetEndpointAddress(address);
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
QName stringQName = new QName("http://www.w3.org/2001/XMLSchema", "string");
* Set operation name to invoke.
call.setOperationName(new QName(namespaceURI,"<operationName>"));
* Add parameters definitions in the call object.
call.addParameter("string", stringQName, String.class, ParameterMode.IN);
call.addParameter("string0", stringQName, String.class, ParameterMode.IN);
call.addParameter("string1", stringQName, String.class, ParameterMode.IN);
* Set definition of the return type.
call.setReturnType(stringQName);
Object[] inParams = new Object[3];
inParams[0] = new String(agencyID);
inParams[1] = new String(fileName);
inParams[2] = new String(xmlString);
String result = ((String)call.invoke(inParams)).toString();
System.out.println(result);
}catch (Exception e){
e.printStackTrace();
Please give your suggestions for the above said exception....
Thanks & Regards.... -
Exception while executing BPM WebService
Hi Experts,
I issue is with bpm webservice execution. I am using CE 7.2. I am calling CE application through Portal using Application integrator Iview.
When I execute the webservice I get the below exception. Through WSNavigator I am able to successfully trigger the webservice.
com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'http://host_name:port_num/bpm/companycom/devc/changebpm/ChangeGenericTwoStep?wsdl' with operation 'GenericTwoStepOperation' in interface 'ChangeGenericTwoStep'
When I got to NWA->Problem Management->Default trace files, I can see the below error description.
com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service with WSDL URL 'http://host_name:port_num/bpm/companycom/devc/changebpm/ChangeGenericTwoStep?wsdl' with operation 'GenericTwoStepOperation' in interface 'ChangeGenericTwoStep'
Caused by: com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Client protocol has thrown an exception. Protocol name is [SecurityProtocol]. See nested exception for details.
at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.invokeHandlerRequest(SOAPTransportBinding.java:1123)
at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call_SOAP(SOAPTransportBinding.java:1282)
at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.callWOLogging(SOAPTransportBinding.java:960)
at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call(SOAPTransportBinding.java:915)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceInvokerImpl.invokeOperation(DInterfaceInvokerImpl.java:76)
at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.execute(WSGenericModelClassExecutable.java:73)
... 69 more
Caused by: com.sap.engine.interfaces.webservices.runtime.ProtocolExceptionExt: No logged in user found.
at com.sap.engine.services.wssec.srt.protocols.ConsumerSecurityProtocol.handleRequest(ConsumerSecurityProtocol.java:176)
at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.invokeHandlerRequest(SOAPTransportBinding.java:1093)
... 74 more
Caused by: java.lang.IllegalStateException: No logged in user found.
at com.sap.security.core.server.jaas.SAPLogonTicketHelper.createAssertionTicket(SAPLogonTicketHelper.java:484)
at com.sap.security.core.server.jaas.AssertionTicketFactoryImpl.createAssertionTicket(AssertionTicketFactoryImpl.java:67)
at com.sap.engine.services.wssec.srt.protocols.GetAssertionTicketPrivAction.run(GetAssertionTicketPrivAction.java:36)
at com.sap.engine.services.wssec.srt.protocols.GetAssertionTicketPrivAction.run(GetAssertionTicketPrivAction.java:20)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.services.wssec.srt.protocols.AssertionTicketRetriever.getAssertionTicket(AssertionTicketRetriever.java:34)
at com.sap.engine.services.wssec.srt.protocols.ConsumerSecurityProtocol.handleTransportSecurity(ConsumerSecurityProtocol.java:1119)
at com.sap.engine.services.wssec.srt.protocols.ConsumerSecurityProtocol.handleRequest(ConsumerSecurityProtocol.java:144)
We have used Provider system. The configurations of provider system seems fine as the same provider system is working for other different bpm webservice.
Can anyone guess what the issue could be.
Thanks,
ShilpaHi,
The SAP_DEFAULT_PROFILE was not assigned to the BPM Project. Once I assigned this, I was able to successfully execute the BPM Webservice.
Thanks,
Shilpa
Edited by: ShilpaKG on Nov 3, 2011 3:13 PM -
Geeting exception while executing BPM webservice from webdynpro.
I have created a webservice to start BPM process.
If I am testing from webservice navigator it works fine and BPM task gets created in my UWL. But when I execute this webservice from webdynpro I get the below error
Exception on execution of web service with WSDL URL 'http://pepu56:50000/bpm/demosapcom/lngtranslationprocess/StartService?wsdl' with operation 'NewOperation' in interface 'TranslateBPMWSDLFile'
Please note that : I have deleted the output part from both binding and PortType section of this webservice.
Edited by: pramod bagauly on Jan 17, 2012 10:16 PM
Edited by: pramod bagauly on Jan 17, 2012 10:18 PMI was doing a silly mistake. I was not running my webdynpro application from portal. I was running my application through "Deploy new archive and run" option.
I got this clue to run this app after login into portal from the fact that when I was running webservice from WSNavigator I was prompted to pass user credential to execute this service. I had not given any authentication option while creating web service, so just guessed if I run it from portal my user credentials might be taken. And it worked for me.
I really don't know why I was asked for user credentials in WSNavigator and how my user credentils would have taken when I ran this app from portal. But this is how I am not getting this error.
Edited by: pramod bagauly on Jan 18, 2012 8:27 PM -
Error in executing webservice after updating WSDL
Hi
I have a webservice which was running fine till the day a new field DistanceKm was added in Response parameter in WSDL.
I reimported the webservice with new WSDL but while executing I am getting the following exception
Error while creating Getcourses com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service on destination 'AQUA_WS_EXECUTION' for operation 'GetCoursesCRM' in interface 'CourseFinderWebServiceSoap' at com.sap.tc.webdynpro.model.webservice.model.WSGenericModelClassExecutable.execute(WSGenericModelClassExecutable.java:73) at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClassExecutable.execute(WSTypedModelClassExecutable.java:46) at com.sw1.crm.rfchandler.RfcHandlerCompInterface.executeGetCoursesCRM(RfcHandlerCompInterface.java:884) at com.sw1.crm.rfchandler.wdp.InternalRfcHandlerCompInterface.executeGetCoursesCRM(InternalRfcHandlerCompInterface.java:1686) at com.sw1.crm.rfchandler.wdp.InternalRfcHandlerCompInterface$External.executeGetCoursesCRM(InternalRfcHandlerCompInterface.java:1815) at com.sw1.crm.aqua.AquaComp.retrieveCoursesFromAqua(AquaComp.java:343) at com.sw1.crm.aqua.wdp.InternalAquaComp.retrieveCoursesFromAqua(InternalAquaComp.java:497) at com.sw1.crm.aqua.CourseFinderView.onActionFindCourse(CourseFinderView.java:421) at com.sw1.crm.aqua.wdp.InternalCourseFinderView.wdInvokeEventHandler(InternalCourseFinderView.java:295) 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(AccessController.java:219) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172) Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. Node
*[http://aquadefaultnamespace.org/][DistanceKm] not described in Schema. at *com.sap.engine.services.webservices.jaxrpc.encoding.GeneratedComplexType.deserialize(GeneratedComplexType.java:1624) at com.sap.engine.services.webservices.jaxrpc.encoding.InstanceBuilder.readElement(InstanceBuilder.java:535) at com.sap.engine.services.webservices.jaxrpc.encoding.InstanceBuilder.readSequence(InstanceBuilder.java:983) at com.sap.engine.services.webservices.jaxrpc.encoding.InstanceBuilder.readContent(InstanceBuilder.java:1127) at com.sap.engine.services.webservices.jaxrpc.encoding.GeneratedComplexType.deserialize(GeneratedComplexType.java:1621) at com.sap.engine.services.webservices.jaxrpc.encoding.InstanceBuilder.readElement(InstanceBuilder.java:572) at com.sap.engine.services.webservices.jaxrpc.encoding.InstanceBuilder.readSequence(InstanceBuilder.java:983) at com.sap.engine.services.webservices.jaxrpc.encoding.InstanceBuilder.readContent(InstanceBuilder.java:1127) at com.sap.engine.services.webservices.jaxrpc.encoding.GeneratedComplexType.deserialize(GeneratedComplexType.java:1621) at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.getResponseDocument(MimeHttpBinding.java:1118) at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1447) at CourseFinderWebServiceSoapStub._invoke(CourseFinderWebServiceSoapStub.java:417) 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) ... 37 more
So what can be the possible reasons for this error ? Please help
Sonalhi
did you check the webservice is that working fine in WSNAVIGATOR , and you might have added the attribute to the
webservice , was there any code changes you have done . if so check even the code you have written.
If the webservice is from the XI side , ask them to even check webervice from there side or if its a abap webservice
check the abap side , there may even be problem there .
even try checking your destination parameters you have provide , -
Error executing webservice in BPM
Hi All,
I would need your solution for the issue that i am facing while executing a webservice. My scenario is as follows.
I have a BPM process which has a message trigger which is bound to the start event of the process. Now this webservice of the message trigger is called by the webdynpro java application to start the process. Here both my webservice and the webdynpro application lies on the same server.
I have created a provider system for the wsdl with the communication profile for WS SAP_DEFAULT_PROFILE(Authentication method: None and Transport: local or http). Assigned the provider system to the service group as well. Now when i execute the webservice through the WSNavigator, the process is started. but when i execute the same through webdynpro, i get an exception as below.
Invalid Response code (401). Server <http://cmpce:52000/bpm/demosapcom/demo/testprocess/TriggerTestProcess> returned message <Unauthorized>. Http proxy info: none
[EXCEPTION]
com.sap.engine.services.webservices.espbase.client.bindings.exceptions.TransportBindingException: Invalid Response code (401). Server <http://cmpce:52000/bpm/demosapcom/demo/testprocess/TriggerTestProcess> returned message <Unauthorized>. Http proxy info: none
at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.handleSOAPResponseMessage(SOAPTransportBinding.java:561)
at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call_SOAP(SOAPTransportBinding.java:1316)
at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.callWOLogging(SOAPTransportBinding.java:952)
at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call(SOAPTransportBinding.java:907)
Kindly provide me a solution for the same.
Regards,
Karthikeyan RSAP_DEFAULT_PROFILE(Authentication method: None
you have to change the profile. enable this two: user name/password and logon ticket.
the user you configured for the provider system has nothing to do with the ws call. -
Error executing Webservice for Process Start via Web Dynpro
Hi Community,
I have a strange issue when executing a webservice that starts a process using web Dynpro. I have configured, the Service Group, the Communication profile.
When I try to execute the Service via Web Dynpro, I get the following exception which is in my opinion fully missleading and does not make sense to me. As the Authentication Profile and the Communication profile allow the same Authentication Methods.
com.sap.esi.esp.lib.mm.config.exceptions.TechnicalException: Failed to create Logical Port for Service Reference with id [YourID here].
Reason for the failure is that no one of the following Authentication Methods [None], [SAP Logon Ticket], or [SAML Assertion] is allowed in the related Communication Profile.
Such an Authentication Method is needed as the Authenticaton Profile is [businessOrTechnicalUser] and no User Account is assigned, so the Authenticaton Profile is considered to be noAuthentication or businessUser.
Related Communication Profile is [SAP_DEFAULT_PROFILE 1] and it allows Authentication Method(s) [User Name/Password (Basic), X.509 Client Certificate, SAP Logon Ticket, SAML Assertion, X.509 Certificate Doc.Auth., User Name/Password Doc.Auth.]
Thanks for your support.
Best Regards NicolasHi Nicolas,
make sure you have
- assigned a communication profile (with no- or basic authentication) to the provided service
- created a provider system with a similar profile
- assigned the provider system to the (consumer) service group
For a full guide on service configuration please check this article:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40dabb46-dd66-2b10-1a9a-81aa620098b3
Best Regards,
Christian -
Error when executing Webservice in BW
Hi,
I am trying to execute Web service in Web service navigator and i am getting the following error
HTTP/1.1 500 Internal Server Error
content-type: text/xml; charset=utf-8
content-length: 600
accept: text/xml
sap-srt_id: 20100823/155814/v1.00_final_6.40/4C72FD39F2E90095E10080000A754720
server: SAP NetWeaver Application Server / ABAP 701
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header></soap-env:Header><soap-env:Body><soap-env:Fault><faultcode>soap-env:Client</faultcode><faultstring xml:lang="en">InvalidVariableValues</faultstring><detail><n0:GetQueryViewData.Exception xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style"><Name>InvalidVariableValues</Name><Text>Incorrect call of OLAP layer CL_RSR_OLAP; error in BW-BEX-ET ()</Text><Message><ID>BRAIN</ID><Number>369</Number></Message></n0:GetQueryViewData.Exception></detail></soap-env:Fault></soap-env:Body></soap-env:Envelope>
I tried to test my webservice in SICF and i get the following soap message
<soap-env:Envelope>
<soap-env:Header/>
<soap-env:Body>
<soap-env:Fault>
<faultcode>soap-env:Server</faultcode>
<faultstring xml:lang="en">
SRT: Wrong Content-Type and empty HTTP-Body received
</faultstring>
<detail>
<ns:SystemFault>
<Host>undefined</Host>
<Component>COREMSG</Component>
<ChainedException>
<Exception_Name>CX_SOAP_CORE</Exception_Name>
<Exception_Text>
SRT: Wrong Content-Type and empty HTTP-Body received
</Exception_Text>
</ChainedException>
</ns:SystemFault>
</detail>
</soap-env:Fault>
</soap-env:Body>
</soap-env:Envelope>
Can any one help me with this issue
Thanks
SuryaHi,
Thanks for your response. It looks like its throwing Invalid Variable Values error. However my query does not have any variables. I tried it with and without variables but i still get the same error..
Without variables i just entered Infoprovider and Query name. I get the same error. However when i execute function module
RRW3_GET_QUERY_VIEW_DATA with the same input parameters which is infoprovider and query i get my result. Below is the error message
HTTP/1.1 500 Internal Server Error
set-cookie: sap-usercontext=sap-client=210; path=/
content-type: text/xml; charset=utf-8
content-length: 600
accept: text/xml
sap-srt_id: 20100827/091011/v1.00_final_6.40/4C77DAAC123A0095E10080000A754720
server: SAP NetWeaver Application Server / ABAP 701
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header></soap-env:Header>
<soap-env:Body>
<soap-env:Fault>
<faultcode>soap-env:Client</faultcode>
<faultstring xml:lang="en">InvalidVariableValues</faultstring>
<detail>
<n0:GetQueryViewData.Exception xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style">
<Name>InvalidVariableValues</Name>
<Text>Incorrect call of OLAP layer CL_RSR_OLAP; error in BW-BEX-ET ()</Text>
<Message>
<ID>BRAIN</ID>
<Number>369</Number>
</Message>
</n0:GetQueryViewData.Exception>
</detail>
</soap-env:Fault>
</soap-env:Body>
</soap-env:Envelope> -
Error While executing WebService to RFC Scenario
Hi,
I am doing a Scenario of WebService to RFC . While Executing the WSDL in Altova I am getting an Error.
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<SOAP:Fault>
<faultcode>SOAP:Server</faultcode>
<faultstring>Server Error</faultstring>
<detail>
<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context>XIAdapter</context>
<code>ADAPTER.JAVA_EXCEPTION</code>
<text><![CDATA[
What might be the problem ..??When you receive a system fault, it means the receiver has an application error. So, please review the Configuration and Design objects (Integration Repositor/Directory), if all determinations and agreements are correct. Also, please try refreshing the cache by running the http://<host>:<port>/CPACache/refresh?mode=full (with PIDIRUSER).
If you still face it, please provide the "<text>" tag content, for the exception trace. -
Error message after executing webservice
Hi all!
After giving up using the "adaptive webservice model", I am trying to use the "old" deprecated webservice model.
The model is embedded without any problems right now.
Now I am trying to call the webservice in my webdynpro application.
Unfortunately, the following error message appears:
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. Can not create instance of class [NULL] when deserializing XML type [Rentenkonto][Kunde].
Does anybody have an idea, how to fix the problem?
Thank you for your help in advance!
Kind regards, Patrick.Hi Patrick,
unfortunately I cannot provide an ad-hoc solution for your nested exception without further investigations.
Nevertheless I'm very interested to know, why you "gave up" using the Adaptive WS Model in Web Dynpro. What's the problem?
Perhaps the coding which now requires to create a model instance:
/** Hook method called to initialize controller. */
//@@end
public void wdDoInit() {
//@@begin wdDoInit()
// create a new model instance (1)
EmailAdWSModel model = new EmailAdWSModel();
// create model objects (2, 3)
Request_SendEmail requestMO = new Request_SendEmail(model);
SendEmail emailMO = new SendEmail(model);
// associate model objects (4)
requestMO.setSendEmail(emailMO);
// bind executable model object to context node (5)
wdContext.nodeRequest_SendEmail().bind(requestMO);
//@@end
Regards, Bertram -
Exception while invoking webservice
I have created a client jar containing stub and port classe, deployment descritor
and deployed webservices. Webservices are working fine but while invoking webservice
with client code i am getting Exception, can somebody please help me to resolve
it ?
[2004-02-09 02:21:53,917] [ExecuteThread: '14' for queue: 'weblogic.kernel.Default']
ERROR [testclient.TestServlet] Error in call object:SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
Exception during processing: java.io.IOException: Received a response from url:
http://localhost:7001/ipc-ws which did not have a valid SOAP content-type: text/html.
(see Fault Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
</bea_fault:stacktrace>java.io.IOException: Received a response from url: http://localhost:7001/ipc-ws
which did not have a valid SOAP content-type: text/html.
at weblogic.webservice.binding.http11.Http11ClientBinding.handleErrorResponse(Http11ClientBinding.java:156)
at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Http11ClientBinding.java:220)
at weblogic.webservice.core.handler.ClientHandler.handleResponse(ClientHandler.java:63)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:184)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:214)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:425)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:275)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:250)
at com.hp.ws.testclient.CreateConfigPort_Stub.createConfig(CreateConfigPort_Stub.java:26)
at com.hp.ws.testclient.TestServlet.callService(TestServlet.java:267)
at com.hp.ws.testclient.TestServlet.doPost(TestServlet.java:143)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305
Thanks
RatnakarHello,
There is not enough information in your post to determine an exact
cause. When you say the web services are working fine, do you mean from
the home/test page? What version of WLS? Is this with a static or
dynamic client. I'm a bit concerned about what seem to be stubs showing
up on the traceback that would indicate another SOAP stack (com.hp.ws)
could you tell us a bit more about your configuration.
Thanks,
Bruce
Ratnakar Katre wrote:
>
I have created a client jar containing stub and port classe, deployment descritor
and deployed webservices. Webservices are working fine but while invoking webservice
with client code i am getting Exception, can somebody please help me to resolve
it ?
[2004-02-09 02:21:53,917] [ExecuteThread: '14' for queue: 'weblogic.kernel.Default']
ERROR [testclient.TestServlet] Error in call object:SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
Exception during processing: java.io.IOException: Received a response from url:
http://localhost:7001/ipc-ws which did not have a valid SOAP content-type: text/html.
(see Fault Detail for stacktrace)
Detail:
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">
</bea_fault:stacktrace>java.io.IOException: Received a response from url: http://localhost:7001/ipc-ws
which did not have a valid SOAP content-type: text/html.
at weblogic.webservice.binding.http11.Http11ClientBinding.handleErrorResponse(Http11ClientBinding.java:156)
at weblogic.webservice.binding.http11.Http11ClientBinding.receive(Http11ClientBinding.java:220)
at weblogic.webservice.core.handler.ClientHandler.handleResponse(ClientHandler.java:63)
at weblogic.webservice.core.HandlerChainImpl.handleResponse(HandlerChainImpl.java:184)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:214)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:131)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:439)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:425)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:275)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:250)
at com.hp.ws.testclient.CreateConfigPort_Stub.createConfig(CreateConfigPort_Stub.java:26)
at com.hp.ws.testclient.TestServlet.callService(TestServlet.java:267)
at com.hp.ws.testclient.TestServlet.doPost(TestServlet.java:143)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305
Thanks
Ratnakar
Maybe you are looking for
-
Backing up an external HD with that has the operating system on it.
My Hard Drive in my Imac has become too small so I have been running the imac from a larger external hard drive. Is it possible to connect Time Machine to back up only the external drive with the OS on it. It wants to back up the internal Hard Drive
-
My Iphone will not charge properly!!!
I have had my iphone since last november 2012 and it has worked perfectly. However about a month ago when i plugged the lightning cable from the wall into my iphone to charge, i had to bend it into a certain position to get the phone to charge. I fig
-
We often need to send files downloaded from irm-enabled libraries of sharepoint to our clients who have no access to our rms server enviroment via e-mail or OA. Now we have to remove these files' irm setting mannually using the account who have ove
-
6/12/14 09:04:13 java.lang.NullPointerException 06/12/14 09:04:13 at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) 06/12/14 09:04:13 at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.
-
Unable to Insert Adobe Edge Animate files into Dreamweaver CS6!
I have just tried the new Insert Edge Media feature in the new Cloud version of Dreamweaver CS6, but I can't get it to work!! I have the option, but all the files in the Edge folder are unhighlighted (grey'd out) and I am unable to select anything Ed