You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mathias Hempel <ma...@gmail.com> on 2006/07/24 14:34:47 UTC

AxisFault info

i have a problem

i use the serviceclient for axis and i have a problem

i become the detailcode but no faultstring and no faultcode from AxisFault
where can i get the faultstring an the faultcode from this soap1.1 message

response soap message:

 <?xml version="1.0" encoding="UTF-8" ?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
 <soapenv:Fault>
   <soapenv:faultCode>test.test</soapenv:faultCode>
   <soapenv:faultString>Unable to test</soapenv:faultString>
   <soapenv:detail>
     <detailCode>test111</detailCode>
     <userName>test222</userName>
   </soapenv:detail>
 </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

-- 
Mit freundlichen Gruessen

Mathias Hempel
eMail: mathias.hempel@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: AxisFault info

Posted by Anne Thomas Manes <at...@gmail.com>.
You must use the messaging API.

On 7/25/06, Mathias Hempel <ma...@gmail.com> wrote:
> ok i will take the second part, but how?
> where can i get the raw XML form?
>
> thanks for your help
>
> On 7/24/06, Anne Thomas Manes <at...@gmail.com> wrote:
> > Ah...
> >
> > Tell the folks that provide the service that they are returning an
> > invalid SOAP Fault. Given that this is a test message, obviously it
> > isn't a production service. They should fix it.
> >
> > If they won't, then you will need to capture the message in it's raw
> > XML form and process it yourself. Axis Fault cannot automatically
> > interpret this fault.
> >
> > Anne
> >
> > On 7/24/06, Mathias Hempel <ma...@gmail.com> wrote:
> > > but this is the respose from the service and i have no influence of this
> > > there are any ather resonen to become the faultstring from AxisFault
> > >
> > > On 7/24/06, Anne Thomas Manes <at...@gmail.com> wrote:
> > > > Your fault example is invalid. The child elements of the
> > > > <soapenv:Fault> element must be unqualified, and the element names do
> > > > not use camelCaps. Meanwhile, the children of the <detail> element
> > > > should be qualified. Also, the faultcode value must be a QName. It's
> > > > strongly recommended (by WS-I Basic Profile) that you use only the
> > > > fault codes defined in the SOAP 1.1 specification: Client, Server,
> > > > VersionMismatch, and MustUnderstand. (See
> > > > http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383510). The
> > > > response message should be:
> > > >
> > > > <?xml version="1.0" encoding="UTF-8" ?>
> > > > <soapenv:Envelope
> > > >   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > >   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > >   <soapenv:Body>
> > > >     <soapenv:Fault>
> > > >       <faultcode>soapenv:Client</faultcode>
> > > >       <faultstring>Unable to test</faultstring>
> > > >       <detail>
> > > >         <detailCode xmlns="some-uri">test111</detailCode>
> > > >         <userName xmlns="some-uri">test222</userName>
> > > >      </detail>
> > > >    </soapenv:Fault>
> > > >  </soapenv:Body>
> > > > </soapenv:Envelope>
> > > >
> > > > Anne
> > > >
> > > > On 7/24/06, Mathias Hempel <ma...@gmail.com> wrote:
> > > > > i have a problem
> > > > >
> > > > > i use the serviceclient for axis and i have a problem
> > > > >
> > > > > i become the detailcode but no faultstring and no faultcode from AxisFault
> > > > > where can i get the faultstring an the faultcode from this soap1.1 message
> > > > >
> > > > > response soap message:
> > > > >
> > > > >  <?xml version="1.0" encoding="UTF-8" ?>
> > > > > <soapenv:Envelope
> > > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > > > <soapenv:Body>
> > > > >  <soapenv:Fault>
> > > > >    <soapenv:faultCode>test.test</soapenv:faultCode>
> > > > >    <soapenv:faultString>Unable to test</soapenv:faultString>
> > > > >    <soapenv:detail>
> > > > >      <detailCode>test111</detailCode>
> > > > >      <userName>test222</userName>
> > > > >    </soapenv:detail>
> > > > >  </soapenv:Fault>
> > > > >  </soapenv:Body>
> > > > > </soapenv:Envelope>
> > > > >
> > > > > --
> > > > > Mit freundlichen Gruessen
> > > > >
> > > > > Mathias Hempel
> > > > > eMail: mathias.hempel@gmail.com
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Mit freundlichen Gruessen
> > >
> > > Mathias Hempel
> > > eMail: mathias.hempel@gmail.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Mit freundlichen Gruessen
>
> Mathias Hempel
> eMail: mathias.hempel@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: AxisFault info

Posted by Mathias Hempel <ma...@gmail.com>.
ok i will take the second part, but how?
where can i get the raw XML form?

thanks for your help

