cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP. Help required

Former Member
0 Kudos

Hi All,

I have closed my previous thread.

One Question --

External System send HTTP request to PI Integration Engine -- it worked fine.

But If External System wants to send HTTPS request (secure)--

What are the configurations that are to be done in PI to accept an HTTPS request from External System

or I do not require to do anything and it will work same like HTTP?

Regards

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

hi,

Can i know which type of scenario you are usin?

synchronous or asynchronous

Which adapter you using in sender side?

Regards,

Prakasu

former_member537867
Active Contributor
0 Kudos

Hi Rack,

You can use any client as Http request sender means the ip address of the system from which you are making request called client and to which you are making request called server. http is nothing but some set of rules to exchange data between two systems.

One more thing to mention is "some jave code is written for http and that is register on W3C" so that different server can connect to each other using it.

basically the HTTP client tool can be any program written in JAVA, C++ etc which can send a HTTP req msg to a server listening on HTTP port..........so for example, HTTP client tool can be your client's gateway program developed in JAVA having all the parameters to be used during the HTTP request msg like your XI server IP Address, HTTP port, your outbound msg interface etc

if u want to test the http scenario, then go to

RWB>component monitoring>integration server-->integartion engine BWS

then click test message tab and give the interface details with payload then send message.

by this way u can test u r http scenario

HTTPS Sender Configurations :

You need to have a service user that can post on the URL

You can use both HTTPS without client authentication as well as with authentication.

Posting to the URL don't need to install certificates.

URL will be similar to Plain HTTP

Queries entering the plain HTTP adapter must have the following syntax:

http://<hostname:port>/<path>?<query-string>;

The query string contains the following data:

● Sender namespace ?namespace=<namespace>

● Sender interface &interface=<interface>

● Sender service &service=<service>

● Sender party (optional) &party=<party>

● Sender agency (optional) &agency=<agency>

● Sender scheme (optional) &scheme=<scheme>

If you do not enter values for agency and scheme, the following default values are used:

○ agency=http://sap.com/xi/XI

○ scheme=XIParty

● Quality of Service (BE, EO, or EOIO) (optional) &qos=<EO|BE|EOIO>

Check this thread for the code for a HTTP Client,

/message/266750#266750 [original link is broken]

Also, check these blogs. They use HTTP adapters for their configuration,

/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures

/people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi

http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm

Regards,

Vinod.

Former Member
0 Kudos

Hi All,

Simply saying

suppose in my HTTP Client Tool page I changed my

reqString string = "http://"

to

reqString string = "https://"

and tried to send same data to XI , I was not able to

It gives me java script error.

Any suggestions.

Regards

aashish_sinha
Active Contributor
0 Kudos

Hi,

>>> and tried to send same data to XI , I was not able to .It gives me java script error.

Can you paste the error message ?

Regards

Aashish Sinha

Former Member
0 Kudos

Hi,

when I tried to send data from RWB using https i got error

" Error while sending message: Invalid SSL message, peer seems to be talking plain! "

Please advice.

Regards

aashish_sinha
Active Contributor
0 Kudos

Hi,

>>>" Error while sending message: Invalid SSL message, peer seems to be talking plain! "

This usually happens when the system only talks http on the address you are trying to connect via https.

So please check the configuration once again and try to define SSL and HTTPs as provided by my link.

Also check SAP Note 856597 Question 5.

Regards

Aashish Sinha

PS : reward points if helpful

Former Member
0 Kudos

hi,

In this scenario of sending messages from the Integration Server through the Adapter Engine to an external system, the J2EE Engine acts as the SSL client. Therefore the public certificate issuer (CA) cert of the SSL server needs to be imported to the TrustedCAs keystore view of the J2EE keystore service, using the Visual Administrator.

This is sufficient for the SSL handshake to succeed, in the case of basic authentication.

Whether basic authentication or client certification is to be used is configured in the receiver channel configuration (outbound) of the specific adapter in the Integration Directory (if supported).

For the Adapter Engine it is possible to select the client certificate authentication. When selected, the name (alias) of the private key and public certificate needs to be specified as well as the keystore view, in which the key and cert can be found (as imported to the J2EE keystore).

The private key and certificate of the user can either be present as one entry (with one name) in the specified keystore view (if both were imported in one step from one .p12file), or as two entries (if the key was imported separately from the client certificate as .p8and .crt(or .cert- Base64 encoded) files).

In the second case, the certificate has to be present as the exact name/alias of the private key with an additional _cert suffix.

Regards

Former Member
0 Kudos
aashish_sinha
Active Contributor
0 Kudos

Hi,

I hope this is what you are looking for.

http://help.sap.com/saphelp_nw04s/helpdata/en/e8/1f1041a0f6f16fe10000000a1550b0/frameset.htm

To be able to send and receive messages using HTTPS/SSL:

· The J2EE Engine must first be configured to support HTTPS/SSL.

This process includes downloading and deploying the SAP Crypto Toolkit (IAIK) SDA from SAP Service Marketplace, as well as creating a private key and public certificate for the server. This whole procedure is described in detail under Transport Layer Security on the SAP J2EE Engine.

· The AS-ABAP Engine must first be configured to support HTTPS/SSL.

It seems that you previous thread is not closed or answered.

Regards

Aashish Sinha

PS : reward points if helpful