Hi,

I have the following setup:
Tomcat 5.5, axis2 (versions 1.1.1, 1.2 and snapshot), java 1.6.0_02
(which was used for the WS I've written and is used to run tomcat)

The webservice exposes a method with a parameter (MethodRequest). Now
I'm facing the following problem:

The request is as simple as this:

<soap:Envelope
        xmlns:soap="http://www.w3.org/2003/05/soap-envelope";
        xmlns:ns="http://my.org/WS/types/1.0";>
   <soap:Header/>
   <soap:Body>
      <ns:MethodRequest/>
   </soap:Body>
</soap:Envelope>

Using the sendReceive method of the ServiceClient class (in the axis2
lib) the method invocation works just fine.

BUT using a soap client (such as SOAPui) I get different kinds of error
responses depending on the version of axis2 that I'm using

Errors:

Axis2 1.1.1:

<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
   <soapenv:Header/>
   <soapenv:Body>
      <soapenv:Fault>
         <soapenv:Code>
            <soapenv:Value>soapenv:Sender</soapenv:Value>
         </soapenv:Code>
         <soapenv:Reason>
            <soapenv:Text xml:lang="en-US">null; nested exception is: 
        java.lang.NullPointerException</soapenv:Text>
         </soapenv:Reason>
         <soapenv:Detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


Axis2 1.2:

<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
   <soapenv:Body>
      <soapenv:Fault>
         <soapenv:Code>
            <soapenv:Value>soapenv:Sender</soapenv:Value>
         </soapenv:Code>
         <soapenv:Reason>
            <soapenv:Text xml:lang="en-US">unknown</soapenv:Text>
         </soapenv:Reason>
         <soapenv:Detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


Axis2 snapshot:

<soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
   <soapenv:Body>
      <soapenv:Fault>
         <soapenv:Code>
            <soapenv:Value>soapenv:Sender</soapenv:Value>
         </soapenv:Code>
         <soapenv:Reason>
            <soapenv:Text
xml:lang="en-US">org.apache.axis2.AxisFault.makeFault(Ljava/lang/Excepti
on;)Lorg/apache/axis2/AxisFault;</soapenv:Text>
         </soapenv:Reason>
         <soapenv:Detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


Also the TRACE output of axis2 does not give me ANY clue about what's
going on (I have the traces here, but before bloating the post with a
huge logfile I'll just wait and see if someone can shed some light on
what's going on) What I can tell is that my service implementation never
receives the method invocation request but the axis/soap handling
mechanisms throw the exception beforehand. (oh and yes it's SOAP 1.2)

My thanks in advance!

Cheers,
severin


-------------
Severin Ecker
Business Unit Software Systems
Smart Systems Division
Austrian Research Centers GmbH - ARC
2444 Seibersdorf
T: + 43 (0) 50 550 - 3122
M: + 43 (0) 664 60780 3122
F: + 43 (0) 50 550 - 2813
mailto:[EMAIL PROTECTED]
www.smart-systems.at
HG Wien - FN 115980i - ATU14703506


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to