Dear all, 
I'm using CXF 2.1.3. WSDL generation fails with the following exception:
org.apache.cxf.transport.http.WSDLQueryException: Exception occurred while
trying to process .../services/address?wsdl
        at
org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler.java:214)
        at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:154)
        at
org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:175)
        at
org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFServlet.java:157)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
        Truncated. see log file for complete stacktrace
javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Can't find
prefix for 'http://www.csapi.org/schema/parlayx/group_mgmt/v3_0/local'.
Namespace prefixes must be set on the Definition object using the
addNamespace(...) method.
        at com.ibm.wsdl.util.xml.DOMUtils.getPrefix(Unknown Source)
        at com.ibm.wsdl.util.xml.DOMUtils.getQualifiedValue(Unknown Source)
        at com.ibm.wsdl.util.xml.DOMUtils.printQualifiedAttribute(Unknown 
Source)
        at com.ibm.wsdl.xml.WSDLWriterImpl.printParts(Unknown Source)
        at com.ibm.wsdl.xml.WSDLWriterImpl.printMessages(Unknown Source)

The problem seems to be that @WebParameter declares a different target
namespace than service.
Please find Spring configuration file, service interface and impl attached.
http://www.nabble.com/file/p20936036/applicationContext.xml
applicationContext.xml 
http://www.nabble.com/file/p20936036/GroupManagement.java
GroupManagement.java 
http://www.nabble.com/file/p20936036/GroupManagementServiceImpl.java
GroupManagementServiceImpl.java 

Any ideas? I read that XFire had a bug related to this issue. Could it be
the same? Or some configuration is needed? 

Regards
DAvide


-- 
View this message in context: 
http://www.nabble.com/Error-while-generating-wsdl-tp20936036p20936036.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to