Service call Exception : webservices.jaxrpc.exceptions
Hi,
I have deployed my own enrichment adapter and while monitoring at following URL
http://xxxxxx:50000/webdynpro/dispatcher/sap.com/tcmdmenrichment~ui/MDM_EC
I am able to see an exception at
Adapter/application/services/service
Service call Exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException:
Invalid Response Code (401) Unauthorised. The requested URL was "http://localhost:50000/MDM_BUPA_WebSrvc/Config1?style=document"
Could somebody please help to come out of this issue...
Regards,
Manoj
Hello,
I'm facing the same problem.
Have you managed to resolv it?
Best regards,
Rui Romba
Similar Messages
-
Hello Community
my ULS-logs are flooded with entries like
w3wp.exe SharePoint Foundation Topology ajczh High Unable to create the service call usage entry. Exception details: System.ObjectDisposedException: Message is closed. at System.ServiceModel.Channels.BufferedMessage.get_Headers() at Microsoft.SharePoint.Administration.SPServiceCallUsageEntry.Create(Message message) at Microsoft.SharePoint.SPServiceContextBehavior.System.ServiceModel.Dispatcher.IClientMessageInspector.BeforeSendRequest(Message& request, IClientChannel channel)
Searching for solutions did not succeed, as the EventID of ajczh is not found on the web. Anyone had this problem already?
Best Regards
MichaelHi Linda
thanks a lot for help.
I modified the ULS-logging to include verbose entries. The problem is correlated to Excel Services, which are functioning quite well on our side. Our Topology consists of an application server, 2 WFE and an office app server. We are using the BI features
of PowerPivot via an additional BI-SQL-server in SharePoint-mode.
Right before the strange entry in the logs we are getting these:
02.26.2014 10:42:45.02 w3wp.exe Excel Services Application Web Front End 145c Verbose ServerSession.ExecuteWithSecurityContext: Before issuing a new request to server http://XXXXX028:32843/[guid]/ExcelService*.asmx ServerRequestCount: 1, AllServersRequestCount: 2, workerThreads: 395, completionPortThreads: 400
02.26.2014 10:42:45.02 w3wp.exe Excel Services Application Web Front End 8k3v Verbose ServerInfo.AcquireHealthCheckPriviliges: Acquired HealthCheck priviliges for server 'http://XXXXX028:32843/[guid]/ExcelService*.asmx'
02.26.2014 10:42:45.02 w3wp.exe Excel Services Application Excel Calculation Services d51n Medium MossHost.GetEndpointAddress: Server endpoint Uri: http://XXXXX028:32843/[guid]/ExcelService.asmx.
02.26.2014 10:42:45.02 w3wp.exe Excel Services Application Excel Calculation Services d51b Verbose MossHost.CreateServiceChannel<IExcelServiceSoap>: About to create service channel in Claims mode.
02.26.2014 10:42:45.02 w3wp.exe Excel Services Application Excel Calculation Services d51c Verbose MossHost.CreateServiceChannel<IExcelServiceSoap>: Service channel created.
02.26.2014 10:42:45.02 w3wp.exe Excel Services Application Web Front End abpw Verbose ServerSession.GetHealthScoreCallback: About to send a GetHealthScore call to server http://XXXXX028:32843/[guid]/ExcelService*.asmx
02.26.2014 10:42:45.02 w3wp.exe SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://XXXXX028:32843/[guid]/ExcelService.asmx' Channel: 'Microsoft.Office.Excel.Server.CalculationServer.Proxy.IExcelServiceSoap' Action: 'http://schemas.microsoft.com/office/Excel/Server/WebServices/ExcelServerInternalService/ExcelServiceSoap/GetHealthScore' MessageId: 'urn:uuid:61212e7d-cf02-41ad-9876-2adf17ec2807'
02.26.2014 10:42:45.02 w3wp.exe SharePoint Foundation Topology ajczh High Unable to create the service call usage entry. Exception details: System.ObjectDisposedException: Message is closed. at System.ServiceModel.Channels.BufferedMessage.get_Headers() at Microsoft.SharePoint.Administration.SPServiceCallUsageEntry.Create(Message message) at Microsoft.SharePoint.SPServiceContextBehavior.System.ServiceModel.Dispatcher.IClientMessageInspector.BeforeSendRequest(Message& request, IClientChannel channel)
that's it, unfortunately. These entries are repeating every 15 seconds.
Best Regards
Michael -
Will Service call out return an exception with an object embedded in it
Hi,
I have a service callout in a request pipeline.Service will throw an exception with a custom object embedded inside the exception.When i see the response $fault in the service error handler, i dont see the object.Is this something which can be done or not?if yes then guide me through it.Hi,
If you invoke the service call out, and it returns a soap fault (make sure that it returns http 500), so you should be able to access the custom fault element inside $fault/con:details/con1:ReceivedFaultDetail/con1:detail
Are you sure that your webservice is returning the fault properly?
Are you not raising a new error after getting the response in the error handler, right?
Regards,
Fabio Douek. -
OSB - Response timer when business service call external webservice slowly.
I am a new bie about OSB, i am developing and testing business service OSB call external webservice. When i test by business service on osb console then time response is 10s, but when i program by C# call external webservice then time response is 0,000026s.
pls help me.I am a new bie about OSB, i am developing and testing business service OSB call external webservice. When i test by business service on osb console then time response is 10s, but when i program by C# call external webservice then time response is 0,000026s.
pls help me. -
Service call exception with Web service
Hello,
we changed tonight the interface of the web service I use in the web dynpro as model. So I deleted the old model and created a new model (under the same name) importing WSDL file.
The WSDL was created via XI which is the interface to a SAP R/3 system, calling in the end a RFC function module.
Now I get this error message:
<b>Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. The content with schema type [http://trw.com/uta][/wsdl:definitions/wsdl:types/xsd:schema/xsd:complexType[1]/xsd:sequence/xsd:element[1]/xsd:complexType/xsd:sequence/xsd:element/xsd:complexType/xsd:sequence/xsd:element[9]/xsd:simpleType] is not valid.</b>
The error occurs while executing wdContext.currentWebServiceElement().modelObject().execute(); command to get data from R/3 (via XI). What I can see in XI protocol is that the data comes back from the R/3 function module. But in web dynpro I get this error.
When no data are found there is no error executing command wdContext.currentWebServiceElement().modelObject().execute();
What to do in this case?
regards
FrankProblem solved!
One of the fields in interface of the R/3 function module interface was changed from length 2 to 18. The adjustment in XI was missing and in the end the web dynpro runtime raised this error.
Nevertehless it is always very hard to find out the cause of such problems. -
Hi,
I Expose ABAP Functionality As WebService.
We Get WSDL URL in WSADMIN TCODE.
We Go To NWDS.And Develop WebDynpro Application Using Webservice Model.We Specify WSDL Under WSDL.
We Deploy the Application It's Successfully Deployed.
But We Give Import Values We Get Service Call Exception
"Service call exception:; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://localhost:8000/sap/bc/srt/rfc/sap/ZFLIGHT?sap-client=800""
is it Require Any Configuration In ECC6.
Thanks
SubbaRao ChintaHi subbarao,
I also faced with the same issue last week. But i created a webservice out of a CAF .
The solution what i found is when you create a webservice it will ask for the authorization levels. There will be three options for setting the authorization levels
1)Basic SOAP
2)Simple SOAP
3)Secure SOAP
By default the option will be Basic SOAP .
My problem is solved by changing the option to simple SOAP.
You can try that once.. -
ADS does not work.(Service call exception)
Hi All,
According to SAP note 937697 "Usage of SAP NetWeaver BI Diagnostics & Support Desk Tools", when running the tool, it gives following error:
ADS does not work.(Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://sapbwd.ni.ad.newsint:50000/AdobeDocumentServices/Config?style=document")
I have been looking into system to find out how to solve the issue, but could not, is there anyone who can help me with exact instructions what I do need to do.
Thanks in advance
sahmadDear Sahmad,
I would suggest you to check notes 1004321 and 944221. The first one says that mostly of this kind of issues (and I have already seen several ones) is caused for bad passwords for user ADSUSER or this account expired. The second note is a troubleshoot note you can also do.
You can also follow this procedure to check that:
Please open the Visual Administrator and browse to Server -> Services -> Security Provider -> Policy Configurations
In the Components tab you will see the service.destinations policy. Click on this and then click on the AccessDestinations security Role. Modify this and add the J2EE_ADMIN/Administrator user to this role and save.
Maybe the password is not set correctly as well. I think it worths to be set it again. First you have to identify where your ADSUSER maintained.
Go to http(s)://<SERVER>:<PORT>/useradmin search for ADSUSER If Datasource:
- LDAP -> check psw of ADSUSER in LDAP and enter it in SM59
- UME data -> check psw of ADSUSER in Visual Admin and enter it in SM59
- ABAP -> check psw of ADSUSER the ABAP system in the following client:
Visual Admin->UME Provider->Properties->ume.r3.connection.master.client
If you want, also, you can change the ADS by the SAP Export Library, as per SAP Note 1112132. It is very simple to activate and will bypass ADS, doing every function ADS does.
I hope it helps.
Kind Regards,
Marcio -
PDFObjectRuntimeException: Service call exception
Hi,
i'd like to use Adobe Interactive Forms to let a user to
fill in data and to merge this information with other generated information into a resulting pdf document.
When i go to the view (in a java web dynpro) i get the following exception:
com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:282)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.createPDF(PDFObject.java:224)
at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:483)
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:185)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1154)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:402)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
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:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
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:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
Caused by: java.rmi.RemoteException: Service call exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:85)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:95)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:279)
... 27 more
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:834)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1238)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:78)
... 29 more
The mode property of the AIF is set to updateDataInPdf (the same exception occurs using the createPdf mode).
Product info:
Server:
Web Dynpro Runtime Vendor: SAP, Build ID: 6.4014.00.0000.20060719132130.0000 (release=NW04_14_REL, buildtime=2006-07-19:23:04:47[UTC], changelist=19247, host=PWDFM087)
J2EE Engine 6.40 patchlevel 100381.311
Java VM Java HotSpot(TM) Server VM, version:1.4.2_07-b05, vendor: Sun Microsystems Inc.
Operating system Windows 2003, version: 5.2, architecture: x86
Web Dynpro Code Generation Infos
SapDictionaryGenerationCore 6.4014.00.0000.20050818151336.0000 (release=630_VAL_REL, buildtime=2005-09-09:20:08:16[UTC], changelist=363802, host=PWDFM026.wdf.sap.corp)
SapDictionaryGenerationTemplates (unknown)
SapGenerationFrameworkCore 6.4014.00.0000.20050818152155.0000 (release=630_VAL_REL, buildtime=2005-09-09:20:01:32[UTC], changelist=363812, host=PWDFM026.wdf.sap.corp)
SapIdeWebDynproCheckLayer 6.4014.00.0000.20050818152737.0000 (release=630_VAL_REL, buildtime=2005-09-09:20:15:40[UTC], changelist=363825, host=PWDFM026.wdf.sap.corp)
SapMetamodelCommon 6.4014.00.0000.20050818152303.0000 (release=630_VAL_REL, buildtime=2005-09-09:20:02:26[UTC], changelist=363816, host=PWDFM026.wdf.sap.corp)
SapMetamodelCore 6.4014.00.0000.20050818152303.0000 (release=630_VAL_REL, buildtime=2005-09-09:20:02:18[UTC], changelist=363816, host=PWDFM026.wdf.sap.corp)
SapMetamodelDictionary 6.4014.00.0000.20050606171352.0000 (release=630_VAL_REL, buildtime=2005-09-09:20:05:38[UTC], changelist=351719, host=PWDFM026.wdf.sap.corp)
SapMetamodelWebDynpro 6.4014.00.0000.20050818152356.0000 (release=630_VAL_REL, buildtime=2005-09-09:20:11:31[UTC], changelist=363818, host=PWDFM026.wdf.sap.corp)
SapWebDynproGenerationCTemplates 6.4014.00.0000.20050905165427.0000 (release=630_VAL_REL, buildtime=2005-09-09:20:26:31[UTC], changelist=366934, host=PWDFM026)
SapWebDynproGenerationCore 6.4014.00.0000.20050818152737.0000 (release=630_VAL_REL, buildtime=2005-09-09:20:16:08[UTC], changelist=363825, host=PWDFM026.wdf.sap.corp)
SapWebDynproGenerationTemplates 6.4014.00.0000.20050905165427.0000 (release=630_VAL_REL, buildtime=2005-09-09:20:26:31[UTC], changelist=366934, host=PWDFM026)
sap.com/tcwddispwda
No information available
sap.com/tcwdcorecomp
No information available
Adobe Document Server version is NW04 SPS 14
Any comments are appreciated.
regards
DirkApparently the ADS was not configured.
One can check this using the following URL as
template:
http://<server>:<port>/AdobeDocumentServices/Config
See also the thread Re: ADS Error for interactive forms
regards
Dirk -
Which messages of soap call processes the block exception branch?
Hi guys!
I'm testing a scenario, where I use BPM, have a block, sync web service call inside and have exception branch, which sends original message to the dest system. I'm a little bit confused, cos' I'm not sure, which error messages does exception branch process. Is it only system error? Or is it also application error - means: fault message is returned..
Thanx, Olian!ok, If I send 0 as parameter, I get exception:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Division by zero</faultstring>
<detail>
<ns1:div_test.CalcException xmlns:ns1="urn:CalculatorWsd/CalculatorVi" xmlns:pns="urn:test">
<pns:message>Division by zero</pns:message>
</ns1:div_test.CalcException>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
But When I send one string parameter, I get
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Deserializing fails. Nested message: XML Deserialization Error. Can not create instance of [java.lang.Integer] with parameter [ee]..</faultstring>
<detail>
<ns1:com.sap.engine.services.webservices.additions.soaphttp.exceptions.ProcessException xmlns:ns1="http://sap-j2ee-engine/error">Deserializing fails. Nested message: XML Deserialization Error. Can not create instance of [java.lang.Integer] with parameter [ee]..</ns1:com.sap.engine.services.webservices.additions.soaphttp.exceptions.ProcessException>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
So, these are two possible exceptions... How to get them? Both are two different message types
OR: hot to get detail text to send it to receiver? What steps need to be in the exception branch?
O.
Olian. -
#2170 error calling a webservice from Xcelsius having crossdomain.xml
Hello together,
we are facing a #2170 error indicating we don't have a proper policy file in place when executing a published Xcelsius flash in SAP BI application portal.
We created a WebService that is running an SAP BI System 7.01. The WebService is function module based and was generated following the wizzard. Afterwards we created a Xcelsius app that consumes data from this WebService (via data connection). The resulting flash from Xcelsius was pulished to SAP BI System (portal).
Since there are many entries in the SDN and the internet in general we finally also created an crossdomain.xml file on the BI system which can be accessed and is visible by using "https://<server>/crossdomain.xml".
Now the confusion begins: We exported the flash from Xcelsius to local desktop and executed the corresponding HTML-file. It's working and I can receive/see WebService data (after adjusting flash-security-settings). If we upload both exported files (html and swf) to the BI system (as MIME objects) and execute the html again we are also receiving WebServervice data. So far so good. But if we execute the link from the SAP BI Portal (Xcelsius menu > SAP > Start) we still get the error #2170 indicating we don't have a proper domain policy file in place. But for my understanding we do have. So currently I would assume the error message is somehow misleading.
During all the activities I found out that this error is also raised if the user has insufficient authorization. My user has SAP_ALL authorization for testing purpose.
In general I would say we are not that wrong with our Xcelsius/WebService if we are not coming from BI portal. So my questions are:
1.) Are there any authorization on portal side that might not fit and lead to this error? If insufficient authorizations produces such an error ...
2.) Did we miss any other stuff during our try/fail-operations?
Many thanks in advance for your hints.
SteffenHi Rajat,
This is how the default trace looks
FATAL: Application Servlet failed to notify devices.
Caught java.rmi.RemoteException: Service call exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://<<server>>:50000/ManagementService/ManagementService?style=document"
at com.om.mws.standaloneproxy.ManagementServiceBindingStub.notifyDevice(ManagementServiceBindingStub.java:1289)
at com.om.mws.standaloneproxy.ManagementServiceBindingStub.notifyDevice(ManagementServiceBindingStub.java:1298)
at com.om.ApplicationServlet$NotifyDevices.run(ApplicationServlet.java:86)
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://<<server>>:50000/ManagementService/ManagementService?style=document"
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:980)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1430)
at com.om.mws.standaloneproxy.ManagementServiceBindingStub.notifyDevice(ManagementServiceBindingStub.java:1282)
... 2 more
java.lang.NoSuchMethodError
at java.lang.Thread.destroy(Thread.java:779)
at com.omApplicationServlet$NotifyDevices.run(ApplicationServlet.java:92)
Rgds
Shashank -
Error calling a webservice from one server process of the cluster
Hi ,
I have a servlet which on startup makes a call to a webservice. I deploy this webapp on the cluster.
The cluster has two instances each instance having one server process.
So when the server restarts one server process on one instance calls the web service the other process on other instance fails with a 503 response code.
When I tried to reproduce the same problem using two server processes on the same instance both processes are able to call the webservice properly.
I am slightly confused as to how different the second scenario is from first one as both are individual server process and may or may not run on same instance.
Can anyone tell me the real cause.
Rgds
ShashankHi Rajat,
This is how the default trace looks
FATAL: Application Servlet failed to notify devices.
Caught java.rmi.RemoteException: Service call exception; nested exception is:
com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://<<server>>:50000/ManagementService/ManagementService?style=document"
at com.om.mws.standaloneproxy.ManagementServiceBindingStub.notifyDevice(ManagementServiceBindingStub.java:1289)
at com.om.mws.standaloneproxy.ManagementServiceBindingStub.notifyDevice(ManagementServiceBindingStub.java:1298)
at com.om.ApplicationServlet$NotifyDevices.run(ApplicationServlet.java:86)
Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://<<server>>:50000/ManagementService/ManagementService?style=document"
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:980)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1430)
at com.om.mws.standaloneproxy.ManagementServiceBindingStub.notifyDevice(ManagementServiceBindingStub.java:1282)
... 2 more
java.lang.NoSuchMethodError
at java.lang.Thread.destroy(Thread.java:779)
at com.omApplicationServlet$NotifyDevices.run(ApplicationServlet.java:92)
Rgds
Shashank -
Web Service call over an Apache
Hello everybody,
we developed a Web Service running on the J2EE Engine. The definition is available at:
http://<host>:50000/VSServer/Config1... Using this URL the WS call works fine.
However, our portal is behind an <b>Apache using https</b>. Necessary rewrite rules exist:
https://host/VSServer/Config1... -> http://<host>:50000/VSServer/Config1... The redirect works in the browser.
However, when the proxy is trying to call the WSD with the URL:
https://host/VSServer/Config1... we get the following: <b>com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (302) Found</b>
does anybody know where the problem is? do we need to change the Apache settings so that the definition is returned?
many thanks in advance,
cheers SaschaThanks Gregor,
however we still get the exception mentioned above. All Apache modules are in use, so are the rewrite rules. Since the redirect works in the browser we think they are correct.
<b>Do I have to edit my proxy settings in the Config tool?</b> The WS call is done between the J2EE engines of the peer portal, not over the browser.
Does anybody has updates on this for me?
mnay thanks in advance -
Using Web Dynpro authentication for a Web Service call
Hi all,
I want to develop a Web Dynpro that calls a Web Service running on the same Web AS (7.0). The Web Dynpro will be integrated in a Portal. The web service that has to be called is automatically generated when we create a guided procedure :
http://help.sap.com/saphelp_nw2004s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm
In my Web Dynpro, I imported the WSDL of this WS and created a model.
The first time I tried to call the WS in my Web Dynpro I got an authentication error :
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://<myHostName>:50100/GPRuntimeFacadeWS/GPProcessExposing?style=document&pid=CA544E9B629A11DB91480017A48D672A&pver=0.5"
So I hard-coded an HTTP authentication :
model._setUser("myWASuser");
model._setPassword("myPassword");
And the Web Service call now works.
Now the next step is that the WS call is made by the user that runs the Web Dynpro. So I found this documentation :
http://help.sap.com/saphelp_nw04/helpdata/en/59/e8e95d1eba48dfa86ae91ad8816f5d/frameset.htm
It would resolve my authentication problem, AND the transport issue : at the moment the Web Service URL is stored in the Logical Port of the WD model, and at transport time, a rebuild of the WD project will be needed.
So I applied what is said in the doc : from the point of view of the Web Service consumer, I just had to add :
model._setHTTPDestinationName("STARTGP");
(where STARTGP is the name of the destination I created in the Visual Administrator with a "Logon Ticket" authentication.)
before the execute(), and I removed my hardcoded authentication.
Unfortunately, nothing changes... I still get a 401 authentication error.
Does anyone have an idea about this ? Or maybe a workaround ?
Thanks in advance for any suggestion.
Regards,
JulienHello Julien,
I have a scenario similar to yours. A client webdynpro application accessing a EJB methods exposed as web service. Those EJB's methods calls R3 RFC's. The client requirements' was to allow SSO through all the layers (Webdynpro -> EJB WS -> RFC). The Webdynpro and EJB's are deployed on the same WAS.
Solution:
1 - Create a RFC Destination on Visual Administration provide the R3 connection parameters and set the Authentication for "Current User (Logon Ticket)". Save your Destination;
2 - In your EJB Project open your Web Service Configuration, on the Security page, set:
Authentication Mechanism: HTTP Authentication
Basic (username/password)
Use SAP Logon Ticket
3 - In your EJB, implement the following code to create JCO Client for the RFC invocations:
Object obj = ctx.lookup(DestinationService.JNDI_KEY);
DestinationService dstService = (DestinationService) obj;
RFCDestination dst = (RFCDestination) dstService.getDestination("RFC", "<YOUR_RFC_DESTINATION_NAME>");
Properties jcoProperties = dst.getJCoProperties();
JCO.Client jcoClient = JCO.createClient(jcoProperties);
4 - In your EAR Project, open your "application-j2ee-engine.xml" and add the References:
"tc/sec/destinations/service" as Service
"tc/sec/destinations/interface" as Interface.
5 - Create your EAR File and Deploy;
6 - Check if the web service now requires Authentication: go to http://<host>:<port>/index.html and click on Web Services Navigator. Test your Web Service. Your Web Service should requiere you to log in before execute the test;
7 - Go back to your Visual Administrator and create a HTTP Destination. Provide your WS URL (should be something like "http://<host>:<port>/<WS_NAME>/Config1?style=document"). Choose Authentication: Logon Ticket. Save your Destination;
8 - Go to your webdynpro project, import your WS Model. (If you have already created it, you have to delete it and import it again, refer to this blog on how to reimport WS Models: /people/bertram.ganz/blog/2005/10/10/how-to-reimport-web-service-models-in-web-dynpro-for-java How To Reimport Web Service Models in Web Dynpro for Java );
9 - Open your model's Logical Ports node, go to the Security tab, and choose "Use SAP Logon Ticket";
10 - In your webdynpro code, before you call the ws invocation (should be something like that: <YOUR_NODE_DEFINITION>.modelObject().execute();), include the following line:
<YOUR_NODE_DEFINITION>.modelObject()._setHTTPDestinationName("<YOUR_HTTP_DESTINATION_NAME>");
11 - Save All Metadata and deploy your Webdynpro App. Test your results.
I hope it helps you, as the documentation on how to implement this scenario is scattered through the SDN and all the SAP help portal.
Best regards,
Paulo. -
Google Webservice sample fails - "Service call exception"
I compiled the Best Practices - Google Search Functionality sample and deployed it to our new server. I started the application and after I entered a search term, it gave me the following error:
Service call exception; nested exception is: java.net.UnknownHostException: proxy
I'm stuck. Help, anyone?Hi,
please visit on your portal (having the System Administrator role assigned to your user) System Administration->System Configuration->Service Configuration->Applications->com.sap.portal.ivs.httpservice->Services->Proxy (double click on proxy).
Either maintain proxy settings, or switch it off by editing field
HTTP - Enable Proxy setting
setting it to
FALSE
Regards,
Armin -
Error -32010 Service Call exception
Hi All,
I am getting the below mentioned error when I try to use BI Query Wizard in VC.
Error - 32010 Cannot Execute query. No result returned or XML returned in the result contains an error. Service call exception: nested exception is:
com.sap.engine.services.webservices.jaxrpc.ex
Invalid Response code: (404) Not found..
I have already checked the below mentioned post on the same error and have done the changes mentioned in the post, but still I am getting the same error.
Re: Error using VC BI Kit - Error -32010:
Request your suggestions as to how I could resolve the problem.
Regards
AnuragHi,
Can you please check the below OSS Note 797622 & 828313.
https://websmp103.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012006153200001658542004
https://websmp103.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012003146900000249742005
Thanks,
Ramakrishna
Message was edited by: Ramakrishna Prasad
Maybe you are looking for
-
How can I change my bank account details on the iPad
I have already registered on iTunes but my bank account and email address are different now so I am trying to change this in order to buy an iBook. I am fast running out of patience as the iTunes 'change your account' details section says it's being
-
My computer / iTunes is set up correctly for wireless (account info. all good), and emial is synched wirelessly. BUT not photos / videos or songs. I seem to have to plug my iPhone into my computer for iTunes to recognize my device. Shouldn't iTune
-
In soundtrack pro you can export as an AAF file, what kind of file is this? And what is it used for? is this an audio or video file?
-
HT5295 Does anyone know how to rate a podcast on this new podcast app?
Surely Apple must have included this feature in the new app.... This is how I track whether or not I want to delete a podcast. This is stupid.
-
Hi All, I have come across one strange behavior of sequence in Oracle 11g R2. Could anyone please account for the change. I have posted the simulation scripts as below. ----Created a new sequence------ CREATE TABLE JO_SEQ_TEST (A NUMBER); ----Created