INVALID RESPONSE CODE 301

Hi Techie's..
In a webdynpro application I have used a Web Service model to get backend data; we have a cluster environment in Test (two server nodes linked with load balancing server and a sap dispatcher).
Using visual administrator --> web services container, the endpoint & WSDL is set to the load balancing server. The webdynpro application fails with this error
The initial exception that caused the request to fail was:
com.sap.engine.services.webservices.espbase.discovery.BaseIOException: Invalid Response Code 301 while accessing URL: http://lumnrs61.luminus.int:8143/inspection.wsil. Response Message: MOVED PERMANENTLY. Content Type: text/html; charset=utf-8. Body Content: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>301 MOVED PERMANENTLY</TITLE> </HEAD><BODY>
Moved Permanently
The document has moved here </BODY></HTML>
at com.sap.engine.services.webservices.server.management.discovery.DestinationsResolver.resolveURL(DestinationsResolver.java:220)
at com.sap.engine.services.webservices.server.management.discovery.DestinationsResolver.resolveEntity(DestinationsResolver.java:120)
at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.initialize(WSQueryImpl.java:184)
at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.findWSInterfaces(WSQueryImpl.java:151)
at com.sap.engine.services.webservices.server.management.discovery.ServiceDiscoveryImpl.getWSDLUrl(ServiceDiscoveryImpl.java:71)
... 80 more
The application works fine in development environment, the endpoint points to the single server node.
Can you let me know how to resolve this issue, we need to have this scenario of load balancing in place such that the web services also get invoked in a load balanced mode.

Hey buddy...
The address is changed.... this code is a standard http status.
Is a warning, saying that your target is not in this place... target changes....
try to verify this target... under your web browser, or telnet, tracert... whatever... check what is your return...
Regards...
=)

