Hello . 

i am using the proxy classes  from the WSDL  to invoke a remote webservice.
one of the error response from remote server is shown below.
when the remote server has a fault response , my client application has 
this XFireRuntimeException.
Soap Response from the server

<?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:Body><?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:Body>
    <soap:Fault>
      <faultcode>200</faultcode>
      <faultstring>Component Interface API.</faultstring>
      <runcode>0</runcode>
      <detail>
        <keyinformation>
          <ID>NEXT</ID>
        </keyinformation>
        <messages>
          <type>Error</type>
          <messagesetnumber>91</messagesetnumber>
          <messagenumber>68</messagenumber>
          <messagetext>The value TXEEEEE is too long for the field STATE
(91,68)</messagetext>
          <explaintext>The length of the value that the field is being set
to is too long for the field definition.  Check the length of the field and
make any necessary modifications.</explaintext>
        </messages>
        <messages>
          <type>Error</type>
          <messagesetnumber>91</messagesetnumber>
          <messagenumber>37</messagenumber>
          <messagetext>Error </messagetext>
        </messages>
      </detail>
    </soap:Fault>
  </soap:Body>

the error message is :
org.codehaus.xfire.fault.XFireFault: Component Interface API.
at
org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31)
at
org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28)
        at
org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111)
        at
org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at org.codehaus.xfire.client.Client.onReceive(Client.java:382)
        at
org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
        at 
org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
        at
org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
        at
org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
        at org.codehaus.xfire.client.Client.invoke(Client.java:335)
        at 
org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
        at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)



Could someone help me to retreive the <detail> element present in the soap
fault  response. 

Thank you 
Chandru

-- 
View this message in context: 
http://www.nabble.com/processing-SoapFault--response-tf3274533.html#a9106143
Sent from the XFire - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to