cancel
Showing results for 
Search instead for 
Did you mean: 

Dump after ABAP Proxy

Former Member
0 Kudos

Hi,

I have an XI scenario Webservice - XI - ABAP Proxy. When I send a message from a SOAP Client (soapUI), message was successful all the way till ABAP Proxy and it also processed required custom logic in the proxy, then it's trying to send response back and dumping as there is no payload to send. In debugging I have seen mode as 'Synchronous' where as I have defined SOPA communication channel as 'Exactly once' which is Asynchronous.

Any inputs will be appreciated?

Regards,

Ram.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try and check your service definitons in the IR.

Looks like you have set the Interfaces as Synchornous in design and set the QoS as Async in ID.

In case not, please provide a little more detail about your scenario

Reward points if useful

Regards

Abhishek

Edited by: Abhishek Vinayaka on Feb 25, 2008 7:15 AM

Former Member
0 Kudos

Thanks Abhishek.

I have defined below 2 message interfaces in IR.

Webservice - XI -> Outbound & Async

XI - ABAP Proxy -> Inbound & Async

Regards,

Ram.

Former Member
0 Kudos

Rams,

wrong.. You need to create one sync outbound interface, one sync inbound. then generate proxy from the inbound interface and use it. Async interface has no return structure, co there is no way how you could send required data back to WS. But when you create sync interface, it will solve your problem.

Peter

Former Member
0 Kudos

Hi,

Async message processing with SOAP adapter is a little more complex.

You have to use the query String, also you need to pass the message GUID to the query string

http://<host>:<port>/XISOAPAdapter/MessageServlet?channel=:party:service:channel

have a look at

link : [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79]

also have a look at the SAP help

link : [http://help.sap.com/saphelp_nw04s/helpdata/en/fc/5ad93f130f9215e10000000a155106/frameset.htm ]

Without this it would not work

Just setting the QoS is not enough

Reward points if useful

Regard

Abhishek

Edited by: Abhishek Vinayaka on Feb 25, 2008 7:45 AM

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi

also in in the server you defined the proxy, go to SXI_MONITOR and check if response message is been generated. if the response is there modify the parameters that Abhishek said and in ID check the QoS is BE for your SOAP adapter.

let me know

Thanks

Rodrigo

Edited by: Rodrigo Pertierra on Feb 25, 2008 9:50 AM

Former Member
0 Kudos

Thanks for all your replies.

I have defined SOAP communication channel as 'Sender' and PROXY (HTTP destination) as receiver, is that correct?

Do I need to select 'Keep headers' & 'Use Query string' in the SOAP communication channel in ID?

And also I need to change QOS to Best Effort?

Do I need to use Sync communication for SOAP always?

Could you confirm?

Regards,

Ram.

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

1)I have defined SOAP communication channel as 'Sender' and PROXY (HTTP destination) as receiver, is that correct?

Thats correct. make sure, you defined them as sync.

if you have defined you proxy as async, you must modify it to sync, delete your previous proxy and created it again.

2)And also I need to change QOS to Best Effort?

yes, you must.you wont receive any response if QoS is EO.

3)Do I need to use Sync communication for SOAP always?

no, no ever a WS need a response.maybe only send data and nothing else.

generally a WS waits a response to confirm data was received ok.

Thanks

Rodrigo

Former Member
0 Kudos

ideally yes..SOAP is under majority Scenarios Synchronous.

But it can be made Asynchronous also.

Please read through the Links i have put in my previous message.

They would help you to determine which conversion paramters you should use

use query string etc.

Also note that in cas of async scenario, the QoS is always EO or EOIO ( mention the queue name in case in the query string )

Regards

Abhishek

Former Member
0 Kudos

Thanks a lot for your replies. I have changed my interface to Synchronous now and now there is no dump after proxy. But i am not sure what are all the settings required for response message, as I need to give output message. I did following but sitll getting errors.

Created message types response & response1 in both the name spaces. And mapped them as Source and target messages in Response Tab? Is this correct and sufficient?

Do I need to something else?

Regards,

Ram

Former Member
0 Kudos

Hi,

I think you almost have done with all required steps

Just refer below link for the steps

Proxy Generation- For ABAP and Java proxy, create a Message Interface and then generate a proxy for that message interface.

http://help.sap.com/saphelp_nw2004s/helpdata/en/86/58cd3b11571962e10000000a11402f/content.htm

XI: RFC or ABAP Proxy ? ....ABAP Proxies with attachments

/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments

ABAP Proxy outbound program - purchase order send

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bp...

ABAP Proxy inbound program - sales order creation - Community Profiles - Wiki

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsa...

Thanks

Swarup

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi,

delete your interface mapping and create it again,

select again your message interface a request and response options appears, there, define the request and response mapping.

i sugguest delete all previous configuration and do it again.

Rgds

Former Member
0 Kudos

Thanks Rodrigo. I did that and if test response I have got below message.

Cannot produce target element /ns1:Target_interface_name. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd

Any suggestions?

Ram

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi,

ger the source message form sxi_monitoring.

go to IR-->message mapping and check if the structure you receive is same you define. no red field must exist.

Former Member
0 Kudos

I don't have response (message type) in message mapping is that correct?

I have defined two messages in the source and target names spaces added them as output messages.

Then interface mapping automatically picked up these two under response tab. I have given program name and name space and avtivated.

I am getting below error in the SXMB_MONI

RuntimeException in Message-Mapping transformatio~

Thanks a lot for your replies.

Ram

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

this error refer to and logical mapping transformation or a mandatory field is empty.

get the source message from sxi_monitoring.

go to IR-->message mapping and check if the structure you receive is same you define. no red field must exist.

check if namespaces comes or not in structure in sxi_monitor and compare it MT

Edited by: Rodrigo Pertierra on Feb 26, 2008 9:09 AM

Former Member
0 Kudos

Hi Rodrigo,

In the response message back from ABAP Proxy I have Target system's name space..but I have message mapping in the Source system's name space? Is there any place i need to map these response messages (like we do under message mapping) instead of interface mapping?

Thanks

Ram

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi

you must define two mappings one request, one response

in interface mapping in response tab you must define response mapping.

MM_rfc_proxy_request

MM_rfc_proxy_request_response

i dont understand your question at all.thats your doubt??

Former Member
0 Kudos

Thanks a lot for your help Rodrigo.

Finally it is working. There was an error in the mapping I have corrected it.

Thank you all,

Ram.

Answers (3)

Answers (3)

Former Member
0 Kudos

CHeck the Meaage Interface in the Design..

Former Member
0 Kudos

Hi,

Confirm that for ABAP proxy either you have used EXECUTE_ASYNCHRONOUS or not.

EXECUTE_ASYNCHRONOUS --is for Async communication and

EXECUTE_SYNCHRONOUS -- is for sync communication

Refer

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

Thanks

swarup

Former Member
0 Kudos

try SOAP adapter with QOS as BE( Best Effort)

--Shankar