Take a look at this article:

http://www.developer.com/java/web/article.php/3493491

One thing you may consider - which has worked well for me - is simply have all your types define a string and error code to return. In wsdl that would look like:

 <complexType name="ReturnWebBase">
        <sequence>
          <element name="errorMessage" type="xsd:string"/>
          <element name="successErrorCode" type="xsd:int"/>
        </sequence>
      </complexType>
      <element name="wiseLogin">
        <complexType>
          <sequence>
            <element name="user_name" type="xsd:string"/>
            <element name="user_password" type="xsd:string"/>
          </sequence>
        </complexType>
      </element>
      <element name="wiseLoginResponse">
        <complexType>
          <complexContent>
            <extension base="tns:ReturnWebBase">
              <sequence>
                <element name="soap_session_id" type="xsd:string"/>
                <element name="web_user_name" type="xsd:string"/>
              </sequence>
            </extension>
          </complexContent>
        </complexType>
      </element>
<element name="ReturnWebBaseResponse" type="ns2:ReturnWebBase"/>

HTH,
Robert
http://www.braziloutsource.com/
On 2/23/06, Sagi Anna < [EMAIL PROTECTED]> wrote:

Hi all,

My WS client accesses Web Service, that throws number of different exceptions.

No  matter what WS throws, my client catches RemoteException (in sniffer I can see, that correct exception is thrown).

Any idea why it happens or how I can isolate the right exception ?

Thanks,

Anna


Reply via email to