cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication failed while invoking Web Service

ankit_mishra09
Participant
0 Kudos

Hi All,

I'm trying to use a web service via a UDF (SOAP Lookup). I've taken a FILE sender channel & in the mapping I'm using SOAP lookup & the response is to be taken in another FILE. Now when I try to do this I get the below message in the File.

<?xml version="1.0" encoding="UTF-8"?>

<yq1:com.sap.engine.interfaces.webservices.runtime.ProtocolExceptionExt xmlns:yq1="http://sap-j2ee-engine/client-runtime-error">Authentication failed. For details see log entry logID=C000C68D461A2DA30000000100190172 in security log.</yq1:com.sap.engine.interfaces.webservices.runtime.ProtocolExceptionExt>

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Ankit,

If understood right the issue, the exception is raised when you invoke the SOAP service. Have you tried to call with SOAPui?, the problem seems to be in the authentication, are you sure the user/password is right?

Regards,

ankit_mishra09
Participant
0 Kudos

Hi Inaki,

I tried to use SOAPUI but when i tested it I got the below error:

Error getting response; org.apache.http.conn.HttpHostConnectException: Connection to http://xxxxxx

refused.

I had referred many blogs for the same, but the issue didn't get resolved.

iaki_vila
Active Contributor
0 Kudos

Hi Ankit,

That error is different from PI and it seems to be that your laptop has not connectivity with the endpoint or you need to use the IP in the URL or to set the host on  the hosts file (windows).

The problem seems to be in your user/password, please talk with the endpoint administrators to assure what is user/password and if it is case-sensitive or the user is blocked.

Regards.

former_member183908
Active Contributor
0 Kudos

can you confirm the firewall opened between your PI and webservice. Please try to do telnet from your PI and see if you get the response like connection refused or connection timeout please report the issue to the network team so that they can enable the firewall.

telnet <hostname> <port>

Thanks

ankit_mishra09
Participant
0 Kudos

Hi Inaki/ Pavan,

The web service can be found in WSNavigator of PI system by the name "IChannelAdmin". I'm able to use the web service through the browser.

If there would have been a connectivity issue, then it shouldn't have worked on the browser as well I suppose. Now I have made few changes in the UDF but i get an exception:

Errorjava.io.IOException: Server returned HTTP response code: 500 for URL: http://<host>:<port>/ChannelAdminService/ChannelAdmin.

Need to confirm few more things:

1. End Point & Target URL are the same?

2. Where we could find & confirm the End Point or Target URL for a predefined WS which is to be given in a UDF or in Config?

We can check the End Point under Invocation Parameters, but that's not the exact URL. I'm confused here.

iaki_vila
Active Contributor
0 Kudos

Hi Ankit,


1. End Point & Target URL are the same?

AFAIK, it is the same


2. Where we could find & confirm the End Point or Target URL for a predefined WS which is to be given in a UDF or in Config?

Have you tried to search the endpoint from service registry?

Regards.

Answers (1)

Answers (1)

former_member183908
Active Contributor
0 Kudos

please follow as per above suggestion by consuming webservice using SOAP UI also please check whether your UDF has valid login details

Thanks