You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jervis Liu (JIRA)" <ji...@apache.org> on 2006/09/30 05:50:19 UTC

[jira] Created: (CXF-133) Support sending HTTP GET using JAX-WS dispatch

Support sending HTTP GET using JAX-WS dispatch
----------------------------------------------

                 Key: CXF-133
                 URL: http://issues.apache.org/jira/browse/CXF-133
             Project: CeltiXfire
          Issue Type: Sub-task
            Reporter: Jervis Liu


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

        

[jira] Resolved: (CXF-133) Support sending HTTP GET using JAX-WS dispatch

Posted by "willem Jiang (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] Assigned: (CXF-133) Support sending HTTP GET using JAX-WS dispatch

Posted by "willem Jiang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/CXF-133?page=all ]

willem Jiang reassigned CXF-133:
--------------------------------

    Assignee: willem Jiang

> 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
>
> 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