You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Eric Johnson (JIRA)" <ji...@apache.org> on 2006/09/07 18:04:24 UTC
[jira] Created: (CXF-52) Document how to develop a service using
the JAX-WS front end
Document how to develop a service using the JAX-WS front end
------------------------------------------------------------
Key: CXF-52
URL: http://issues.apache.org/jira/browse/CXF-52
Project: CeltiXfire
Issue Type: Task
Components: JAX-WS Runtime
Affects Versions: 2.0-M2
Reporter: Eric Johnson
--
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
[jira] Commented: (CXF-52) Document how to develop a service using
the JAX-WS front end
Posted by "Tom Schroedl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534065 ]
Tom Schroedl commented on CXF-52:
---------------------------------
The quoteReporter example here:
http://cwiki.apache.org/CXF20DOC/developing-a-service.html
does return a Quote object, which got my interest because it's not a simple primitive. The WSDL at the bottom of the page (Example 9) has the 'quote' complexType defined. However, when I try to follow the initial steps according to Example 4 and 5, I get an error when launching the server (Tomcat):
javax.xml.ws.WebServiceException: Attributes portName, serviceName, and endpointInterface are not allowed in the @WebService annotation of an SEI.
(In my test code, I made an SEI, apup.facade.wsapi.QuoteFacade, and an SEI implementation, apup.facade.impl.QuoteFacadeImpl.)
Sooo, I tried just having only @WebService as the annotation in the SEI and @WebService("endpointInterface="apup.facade.wsapi.QuoteFacade") in the SEI Impl. This got me further, but when I generate the WSDL via URL,
https://localhost/app/service/cxf/QuoteService?wsdl
which imports
https://localhost/app/service/cxf/QuoteService?wsdl=QuoteService.wsdl
I see the complexType 'quote' is not there. Is there a difference between getting the WSDL in this way vs. running the java2wsdl generation tool by hand? I would think it should need to be the same result.
Oh, and here's my Spring config:
<jaxws:endpoint>
id="quoteServiceEndpoint"
implementorClass="apup.facade.impl.QuoteFacadeImpl"
address="/QuoteService"/>
Would be good to have the quote example be Spring-ified and working as part of the samples that come with the distro.
> Document how to develop a service using the JAX-WS front end
> ------------------------------------------------------------
>
> Key: CXF-52
> URL: https://issues.apache.org/jira/browse/CXF-52
> Project: CXF
> Issue Type: Task
> Components: JAX-WS Runtime
> Affects Versions: 2.0-RC
> Reporter: Eric Johnson
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-52) Document how to develop a service using
the JAX-WS front end
Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529122 ]
Glen Mazza commented on CXF-52:
-------------------------------
This issue is over a year old and IMHO can be closed now. We have this already: http://cwiki.apache.org/CXF20DOC/how-do-i-develop-a-service.html
It could use some improvement over time, but that's the case with all Wiki pages. One thing I don't believe we would want to do is reinvent the wheel and provide documentation that is common for any JAX-WS implementation and already available on the 'Net.
> Document how to develop a service using the JAX-WS front end
> ------------------------------------------------------------
>
> Key: CXF-52
> URL: https://issues.apache.org/jira/browse/CXF-52
> Project: CXF
> Issue Type: Task
> Components: JAX-WS Runtime
> Affects Versions: 2.0-RC
> Reporter: Eric Johnson
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-52) Document how to develop a service using
the JAX-WS front end
Posted by "Tom Schroedl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534034 ]
Tom Schroedl commented on CXF-52:
---------------------------------
There needs to be an example that deals with basic objects (beans/DTOs/collections) being returned and passed in. The simple examples only deal with primitives, and I have stumbled on getting anything more elaborate working taking the Java first jaxws approach.
I vote for keeping this open if no such examples exist.
> Document how to develop a service using the JAX-WS front end
> ------------------------------------------------------------
>
> Key: CXF-52
> URL: https://issues.apache.org/jira/browse/CXF-52
> Project: CXF
> Issue Type: Task
> Components: JAX-WS Runtime
> Affects Versions: 2.0-RC
> Reporter: Eric Johnson
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-52) Document how to develop a service using
the JAX-WS front end
Posted by "Tom Schroedl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534560 ]
Tom Schroedl commented on CXF-52:
---------------------------------
The quote example worked for me after I tweaked the server-side Spring configuration as follows:
<bean id="quoteServiceBean" class="apup.facade.impl.QuoteFacadeImpl"/>
<jaxws:endpoint>
id="quoteServiceEndpoint"
implementorClass="apup.facade.impl.QuoteFacadeImpl"
implementor="#quoteServiceBean"
address="/QuoteService"/>
Still would like to see a working example where a business logic interface is the return type instead of a concrete class.
> Document how to develop a service using the JAX-WS front end
> ------------------------------------------------------------
>
> Key: CXF-52
> URL: https://issues.apache.org/jira/browse/CXF-52
> Project: CXF
> Issue Type: Task
> Components: JAX-WS Runtime
> Affects Versions: 2.0-RC
> Reporter: Eric Johnson
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (CXF-52) Document how to develop a
service using the JAX-WS front end
Posted by "Tom Schroedl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534065 ]
tschroedl edited comment on CXF-52 at 10/11/07 8:27 AM:
-----------------------------------------------------------
The quoteReporter example here:
http://cwiki.apache.org/CXF20DOC/developing-a-service.html
does return a Quote object, which got my interest because it's not a simple primitive. The WSDL at the bottom of the page (Example 9) has the 'quote' complexType defined. However, when I try to follow the initial steps according to Example 4 and 5, I get an error when launching the server (Tomcat):
javax.xml.ws.WebServiceException: Attributes portName, serviceName, and endpointInterface are not allowed in the @WebService annotation of an SEI.
(In my test code, I made an SEI, apup.facade.wsapi.QuoteFacade, and an SEI implementation, apup.facade.impl.QuoteFacadeImpl.)
Sooo, I tried just having only @WebService as the annotation in the SEI and @WebService(endpointInterface="apup.facade.wsapi.QuoteFacade") in the SEI Impl. This got me further, but when I generate the WSDL via URL,
https://localhost/app/service/cxf/QuoteService?wsdl
which imports
https://localhost/app/service/cxf/QuoteService?wsdl=QuoteService.wsdl
I see the complexType 'quote' is not there. Is there a difference between getting the WSDL in this way vs. running the java2wsdl generation tool by hand? I would think it should need to be the same result.
Oh, and here's my Spring config:
<jaxws:endpoint>
id="quoteServiceEndpoint"
implementorClass="apup.facade.impl.QuoteFacadeImpl"
address="/QuoteService"/>
Would be good to have the quote example be Spring-ified and working as part of the samples that come with the distro.
was (Author: tschroedl):
The quoteReporter example here:
http://cwiki.apache.org/CXF20DOC/developing-a-service.html
does return a Quote object, which got my interest because it's not a simple primitive. The WSDL at the bottom of the page (Example 9) has the 'quote' complexType defined. However, when I try to follow the initial steps according to Example 4 and 5, I get an error when launching the server (Tomcat):
javax.xml.ws.WebServiceException: Attributes portName, serviceName, and endpointInterface are not allowed in the @WebService annotation of an SEI.
(In my test code, I made an SEI, apup.facade.wsapi.QuoteFacade, and an SEI implementation, apup.facade.impl.QuoteFacadeImpl.)
Sooo, I tried just having only @WebService as the annotation in the SEI and @WebService("endpointInterface="apup.facade.wsapi.QuoteFacade") in the SEI Impl. This got me further, but when I generate the WSDL via URL,
https://localhost/app/service/cxf/QuoteService?wsdl
which imports
https://localhost/app/service/cxf/QuoteService?wsdl=QuoteService.wsdl
I see the complexType 'quote' is not there. Is there a difference between getting the WSDL in this way vs. running the java2wsdl generation tool by hand? I would think it should need to be the same result.
Oh, and here's my Spring config:
<jaxws:endpoint>
id="quoteServiceEndpoint"
implementorClass="apup.facade.impl.QuoteFacadeImpl"
address="/QuoteService"/>
Would be good to have the quote example be Spring-ified and working as part of the samples that come with the distro.
> Document how to develop a service using the JAX-WS front end
> ------------------------------------------------------------
>
> Key: CXF-52
> URL: https://issues.apache.org/jira/browse/CXF-52
> Project: CXF
> Issue Type: Task
> Components: JAX-WS Runtime
> Affects Versions: 2.0-RC
> Reporter: Eric Johnson
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.