cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1768) WSDL First leads to javax.wsdl.WSDLException: WSDLException
Date Fri, 29 Aug 2008 15:26:44 GMT

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

Daniel Kulp commented on CXF-1768:
----------------------------------


Well, I can explain why the second scenario (specifying the names) works:  you don't have
a @WebService annotation at all.     

In that case, we have to use the JAX-WS rules to figure out what the service name and endpoint
name really are.   In your case, that would be CCInfoWSImplService and CCInfoWSImplPort. 
  We then check the wsdl for those names.   There isn't a service/port by those names in there,
so we end up dynamically creating one for use at runtime.     Apparently, the dynamically
created one is have namespace issues in the wsdl writing step.

By specifying the correct names, we can find the correct information in the WSDL and use the
wsdl as is.   You can do that either via the attributes in your config like you did or via
attributes on a @WebService annotation on your impl.





> WSDL First leads to javax.wsdl.WSDLException: WSDLException
> -----------------------------------------------------------
>
>                 Key: CXF-1768
>                 URL: https://issues.apache.org/jira/browse/CXF-1768
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.1, 2.1.2
>         Environment: Windows Vista, JDK 1.5.0
>            Reporter: Mirko Sertic
>         Attachments: cc-info-common-types.xsd, cc-info.wsdl, CCInfoWSImpl.java
>
>
> WSDL first with spring results in the following Exception:
> javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for
... Namespace prefixes must be set on the Definition object using the addNamespace(...) method.
> The Spring configuration is as follows:
> 	<import resource="classpath:META-INF/cxf/cxf.xml"/> 
> 	<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" /> 
>     <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/> 
>     <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> 
> 	<bean id="ccInfoServiceImpl" class="ch.bedag.a11.ccinfo.business.service.impl.CCInfoWSImpl">
> 	</bean>
> 	
> 	<jaxws:endpoint id="ccInfoServiceEndpoint" implementor="#ccInfoServiceImpl" address="/ccinfo">
> 		<jaxws:features>
>            <bean class="org.apache.cxf.feature.LoggingFeature"/>
>         </jaxws:features>	
> 	</jaxws:endpoint>
> I have to specify the spring configuration as follows to make it working:
> 	<jaxws:endpoint id="ccInfoServiceEndpoint" implementor="#ccInfoServiceImpl" address="/ccinfo"
> 		 xmlns:tns="http://www.bedag.ch/cc-info" 
> 		 xmlns:cdt="http://www.bedag.ch/cc-info/common/types"
> 		 serviceName="tns:CCService"
> 		 endpointName="tns:CCPortType"> 
> 		<jaxws:features>
>            <bean class="org.apache.cxf.feature.LoggingFeature"/>
>         </jaxws:features>	
> 	</jaxws:endpoint>
> I dont know why i have to specify the porttype again. I added the used wsdl files for
bug tracking.

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


Mime
View raw message