Hi
I will post the file and add a jira issue.
Meanwhile, I managed to get it working by using the following spring
configuration:
<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>
This configuration is working, but I don’t know why I have to specify the
portType explicitly, it is generated as an annotation to the interface. Any
ideas?
Regards
Mirko
-----Ursprüngliche Nachricht-----
Von: Benson Margulies [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 28. August 2008 13:57
An: [email protected]
Betreff: Re: WSDL first results in javax.wsdl.WSDLException
Can we have an example WSDL on a JIRA?
On Thu, Aug 28, 2008 at 4:10 AM, Sertic Mirko, Bedag
<[EMAIL PROTECTED]> wrote:
> Hi
>
> Thank you for your response.
>
> I tried the wsdl validator from 2.1.1 and it says "Passed Validation : Valid
> WSDL". I also tried with 2.1.2, and it also passed the validation, but I am
> still getting the Exception.
>
> Is there something I have to consider when I am using CXF with Spring? Here
> is my spring config:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:jaxws="http://cxf.apache.org/jaxws"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
>
> <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>
> </beans>
>
> Regards
> Mirko
>
>
> -----Ursprüngliche Nachricht-----
> Von: Daniel Kulp [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 27. August 2008 21:34
> An: [email protected]
> Cc: Sertic Mirko, Bedag
> Betreff: Re: WSDL first results in javax.wsdl.WSDLException
>
>
> Can you try with 2.1.2? Also, try running the wsdlvalidator on the wsdl to
> make sure that's valid.
>
> Thanks!
> Dan
>
>
>
> On Wednesday 27 August 2008 7:55:08 am Sertic Mirko, Bedag wrote:
>> Hi
>>
>>
>>
>> I am new to CXF and want to implement a WebService with CXF 2.1.1 and
>> WSDL first. Code generations runs pretty smooth, but when I try to
>> access the WebService with serice?wsdl to get the WSDL document, I am
>> getting 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.
>>
>>
>>
>> And ideas?
>>
>>
>>
>> Thanks a lot
>>
>> Mirko
>
>
>
> --
> Daniel Kulp
> [EMAIL PROTECTED]
> http://www.dankulp.com/blog
>