08-22-05 10:56 PM
Hi,
>From a webservice im getting back an xml that looks something like
<RetVal>
<ErrorCode></ErrorCode>
<ErrorDescription></ErrorDescription>
<ProcessingID>123</ProcessingID>
</RetVal>
If everything is ok i get the ProcessingID, and the Code and
description nodes are empty but present. If there is some text in the
description an error has occured that i need to log in the application
log. After that is done i return the xml string to the BizTalk
orchestration where it is loaded into a xmldocument variable, and later
on assigned to a message. What i need is and decision wethere there is
something in the error node or not. Shouldn't be too hard! I've tried
with the message:
strErrorMessage =
System.Convert.ToString(partner_inline_xml_response.ErrorDescription);
However, strErrormessage is always null no matter what ErrorDescription
really is.
I have also tried to get a value from the xmldocument variable, like
this:
strErrorMessage =
strPartnerResponse.SelectSingleNode("//ErrorDescription").InnerText;
That doesn't work either...
Can someone give me a hint on what im doing wrong?
[ Post a follow-up to this message ]
|