You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Tom Schroedl (JIRA)" <ji...@apache.org> on 2007/10/11 17:28:50 UTC
[jira] Issue Comment Edited: (CXF-52) Document how to develop a
service using the JAX-WS front end
[ 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.