I am making a webservice call into to a PeopleSoft service and everything
works except raising exceptions.
As an example if I fail authentication I get the following response:
<?xml version="1.0"?>
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<soap:Fault>
<faultcode>FailedAuthentication</faultcode>
<faultstring>Username or Password not valid for Component
Interface.</faultstring>
</soap:Fault>
</soap:Header>
<soap:Body/>
</soap:Envelope>
But this response is not raising an exception in my code.
It was my understanding that faults raise an exception in the client but I
am unable to get that to happen in the proxy C# (SoapHttpClientProtocol).
thanks.
Marvin Smit - 09 Nov 2005 11:21 GMT
Hi,
that's probably because the soap fault is transmitted in a header and
it should be in the body.
Hope this helps,
Marvin Smit.
>I am making a webservice call into to a PeopleSoft service and everything
>works except raising exceptions.
[quoted text clipped - 20 lines]
>
>thanks.