cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Pi/Po SOAP Axis Rest call

Former Member
0 Kudos

All.

We are facing an issue using the SAP Po 7.4 SP 7 making use of SOAP/REST receiver adapter settings

We are working on a scenario which sends data from BPM towards an external party. Due to not been upgraded to the latest service pack we wanted to use the SOAP/Axis Restlike service as described in the blog below.

Scenario is Netweaver BPM -> XML -> SOAP/REST POST --> Response message is plain JSON

The Request seem to work, and the 3rd party also sends a reponse as the image above describes. But unfortunately we receive an error as displayed.

Can someone please advice what to do. Our Communication Channel is generated as described in several Blogs

Please advice,

Greetings

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello,

In general the NullPointerException error you receive is because the Axis adapter is trying to process SOAP envelope despite the fact that this is RESTful json message.

This is fixed with SAP Note 2233795 "ApacheHTTPClientHandler is producing wrong content type when calling RESTful service". Is mentions ApacheHTTPClientSender handler but it is relevant also in your case as it corrects upper behavior.

Also I have noticed that you have some wrong configurations if you want to put the partner response as Attachment to the generated XI response message -  there is no need to use key.xx/value.xx pairs in the 'trp' handler configuration but directly specify:

- Parameter Name: enableRESTAsAttachment

- Parameter Value: true

Additionally it is good for 'mc' handler you can specify following:

- Parameter Name: type.1

- Parameter Value: java.lang.Boolean

Best regards,

Dimitar Hristozov

engswee
Active Contributor
0 Kudos

Hi Patrick

Did you consider using just SOAP adapter with "Do not use SOAP envelope" checked? It will behave like an HTTP POST scenario.

And if you need to change the content type of the request to a static value, this can be achieved by adding MessageTransformBean in the receiver channel.

Regards

Eng Swee

iaki_vila
Active Contributor
0 Kudos

Hi Patrick,

Have you checked in the monitoring that the payload really comes like attachment and not like SOAP body child?

Regards.

Former Member
0 Kudos

Hi,

we tried all available settings in the adapter none worked

Greetings