Hi all,

I'm having problems only when throwing exceptions. I'm getting "bad request". 
This problem appeared since I moved to axis2 1.2, using it with Tomcat. If I 
use axis as standalone server there's no problem. 

The messages are apparently the same except for some minimal changes in the 
order of HTTP header, the prefix for the description element namespace and that 
the final character after envelope in one case appears in the following line. 
This are the messages:

The correct one with standalone axis:

HTTP/1.1 500 Internal server error
Date: Wed, 13 Jun 2007 08:22:37 GMT
Content-Type: application/soap+xml; 
action="http://medici_link/Medici_LinkPortType/validateUser/Fault/ValidationFault";
Server: Simple-Server/1.1
Transfer-Encoding: chunked
Connection: Close

3a2
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"; 
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
      <soapenv:Header>
         
<wsa:Action>http://medici_link/Medici_LinkPortType/validateUser/Fault/ValidationFault</wsa:Action>
         <wsa:RelatesTo>urn:uuid:B2AFE74A4124DE7BFF1181722957402</wsa:RelatesTo>
      </soapenv:Header>
      <soapenv:Body>
         <soapenv:Fault>
            <soapenv:Code>
               <soapenv:Value>soapenv:Sender</soapenv:Value>
            </soapenv:Code>
            <soapenv:Reason>
               <soapenv:Text 
xml:lang="en-US">ValidationFaultException</soapenv:Text>
            </soapenv:Reason>
            <soapenv:Detail>
               <ns4:ValidationException 
xmlns:ns4="http://op_messages.medici_link/xsd";>
                  <ns4:ValidationFault>
                     <s2:description 
xmlns:s2="http://faults.medici_link/xsd";>User not validated. You must validate 
before invoking a method.</s2:description>
                  </ns4:ValidationFault>
               </ns4:ValidationException>
            </soapenv:Detail>
         </soapenv:Fault>
      </soapenv:Body>
   </soapenv:Envelope>0


The bad one with tomcat:

HTTP/1.1 400 Petición incorrecta
Server: Apache-Coyote/1.1
Content-Type: application/soap+xml; 
action="http://medici_link/Medici_LinkPortType/validateUser/Fault/ValidationFault";charset=UTF-8
Transfer-Encoding: chunked
Date: Wed, 13 Jun 2007 08:12:50 GMT
Connection: close

3a2
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"; 
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
      <soapenv:Header>
         
<wsa:Action>http://medici_link/Medici_LinkPortType/validateUser/Fault/ValidationFault</wsa:Action>
         <wsa:RelatesTo>urn:uuid:61931C3AAB6FF83F181181722371001</wsa:RelatesTo>
      </soapenv:Header>
      <soapenv:Body>
         <soapenv:Fault>
            <soapenv:Code>
               <soapenv:Value>soapenv:Sender</soapenv:Value>
            </soapenv:Code>
            <soapenv:Reason>
               <soapenv:Text 
xml:lang="en-US">ValidationFaultException</soapenv:Text>
            </soapenv:Reason>
            <soapenv:Detail>
               <ns4:ValidationException 
xmlns:ns4="http://op_messages.medici_link/xsd";>
                  <ns4:ValidationFault>
                     <s1:description 
xmlns:s1="http://faults.medici_link/xsd";>User not validated. You must validate 
before invoking a method.</s1:description>
                  </ns4:ValidationFault>
               </ns4:ValidationException>
            </soapenv:Detail>
         </soapenv:Fault>
      </soapenv:Body>
   </soapenv:Envelope>
0







                
---------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

Reply via email to