axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera" <asan...@wso2.com>
Subject Re: [jira] Created: (AXIS2-1287) RawXMLINOnlyMessageReceiver throws a NPE if method is not found
Date Tue, 03 Oct 2006 09:34:20 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sanjiva<br>
<br>
I guess your reply was about
<a class="moz-txt-link-freetext" href="http://issues.apache.org/jira/browse/AXIS2-1286">http://issues.apache.org/jira/browse/AXIS2-1286</a><br>
<br>
I will update as per your comment<br>
<br>
thanks<br>
asankha<br>
<br>
Sanjiva Weerawarana wrote:
<blockquote cite="mid1159862602.31088.56.camel@localhost.localdomain"
 type="cite">
  <pre wrap="">Is your solution the right one? If the biz logic returns null then its
saying it has no XML to return. IMO that should result in the following
message:

&lt;s:Envelope&gt;
&lt;s:Body/&gt;
&lt;/s:Envelope&gt;

Boring, but valid SOAP message. Its not a fault to have no output. If
this was a POX request this'll map to HTTP 200 OK with a content length
of zero .. which is correct I'd argue.

Sanjiva.

On Mon, 2006-10-02 at 23:20 -0700, Asankha C. Perera (JIRA) wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">RawXMLINOnlyMessageReceiver throws a NPE if method is not found
---------------------------------------------------------------

                 Key: AXIS2-1287
                 URL: <a class="moz-txt-link-freetext" href="http://issues.apache.org/jira/browse/AXIS2-1287">http://issues.apache.org/jira/browse/AXIS2-1287</a>
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: core
            Reporter: Asankha C. Perera
            Priority: Minor


The RawXMLINOnlyMessageReceiver throws a NPE SOAP fault back to the client if the method referenced
is not found on the ServiceClass implementation. A meaningful SOAP fault should be returned.

&lt;service &gt;
  &lt;parameter name="ServiceClass" locked="false"&gt;test.mr.MRTest1&lt;/parameter&gt;
  &lt;operation name="invalidMethodName"&gt;
      &lt;messageReceiver class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/&gt;
      &lt;actionMapping&gt;urn:invalidMethodName&lt;/actionMapping&gt;
  &lt;/operation&gt;
&lt;/service&gt;

public class MRTest1 {
    public void invalidMethodNameX(OMElement element){
    	.....
    }
}

    </pre>
  </blockquote>
  <pre wrap=""><!---->

---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-dev-unsubscribe@ws.apache.org">axis-dev-unsubscribe@ws.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-dev-help@ws.apache.org">axis-dev-help@ws.apache.org</a>



  </pre>
</blockquote>
</body>
</html>


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


Mime
View raw message