0 Replies Latest reply on Apr 30, 2003 2:56 AM by adet

    allowedMethods parameter

    adet

      Hi,

      I am using JBoss 3.2.0RC4. I have my stateless session bean and I want to web service it. This is my web-service.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <deployment name="Services"
      xmlns="http://xml.apache.org/axis/wsdd/"
      xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">















      When I go to http://localhost:8080/jboss-net/services/Service?wsdl, it outputs:

      AXIS error
      Sorry, something seems to have gone wrong... here are the details:

      Fault - WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://www.w3.org/1999/XMLSchema'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.:
      AxisFault
      faultCode: {http://xml.apache.org/axis/}Server.userException
      faultString: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://www.w3.org/1999/XMLSchema'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.:
      faultActor: null
      faultDetail:
      stackTrace: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://www.w3.org/1999/XMLSchema'. 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:236)
      at org.apache.axis.providers.java.JavaProvider.generateWSDL(JavaProvider.java:418)
      at org.jboss.net.axis.server.EJBProvider.generateWSDL(EJBProvider.java:206)
      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:355)
      at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:490)
      at org.apache.axis.transport.http.AxisServlet.processWsdlRequest(AxisServlet.java:428)
      at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:280)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:278)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:548)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
      at org.mortbay.http.HttpServer.service(HttpServer.java:863)
      at org.jboss.jetty.Jetty.service(Jetty.java:460)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

      But when I change allowedMethods value to some method name from my session bean, jboss.net generates wsdl fine. The problem is that I want to allow all method calls, but it doesn't work if I change allowedMethods value to the list of my method names separated by comma(,) or space( ). Could anybody help me? If I should write N-session beans to service N-methods, or there is a solution to service N-methods in one session bean.

      with regards,
      adet