[ http://issues.apache.org/jira/browse/CXF-133?page=all ]
willem Jiang resolved CXF-133.
------------------------------
Fix Version/s: 2.0-M1
Resolution: Fixed
> Support sending HTTP GET using JAX-WS dispatch
> ----------------------------------------------
>
> Key: CXF-133
> URL: http://issues.apache.org/jira/browse/CXF-133
> Project: CXF
> Issue Type: Sub-task
> Reporter: Jervis Liu
> Assigned To: willem Jiang
> Fix For: 2.0-M1
>
>
> Support sending HTTP GET using JAX-WS dispatch: A HTTP GET request can be
> sent by using URL.openStream or by using JAX-WS dispatch. Though I do not see
> much benefit of using the latter, we do need to support it. According to
> JAX-WS spec, this can be done by adding extra non-standard properties into
> request context. A code snippet may look like below:
>
> Service service = Service.createService();
> service.addPort(portQName, "
> <http://cxf.apache.org/bindings/xformat>
> http://cxf.apache.org/bindings/xformat", endpointAddress);
> Dispatch<Source> d = service.createDispatch(portQName, Source.class,
> Service.Mode.PAYLOAD);
>
> Map<String, Object> requestContext = d.getRequestContext();
> requestContext.put(Message.HTTP_REQUEST_METHOD, new String("GET"));
> requestContext.put(Message.QUERY_STRING, queryString);
> requestContext.put(Message.PATH_INFO, path);
>
> Source result = d.invoke(null);
--
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