cancel
Showing results for 
Search instead for 
Did you mean: 

Remove HTTP Headers

Former Member
0 Kudos

Hi,

Is there any way to remove standard HTTP headers in HTTP Adapter (Receiver)?

When XML message arrive in 3th party software, the message start with:


POST / HTTP/1.0
content-type: application/x-sap.idoc
content-length: 318012
connection: close
accept: */*
user-agent: SAP Web Application Server (1.0;700)
host: 10.0.8.236:5556
accept-encoding: gzip
<?xml version="1.0" encoding="UTF-8"?>
(XML bodyu2026)

And in my scenario I want that the message arrive starting from

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

tag.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Do I understand right, that you want a plain socket (tcp/ip) connection instead of an HTTP connection?

This is not possible with PI standard. You can use Java proxy for this task, but you have to implement the socket connection by your own.

Regards

Stefan

Former Member
0 Kudos

Yes, I want to pass a plain XML as a clear socket connection. My 3th party software doesn't expect HTTP headers and for this reason my interface isn't working.

Talking with software vendor, they told me that there are other custumers using PI with the same java tcp/socket listener. 😮

Any idea? Thanks!!!

stefan_grube
Active Contributor
0 Kudos

It is not a big deal to develop a socket conection.

There is a blog about socket integration from mapping:

Here something about Java Proxy:

I do not know all 3rd party adapters, but as far as I know there is no plain tcp/ip adapter for PI.

Regards

Stefan

Answers (2)

Answers (2)

hemant_chahal
Contributor
0 Kudos

HI

Please refer this,

Note 613179 - Plain HTTP Adapter: Suppressing URL parameters

Former Member
0 Kudos

HTTP receiver adapter mentions these header fields as Optional for the receiver-specific protocol. I don't have access now to check...But can you check ur receiver adapter if you have mentioned header fieldnames.

Former Member
0 Kudos

or you can use xslt mapping