on 04-04-2016 11:40 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Patrick,
Have you checked in the monitoring that the payload really comes like attachment and not like SOAP body child?
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.