cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Plain Receiver Adapter - converting text response to xml

Former Member
0 Kudos

Hi all,

I'm using HTTP Plain receiver communication chanel for sync PROXY-TO-HTTP scenario.

Passing data to http is OK, but the response looks like text with application/octet-stream content type in Payload.

I try ti use Java Mapping in order to convert it to xml (just appent xml tags to my string and pass all this to output) but it doesn't work - the payload is still octet-stream and I can't catch the response data in my ABAP Proxy implementation.

Ola

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Can you try using the SOAP Receiver Adapter with the option Do Not Use SOAP Envelope and see what happens?

Hope this helps,

Mark

Former Member
0 Kudos

Thanks!

I try to use SOAP receiver adapter and my response was successfuly converted to XML with MessageTransformation Bean and Java Mapping program.

But now I have 2 new problems:

1. The target service can be called only with HTTPS and now I have "Peer certificate rejected by ChainVerifier' error

HOW to configer the SSL?

2. The target service is not a WebService but some python script that must to receive some paramters via POST request.

HOW can I post this parameters?

Ola

Former Member
0 Kudos

Sloved!

1. Adding Certificate in Visual Admin

2. Passing parameters as attributes to the message type.

Ola

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Ola,

Could you elaborate how you achieved in catching the response data from the receiver in case of HTTP receiver adapter?

The target service is not a WebService but some python script that must to receive some paramters via POST request.

     HOW can I post this parameters?

Here you entered the fields of the message type of the request in the header parameters of the receiver adapter? Thats fine.

But what about the message type and vice versa of the response from the receiver?

Regards

Rebecca

former_member194786
Active Contributor
0 Kudos

hi Ola,

If you can SOAP adapter instead of HTTP adapter, you might be able to handle the payload format in module. Check if the following document is of any help:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79f...

Regards,

Sanjeev.