Help with SOAP exception

  • Thread starter Thread starter nomad
  • Start date Start date
N

nomad

Hi,

I currently get a SOAP exception when connecting to a web service.
This is fine but I am unable to find a way of pulling up the XML which
has been returned. Does anyone know how I can do this?

Appreciate any help.
 
nomad said:
Hi,

I currently get a SOAP exception when connecting to a web service.
This is fine but I am unable to find a way of pulling up the XML which
has been returned. Does anyone know how I can do this?

Appreciate any help.

Do you really need the XML returned?

If you are looking for the cause of the exception, catch the soap
exception and look at the inner exception.
 
Do you really need the XML returned?

If you are looking for the cause of the exception, catch the soap
exception and look at the inner exception.

Hi,

Unfortunately the inner exception is null. I need the xml that is
returned so I can log the value of the faultstring node so I know why
it produced an error.
 
nomad said:
Hi,

Unfortunately the inner exception is null. I need the xml that is
returned so I can log the value of the faultstring node so I know why
it produced an error.

Can't you use the Code property of the SoapException?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top