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/12/11 08:42:22 UTC

[jira] Resolved: (CXF-301) Refactor restful sample: remove the presence of wsdl from samples client code

     [ http://issues.apache.org/jira/browse/CXF-301?page=all ]

Jervis Liu resolved CXF-301.
----------------------------

    Resolution: Fixed

> 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
>          Components: JAX-WS Runtime
>            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