Authentication error while consuming web service published in SR of CE 7.1

Hi,
I am having this error while trying to consume a web service published in local services registry. Authentication level is set as Basic in the web service and in end point. I am receiving this error in security log files.
Message:Authentication for web service ServicesRegistrySiService, configuration ServicesRegistrySiPort using security policy sap.com/tcesiuddisrws~earServicesRegistrySiServiceServicesRegistrySiPort*ws failed: Login failed.. (See SAP Note 880896 for further info).
Category: /System/Security/WS/Authentication
Location: com.sap.engine.services.wssec.authentication.authenticate
Application: sap.com/tcesiuddisrws~ear
Thread: HTTP Worker [1]
Data Source: j2ee\cluster\server0\log\system\security_00.log
Correlator ID: 33747500000034965
Argument Objects: 
Arguments: 
DSR Component: 
DSR Transaction: 72b226c009ed11dd9a3e000c29c818ce
DSR User: 
Message Code: 
Session: 4196
Transaction: 
User: Guest
Host: ########
System: ###
Instance: J00
Node: server0
following is the code in a C# .Net 2.0 from where the service is called.
            CnarService srv = new CnarService();
            NetworkCredential ic = new NetworkCredential("user", "password");
            CredentialCache cache = new CredentialCache();
            srv.UseDefaultCredentials = false;
            srv.PreAuthenticate = true;
            srv.Credentials = ic;
            try
                srv.Timeout = 600;
                cnarobject cnObj = srv.GetObject("1");
                fnameTextBox.Text = cnObj.firstname;
                lnameTextBox.Text = cnObj.lastname;
                mnameTextBox.Text = cnObj.middlename;
            catch (WebException wex)
                MessageBox.Show(wex.Message + wex.Response + wex.StackTrace);
I tried to find the SAP Note 880896 but note doesn't exists. I am receiving similar error while trying to connect Enterprise Services explorer for .Net
Please help.
Regards
Monty

Hi,
maybe you should see the settings for the ServicesRegistrySiService too. Under nwa->SOA.
I am not sure, but the error seems like not able to use the ServicesRegistrySiPort, which is to be authenticated against.
It is then used for retrieval of web services and publishing to the registry... i suppose.
I am not sure though.
Best regards,
Vera

