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 "Jarek Gawor (JIRA)" <ji...@apache.org> on 2008/12/02 22:00:46 UTC
[jira] Assigned: (AXIS2-4145) A null value for a Dispatch
invocation using the XML/HTTP binding should be acceptable while using HTTP
GET method
[ https://issues.apache.org/jira/browse/AXIS2-4145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jarek Gawor reassigned AXIS2-4145:
----------------------------------
Assignee: Jarek Gawor
> 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
>
> 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