You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2006/11/29 12:59:21 UTC

[jira] Created: (AXIS2-1788) Axis2 fails to handler SOAP 1.2 request when REST enable

Axis2 fails to handler SOAP 1.2 request when REST enable
--------------------------------------------------------

                 Key: AXIS2-1788
                 URL: http://issues.apache.org/jira/browse/AXIS2-1788
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
            Reporter: Deepal Jayasinghe


When sending following request with setting  following parameter 
 <parameter name="enableRESTInAxis2MainServlet" locked="true">true</parameter>

got SOAP fault , and I found the issue is due to problem in AxisServlet line 540.


POST /axis2/services/FirstService HTTP/1.1
User-Agent: Axis2
Host: localhost:8000
Transfer-Encoding: chunked
Content-Type: application/soap+xml; charset=UTF-8;action="urn:weekdayOfDate";

14a
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Header />
      <soapenv:Body>
         <ns1:weekdayOfDate xmlns:ns1="http://pojo/xsd">
            <ns1:year>2006</ns1:year>
            <ns1:month>11</ns1:month>
            <ns1:dayOfMonth>29</ns1:dayOfMonth>
         </ns1:weekdayOfDate>
      </soapenv:Body>
   </soapenv:Envelope>0
==== Response ====
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Wed, 29 Nov 2006 11:19:02 GMT
Connection: close

335
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header>
         <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
         </wsa:ReplyTo>
         <wsa:MessageID>urn:uuid:52E50C5E42695616EA11647991428604</wsa:MessageID>
         <wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
      </soapenv:Header>
      <soapenv:Body>
         <soapenv:Fault>
            <faultcode></faultcode>
            <faultstring>Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related; nested exception is: 	org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related</faultstring>
            <detail />
         </soapenv:Fault>
      </soapenv:Body>
   </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Resolved: (AXIS2-1788) Axis2 fails to handler SOAP 1.2 request when REST enable

Posted by "Thilina Gunarathne (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1788?page=all ]

Thilina Gunarathne resolved AXIS2-1788.
---------------------------------------

    Resolution: Fixed

Fixed
http://svn.apache.org/viewvc?view=rev&rev=489382

> Axis2 fails to handler SOAP 1.2 request when REST enable
> --------------------------------------------------------
>
>                 Key: AXIS2-1788
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1788
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Deepal Jayasinghe
>         Assigned To: Deepal Jayasinghe
>
> When sending following request with setting  following parameter 
>  <parameter name="enableRESTInAxis2MainServlet" locked="true">true</parameter>
> got SOAP fault , and I found the issue is due to problem in AxisServlet line 540.
> POST /axis2/services/FirstService HTTP/1.1
> User-Agent: Axis2
> Host: localhost:8000
> Transfer-Encoding: chunked
> Content-Type: application/soap+xml; charset=UTF-8;action="urn:weekdayOfDate";
> 14a
> <?xml version='1.0' encoding='UTF-8'?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header />
>       <soapenv:Body>
>          <ns1:weekdayOfDate xmlns:ns1="http://pojo/xsd">
>             <ns1:year>2006</ns1:year>
>             <ns1:month>11</ns1:month>
>             <ns1:dayOfMonth>29</ns1:dayOfMonth>
>          </ns1:weekdayOfDate>
>       </soapenv:Body>
>    </soapenv:Envelope>0
> ==== Response ====
> HTTP/1.1 500 Internal Server Error
> Server: Apache-Coyote/1.1
> Content-Type: text/xml;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Wed, 29 Nov 2006 11:19:02 GMT
> Connection: close
> 335
> <?xml version='1.0' encoding='UTF-8'?>
>    <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>       <soapenv:Header>
>          <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>          </wsa:ReplyTo>
>          <wsa:MessageID>urn:uuid:52E50C5E42695616EA11647991428604</wsa:MessageID>
>          <wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
>       </soapenv:Header>
>       <soapenv:Body>
>          <soapenv:Fault>
>             <faultcode></faultcode>
>             <faultstring>Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related; nested exception is: 	org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related</faultstring>
>             <detail />
>          </soapenv:Fault>
>       </soapenv:Body>
>    </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Assigned: (AXIS2-1788) Axis2 fails to handler SOAP 1.2 request when REST enable

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1788?page=all ]

Deepal Jayasinghe reassigned AXIS2-1788:
----------------------------------------

    Assignee: Deepal Jayasinghe