Similar Messages

  • Error while consuming web service in portal component

    Hi All,
    I am working on a portal application which uses web services in portal component via web service.
    I have tested the web service and then creted a relevant portal service to it .When using this portal service in the portal component and running it Im getting the following run time error
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : Test_portal_service_app.Test_portal_service_app
    Component Name : Test_portal_service_app.Test_portal_service_app
    com.sap.portal.ivs.global.ume.UMECLient.
    Exception id: 11:17_03/07/08_0028_2739150
    See the details for the exception ID in the log file
    I did not use any ume attributes or ume api methods in the portal component .
    I have also added sharingreference= portalserviceapplication name  in deploymentdescriptor of the portal application which has the portal component.
    Please provide any suggestion for the possible cause of error .
    Urgent!!!!
    Thanks.

    Hi all,
    Please throw some light into this issue i am getting the following exception.
    com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: Proxy Authentication Required.
    I have given the proxy settings in the com.sap.portal.ivs.httpservice  in the portal and also
    defined a proxy server in the Visual Administrator under Services -> Webservice Container -> HTTP Proxy Server
    I am calling service in the following manner.
    IPortalRuntimeResources runtime = PortalRuntime.getRuntimeResources();
       IService service = runtime.getService(IWS_P_Service.KEY);
       IWS_P_Service ws_service = (IWS_P_Service)service;
        Volumes from = new Volumes(Volumes.VOLUMES_KILOLITER_VALUE);
        Volumes to = new Volumes(Volumes.VOLUMES_LITER_VALUE);
        ChangeVolumeUnit cvu = new ChangeVolumeUnit(1200,from,to);
        // working upto here
         response.write("working");
         ChangeVolumeUnitResponse cvu_res = ws_service.ChangeVolumeUnit(cvu);
         double result = cvu_res.getChangeVolumeUnitResult();
         response.write(result+"");
    It is working upto "working".
    If any body has any solutions please post.
    Thanks

  • Authorization error while consuming web service in SOAP UI

    Hi,
    I am an ABAPer and do not have much knowledge about SOAMANAGER configuration.
    I have created a Web service and configured it using SOAMANAGER. I am trying to consume same web service using SOAP UI.
    But, I am getting an error HTTP-401 unauthorized.
    For authentication, I have selected "Transport level -User ID/Password" checkbox.
    What else, I have to configure, please let me know.
    Error log:
    Login failed
    What happened?
    calling the URL  <URL>.
    The application was running in the system <System> . Here, no credentials were provided.
    What can you do?
    If you still have a user ID , contact your system administrator.
    HTTP 401 - Unauthorized
    Your SAP Internet Communication Framework Team
    Regards,
    Sneha

    Hi Sneha,
    In SOAP UI, after importing WSDL, dig it till Request1, select it and go to Request property.
    Set Below things
    1. Authentication Type = Preemptive
    2. give username
    3 give password
    and send message.
    Regards,
    Mastan
    Message was edited by: mastan vali

  • HELP: Error while consuming Web Service: ClassCastException

    Hi,
    I am trying to consume a web service that I deployed on Tomcat/Axis. Any guideline will be helpful. I generated stubs using WSDL2Java utility from Axis. The method I am trying to call is getFibo(), which returns an object FiboHolder. Unfortunately everytime it is throwing ClassCastException. I have couple of other methods in the service that returns int and int[] and both works fine. Could anyone please help why I am not able to consume the service when it is returning the object FiboHolder but works fine when I consume other methods of the service that returns int or int[]?
    Following is my client code:
        FibonacciService service =  new FibonacciServiceLocator();
        FibonacciSoapBindingStub stub = (FibonacciSoapBindingStub) service.getfibonacci(new URL("http://localhost:8080/axis/services/fibonacci"));
        // Now use the service to get a stub to the service
        FiboHolder fibHold = stub.getFibo();  //code errors out at runtime here
        System.out.println(fibHold.getFibo1());Following is the error message I get:
    org.apache.axis.AxisFault: java.lang.ClassCastException
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.ClassCastException
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname:
    Thanks,

    Hi all,
    Please throw some light into this issue i am getting the following exception.
    com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: Proxy Authentication Required.
    I have given the proxy settings in the com.sap.portal.ivs.httpservice  in the portal and also
    defined a proxy server in the Visual Administrator under Services -> Webservice Container -> HTTP Proxy Server
    I am calling service in the following manner.
    IPortalRuntimeResources runtime = PortalRuntime.getRuntimeResources();
       IService service = runtime.getService(IWS_P_Service.KEY);
       IWS_P_Service ws_service = (IWS_P_Service)service;
        Volumes from = new Volumes(Volumes.VOLUMES_KILOLITER_VALUE);
        Volumes to = new Volumes(Volumes.VOLUMES_LITER_VALUE);
        ChangeVolumeUnit cvu = new ChangeVolumeUnit(1200,from,to);
        // working upto here
         response.write("working");
         ChangeVolumeUnitResponse cvu_res = ws_service.ChangeVolumeUnit(cvu);
         double result = cvu_res.getChangeVolumeUnitResult();
         response.write(result+"");
    It is working upto "working".
    If any body has any solutions please post.
    Thanks

  • Error while consuming Web Service (returning XML ) in ABAP

    Hi,
    i am trying to consume a web service in ABAP. ( webservice which takes a request and return a XML string back).
    I created a proxy class in SE80. and i tested it successfully.
    When i tried to use the class in my program, it is giving dump.
    i am not sure what is the problem. I guess it is not able to handle null values in XML.if that is the case. how to handle it..

    The dump says:
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    Except.                CX_SY_REF_IS_INITIAL      
    Error analysis                                                              
        An exception occurred that is explained in detail below.                
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
         caught and                                                             
        therefore caused a runtime error.                                       
        The reason for the exception is:                                        
        You attempted to use a 'NULL' object reference (points to 'nothing')    
        access a component (variable: "LO_CLIENTPROXY").                        
        An object reference must point to an object (an instance of a class)    
        before it can be used to access components.                             
        Either the reference was never set or it was set to 'NULL' using the    
        CLEAR statement.                                                        
    I think this dump is because of the default value ( space) in some elements. How to avoide that.
    wheni catch CX_SY_REF_IS_INITIAL it is not giving any dump. But this is not my requirement. Because it is not getting anything into  response string.

  • Error while consuming Web service!!

    Hi All,
    1)I have created RFC enabled function module in R/3 back end
    2)I want to use this Funtion module in webservice callacble object
    3)I have created a callable object,but i am getting this error while testing
    invocation failed: The host of endpoint URL "http://<host>:8001/sap/bc/soap/rfc" was not found. Check if the WS Client is configured correctly. Probably endpoint URL is not set or use of HTTP Proxy is required.; nested exception is:
    java.net.UnknownHostException: proxy
    Secondly i tried using external webservice and this is :
    http://www.webservicex.net/WeatherForecast.asmx?WSDL
    When i use this WSDL url, i am getting the error as : Could Not load WSDL URL:http://www.webservicex.net/WeatherForecast.asmx?WSDL :GenericServiceFactory initialization problem while calling WSDL model.
    Can anybody guide me solving these two issue?
    Any help will be highly apprecaited!!
    Regards,
    Ameya

    Hi,
    Does anybody have any idea about it ?Please suggest any solution.
    Help will be highly appreciated.
    Regards,
    Ameya

  • XML Parser Error while creating Web service Client using JAX RPC

    hello evryone,
    Im facing XML Parser Error while creating web service client using JAX RPC. Im using Net Beans IDE for development purpose. I have wrote configuration file for client. Now i want to create Client stub. However i dont know how to do this in Net Beans. So i tried to do it from Command promt using command :
    wscompile -gen:client -d build -classpath build config-wsdl.xml
    here im getting Error:
    error parsing configuration file: XML parsing error: com.sun.xml.rpc.sp.ParseException:10: XML declaration may only begin entities
    Please help me out.
    Many thanks in advance,
    Kacee

    Can i use the client generated using jdeveloper 11g to import into the oracle forms 10g, i.e., form builder 10g. Currently this is the version we have in our office.

  • Error while consuming Odata service from Gateway client i.e /iwfnd/gw_client

    Hello Experts.
       I am facing below an error while consuming the Odata service from GW client... The error is "No service found for the namespace /IWFND/,name ZTEST_STOREROOM_SRV,version 001". Even i have tried to deep dive in /IWFND/Error_log but no use..
      Actually what I was doing :- My aim is to connect multiple back end systems in the same server with the help of Aliasing concept.. I have created multiple aliases and added in the /IWFND/MAINT_Service transaction.. but i am not getting how to consume the service..
       I have followed the solution upto some extent in the link => Multiple Origin Composition - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Library
      Can you please let me know how to resolve this.. Also please let me know, the syntax for the URI...
      Your help is highly appreciated..
      Please find the screenshot attached.
    Thanks,
    Srinivas.

    Hello @Nrisimhanadh_Yandamuri
      Thanks for your reply..
      I have got all the required authorization.. But still I am not able to hit the service.. Please let me know what could be the solution..
    Thanks,
    Srinivas.

  • Windows authentification while consuming web service from ABAP

    Hi All,
    We are consuming web service from ABAP, we have created client proxy in SE80 and configured logical port in LPCONFIG.
    This one was working fine. Now we have added  windows user authentification to access this service.
    Now when I'm trying to regenerate this proxy in R/3 it is asking for user and password. When I enter these details this one is not working.
    If I access this service direcly from internet explorer and I enter same user and password then I would able to access this service.
    Could you please let me know how to handle this.
    Regards
    Vikram

    The dialog that is produced by HTTP Destination object of the logical port is designed only for use within Classic Dynpro applications.  There is no prompt produced when running in Web Dynpro.  If possible assign a generic user within the logical port definition and this will be used automatically by all users.

  • Query: Authentication Error while consuming a web service

    Hi All,
    I've generted a WSDL file by using the following steps.
    1.Created a RFC enabled ABAP pgm
    2.Created a web service out of it (using webservice creation wizard - default virtual host. so my port is 8100)3.Released the web service (WSCONFIG)
    4.Generated the WSDL file (WSADMIN + CTRL F1).
    Then I wanted to consume it from a .Net program. But am getting authentication error in .Net.
    Do I need to configure anything for Authentication (username and password) from R/3 side?..
    How Do I pass the credential info from .Net?.
    Should I take care of any setup other than what I've specified?.
    Any Blogs or response would be appreciated.
    Thanks,
    Joe.

    Usually like this:
    WSReference1.WSPProxy proxy = new WSReference1.WSPProxy();
    proxy.Credentials = new System.Net.NetworkCredentials("Username", "Password");
    proxy.PreAuthenticate = true;
    proxy.CallMethod();

  • 500 Error code while consuming web service using HTTPURLConnection

    Hi,
    I am getting an HTTP response code 500 and an IOException when I run a web service client to invoke a BMC Remedy web service (document based). I am using XML over HTTP to hit the web service as follows:
    // For Remedy
    soapAddress = "http://www.test-sislhelpdesk.siemens.co.in/arsys/services/ARService?server=bomw041a&webService=WebService_Test";
    soapEnvelope = "<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><SOAP-ENV:Header><AuthenticationInfo><userName>webservice</userName><password>*******</password></AuthenticationInfo></SOAP-ENV:Header><SOAP-ENV:Body><Q1:OpGetList xmlns:Q1=\"urn:WebService_Test\"><Q1:Qualification></Q1:Qualification></Q1:OpGetList></SOAP-ENV:Body></SOAP-ENV:Envelope>";
    soapAction = "urn:WebService_Test/OpGetList";
         URL url = new URL(soapAddress);
         HttpURLConnection connection = (HttpURLConnection) url.openConnection();
         System.out.println ("Connection got");
         connection.setDoOutput(true);
         connection.setRequestProperty("Content-Type","text/xml");
         connection.setRequestProperty ("soapAction", "\"" + soapAction + "\"");
         OutputStreamWriter outputStream = new OutputStreamWriter(connection.getOutputStream());
         System.out.println ("outputstream got");
         outputStream.write(soapEnvelope);
         outputStream.flush();
         BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
         String line = null;
         while ((line = reader.readLine()) != null)
              writer.write(line);
              writer.write("\n");
         System.out.println (writer);
         catch(Exception e){
              e.printStackTrace();
    I have created a .NET client proxy which seems to work well.
    I am not able to figure out as to why this code is not working. May be something wrong with the SOAP message request I am sending? But I have created this SOAP request message from the log generated for a successful hit. Any help in this regard will be highly appreciated.
    The web service is on the internet and hance is accessible to all :)
    Regards
    Vaibhav

    Tried "POST" request method, did not work.
    Actually when i hit other web services (created by me) , the code works.
    But when I hit a third party web service, it fails returning 500 error code.
    How can I extract the SOAP message returned, if any and see thinggs for myself.
    I guess there is something wrong with the request SOAP message which I am sending.

  • Access denied Error while calling Web Service form Infopath Form 2010.

    Hi Dear All,
    I have been facing an error while calling an GetUserProfileByName() web service method from InfoPath 2010 from.
    i have FBA(Forms Base Authentication )configured . After Infopath form published to site collection when i select an user from people picker control i want to get Email Id of Selected user for that i am calling getUserProfileByName() Web Method, but 
    i am getting Access denied error code 500.
    Any Help would be more than welcome.
    Thanks.

    Hi,
    Greetings. Please check 
    Check the IE settings. Click Internet Options> Security>Custom level. Make sure that the ‘Access data source across domains’ is enabled. Make sure that you have permission to the web service and to the content which the web service tries to modify.
    For more information, please refer to this site:
    "Access is denied." error in Infopath 2007 form + ASMX: http://us.generation-nt.com/answer/access-denied-error-infopath-2007-form-plus-asmx-help-65808252.html
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Error while pinging Web service in SUP.

    Hi all,
    I am trying to consume a Web Service through SUP.
    I have taken a sample Web service [http://www.webservicex.net/ConvertTemperature.asmx?WSDL] .
    But when I trying to establish a connection from sybase Wrokspace and ping the web service It is giving me an error.
    I have checked if the web service URL and it is working fine.
    The error  I recived while pinging is as follows
    com.sybase.sup.tooling.xml.XmlException: java.net.ConnectException: Connection timed out: connect
         at com.sybase.sup.tooling.wsdl.WsdlParser.parseURL(WsdlParser.java:573)
         at com.sybase.sup.tooling.wsdl.WsdlParser.parse(WsdlParser.java:68)
         at com.sybase.uep.tooling.eis.WsEISOperationBuilder.<init>(WsEISOperationBuilder.java:91)
         at com.sybase.uep.tooling.eis.WsEISOperationBuilder.<init>(WsEISOperationBuilder.java:66)
         at com.sybase.uep.datasources.ws.views.WSConnection.initialize(WSConnection.java:154)
         at com.sybase.uep.datasources.ws.views.WSConnection.<init>(WSConnection.java:38)
         at com.sybase.uep.datasources.ws.views.WSConnectionFactory.createConnection(WSConnectionFactory.java:28)
         at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(Unknown Source)
         at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(Unknown Source)
         at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(Unknown Source)
         at org.eclipse.datatools.connectivity.ui.PingJob.run(Unknown Source)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:525)
         at java.net.Socket.connect(Socket.java:475)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
         at sun.net.www.http.HttpClient.New(HttpClient.java:306)
         at sun.net.www.http.HttpClient.New(HttpClient.java:323)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
         at com.sybase.sup.tooling.wsdl.WsdlParser.parseURL(WsdlParser.java:562)
         ... 11 more
    Please let me know what the problem might be.
    Thanks,
    Krutheeka.

    Hi,
    while you setup the webservice you can test the service and get the preview of the resultset. Did that work fine? If that works fine - check if you can simply copy and paste the webservice URL into a browser on the running PC. If you do not get a result in the browser, it is the landscape - if you get a result in your browser but not in the app it is the app.
    Well, could you try that step first?
    Regards,
    oliver

  • (401) Unauthorized Error on Consuming Web Service

    Hi
    I consumed my web service in JSP but when I deploy the page. I get this error.
    Application error occurred during request processing.
    Details:   java.rmi.RemoteException: Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://xxxx.xxx:xxxxx/WS_Preview/Config1?style=document"
    Exception id: [001CC43ABAC0005F0000E0C30000672B0004A5BFC2A357D2]
    I'm following this tutorial:
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0cf9e42-ccb0-2c10-d0a4-f5aa8a79e19a?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0cf9e42-ccb0-2c10-d0a4-f5aa8a79e19a?quicklink=index&overridelayout=true]
    But I skipped the part in configuring my J2EE Visual Admin tool since I don't have access to our Visual Admin. Does it have to do with my access? BTW, I don't have access in our WS Navigator also.
    Thanks.

    I can't speak for MOSS for sure, but other Microsoft services such as MapPoint used to require Digest Authentication, which isn't quite as pervasive as Basic Authentication. You should doublecheck with the MOSS administrator about the proper credentials and access. You might even try a utility like SoapUI to see if things work from a test client before trying it on the application server.

  • Error while invoking web service through weblogic 10

    While invoking a particular web service from other system it gives following error in instance finder
    exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Read timed out
    After that when it is invoked and run without error, we are getting double identical entiries in our database one for failed one and other for successful.
    suppose if it is failed 3 times and after that it succeeds then we are getting 4 identical entries in DB (3 failed and 1 success).
    Entries updated in DB as per API so we cant change logic.
    Can anyone suggest how it can be avoided.?
    what is the root cause of this error and how it can be handled?
    Edited by: 911694 on Mar 13, 2012 12:11 PM
    Edited by: 911694 on Mar 13, 2012 2:19 PM

    Which version/platform are you using?
    The thing you need to consider here is that the JDev proxy settings do not affect the BPEL server.
    So if the BPEL server cannot connect to your webservice, it will not be because of any Jdev setting.
    Check the proxy settings on your BPEL server (on 10.1.2 developer install it will be in obsetenv.bat, on 10.1.3 it will be a commandline property of the JVM - see AS Control administration page for the JVM)

Maybe you are looking for

  • How to terminate remaining Actions in a script sequence if the user presses "Cancel" during SaveAs

    Hello, I'm using the following script to email a completed form to a pre-programmed email address and would like a way to cancel remaning in-line scripts if the user cancels teh first Step. Basically, after completing the form I cereated, the user wo

  • Setting alv layout  as defualt for all usres

    Hi, Is it possible to set the webdynpro alv layout set as default for all users. I need your input if this is possible in WD ABAP ALV setting. Thanks in advance ! Alok

  • Viewing pictures online?

    More specifically, is there a way to view pictures that are on your phone, or in your inbox, online?  Like is there an archive of sent/recieved messages that you can access on this site?

  • Fresh install of windows 7.  Flash continues to stall.

    After a good 30+ hours, I'd like to jump out of a window.  Please, just let me jump. Oh,  yeah...the problem. Had xp 32-bit, upgraded to windows 7 64-bit.  loaded all drivers recommended by MS.  Flash choppy/stalled every few seconds on both IE8 and

  • To Apply patches

    Hi,    My client is in delhi(already development server was installed).I want to apply patches from my office(i.e.in mumbai) through remote desktop.I dont have saprouter.Is it possible to apply patches like this,how we have to proceed. Thanku