[jboss-user] [JBossWS] - Re: wsconsume schema type reference problem

vashistvishal do-not-reply at jboss.com
Thu Sep 6 22:50:12 EDT 2007


I thnk by the look of it , the iisue is how yr mthod name and inpout raument name are different.
According to new spech JSr-224 which is what is used for these tools, yr method name should be same as input arguement name.

Please read the spec and you will discover more, new spec is very pedantic about these conventions.


I have enclosed a WSDL for Doc/Lit wraped style of service to give you hints, this works with Wsconsume


  | <?xml version="1.0" encoding="UTF-8"?>
  | <wsdl:definitions name="matt_HelloWorld3"
  | 	targetNamespace="http://www.superpartners.com.au/matt.HelloWorld3"
  | 	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  | 	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  | 	xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
  | 	xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
  | 	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  | 	xmlns:tns="http://www.superpartners.com.au/matt.HelloWorld3">
  | 	<wsdl:types>
  | 
  | 		<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  | 			targetNamespace="http://www.superpartners.com.au/matt.HelloWorld3"
  | 			xmlns:edm="http://www.superpartners.com.au/matt.HelloWorld3">
  | 
  | 			<xsd:element name="HelloWorld" type="edm:HelloWorldReq" />
  | 
  | 			<xsd:complexType name="HelloWorldReq">
  | 				<xsd:sequence>
  | 					<xsd:element minOccurs='0' name='id'
  | 						type='xsd:string' />
  | 				</xsd:sequence>
  | 			</xsd:complexType>
  | 
  | 			<xsd:element name="HelloWorldResponse"
  | 				type="edm:HelloWorldRespons" />
  | 
  | 			<xsd:complexType name="HelloWorldRespons">
  | 				<xsd:sequence>
  | 					<xsd:element minOccurs='0' name='result'
  | 						type='xsd:string' />
  | 				</xsd:sequence>
  | 			</xsd:complexType>
  | 		</xsd:schema>
  | 
  | 	</wsdl:types>
  | 
  | 	<wsdl:message name="HelloWorldIn">
  | 		<wsdl:part name="HelloWorld" element="tns:HelloWorld" />
  | 	</wsdl:message>
  | 
  | 	<wsdl:message name="HelloWorldOutput">
  | 		<wsdl:part name="HelloWorldResponse"
  | 			element="tns:HelloWorldResponse" />
  | 	</wsdl:message>
  | 
  | 	<wsdl:portType name="matt_HelloWorld3PortType">
  | 		<wsdl:operation name="HelloWorld">
  | 			<wsdl:input message="tns:HelloWorldIn" />
  | 			<wsdl:output message="tns:HelloWorldOutput" />
  | 		</wsdl:operation>
  | 	</wsdl:portType>
  | 
  | 	<wsdl:binding name="matt_HelloWorld3Binding"
  | 		type="tns:matt_HelloWorld3PortType">
  | 		<soap:binding style="document"
  | 			transport="http://schemas.xmlsoap.org/soap/http" />
  | 		<wsdl:operation name="HelloWorld">
  | 			<soap:operation soapAction="" />
  | 			<wsdl:input>
  | 				<soap:body use="literal" />
  | 			</wsdl:input>
  | 			<wsdl:output>
  | 				<soap:body use="literal" />
  | 			</wsdl:output>
  | 		</wsdl:operation>
  | 	</wsdl:binding>
  | 
  | 	<wsdl:service name="matt_HelloWorld3Service">
  | 		<wsdl:port name="matt_HelloWorld3Port0"
  | 			binding="tns:matt_HelloWorld3Binding">
  | 			<soap:address
  | 				location="http://spthd01:5565/soap/DocLiteral" />
  | 		</wsdl:port>
  | 	</wsdl:service>
  | </wsdl:definitions>


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

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



More information about the jboss-user mailing list