You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Hubert zhang (JIRA)" <ji...@apache.org> on 2007/09/17 08:37:32 UTC
[jira] Created: (CXF-1029) The given example is not correct!
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
Priority: Minor
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.
[jira] Commented: (CXF-1029) The given example is not correct!
Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528102 ]
Glen Mazza commented on CXF-1029:
---------------------------------
It's a Wiki, so you can make that fix yourself. Please do!
> 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
> Priority: Minor
>
> 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.
[jira] Resolved: (CXF-1029) The given example is not correct!
Posted by "willem Jiang (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (CXF-1029) The given example is not correct!
Posted by "willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528224 ]
willem Jiang commented on CXF-1029:
-----------------------------------
I suppose the runtime need to create a object instance from the service class, if the service bean is not been set.
I am also trying to fix it , so we do not need to change the wiki :)
But I think it not only need to change the ServerFactoryBean code , but also need to fix dozens of tests.
> 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
>
> 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.
[jira] Assigned: (CXF-1029) The given example is not correct!
Posted by "willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
willem Jiang reassigned CXF-1029:
---------------------------------
Assignee: willem Jiang
> 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
>
> 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.
[jira] Commented: (CXF-1029) The given example is not correct!
Posted by "Jeff Yu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528228 ]
Jeff Yu commented on CXF-1029:
------------------------------
In fact, I remembered I asked such a question to Dan Kulp, and then it turns out that we should set the ServiceImpl class for jaxws, and we set the SEI for simple POJO front-end.
see thread here: http://www.nabble.com/Re%3A-svn-commit%3A-r562541---in--incubator-cxf-trunk-rt%3A-core-src-main-java-org-apache-cxf-interceptor--frontend-jaxws-src-main-java-org-apache-cxf-jaxws--frontend-jaxws-src-test-java-org-apache-cxf-jaxws-service--frontend-simple-src-main-java-org-apache-cxf-tf4222825.html#a12012732
> 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
>
> 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.