Similar Messages

  • Adobe Print Form Error - Invalid Response Code: (401) Unauthorized

    Hi, I've just configured ADS on Netweaver 2004s. I've run through the config guide and everything works ok including the form generation test report FP_TEST_00 which outputs PDF without issue. I have two problems:
    -When I run a "test connection" on the RFC destination 'ADS' using the ADSUSER for the login details, I get a 403 not authorized error. Changing this user to J2EE_ADMIN resolves the issue and I get a 302 redirect. I've tried adding other permissions to the ADSUSER without any luck.
    -Running a report on the Portal under e.g. Executive Reporting and attempting to just right-click and hit "Print Version" results in a 401 error for request "http://hostXX:portXX/AdobeDocumentServices/Config?style=document" exactly as per this thread: Re: Adobe Form Creation Error - Invalid Response Code: (401) Unauthorized. However, I've double-checked all user details in Visual Administrator (ADS_AGENT) and on the ABAP stack side in su01 and sm59. I also tried changing the users to dialog with no effect. If I go directly to that URL and log in with ADSUSER I get a 403 not authorised error (using J2EE_ADMIN is again successful). I've noticed that in the http access log the HTTP protocol used is 1.1 when using the web browser and 1.0 when using the sm59 connection test. I've heard of problems with using HTTP/1.1, but when I change the options on IE8 to use HTTP/1.0, it changes for all other requests except the request for "http://hostXX:portXX/AdobeDocumentServices/Config?style=document", which is still submitted as HTTP/1.1. Conversely, in sm59 if I specify that it should use HTTP/1.1 under Special Options, I can see from the access log that it is in fact still using HTTP/1.0. Could this be related to the 401 error code that I'm seeing?
    Any help would be appreciated. Thanks,
    John

    I think I've ruled out the HTTP protocol version as being an issue here. However I may have found more useful information on the actual issue.
    In the security log under usr\sap\<SID>\DVEBMGS00\j2ee\cluster\server0\log\system I see a different message for the unsuccessful report PDF generation attempt to that of a direct query to the same URL with the same web browser, as below. The unsuccessful attempt appears to forget the ADSUSER credentials and resort to the default J2EE_GUEST which has no authorisations and therefore fails. The direct query doesn't lose the ADSUSER credentials and I think this is because it prompts for the user/password when needed. Does anyone know why this happens for a direct query to this URL but not for the PDF generation attempt?
    Resulting logs from unsuccessful PDF generation attempt:
    #1.5 #005056AF1EB300750000002D0000142000048B4D2208F055#1279063306899#/System/Security/WS/SecurityProtocol#sap.com/irj#com.sap.security.core.client.ws.AuthenticationContext.setDestination#AICL0001#622##<host>_<sid>_3576650#AICL0001#4c1a62608ed511dfbe2a005056af1eb3#SAPEngine_Application_Thread[impl:3]_5##0#0#Info#1#com.sap.security.core.client.ws.AuthenticationContext#Java###An destination was set with the following properties:
    {0}.#1#{PROXY_ENABLED=false, CLIENT_AUTHENTICATION_KEYSTORE_VIEW=, SAP_SID=, SLD_URL=, USERNAME=ADSUSER, SLD_WS_NAME=, URL=http://<host>:50000/AdobeDocumentServices/Config?style=document, PROXY_URL=, SSL_SERVER_AUTHENTICATION=IGNORE, SLD_WS_SYSTEM_NAME=, PASSWORD=XXX, SLD_WS_PORT=, SAP_CLIENT=, DEFAULT_URL=http://localhost:50000/AdobeDocumentServices/Config?style=document, Authentication=BASIC, CLIENT_AUTHENTICATION_KEYSTORE_CERTIFICATE=, URL_CHOICE=Custom, SAP_LANGUAGE=}#
    #1.5 #005056AF1EB30072000000250000142000048B4D220A12ED#1279063306977#/System/Security/Authentication##com.sap.engine.services.security.authentication.logincontext#J2EE_GUEST#0##<host>_<sid>_3576650#Guest#4c1a62608ed511dfbe2a005056af1eb3#SAPEngine_Application_Thread[impl:3]_24##0#0#Info#1#com.sap.engine.services.security.authentication.logincontext#Plain###LOGIN.FAILED
    User: N/A
    Authentication Stack: com.adobe/AdobeDocumentServices*AdobeDocumentServices_Config
    Login Module                                                               Flag        Initialize  Login      Commit     Abort      Details
    1. com.sap.engine.services.security.server.jaas.BasicPasswordLoginModule   SUFFICIENT  ok          exception             true       Authentication did not succeed.#
    Successful direct access of URL http://<host>:50000/AdobeDocumentServices/Config?style=document (click on rpData test and manually log in as ADSUSER):
    #1.5 #005056AF1EB30070000000250000142000048B4D3E260016#1279063778670#/System/Security/Authentication##com.sap.engine.services.security.authentication.logincontext#ADSUSER#675##<host>_<sid>_3576650#Guest#812f72008ed611dfa62d005056af1eb3#SAPEngine_Application_Thread[impl:3]_14##0#0#Info#1#com.sap.engine.services.security.authentication.logincontext#Plain###LOGIN.OK
    User: ADSUSER
    Authentication Stack: com.adobe/AdobeDocumentServices*AdobeDocumentServices_Config
    Login Module                                                               Flag        Initialize  Login      Commit     Abort      Details
    1. com.sap.engine.services.security.server.jaas.BasicPasswordLoginModule   SUFFICIENT  ok          true       true                 
    Central Checks                                                                                true                  #
    #1.5 #005056AF1EB30070000000260000142000048B4D3E2666A6#1279063778702#/System/Security/Audit/J2EE##com.sap.engine.services.security.roles.audit#ADSUSER#675##<host>_<sid>_3576650#ADSUSER#812f72008ed611dfa62d005056af1eb3#SAPEngine_Application_Thread[impl:3]_14##0#0#Info#1#com.sap.engine.services.security.roles.audit#Java###{0}: Authorization check for caller assignment to J2EE security role [{1} : {2}].#3#ACCESS.OK#SAP-J2EE-Engine#all#

  • Adobe Form Error: Invalid Response Code: (401) Unauthorized. The request...

    When trying to run an Adobe Form webdynpro app, I am receiving the following error:
    <b>Invalid Response Code: (401) Unauthorized. The requested URL was:"http://localhost:50000/AdobeDocumentServices/Config?style=document"</b>
    I have checked the ADS test at <server:port>/AdobeDocumentServices/Config; the test did return the version number.
    <i><b>Does anyone have any other ideas of what I should check?</b></i>
    Also, why is it running a url with "localhost" in it?  If this is running on the java was server, then I guess that could make sense.  But if the url request is requesting something from localhost, isn't that my computer?  I guess it depends on if this is a server request or a client request.  I hope this is a server request.

    Sumit -
    First, I think config is okay.  I can run the web service under my id okay.
    Second, I am not sure what the impact is having the build done locally.
    I am building and deploying locally in NWDS to my local portal. But then I am sending the EAR file to the system admin to deploy to my dev server (I am doing this because they will not give out the SDM password.  And, I am waiting on the NWDI setup to be complete; when that is complete I will let NWDI deploy to the dev portal.)
    Incidentally, I am receiving this error on the dev server, not my local portal. (I have tried running on my local portal, but I am getting a socket timeout error. But this is interesting, because I <i>can</i> run other webdynpro non-Adobe apps. I am not tracking down this error at this point because I am really just interested in the dev server.  If I get past the 401 error on the dev server, and then get the socket timout issue...then I will worry about it.)

  • Exception while calling ADS Inappropriate WSIL Invalid Response Code: (401)

    Hi Experts,
    Our ADS configuration was done on XCE a long time back and even reader credentials were installed and everything is working fine.
    Couple of days back, we enabled SSL configuration on the system. Even got the certificates signed by CA and HTTPS is also working without any problems.
    Then, problems are happening when we configured WebService SSL connection for ADS following the steps from
    http://help.sap.com/saphelp_nwce72/helpdata/en/90/71d273fa724cc9bb644ab00405e6f8/content.htm and also the SAP How to guide from: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d02262d8-7814-2c10-5c97-d855d38e9923?quicklink=index&overridelayout=true.
    Among other steps, I have created a View in Key Storage called "ADSCerts" and created an entry "ADSUser" as per the document, generated CSR request, imported CSR response and also the CA's root certificate.
    I exported the ADSUser-cert certificate from here and imported into Identity Management for the User ADSUser under its Certificates tab.
    Also updated SecureConfigPort_Document (in Destination Template Management under SOA Administration) security settings to X.509 Client Certificate and in Details, I have chosen the View ADSCerts and entry ADSUser.
    Even after all the steps as per the document and the help.sap.com link provided above, when I try to test this through a test URL
    (https://host:https-port/webdynpro/resources/company.com/test~wd/TestAdobeApp) that our developers have given me for this, I get a (401)
    Unauthorized error:
    500 Internal Server Error is returned for HTTP request
    [https://host:https-port/webdynpro/resources/company.com/test~wd/TestAdobeApp]
    com.sap.tc.adobe.pdfobject.base.core.PDFObjectRuntimeException:
    Exception while calling ADS; Inappropriate WSIL; configure the
    destination path
    correctly./ncom.sap.esi.esp.service.server.query.discovery.ExtendedServiceException:
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested
    URL was:"Connect to https://host:https-port/inspection.wsil/"
    I have checked the security log file and it shows:
    LOGIN.FAILED
    User: N/A
    IP Address: 192.165.90.102
    Authentication Stack: sap.com/tcesiesp~wsil*inspection.wsil
    Also, ran Security Troubleshooting Wizard from NWA and reproduced the problem while collecting these traces. There were some entries like:
    Login failed!
    [EXCEPTION]
    java.security.PrivilegedActionException:
    com.sap.engine.services.security.exceptions.BaseLoginException: Cannot
    authenticate the user.
    Caused by: com.sap.security.core.server.jaas.DetailedLoginException:
    Received no SAP Authentication Assertion Ticket.
    Received no SAPLogonTicket. Authentication stack:
    [sap.com/tcesiesp~wsil*inspection.wsil].
    Any idea how I can solve this? Anybody got this error?
    Thanks,
    Shitij

    Opened an OSS message with SAP and they told me that the certificates being generated from NWA are in a different format from what is accepted in user store.
    So, generated new certificates from OS level using sapgenpse and now it worked.

  • InvalidResponseCodeException: Invalid Response Code: (401)

    Hello all,
    I imported  adaptive web service model in webdynpro java, and tried to execute the model. I am getting following exception:
    Exception on execution of web service on destination 'SP_DEST' for operation 'Query' in interface 'QueryServiceSoap': Invalid Response Code: (401) Unauthorized. The requested URL was:"http://x.x.x.x:xxxx/_vti_bin/spsearch.asmx"; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://x.x.x.x:xxxx/_vti_bin/spsearch.asmx"
    In visual admin I have put basic authentication with username and password for destinations.
    Any solutions  please...?
    Thanks in advance,
    Sandesh

    Hi
    Probably you need to configure second destination(As you suggested above)
    check this hlep might help you.[Creating Web Service Physical Destinations|http://help.sap.com/saphelp_nwce711/helpdata/en/47/fb728265553c88e10000000a42189c/content.htm]
    [ Configuring Web Services and Web Service Clients in the SAP NetWeaver Administrator   |http://help.sap.com/saphelp_nwce10/helpdata/en/44/4d2bb1c6b00597e10000000a155369/content.htm]
    Thanks

  • WSDLLoader Invalid Response Code 503

    Hello,
    we need to integrate some php legacy WebServices running on XAMP, their WSDLs are integrated using Destinations in NWA.
    When trying to search the Destination in VisualComposer the following Exception is thrown, although the webserver is properly available.
    <snip>
    Caused by: com.sap.engine.services.webservices.espbase.query.exceptions.TechnicalException: Deserializing WSDL stream http://innobis-6ff280c.inndom.intern/wkbt/service/service.wsdl failed
    at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.getWSDLDefinitions(WSQueryImpl.java:509)
    at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.initialize(WSQueryImpl.java:310)
    at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.findWSInterfaces(WSQueryImpl.java:224)
    at com.sap.portal.connector.webservices.metadata.functions.esp.lmt.LMTFunctionsMetadata.searchAndLoadInterfaces(LMTFunctionsMetadata.java:258)
    ... 50 more
    Caused by: com.sap.engine.services.webservices.espbase.wsdl.exceptions.WSDLException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://innobis-6ff280c.inndom.intern/wkbt/service/service.wsdl"
    at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.loadDOMDocument(WSDLLoader.java:140)
    at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.load(WSDLLoader.java:91)
    at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.load(WSDLLoader.java:80)
    at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.getWSDLDefinitions(WSQueryImpl.java:507)
    ... 53 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://innobis-6ff280c.inndom.intern/wkbt/service/service.wsdl"
    at com.sap.esi.esp.service.server.query.discovery.WSTransportSettingsResolver.resolveEntity(WSTransportSettingsResolver.java:364)
    at com.sap.engine.services.webservices.espbase.wsdl.WSDLLoader.loadDOMDocument(WSDLLoader.java:127)
    ... 56 more
    are there any special proxy-settings for the wsdl-loader?
    i have configured the main http-proxy settings in nwa to locally access *.inndom.intern which works just fine for any other servers.
    any idea?
    thanks,
    kai

    Hello Kai,
    We are having the same issue as well. Can you please explain what you meant by "proxy's fault"? If you got this issue resolved, please let us know what the steps were. It would immensely help!
    Thanks,
    - Rao
    Edited by: Raghavendra (Rao) Subbarao on Jul 22, 2008 4:36 PM

  • Web service error message ' Invalid Response Code: (403) Forbidden'

    Hi Experts,
    I created a webservice, and it working fine in Development and Quality systems. But it is not working in Production system. When trying to click on 'Open Web Service navigator for selected binding' for testing it's giving the following error message.
    Cannot download WSDL from http://na00stgerp01.systems.corbis.net:8003/sap/bc/srt/wsdl/bndg_DFCA9B84C8D5A7F1A013001C23C37FBD/wsdl11/allinone/standard/document?sap-client=120: Invalid Response Code: (403) Forbidden. The requested URL was:"http://na00stgerp01.systems.corbis.net:8003/sap/bc/srt/wsdl/bndg_DFCA9B84C8D5A7F1A013001C23C37FBD/wsdl11/allinone/standard/document?sap-client=120"
    Please suggest me any solution.
    Thanks
    Lakshminarayana

    Hi Lakshminarayana,
    there may be lots of reasons.
    [http://lmgtfy.com/?q=http%20%2B%20403]
    Regards, Hubert

  • Invalid Response Code: (407) Proxy Authentication Required

    Hi all,
    I have created a EJB that will access an external webservice to receive data and will display it in a jsp. But when i call it, i get the folllowing error-
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeExcpetion: Invalid Response Code: (407) Proxy
    Authentication Required (The ISA Server requires authorization to fulfill the request. Access to the Web Proxy is denied)
    I have already set the proxy user name and password in <i>visual admin</i> under <i>destinations</i> and also under <i>Web Services Container->Runtime->Settings</i>. Still i get this error. I checked a couple of threads here, that answer to my problem, but none helped! Am i missing something?
    Thanks in advance,
    Swarna

    Hi Swarna
    What is the patch level that you are running on?
    May be the "auth-scheme" element required by the HTTP specification is missing in the "Proxy-Authorization" HTTP header.
    I think that the solution is there in the new support packages or the patch update.
    Please check out the latest support packages and apply them.
    This should solve your problem.
    Regards
      Sumit Jain
    **Reward with points if useful

  • Invalid Response Code: (502) Proxy Error

    I am getting following error when trying to consume a web service using a proxy .
    I have two Server, named A and B
    The wsdl file was generate at A by Function Module => Utilities => More Utilities => Create Web Service => From Function Module. And I can send data in Web Services Navigator(A Server ).
    So I import it in Web Dynpro as a model.But I deploy it in another J2EE engine(B Server).
    the Error log:
    java.rmi.RemoteException: Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (502) Proxy Error ( 找不到主机。 ). The requested URL was:"http://hqbd3.sinopec.com:8000/sap/bc/srt/rfc/sap/ZHQMRO_RP_RYJG_WS?sap-client=200"com.sinopec.bwbcs.wd.rpryjg.batchinput.medol.proxies.ZHQMRO_RP_RYJG_WSSoapBindingStub.bicCfzhqmroRpRyjg(ZHQMRO_RP_RYJG_WSSoapBindingStub.java:99) com.sinopec.bwbcs.wd.rpryjg.batchinput.medol.proxies.ZHQMRO_RP_RYJG_WSSoapBindingStub.bicCfzhqmroRpRyjg(ZHQMRO_RP_RYJG_WSSoapBindingStub.java:108) com.sinopec.bwbcs.wd.rpryjg.batchinput.medol.Request_ZHQMRO_RP_RYJG_WS_bicCfzhqmroRpRyjg.execute(Request_ZHQMRO_RP_RYJG_WS_bicCfzhqmroRpRyjg.java:87) com.sinopec.bwbcs.wd.rpryjg.batchinput.RpryjgBatchCreate.assignElementToRpryjgListData(RpryjgBatchCreate.java:387) com.sinopec.bwbcs.wd.rpryjg.batchinput.RpryjgBatchCreate.createRyjgData(RpryjgBatchCreate.java:320) com.sinopec.bwbcs.wd.rpryjg.batchinput.RpryjgBatchCreate.onActionBatchInput(RpryjgBatchCreate.java:217) com.sinopec.bwbcs.wd.rpryjg.batchinput.wdp.InternalRpryjgBatchCreate.wdInvokeEventHandler(InternalRpryjgBatchCreate.java:261) 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) javax.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(RequestAnalizer.java:944) com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266) com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) java.security.AccessController.doPrivileged(Native Method) com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Whether it is because different Servers?
    Edited by: Cheney Cao on May 20, 2008 3:38 AM

    /****:/#

  • Invalid Response Code 401 when calling webservice via wsil

    Hi Experts,
    I have some web services which use destinations which I maintained in Visual Admin under Web Service Security. For authentication I use SAP Logon Tickets. Everything worked fine until I applied SPS14 for nw04s. No I suddenly get the following Exeption:
      com.sap.engine.services.webservices.espbase.discovery.BaseIOException: Invalid Response Code 401 while accessing URL: http://localhost:80/inspection.wsil. Response Message: Unauthorized. Content Type: text/html. Body Content: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Error Report</title> <style> td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;} A:link A:visited A:active </style> </head> <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  401 &nbsp Unauthorized</b></font></td> </tr> <tr bgcolor="#3F73A3"> <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td> <td height="23"><img width=1 height=1 border=0 alt=""></td> <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/7.00 </b></font></td> </tr> <tr bgcolor="#9DCDFD"> <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td> </tr> </table> <br><br><br><br><br><br> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  No login module succeeded.</b></font></td> </tr> <tr bgcolor="#FFFFFF"> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>  Details:</b></font></td> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre>  No details available</pre></font></td> </tr> </body> </html>
        at com.sap.engine.services.webservices.server.management.discovery.DestinationsResolver.resolveURL(DestinationsResolver.java:220)
        at com.sap.engine.services.webservices.server.management.discovery.DestinationsResolver.resolveEntity(DestinationsResolver.java:120)
        at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.initialize(WSQueryImpl.java:184)
        at com.sap.engine.services.webservices.espbase.query.WSQueryImpl.findWSInterfaces(WSQueryImpl.java:151)
        at com.sap.engine.services.webservices.server.management.discovery.ServiceDiscoveryImpl.getWSDLUrl(ServiceDiscoveryImpl.java:71)
        ... 58 more
    The strange thing is, when I set the destination to use basic authentication with user and pwd it works again. But then the given user account is used for authentication and not the account of the calling user. If I return to logonTickets it works correctly! When I restart the server I get the error again.
    Strange problem. I have this problem since I applied SPS14. Do I have to configure something additionally? I know there were changes made in the topic of web service security. Or could it be a bug of sps14?
    Any help is appreciated!
    Regards Manuel

    Hi,
    in sps14 the security levels are a bit stricter than before. So in my case, I was not allowed to access the inspection.wsil with web services. I solved my problem by changing the
    [sap.com/com.sap.engine.services.webservices.tool*inspection.wsil] authentication stack (policy configuration) to look like this:
    EvaluateTicketLoginModule SUFFICIENT
    BasicPasswordLoginModule REQUIRED
    CreateTicketLoginModule SUFFICIENT
    and additionally I had to map the WSIL_SecurityRole security role only to the
    role SAP-J2EE-Engine/all.
    I hope this helps.
    Regards Manuel

  • Invalid Response code (401).

    Hello Team,
    My requirement is to expose a Web Serive in PI for ABAP Proxy. This WS will be called by Webdynpro Java and display the ECC data in the Enterprise Portal.
    Environment: ECC 6.0 EHP1, PI 7.1
    I have created Data type, Message Type and Service Interface in PI system. I have created and implemented ABAP proxy for the Service Interface in ECC system. Then I have created an End-point in the ECC system in Tcode SPROXY.
    Now I am tring to publish WSDL of Service Interface in Enterprise Service Builder of PI system.  But I was experiencing with an error 'SERVICE_REGISTRY_NOT_AVAILABLE'.  Basis team have applied  NOTEs 1267817 and 1319742.  After applying of these notes I am getting another error ' Invalid Response code (401). Server <http://jupi1.sabic.com:51100/ServicesRegistrySiService/ServicesRegistrySiPort> returned message <Unauthorized>'.
    Appreciate your help.
    Thanks in advance.
    Regards,
    Nausheen.
    Problem due to incorrect CPIC user login password. Issue solved now.

    Problem due to incorrect CPIC user login password. Issue solved now

  • Authenticating web services -- get Invalid Response Code:(401) Unauthorized

    Hi,
    ich have implemented a websirve in dynpro java (thanks for all the guys who wrote guides for that), but i still have a problem. i have to set username and password for authorization.
    i have already tested follwoing code:
    reqMo.wdSetInvocationModifier(
               new IWDWSInvocationModifier() {
                 public void doModifyInvocation(Object port) {
                    // Creating the SOAP Header node.
                    HTTPControlInterface http = HTTPControlFactory.getInterface(port);
                    http.setHTTPProxyUserPass("xxxxx","xxxxxx");
                 public void doModifyAfterInvocation() {}
    but i get same message as follows:
    Exception on execution of web service with WSDL
    URL 'http://server:port/special/wsdl_report_gen.wsdl' with operation '_-xxxx_-generateReport' in
    interface '{urn:sap-com:document:sap:soap:functions:mc-style}XXXX_REPORT_GEN':
    Invalid Response Code: (401) Unauthorized. The requested URL
    was:"http://server:port/sap/bc/srt/rfc/sap/XXXX_report_gen/111/XXXX_report_gen/XXXX_report_gen";
    nested exception is:
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid
    Response Code: (401) Unauthorized. The requested URL
    was:"http://server:port/sap/bc/srt/rfc/sap/XXXX_report_gen/111/XXXX_report_gen/XXXX_report_gen"
    any ideas?
    Edited by: Dennis Ahaus on Dec 10, 2008 11:40 AM

    Hi Dennis Ahaus,
    If you are using Adaptive webservice model, you can provide the credentials as below.
    wdContext.currentXXXXElement().modelObject().setInvokerProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,"username");
    //           wdContext.currentXXXXElement().modelObject().setInvokerProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,"password");          
    Regards,
    VJR.

  • Sharepoint webservice call - Invalid Response Code: (401) Unauthorized.

    Hello,
    when I try to call a webservice provided by Sharepoint Services 3.0 I always get the following:
    InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://[myserver]/_vti_bin/dws.asmx?WSDL, used user to connect: [myuser]"
    That myuser was given in Netweaver Administrator in the SOA Management -> Destination Template Management as "HTTP authentication - user id/passwort (basic). The destination type was set to WSDL with that URL.
    Password I cheked several times. When I call this URL in a browser I can access with that user...
    Any idea whats wrong or what I have to change?
    Thx in advance,
    Frank

    Hi,
    Could you check the proxy settings on the engine? It could be seen in the NetWeaverAdministrator -> SOA Management -> Global Settings.
    The assumption is that the request to wsdl goes (does not go) via proxy. Could the check what is the expected behavior.
    A second assumption that comes to my mind is to double-check the password typing. It could be that something is mis typed.
    A third assumption is is it certian that the web service WSDL expect basic authentication? It could be protected with other mechanisms which would result in the same result.
    ~Dimitar

  • Guided Procedures - Invalid Response Code: (401) Unauthorized

    I'm trying to generate an impersonalized form in Guided Procedures. I got an error.
    I checked the SAP logs and the error is
    Invalid Response Code: (401) Unauthorized. The requested URL was:"http://hostXX:portXX/AdobeDocumentServices/Config?style=document"
    Before this error occurs I see an alert
    LOGIN.FAILED
    User: N/A
    Authentication Stack: com.adobe/AdobeDocumentServices*AdobeDocumentServices_Config
    Login Module Flag Initialize Login Commit Abort Details
    1. com.sap.engine.services.security.server.jaas.BasicPasswordLoginModule SUFFICIENT ok exception true Authentication did not succeed.
    I've checked the ADSUser and its not locked. Configuration and everything looks fine. I've tested the ADS connections too on SM59.
    We have similar configuration for DEV and its working fine there.
    Any help on this is highly appreciated.
    Version - SAP 2004s SP16
    Thank you,
    Srinivas

    Thanks everybody. Resolved
    Updated the HTTP Destination and Web Services Client with the password for ADSUSER again and restarted the services

  • Interactive Form Error:  Invalid Response Code: (503) Service Unavailable

    Hi,
    Here i am Facing a Problem while i try to develop a sample application using Interactive Forms.
    When i tried to Deploy it.
    the Error i am getting is
       com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (503) Service Unavailable. The requested URL was:"http://localhost:50000/AdobeDocumentServices/Config?style=document"
        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:976)
        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1423)
        at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:82)
        at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:99)
        at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:279)
        ... 27 more
    i will be very thankful if anyone solve my problem ...
    Thank you
    Srikanth

    Hi,
    you seem to be pointing to a Java stack that either hasn't got the Adobe document services installed or has them incorrectly configured. Check the ADS Configuration Guide again against the settings of the Engine on which you have the ADS running. Without ADS, you won't get a PDF. The URL with http://localhost:50000/AdobeDocumentServices/Config?style=document in it is a good start, but the config is more than just that.
    Best regards,
    Markus Meisl
    SAP NetWeaver Product Management

Maybe you are looking for

  • How to setup a time in jdbc adapter ?

    hi experts i need to setup the timing in poll intravel. each and every day evening at  6:00 pm the communication channel want to pickup the data from the data base system.

  • Down Payment (Advance Payment)  and Retension money Scenario

    Dear Friends, Pls guide me in the following scenario. The scenario is that one very large construction co using SAP. And its sub contract within its different plant in the same co code when he got any new projects. Now the co using down payment or sa

  • Carnet d'adresse AP ne s'ouvre plus sur mail mail V3.6 , OS10.5.8(intel)

    problème d'ouverture de carnet d'adresse application . mail s'ouvre bien et possibilité d'aller dans carnet d'adreesse à partir de mail Système Os 10.5.8 ( intel ) , pas de mise à jour disponible

  • E71x gprs access point not shown in internet desti...

    Hi All, I am having problems with gprs in my e71x. It used to work fine earlier but now when on using the web browser it just shows wifi under the internet destinations. I have gprs configured as an accesspoint inside internet destination and it work

  • Song Info is not staying put

    I am pretty anal about keeping my music collection organized, so after I import new songs into iTunes, I like to edit the song info to change the track number, disc number, genre and other things. I hit OK, and the changes appear to be groovy, but as