Soap Exception Q

V

Vai2000

Hi All, Need some insight on this
I have a Server A with a WebSvc running on it. This webSvc does nothing but
acts more like a wrapper to WebSvc running on Server B (due to security
concerns only Server A is Open to DMZ)
I throw SoapException on my WebSvc which on ServerB

On the webSvc running on ServerA I simply do this

[WebMethod]
string foo(string param1)
{
svc.CJoker ws=new svc.CJoker();
return ws.foo();
}

Problem is I don't get soapException in my client which calls this
webSvc.....on ServerB


I rewrote the code but still no luck

[WebMethod]
string foo(string param1)
{
string ret=null;
try{
svc.CJoker ws=new svc.CJoker();
ret=ws.foo();
}catch(SoapException sopE)
{
throw new SoapException("Failed",sopE.InnerException;)
}

return ret;
}


What's the best Way to handle SOAP Exceptions coming out of Server B to the
Client?

TIA
 

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

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top