cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jervis Liu (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-301) Refactor restful sample: remove the presence of wsdl from samples client code
Date Fri, 08 Dec 2006 10:00:22 GMT
Refactor restful sample: remove the presence of wsdl from samples client code
-----------------------------------------------------------------------------

                 Key: CXF-301
                 URL: http://issues.apache.org/jira/browse/CXF-301
             Project: CXF
          Issue Type: Improvement
            Reporter: Jervis Liu
         Assigned To: Jervis Liu


Refactor restful sample: remove the presence of wsdl from samples client code. Like below

        Service service = Service.create(qname);
        service.addPort(qname, HTTPBinding.HTTP_BINDING, url);
        Dispatch<Source> dispatcher = service.createDispatch(qname, Source.class,
                                             Service.Mode.MESSAGE);
        Map<String, Object> requestContext = dispatcher.getRequestContext();
        requestContext.put(MessageContext.HTTP_REQUEST_METHOD, "PUT");
        Source result = dispatcher.invoke(new StreamSource(new StringReader(poXML)));


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

        

Mime
View raw message