[ 
https://issues.apache.org/jira/browse/AXIS2-4145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jarek Gawor resolved AXIS2-4145.
--------------------------------

       Resolution: Fixed
    Fix Version/s: nightly

Committed fixes and a test case for this issue to trunk (revision 722635). 
There were two problems here. First, allowing for the null value to be passed 
when using Dispatch invocation in HTTPBinding when using HTTP GET method. 
Second, the Axis2 jaxws code was ignoring the HTTP_REQUEST_METHOD property so 
requests were really send using the POST method instead of GET. Both of these 
issues should be fixed now.

Also, there was a problem in the SimpleAxis2Server implementation in handling 
HTTP GET requests (WSCOMMONS-405) which caused problems in the test case.


> A null value for a Dispatch invocation using the XML/HTTP binding should be 
> acceptable while using HTTP GET method
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4145
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4145
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>    Affects Versions: nightly
>         Environment: JDK 1.5
> Windows XP
> Axis2 SNAPSHOT
>            Reporter: Ivan
>            Assignee: Jarek Gawor
>             Fix For: nightly
>
>
> While using HTTP GET, the null value for a Dispatch invocation using the 
> XML/HTTP binding should be acceptable.
> Currently, it always throws an Exception, saying 
> ...
> Caused by: java.lang.Throwable: The parameter cannot be a null value for a 
> Dispatch invocation using the XML/HTTP binding.
>       at 
> org.apache.axis2.jaxws.client.dispatch.BaseDispatch.getProtocolException(BaseDispatch.java:437)
>       ... 2 more
> Code Fragment :
> Service service = Service.create(GREETER_SERVICE);
>         service.addPort(HTTP_GREETER_PORT, HTTPBinding.HTTP_BINDING,
>                 
> "http://localhost:8080/jaxws-provider/provider/http/source/sayhi?value=geronimo";);
>         Dispatch<Source> dispatch = service.createDispatch(HTTP_GREETER_PORT, 
> Source.class, Service.Mode.MESSAGE);
>         Map<String, Object> requestContext = dispatch.getRequestContext();
>         requestContext.put(MessageContext.HTTP_REQUEST_METHOD, "GET");
>         dispatch.invoke(null);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to