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 
E-mail: [EMAIL PROTECTED]

www.atkinsglobal.com/its

-----Original Message-----
From: Jervis Liu (JIRA) [mailto:[EMAIL PROTECTED] 
Sent: 30 September 2006 04:50
To: [email protected]
Subject: [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

        


This message has been scanned for viruses by MailControl - (see 
http://bluepages.wsatkins.co.uk/?4318150)


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.

Reply via email to