on 03-16-2012 8:07 AM
Hi
We have a File to HTTP scenario in which we need a sync HTTP interface. We send a file to the HTTP address and receive a XML acknowledge. As I read in this forum: sync HTTP interfaces are not possible with the “standard” HTTP adapter. So I found an entry which recommended to use the SOAP adapter instead.
I configured it:
- Do Not Use SOAP envelope
- modules: RequestResponseBeans, CallSapAdapter, ResponseOneWayBean
If i use this scenario, i get following error in the RWB – Message Display Tool:
Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.SAP.engine.interfaces.messaging.api.exception.MessagingException: Java.lang.NullPointerException: while trying to invoke the method com.SAP.engine.interfaces.messaging.api.Message.getMessageId() of an object loaded from local variable ‘message1′.
I testet this scenario using CURL and it worked properly. Should this kind of scenario work with the SOAP adapter or do I need to buy/develop an own adapter? Is in NW7.3 possible to configure sync HTTP scenarios?
Both HTTP and SOAP adapters support sync communication. There are plenty of SDN links available for HTTP sync scenarios.
if you are expecting HTTP response to write it in a target file as XML response then you are doing async sync pattern without BPM. In this case you need to use requestResponse and one way response bean in the sender file adapter not in HTTP adapter
Refer this link
http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File(Without%20BPM)
Instead RFC use your http and for file the same.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As I read in this forum: sync HTTP interfaces are not possible with the “standard” HTTP adapter.
>>>
A bit surprised as this is not true. The HTTP adapter supports BE QoS and thus can be used for sync scenarios.
So I found an entry which recommended to use the SOAP adapter instead.
>>>
Yes. You can at times use SOAP adapter to replicate the functionality of the HTTP adapter. You will need to disable the SOAP envelop as one of those steps.
Also as Mike mentioned, remove the beans as they are used in a Async -> Sync -> Async or Sync -> Async -> Sync scenarios.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>>- modules: RequestResponseBeans, CallSapAdapter, ResponseOneWayBean
there is no need to use request response beans - SOAP adapters works in sync mode in standard
so please remove those and try posting a normal sync message
>>>>As I read in this forum: sync HTTP interfaces are not possible with the “standard” HTTP adapter.
sync interfaces are possible with HTTP adapter
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.