You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "willem Jiang (JIRA)" <ji...@apache.org> on 2007/10/11 08:28:50 UTC

[jira] Resolved: (CXF-1029) The given example is not correct!

     [ https://issues.apache.org/jira/browse/CXF-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

willem Jiang resolved CXF-1029.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.3

> The given example is not correct!
> ---------------------------------
>
>                 Key: CXF-1029
>                 URL: https://issues.apache.org/jira/browse/CXF-1029
>             Project: CXF
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.0.1
>         Environment: JDK6 + Eclipse 3.3
>            Reporter: Hubert zhang
>            Assignee: willem Jiang
>            Priority: Minor
>             Fix For: 2.0.3
>
>
> Please check the web link :http://cwiki.apache.org/CXF20DOC/xfire-migration-guide.html 
> There  are some examples for how to use service factories, but  in "Example JAXWSServiceFactory Migration" part , the given example is not correct:
> JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
> sf.setServiceClass(MyServiceImpl.class);
> sf.setAddress("http://localhost:8080/myservice");
> sf.create();
> It must use SEI or interface class to call setServiceClass, not the implementation class! Should be changed like this:
> JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
> sf.setServiceBean(new MyServiceImpl());
> sf.setServiceClass(MyServiceInterface.class);
> sf.setAddress("http://localhost:8080/myservice");
> sf.create();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.