Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

SAP PI 7.3 Receiver SOAP Axis adapter header Cookie

$
0
0

Hello

We are currently working a synchronous scenario like SAPERP --> PI --> WebService.

The WebService requires cookie authentication.

I have successfully tested SOAPUI <-->WebService Scenario.

The Issue is when I try to put the Cookie in the SOAP header using Axis Frame work.

 

1. I have followed the blog How to Set http-Header Parameters Using the Axis Framework (NW7.0)

     Guess the only one available on net.

2. I have checked my http://<host>:<port>//XIAxisAdapter/MessageServle

     2.1 and the status of the mandatory components are in green.

3. We are on SAP PI 7.3

 

When I try to execute the scenario and capture the SOAP request in TCPGateway the following is the result.

 

POST /ABC/ABCService_v1 HTTP/1.0

Content-Type: text/xml; charset=utf-8

Accept: application/soap+xml, application/dime, multipart/related, text/*

User-Agent: Axis/1.4

Host: MYIPaddress:54000

Cache-Control: no-cache

Pragma: no-cache

SOAPAction: "urn:ABC/DEF/interface/v1.0/TEST/GetCalculation"

Content-Length: 2228

 

The below is the SOAP header from the soapUI application and I am expecting to achieve something similar/workable one with SAP PI.

 

POST /ABC/ABCService_v1 HTTP/1.0

Accept-Encoding: gzip,deflate

Content-Type: text/xml;charset=UTF-8

SOAPAction: "urn:ABC/DEF/interface/v1.0/TEST/GetCalculation"

Cookie: WSL-credential=MyOwnCookie

Content-Length: 2512

Host: www.DEVTESTHOST.com

Connection: Keep-Alive

User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

 

Can anyone pls let me know why I am not able to put the cookie in the SOAP header.

Anyone who have already tried and was successful in this scenario pls do let me know what I am missing.

 

Thanks in advance.

 

Regards

Prasanna


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>