Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SOAP Exception: Getting at the message

Status
Not open for further replies.

WP

Programmer
Nov 30, 1999
463
CH
Hi,

I have a SOAP call that fails and would like to get to the message being returned.

This message resides in the exception object (ex) :

ex
system.xmlElenment
Detail
InnerText

Does anyone know how to get at this from the vb.net code.

The properties and methods on ex don't seem to show a path to it.

Thanks,

W

WP

 
can't you use ex.Message?



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day! Ye has a choice: talk like a pira
 
No.

It's a nested exception being passed back as described above:

ex
system.xmlElenment
Detail
InnerText

ex.Message is ""

WP

 
Is this set to On in the web.config?

<customErrors mode="On" />

Remember that a WebService is essentially a WebApplication and it will by default try to hide the errors if you are not accessing it via localhost.

Senior Software Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top