on 01-21-2011 1:15 PM
Hi all,
I have the following scenario:
Scenario SOAP(.NET) <-> PI <-> PROXY
When I raise an exception at the proxy side, PI will be informed with an exception text that an exception has occured.
In the .NET receiver I only get an application exception (but not the real exception) - no exception text
How can I get the exception text at .NET side?
There is a datatype of type "XXXXException".
But I can't use this class in the catch block because it is not inherited from class exception.
regards
>>>How can I get the exception text at .NET side?
Answer: Happy flow request and response are fine and no problem. when it comes to exception message, we need meaningful lnformation. It's even hard to diagnose. So use Fault message in the target side and map that to the webservice exception message on the sender side. In the proxy coding side , when you raise exception, populate the error message detals to the fault message class.
create request, response and fault message . You have to specify that in the sender and receive interface.
That is the sugguestion
/people/shabarish.vijayakumar/blog/2006/11/02/fault-message-types--a-demo-part-1
/people/jin.shin/blog/2007/05/21/handling-web-service-soap-fault-responses-in-sap-netweaver-xi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
thanks for your answer.
But how to handle the exception in my C# client:
I have created the .NET classes out of the WSDL
There is a class ZQM_SVC_QMEL_GETException generated, but I don't know how to use it.
try
{
res.ES_SVC_QMEL = client.MI_OSRBG_QM_MASTERDATA_AUDIT_QMEL_GET_SYNC_OUT("123");
}
catch (ZQM_SVC_QMEL_GETException ex1)
{
This coding is not working because the class ZQM_SVC_QMEL_GETException is not inherited from the class exception.
This class has an attribute Nodes and several methods getSchema, ReadXML, WriteXML.
But I don't know how to use it.
Any idea?
regards
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.