cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Connection to External Serv in PI test connection error

Former Member
0 Kudos

Hi,

Third party has provided the URL, to get their Web Services.

I tested this URL using soapsonar tool, by doing the below technical settings:

1.No proxy

2.Basic authentication given

When i execute this, able to retrieve the data from the Non-SAP.

The same thing i'm trying from PI 7.3:

I have created RFC destination connection type G (HTTP Connection to External Serv) in PI 7.3 to connect testing to a Non-SAP(Web Service) system.

I have filled the Host name & path prefix entries from the URL.

1.No proxy

2.Provided basic authentication

& when i do the connection test, getting the below err result:

Test Result Tab:

Detail Value

Status HTTP Response 401

Status Text Unauthorized

Response Body Tab:

Server Error

401 - Unauthorized: Access is denied due to invalid credentials.

You do not have permission to view this directory or page using the credentials that you supplied.

Response Header Fields Tab:

Name Value

~response_line HTTP/1.1 401 Unauthorized

~server_protocol HTTP/1.1

~status_code 401

~status_reason Unauthorized

content-type text/html

server Microsoft-IIS/7.5

www-authenticate Negotiate

www-authenticate NTLM

x-powered-by ASP.NET

date Sat, 20 Aug 2011 08:23:55 GMT

connection close

content-length 1293

~remote_addr

~uri_scheme_expanded NONE

It is working from soapsonar but not from PI. Please help in resolving this issue.

Regards,

Balper

Accepted Solutions (0)

Answers (2)

Answers (2)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

401 is a credential issue. Re-check the username/password that you are supplying. If that does not work, try using the URL Path in the Plain HTTP Adapter (not the HTTP Destination).

Hope this helps,

Mark

Former Member
0 Kudos

Response Text Tab:

HTTP 1.1 401 Unauthorized

Content-Type: text/html

server: Microsoft-IIS/7.5

www-authenticate: Negotiate

www-authenticate: NTLM

x-powered-by: ASP.NET

date: Sat, 20 Aug 2011 08:23:55 GMT

connection: close

Content-Length: 1293

Former Member
0 Kudos

http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>

401 - Unauthorized: Access is denied due to invalid credentials.

</head>

<body>

h1>Server Error</h1>

<div id="content">

<div class="content-container"><fieldset>

401 - Unauthorized: Access is denied due to invalid credentials.</h2>

You do not have permission to view this directory or page using the credentials that you supplied.</h3>

</fieldset></div>

</div>

</body>

Edited by: SAPbalper on Aug 21, 2011 6:24 AM

Former Member
0 Kudos

hi all..

can you share your experiences on this...

replies highly appreciated...

thnkx in adv..

rgds,

balper

naveen_chichili
Active Contributor
0 Kudos

Hi,

As said above by mark 401 error is user credential issue....Please check and correct your user/Password ....

Regards,

Naveen

aashish_sinha
Active Contributor
0 Kudos

Hi,

You can create a Http Destination of type G and use that HTTP destination in Plain HTTP adapter.

Just a check - You must have configured it as below

In technical Settings

Target Host - It should be the url - like XYZ.com

Path prefix : It should be something like - /invoke/xyzgateway.reciveXYZ

Service Num should be 443

In logon Security

In logon Procedures use No Logon radio. and SSL client certificate as ANONYM SSL CLIENT (Anonymous).

Once its success use this destination in HTTP Plain adapter.

Regards

Aashish Sinha

Former Member
0 Kudos

Thanks for the replies..

Hi Mark/chichilin,

I'm using Admin user & pw of Non-SAP server.

I tried with Plain HTTP Adapter, tried with Service Number as 443 and 80.Getting below error:

PLAINHTTP_ADAPTER.ATTRIBUTE_CLIENT HTTP client code 400 reason ICM_HTTP_CONNECTION_FAILED

Hi Aashish,

Tried with HTTP Connection type G, for port 443, SSL Active-anonymous, getting below error:

HTTPIO_PLG_CANCELED

for port 443, For SSL inactive-Default SSL Client, getting below error:

ICM_HTTP_CONNECTION_FAILED

for port 80, For SSL inactive-Default SSL Client, getting below error:

getting 401 authorization error

for SOAP adapter in RWB, the Audit Log shows:

Information MP: processing local module localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean

Information SOAP: request message entering the adapter with user J2EE_GUEST

Error SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized

Error SOAP: error occured: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized

eagerly awaiting for your replies...

rgds,

balper

Former Member
0 Kudos

any one has faced this type of errors & able to identify and solved... please share your experiences...

Former Member
0 Kudos

Hi,

As all others mentioned, HTTP 401 erro code is returned when you have put wrong user name or wrong password.

I sugges, you use SOAP adapter instead of HTTP adapter in PI 7.30.

Make sure that, you have the url works fine throw web browser also. Some suggestion from me is that,

1. Use some other user id to cross check it's still giving same error or there is some problem with that particular user.

2. or Change the password to simple character like abc123, abcd etc to cross there no charcter sensetivity pronlem or encryption problem.

Thanks,

RK

Former Member
0 Kudos

Thanks for all your replies.

Issue resolved by enabling Basic Authentication in IIS Manager.

rgds,

balper