You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Aster Anto (JIRA)" <ji...@apache.org> on 2012/04/29 21:21:53 UTC

[jira] [Commented] (CXF-4273) WebClient.create(proxy) - does not exist

    [ https://issues.apache.org/jira/browse/CXF-4273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264588#comment-13264588 ] 

Aster Anto commented on CXF-4273:
---------------------------------

{noformat}WebClient client = WebClient.client(proxy);{noformat}

I fear that is not correct. What "WebClient.client(proxy)" returns is a "Client" not a "WebClient". We cannot cast "Client" to "WebClient" as well.
                
> WebClient.create(proxy) - does not exist
> ----------------------------------------
>
>                 Key: CXF-4273
>                 URL: https://issues.apache.org/jira/browse/CXF-4273
>             Project: CXF
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.6
>            Reporter: Aster Anto
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>              Labels: documentation
>
> Referring to http://cxf.apache.org/docs/jax-rs-client-api.html
> Method matching the following does not exist.
> {noformat}WebClient client = WebClient.create(proxy);{noformat}
> However, I got a WebClient from proxy by,
> {noformat}BookStore proxy = JAXRSClientFactory.create("http://books", BookStore.class);
> Client client = WebClient.client(proxy);
> WebClient webClient = WebClient.fromClient(client);{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira