You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jeff Greif <jg...@alumni.princeton.edu> on 2003/01/21 22:37:35 UTC

wsdl generation error?

I deployed a service, apparently without problems, but when requesting the
<url>?wsdl for it, there is a problem with namespaces in the WSDL generator
(as shown in the stack trace below).

Is there something that can be added to the .wsdd file to make this problem
disappear?  Is there a chance that the wsdl generator needs to be able to
find the schema for the namespace and that's the problem?  If so, is there a
way to specify its location in the .wsdd file?

What is the meaning of the <namespace> sub-element of <service>?  I noticed
that some services declare a wsdlTargetNamespace <param>.  Is this (and
related params) used to control the generated wsdl?  Is there a list of
these parameters anywhere?

In general, the wsdd descriptor has pretty thin documentation (in the User
guide, installation guide and reference guide).  If there were an XML Schema
for it, people could probably make more sense of it, and determine whether
there were interesting looking options they hadn't tried yet.  I looked
through all the .wsdd files in the axis distribution to see if something
might apply, but found nothing appropriate.

Jeff

Fault - WSDLException: faultCode=OTHER_ERROR: Can't find prefix for
'http://webalo.com/xmlns/ups-ial-ais'. Namespace prefixes must be set on the
Definition object using the addNamespace(...) method.:
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for
'http://webalo.com/xmlns/ups-ial-ais'. Namespace prefixes must be set on the
Definition object using the addNamespace(...) method.:
 faultActor: null
 faultNode: null
 faultDetail:
 stackTrace: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for
'http://webalo.com/xmlns/ups-ial-ais'. 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)
 at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source)
 at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source)
 at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source)
 at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:269)
 at
org.apache.axis.providers.java.JavaProvider.generateWSDL(JavaProvider.java:4
78)
 at
org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:72)
 at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
 at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:143)
 at
org.apache.axis.handlers.soap.SOAPService.generateWSDL(SOAPService.java:368)
 at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:491)
 at
org.apache.axis.transport.http.AxisServlet.processWsdlRequest(AxisServlet.ja
va:434)
 at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:286)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
339)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
 at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
 at java.lang.Thread.run(Thread.java:484)