axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-4145) A null value for a Dispatch invocation using the XML/HTTP binding should be acceptable while using HTTP GET method
Date Tue, 02 Dec 2008 22:30:44 GMT

     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message