Hi I have a WSDL generated from Java2WSDL it reads below
<?xml version="1.0" encoding="UTF-8"?>
  | <wsdl:definitions targetNamespace="http://DefaultNamespace"; 
xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
xmlns:impl="http://DefaultNamespace"; xmlns:intf="http://DefaultNamespace"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  | <!--WSDL created by Apache Axis version: 1.2alpha
  | Built on Dec 01, 2003 (04:33:24 EST)-->
  | 
  |    <wsdl:message name="setNameRequest">
  | 
  |       <wsdl:part name="in0" type="xsd:string"/>
  | 
  |    </wsdl:message>
  | 
  |    <wsdl:message name="getNameRequest">
  | 
  |    </wsdl:message>
  | 
  |    <wsdl:message name="setNameResponse">
  | 
  |    </wsdl:message>
  | 
  |    <wsdl:message name="getNameResponse">
  | 
  |       <wsdl:part name="getNameReturn" type="xsd:string"/>
  | 
  |    </wsdl:message>
  | 
  |    <wsdl:portType name="MySpringService">
  | 
  |       <wsdl:operation name="getName">
  | 
  |          <wsdl:input message="impl:getNameRequest" name="getNameRequest"/>
  | 
  |          <wsdl:output message="impl:getNameResponse" 
name="getNameResponse"/>
  | 
  |       </wsdl:operation>
  | 
  |       <wsdl:operation name="setName" parameterOrder="in0">
  | 
  |          <wsdl:input message="impl:setNameRequest" name="setNameRequest"/>
  | 
  |          <wsdl:output message="impl:setNameResponse" 
name="setNameResponse"/>
  | 
  |       </wsdl:operation>
  | 
  |    </wsdl:portType>
  | 
  |    <wsdl:binding name="MySpringServiceSoapBinding" 
type="impl:MySpringService">
  | 
  |       <wsdlsoap:binding style="rpc" 
transport="http://schemas.xmlsoap.org/soap/http"/>
  | 
  |       <wsdl:operation name="getName">
  | 
  |          <wsdlsoap:operation soapAction=""/>
  | 
  |          <wsdl:input name="getNameRequest">
  | 
  |             <wsdlsoap:body namespace="http://DefaultNamespace"; 
use="literal"/>
  | 
  |          </wsdl:input>
  | 
  |          <wsdl:output name="getNameResponse">
  | 
  |             <wsdlsoap:body namespace="http://DefaultNamespace"; 
use="literal"/>
  | 
  |          </wsdl:output>
  | 
  |       </wsdl:operation>
  | 
  |       <wsdl:operation name="setName">
  | 
  |          <wsdlsoap:operation soapAction=""/>
  | 
  |          <wsdl:input name="setNameRequest">
  | 
  |             <wsdlsoap:body namespace="http://DefaultNamespace"; 
use="literal"/>
  | 
  |          </wsdl:input>
  | 
  |          <wsdl:output name="setNameResponse">
  | 
  |             <wsdlsoap:body namespace="http://DefaultNamespace"; 
use="literal"/>
  | 
  |          </wsdl:output>
  | 
  |       </wsdl:operation>
  | 
  |    </wsdl:binding>
  | 
  |    <wsdl:service name="MySpringServiceService">
  | 
  |       <wsdl:port binding="impl:MySpringServiceSoapBinding" 
name="MySpringService">
  | 
  |          <wsdlsoap:address 
location="http://localhost:8080/MySpringService"/>
  | 
  |       </wsdl:port>
  | 
  |    </wsdl:service>
  | 
  | </wsdl:definitions>
  | 

The soap request gives the following error.
<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' 
xmlns:xsd='http://www.w3.org/2001/XMLSchema' 
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  | <soapenv:Header/>
  | <soapenv:Body>
  | <ns1:setName xmlns:ns1='http://localhost:8080/MySpringService/' 
soapenv:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
  | <String_1 xsi:type='xsd:string' 
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>Shankar-Web 
Service!!!</String_1>
  | </ns1:setName></soapenv:Body></soapenv:Envelope>
  | 2006-12-13 08:25:08,141 DEBUG [org.jboss.ws.soap.SOAPMessageDispatcher] 
getDispatchDestination: null
  | 2006-12-13 08:25:08,141 DEBUG [org.jboss.ws.soap.SOAPMessageDispatcher] 
getDispatchDestination: null
  | 2006-12-13 08:25:08,141 DEBUG [javax.xml.rpc.soap.SOAPFaultException] new 
SOAPFaultException 
[code={http://schemas.xmlsoap.org/soap/envelope/}Client,string=Endpoint 
{http://DefaultNamespace}MySpringService does not contain operation meta data 
for: {http://localhost:8080/MySpringService/}setName,actor=null,detail=null]
  | 2006-12-13 08:25:08,141 ERROR 
[org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper] SOAP request exception
  | javax.xml.rpc.soap.SOAPFaultException: Endpoint 
{http://DefaultNamespace}MySpringService does not contain operation meta data 
for: {http://localhost:8080/MySpringService/}setName
  |     at 
org.jboss.ws.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:181)
  |     at 
org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:107)
  |     at 
org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
  |     at 
org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
  |     at 
org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
  |     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993416#3993416

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993416
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to