On 7/24/06, Anne Thomas Manes <at...@gmail.com> wrote:
> Ah...
>
> Tell the folks that provide the service that they are returning an
> invalid SOAP Fault. Given that this is a test message, obviously it
> isn't a production service. They should fix it.
>
> If they won't, then you will need to capture the message in it's raw
> XML form and process it yourself. Axis Fault cannot automatically
> interpret this fault.
>
> Anne
>
> On 7/24/06, Mathias Hempel <ma...@gmail.com> wrote:
> > but this is the respose from the service and i have no influence of this
> > there are any ather resonen to become the faultstring from AxisFault
> >
> > On 7/24/06, Anne Thomas Manes <at...@gmail.com> wrote:
> > > Your fault example is invalid. The child elements of the
> > > <soapenv:Fault> element must be unqualified, and the element names do
> > > not use camelCaps. Meanwhile, the children of the <detail> element
> > > should be qualified. Also, the faultcode value must be a QName. It's
> > > strongly recommended (by WS-I Basic Profile) that you use only the
> > > fault codes defined in the SOAP 1.1 specification: Client, Server,
> > > VersionMismatch, and MustUnderstand. (See
> > > http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383510). The
> > > response message should be:
> > >
> > > <?xml version="1.0" encoding="UTF-8" ?>
> > > <soapenv:Envelope
> > >   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > >   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > >   <soapenv:Body>
> > >     <soapenv:Fault>
> > >       <faultcode>soapenv:Client</faultcode>
> > >       <faultstring>Unable to test</faultstring>
> > >       <detail>
> > >         <detailCode xmlns="some-uri">test111</detailCode>
> > >         <userName xmlns="some-uri">test222</userName>
> > >      </detail>
> > >    </soapenv:Fault>
> > >  </soapenv:Body>
> > > </soapenv:Envelope>
> > >
> > > Anne
> > >
> > > On 7/24/06, Mathias Hempel <ma...@gmail.com> wrote:
> > > > i have a problem
> > > >
> > > > i use the serviceclient for axis and i have a problem
> > > >
> > > > i become the detailcode but no faultstring and no faultcode from AxisFault
> > > > where can i get the faultstring an the faultcode from this soap1.1 message
> > > >
> > > > response soap message:
> > > >
> > > >  <?xml version="1.0" encoding="UTF-8" ?>
> > > > <soapenv:Envelope
> > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > > <soapenv:Body>
> > > >  <soapenv:Fault>
> > > >    <soapenv:faultCode>test.test</soapenv:faultCode>
> > > >    <soapenv:faultString>Unable to test</soapenv:faultString>
> > > >    <soapenv:detail>
> > > >      <detailCode>test111</detailCode>
> > > >      <userName>test222</userName>
> > > >    </soapenv:detail>
> > > >  </soapenv:Fault>
> > > >  </soapenv:Body>
> > > > </soapenv:Envelope>
> > > >
> > > > --
> > > > Mit freundlichen Gruessen
> > > >
> > > > Mathias Hempel
> > > > eMail: mathias.hempel@gmail.com
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> >
> > --
> > Mit freundlichen Gruessen
> >
> > Mathias Hempel
> > eMail: mathias.hempel@gmail.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Mit freundlichen Gruessen

Mathias Hempel
eMail: mathias.hempel@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: AxisFault info

Posted by Anne Thomas Manes <at...@gmail.com>.
Ah...

Tell the folks that provide the service that they are returning an
invalid SOAP Fault. Given that this is a test message, obviously it
isn't a production service. They should fix it.

If they won't, then you will need to capture the message in it's raw
XML form and process it yourself. Axis Fault cannot automatically
interpret this fault.

Anne

On 7/24/06, Mathias Hempel <ma...@gmail.com> wrote:
> but this is the respose from the service and i have no influence of this
> there are any ather resonen to become the faultstring from AxisFault
>
> On 7/24/06, Anne Thomas Manes <at...@gmail.com> wrote:
> > Your fault example is invalid. The child elements of the
> > <soapenv:Fault> element must be unqualified, and the element names do
> > not use camelCaps. Meanwhile, the children of the <detail> element
> > should be qualified. Also, the faultcode value must be a QName. It's
> > strongly recommended (by WS-I Basic Profile) that you use only the
> > fault codes defined in the SOAP 1.1 specification: Client, Server,
> > VersionMismatch, and MustUnderstand. (See
> > http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383510). The
> > response message should be:
> >
> > <?xml version="1.0" encoding="UTF-8" ?>
> > <soapenv:Envelope
> >   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> >   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> >   <soapenv:Body>
> >     <soapenv:Fault>
> >       <faultcode>soapenv:Client</faultcode>
> >       <faultstring>Unable to test</faultstring>
> >       <detail>
> >         <detailCode xmlns="some-uri">test111</detailCode>
> >         <userName xmlns="some-uri">test222</userName>
> >      </detail>
> >    </soapenv:Fault>
> >  </soapenv:Body>
> > </soapenv:Envelope>
> >
> > Anne
> >
> > On 7/24/06, Mathias Hempel <ma...@gmail.com> wrote:
> > > i have a problem
> > >
> > > i use the serviceclient for axis and i have a problem
> > >
> > > i become the detailcode but no faultstring and no faultcode from AxisFault
> > > where can i get the faultstring an the faultcode from this soap1.1 message
> > >
> > > response soap message:
> > >
> > >  <?xml version="1.0" encoding="UTF-8" ?>
> > > <soapenv:Envelope
> > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > <soapenv:Body>
> > >  <soapenv:Fault>
> > >    <soapenv:faultCode>test.test</soapenv:faultCode>
> > >    <soapenv:faultString>Unable to test</soapenv:faultString>
> > >    <soapenv:detail>
> > >      <detailCode>test111</detailCode>
> > >      <userName>test222</userName>
> > >    </soapenv:detail>
> > >  </soapenv:Fault>
> > >  </soapenv:Body>
> > > </soapenv:Envelope>
> > >
> > > --
> > > Mit freundlichen Gruessen
> > >
> > > Mathias Hempel
> > > eMail: mathias.hempel@gmail.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Mit freundlichen Gruessen
>
> Mathias Hempel
> eMail: mathias.hempel@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: AxisFault info

