on 04-06-2009 10:17 AM
Hi,
i have a simple SOAP2RFC (sync) interface. my question is:
how can i catch an exception (thrown by RFC) and use it as soapenvlp:Fault.faultcode content?
Regards
Uri
very easy:
1. define "Fault Message Type"
2. create relevant "Message Mapping" (i.e., FRC exception to Fault Message)
3. use defined Fault Message at Interface objects
4. use defined Message Mapping at (already exsits) Interface Mapping.
throwns exceptions are now going to be catched .
In case of sync WS2RFC exception will be "moved" into soapenvlp:Fault.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
have a simple SOAP2RFC (sync) interface. my question is:
how can i catch an exception (thrown by RFC) and use it as soapenvlp:Fault.faultcode content?
Yes I think you can catch an exception by using RFC EXception (Fault) Message instead of RFC Response in the mappings. and remaining all steps are same.
But that is mostly depends upon the RFC Function module that you are using and at which the logical coding of that Function module.
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/18dfe590-0201-0010-6b8b-d21dfa9929c9]
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40574601-ec97-2910-3cba-a0fdc10f4dce]
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8c10aa90-0201-0010-98a0-f071394bc9ae]
[http://help.sap.com/saphelp_nw70/helpdata/EN/44/2a41f420323f0ee10000000a114a6b/frameset.htm]
[http://help.sap.com/saphelp_nw70/helpdata/EN/76/4a42f4f16d11d1ad15080009b0fb56/frameset.htm]
Regards::
Amar Srinivas Eli
Edited by: Amar Srinivas Eli on Apr 8, 2009 8:44 PM
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 | |
9 | |
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.