users@jax-ws.java.net

Re: [nbj2ee] Web Services

From: Lukas Jungmann <Lukas.Jungmann_at_Sun.COM>
Date: Tue, 09 Jan 2007 18:09:49 +0100

Cross-posting to users_at_jax-ws.dev.java.net since there are people who
can help you with this.

--lj

vinucho wrote:
> This is my Web Service:
>
> Port Name Status Information
> IntegrationService ACTIVE
> Address: http://localhost:6666/business/IntegrationService
> WSDL: http://localhost:6666/business/IntegrationService?wsdl
> Port QName: {http://www.teste.com.br/dmd/integration/}IntegrationService
> Implementation class: br.com.teste.www.dmd.integration.Integration
>
>
> I have with this problem:
>
> 08/01/2007 13:54:37
> com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher toMessageInfo
> SEVERE: Error in decoding SOAP Message
> Error in decoding SOAP Message
> at
> com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:89)
> at
> com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:187)
> at
> com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:571)
> at
> com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:141)
> at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
> at
> com.sun.xml.ws.transport.http.servlet.WSServletDelegate.handle(WSServletDelegate.java:333)
> at
> com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:288)
> at
> com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:77)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: javax.xml.ws.soap.SOAPFaultException: Cannot find the dispatch
> method
> at
> com.sun.xml.ws.encoding.soap.SOAPDecoder.raiseFault(SOAPDecoder.java:674)
> at
> com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.decodeDispatchMethod(SOAPXMLDecoder.java:152)
> at
> com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBodyContent(SOAPDecoder.java:337)
> at
> com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBody(SOAPDecoder.java:327)
> at
> com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeEnvelope(SOAPDecoder.java:250)
> at
> com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:81)
> ... 24 more
>
> This is my targetNamespace in WSDL:
>
> <wsdl:definitions name="integration"
> targetNamespace="http://www.teste.com.br/dmd/integration"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:tns="http://www.teste.com.br/dmd/integration"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:dmdweb="http://www.teste.com.br/dmd/integration">
>
> And this in my method:
>
> @WebService(serviceName = "IntegrationService", portName =
> "IntegrationService", endpointInterface =
> "br.com.teste.dmd.integration.IntegrationPort", targetNamespace =
> "http://www.teste.com.br/dmd/integration", wsdlLocation =
> "WEB-INF/wsdl/Integration/integration.wsdl")
>
> Anybody help me?
>