Skip to Content

Authorization problem accessing a web service....

Hi,

I created a Portal Service from a Web Service - client side.

I get an exception while running a Portal Component client (DynPage).

How I access the service :

IMyNOFXService myService = (IMyNOFXService) PortalRuntime.getRuntimeResources().getService(IMyNOFXService.KEY);

String result = myService.HelloWorld();

Here is the exception :

com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: [Unauthorized]..

If anyone can help....

Thanks a lot.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2005 at 08:30 AM

    Hello,

    The problem comes from the server side, the webservice server need an authentication to call this webservice.

    Could you check what it the security mechanism used by the webservice server.

    Best Regards,

    Fabrice

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Fabrice,

      I do not have access to the webservice server because I am not from th IT team.

      Can you please give the steps to configure the webservice server....I will forward it to the IT.

      Do I have also to set up "System_Alias" for the web service ?

      Here is how I call the service :

      IPortalComponentRequest request =

      (IPortalComponentRequest) this.getRequest();

      IMyHelloSpainService myService =

      (IMyHelloSpainService) request.getService(IMyHelloSpainService.KEY);

      myService.sayHelloSpain();

      We are using WAS 6.30 (Netweaver 04 stack 09).

      NB :

      Thanks a lot for your help.

      Message was edited by: David Fryda

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2005 at 10:47 AM

    Hi

    What is the implementation of your server , The webservice server component are generated with portal plugin ? or it is other product ?

    Ps: It is better to use PortalRuntime.getRessources().getService() instead request.getService()

    Best Regards,

    Fabrice

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.