cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shaw, Richard A" <>
Subject RE: [jira] Created: (CXF-133) Support sending HTTP GET using JAX-WS dispatch
Date Sat, 30 Sep 2006 07:10:18 GMT
Does using JAX-WS to perform a HTTP GET allow handlers to be added to the request ?

If so then I see this as a benefit of using it.

I have a use case in my architecture for this, we have a generic logging component which intercepts
the logical message in a a handler and writes to a log database. At the moment we can't use
it for HTTP GET interfaces.

Richard Shaw


Richard Shaw  
Technical Design Authority - Information Solutions Consultancy  
Intelligent Transport Systems 

Atkins Highways and Transportation 
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW

Tel: +44 (0) 1372 756407 
Fax: +44 (0) 1372 740055
Mob: 07740 817586 

-----Original Message-----
From: Jervis Liu (JIRA) [] 
Sent: 30 September 2006 04:50
Subject: [jira] Created: (CXF-133) Support sending HTTP GET using JAX-WS dispatch

Support sending HTTP GET using JAX-WS dispatch

                 Key: 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, "  <>",
        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:
For more information on JIRA, see:


This message has been scanned for viruses by MailControl - (see

This email and any attached files are confidential and copyright protected. If you are not
the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise
expressly agreed in writing, nothing stated in this communication shall be legally binding.

View raw message