[jboss-user] [JBossWS] - Webtools generated WSDL fail to deploy

pshankar do-not-reply at jboss.com
Wed Dec 13 14:03:49 EST 2006


Here is the service that returns the List generated using the wstools 

<?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:tns2="http://www.w3.org/1999/XMLSchema" 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:types>
  |   <schema targetNamespace="http://DefaultNamespace" xmlns="http://www.w3.org/2001/XMLSchema">
  |    <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
  |    <complexType name="ArrayOf_tns2_anyType">
  |     <complexContent>
  |      <restriction base="soapenc:Array">
  |       <attribute ref="soapenc:arrayType" wsdl:arrayType="tns2:anyType[]"/>
  |      </restriction>
  |     </complexContent>
  |    </complexType>
  |   </schema>
  |  </wsdl:types>
  | 
  |    <wsdl:message name="setNameRequest">
  | 
  |       <wsdl:part name="in0" type="xsd:string"/>
  | 
  |    </wsdl:message>
  | 
  |    <wsdl:message name="listConfigurationNameResponse">
  | 
  |       <wsdl:part name="listConfigurationNameReturn" type="impl:ArrayOf_tns2_anyType"/>
  | 
  |    </wsdl:message>
  | 
  |    <wsdl:message name="getNameRequest">
  | 
  |    </wsdl:message>
  | 
  |    <wsdl:message name="listConfigurationNameRequest">
  | 
  |       <wsdl:part name="in0" type="xsd:string"/>
  | 
  |    </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="listConfigurationName" parameterOrder="in0">
  | 
  |          <wsdl:input message="impl:listConfigurationNameRequest" name="listConfigurationNameRequest"/>
  | 
  |          <wsdl:output message="impl:listConfigurationNameResponse" name="listConfigurationNameResponse"/>
  | 
  |       </wsdl:operation>
  | 
  |       <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="listConfigurationName">
  | 
  |          <wsdlsoap:operation soapAction=""/>
  | 
  |          <wsdl:input name="listConfigurationNameRequest">
  | 
  |             <wsdlsoap:body namespace="http://DefaultNamespace" use="literal"/>
  | 
  |          </wsdl:input>
  | 
  |          <wsdl:output name="listConfigurationNameResponse">
  | 
  |             <wsdlsoap:body namespace="http://DefaultNamespace" use="literal"/>
  | 
  |          </wsdl:output>
  | 
  |       </wsdl:operation>
  | 
  |       <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>
  | 
Here is the exception when I try to deploy
11:34:24,910 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.5.GA/server/default/deploy/
  | org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://DefaultNamespace}ArrayOf_tns2_anyType
  |         at org.jboss.ws.deployment.JSR109MetaDataBuilder.buildParameterMetaDataRpc(JSR109MetaDataBuilder.java
  |         at org.jboss.ws.deployment.JSR109MetaDataBuilder.setupOperationsFromWSDL(JSR109MetaDataBuilder.java:1
  |         at org.jboss.ws.deployment.JSR109ServerMetaDataBuilder.buildMetaData(JSR109ServerMetaDataBuilder.java
  |         at org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:78)
  |         at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:80)
  |         at org.jboss.ws.integration.jboss.DeployerInterceptorJSE.create(DeployerInterceptorJSE.java:74)
  |         at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptor

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993544



More information about the jboss-user mailing list