Posted by Mathias Hempel <ma...@gmail.com>.
but this is the respose from the service and i have no influence of this
there are any ather resonen to become the faultstring from AxisFault

On 7/24/06, Anne Thomas Manes <at...@gmail.com> wrote:
> Your fault example is invalid. The child elements of the
> <soapenv:Fault> element must be unqualified, and the element names do
> not use camelCaps. Meanwhile, the children of the <detail> element
> should be qualified. Also, the faultcode value must be a QName. It's
> strongly recommended (by WS-I Basic Profile) that you use only the
> fault codes defined in the SOAP 1.1 specification: Client, Server,
> VersionMismatch, and MustUnderstand. (See
> http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383510). The
> response message should be:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <soapenv:Envelope
>   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>   <soapenv:Body>
>     <soapenv:Fault>
>       <faultcode>soapenv:Client</faultcode>
>       <faultstring>Unable to test</faultstring>
>       <detail>
>         <detailCode xmlns="some-uri">test111</detailCode>
>         <userName xmlns="some-uri">test222</userName>
>      </detail>
>    </soapenv:Fault>
>  </soapenv:Body>
> </soapenv:Envelope>
>
> Anne
>
> On 7/24/06, Mathias Hempel <ma...@gmail.com> wrote:
> > i have a problem
> >
> > i use the serviceclient for axis and i have a problem
> >
> > i become the detailcode but no faultstring and no faultcode from AxisFault
> > where can i get the faultstring an the faultcode from this soap1.1 message
> >
> > response soap message:
> >
> >  <?xml version="1.0" encoding="UTF-8" ?>
> > <soapenv:Envelope
> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <soapenv:Body>
> >  <soapenv:Fault>
> >    <soapenv:faultCode>test.test</soapenv:faultCode>
> >    <soapenv:faultString>Unable to test</soapenv:faultString>
> >    <soapenv:detail>
> >      <detailCode>test111</detailCode>
> >      <userName>test222</userName>
> >    </soapenv:detail>
> >  </soapenv:Fault>
> >  </soapenv:Body>
> > </soapenv:Envelope>
> >
> > --
> > Mit freundlichen Gruessen
> >
> > Mathias Hempel
> > eMail: mathias.hempel@gmail.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Mit freundlichen Gruessen

Mathias Hempel
eMail: mathias.hempel@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: AxisFault info

Posted by Anne Thomas Manes <at...@gmail.com>.
Your fault example is invalid. The child elements of the
<soapenv:Fault> element must be unqualified, and the element names do
not use camelCaps. Meanwhile, the children of the <detail> element
should be qualified. Also, the faultcode value must be a QName. It's
strongly recommended (by WS-I Basic Profile) that you use only the
fault codes defined in the SOAP 1.1 specification: Client, Server,
VersionMismatch, and MustUnderstand. (See
http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383510). The
response message should be:

<?xml version="1.0" encoding="UTF-8" ?>
<soapenv:Envelope
  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
    <soapenv:Fault>
      <faultcode>soapenv:Client</faultcode>
      <faultstring>Unable to test</faultstring>
      <detail>
        <detailCode xmlns="some-uri">test111</detailCode>
        <userName xmlns="some-uri">test222</userName>
     </detail>
   </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

Anne

On 7/24/06, Mathias Hempel <ma...@gmail.com> wrote:
> i have a problem
>
> i use the serviceclient for axis and i have a problem
>
> i become the detailcode but no faultstring and no faultcode from AxisFault
> where can i get the faultstring an the faultcode from this soap1.1 message
>
> response soap message:
>
>  <?xml version="1.0" encoding="UTF-8" ?>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
>  <soapenv:Fault>
>    <soapenv:faultCode>test.test</soapenv:faultCode>
>    <soapenv:faultString>Unable to test</soapenv:faultString>
>    <soapenv:detail>
>      <detailCode>test111</detailCode>
>      <userName>test222</userName>
>    </soapenv:detail>
>  </soapenv:Fault>
>  </soapenv:Body>
> </soapenv:Envelope>
>
> --
> Mit freundlichen Gruessen
>
> Mathias Hempel
> eMail: mathias.hempel@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org