> Axis2 fails to handler SOAP 1.2 request when REST enable
> --------------------------------------------------------
>
>                 Key: AXIS2-1788
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1788
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Deepal Jayasinghe
>         Assigned To: Deepal Jayasinghe
>
> When sending following request with setting  following parameter 
>  <parameter name="enableRESTInAxis2MainServlet" locked="true">true</parameter>
> got SOAP fault , and I found the issue is due to problem in AxisServlet line 540.
> POST /axis2/services/FirstService HTTP/1.1
> User-Agent: Axis2
> Host: localhost:8000
> Transfer-Encoding: chunked
> Content-Type: application/soap+xml; charset=UTF-8;action="urn:weekdayOfDate";
> 14a
> <?xml version='1.0' encoding='UTF-8'?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header />
>       <soapenv:Body>
>          <ns1:weekdayOfDate xmlns:ns1="http://pojo/xsd">
>             <ns1:year>2006</ns1:year>
>             <ns1:month>11</ns1:month>
>             <ns1:dayOfMonth>29</ns1:dayOfMonth>
>          </ns1:weekdayOfDate>
>       </soapenv:Body>
>    </soapenv:Envelope>0
> ==== Response ====
> HTTP/1.1 500 Internal Server Error
> Server: Apache-Coyote/1.1
> Content-Type: text/xml;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Wed, 29 Nov 2006 11:19:02 GMT
> Connection: close
> 335
> <?xml version='1.0' encoding='UTF-8'?>
>    <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>       <soapenv:Header>
>          <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>          </wsa:ReplyTo>
>          <wsa:MessageID>urn:uuid:52E50C5E42695616EA11647991428604</wsa:MessageID>
>          <wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
>       </soapenv:Header>
>       <soapenv:Body>
>          <soapenv:Fault>
>             <faultcode></faultcode>
>             <faultstring>Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related; nested exception is: 	org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related</faultstring>
>             <detail />
>          </soapenv:Fault>
>       </soapenv:Body>
>    </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2-1788) Axis2 fails to handler SOAP 1.2 request when REST enable

Posted by "Fabian Merki (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1788?page=comments#action_12460247 ] 
            
Fabian Merki commented on AXIS2-1788:
-------------------------------------

I've got the same issue!

and i've found a possible place where it could be fixed on the server in org.apache.axis2.transport.http.AxisServlet.java. 
the code already has a comment about a possible bug in the following method and i think that's it!

private boolean isRESTRequest(HttpServletRequest request) {
        String contentType = request.getContentType();
        String soapActionHeader = request.getHeader(HTTPConstants.HEADER_SOAP_ACTION);
//possible bug.. 
        return ((soapActionHeader == null) ||
                (contentType != null && contentType.indexOf(HTTPConstants.MEDIA_TYPE_X_WWW_FORM) > -1));
}

or the client could be fixed so that it sends the HTTPConstants.HEADER_SOAP_ACTION because it is null for ws/soap generated clients by wsdl2java.

thanks for fixing!

fabian

> Axis2 fails to handler SOAP 1.2 request when REST enable
> --------------------------------------------------------
>
>                 Key: AXIS2-1788
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1788
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Deepal Jayasinghe
>         Assigned To: Deepal Jayasinghe
>
> When sending following request with setting  following parameter 
>  <parameter name="enableRESTInAxis2MainServlet" locked="true">true</parameter>
> got SOAP fault , and I found the issue is due to problem in AxisServlet line 540.
> POST /axis2/services/FirstService HTTP/1.1
> User-Agent: Axis2
> Host: localhost:8000
> Transfer-Encoding: chunked
> Content-Type: application/soap+xml; charset=UTF-8;action="urn:weekdayOfDate";
> 14a
> <?xml version='1.0' encoding='UTF-8'?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header />
>       <soapenv:Body>
>          <ns1:weekdayOfDate xmlns:ns1="http://pojo/xsd">
>             <ns1:year>2006</ns1:year>
>             <ns1:month>11</ns1:month>
>             <ns1:dayOfMonth>29</ns1:dayOfMonth>
>          </ns1:weekdayOfDate>
>       </soapenv:Body>
>    </soapenv:Envelope>0
> ==== Response ====
> HTTP/1.1 500 Internal Server Error
> Server: Apache-Coyote/1.1
> Content-Type: text/xml;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Wed, 29 Nov 2006 11:19:02 GMT
> Connection: close
> 335
> <?xml version='1.0' encoding='UTF-8'?>
>    <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>       <soapenv:Header>
>          <wsa:ReplyTo>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address>
>          </wsa:ReplyTo>
>          <wsa:MessageID>urn:uuid:52E50C5E42695616EA11647991428604</wsa:MessageID>
>          <wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
>       </soapenv:Header>
>       <soapenv:Body>
>          <soapenv:Fault>
>             <faultcode></faultcode>
>             <faultstring>Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related; nested exception is: 	org.apache.axis2.AxisFault: Content type should be one of /n text/xml/n application/x-www-form-urlencoded/n multipart/related</faultstring>
>             <detail />
>          </soapenv:Fault>
>       </soapenv:Body>
>    </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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