cancel
Showing results for 
Search instead for 
Did you mean: 

Exception while invoking webservice

arunneerolil
Contributor
0 Kudos

Hi All,

From the Integration Directory we took the WSDL file

for a service.

We used the same in NWDS for invoking the WebService

We are getting the following error while invoking a web service,

java.rmi.RemoteException: Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.

Can anyone help.

Thanks in Advance

Chemmanz

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

Hi,

It may be because of this reason-

SP level of NWDS and XI- it is prefer to have both are on same level

Hope this helps,

Thanks,

Moorthy

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

>>Invalid Response Code: (401) Unauthorized.

Make sure u are setting basic credentails before making the SOAP call.

How are you making the webservice call?? do you have a deployable stand alone java proxy or generated a model from the wsdl??.

cheers,

naveen

Message was edited by: Naveen Pandrangi

arunneerolil
Contributor
0 Kudos

Hi Moorthy,

I took the option Tools->Define Webservice to create wsdl

there the URL I should give as

http://<host>:<j2ee-port>/XISOAPAdapter/MessageServlet? channel=:<service>:<channel>

I have some doubts abt

<j2ee-port> - is it 50000 or 8000

Channel ???

Service ???

I am using a SoapSender adapter ?

How can I authenticate user??

Regards

Chemmanz

MichalKrawczyk
Active Contributor
0 Kudos

50000

Regards,

michal

moorthy
Active Contributor
0 Kudos

Hi,

<j2ee-port> - is it 50000 or 8000

>>>> Usually 50000

Channel ???

>>>>SOAP Sender Adapter

Service ???

>>> You can create your own Business Service/Systems.

Some links-

/people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services

/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi

Hope this helps,

Regards,

Moorthy

Former Member
0 Kudos

Hi Chemmanz,

You need to use the http port of the J2EE engine i.e. 5XX00, where XX is ur system number.

You need to specify the name of SOAP sender adapter as the channel. And, the Business Service/Business System for which this adapter has been create shud be used as service.

praveen