I am very sorry. I missed the attachments in my last mail.

Thanks Kiran

From: Kiran Kumar
Sent: Mon 6/6/2005 2:31 PM
To: axis-user@ws.apache.org
Subject: Issue with 'wrapped' style webservice code generation

Hello,
 
I am really stuck with this issue. I am using Axis 1.2 and trying to use wrapped style webservice. WSDL2Java is not generating the 'response' type Value Object and SoapBindingImpl class method return type is wrong.
 
Please have a look at identify.wsdl, operation 'individual' has an output parameter (response) whose return type is 'geocode'. [look at the idindividual.xsd and idcommontypes.xsd].
 
It is supposed to generate IdentifySoapBindingImpl class with the following method signature
 
    public org.cityofchicago.gis.gce.service.axis.id.Geocode individual(java.lang.String address, int geoCodingtarget, java.lang.String targetlayers, boolean returnflag, boolean locatortype) throws java.rmi.RemoteException {
        return null;
    }
But it was generating the following method signature:
 
    public org.cityofchicago.gis.gce.service.axis.id.Outputs individual(java.lang.String address, int geoCodingtarget, java.lang.String targetlayers, boolean returnflag, boolean locatortype) throws java.rmi.RemoteException {
        return null;
    }
It is also not generating the Geocode Value Object.
 
PS:
Please observe that input message element name (individual) is matching with operation name (individual). If I change the input message element name to somename other than "individual" then it was generating the Geocode value Object but the method's input parameter will be object instead of individual parameters. Since I want the method signature to accept individual paramters I kept the input message element name is same as operation name.. But I am stuck with above explained problem (return type is not correct).
 
Thanks
Kiran
-------------------------------------------------
Ph: 312 742 9630

------------------------------------------------

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.

------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by TCS (TCS) -->
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; 
							xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
							xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
							xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
							xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
							xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
							xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
							xmlns:ws="http://www.example.com/webservice"; 
							xmlns:impl="http://domain.cityofchicago.gis.gce/versions/1.0/identify/wsdl"; 
							xmlns:idindividualtypes="http://domain.cityofchicago.gis.gce/versions/1.0/idindividual"; 
							xmlns:ns="http://domain.cityofchicago.gis.gce/versions/1.0/idcommontypes"; 
							targetNamespace="http://domain.cityofchicago.gis.gce/versions/1.0/identify/wsdl";>
	<wsdl:types>
		<xs:schema elementFormDefault="qualified" targetNamespace="http://domain.cityofchicago.gis.gce/versions/1.0/idindividual/wsdl/importtypes";>
			<xs:import namespace="http://domain.cityofchicago.gis.gce/versions/1.0/idindividual"; schemaLocation="idindividual.xsd"/>
		</xs:schema>
	</wsdl:types>
	<wsdl:message name="individualRequest">
		<wsdl:part name="idindividualinputs" element="idindividualtypes:individual"/>
	</wsdl:message>
	<wsdl:message name="individualResponse">
		<wsdl:part name="geocode" element="idindividualtypes:geocode"/>
	</wsdl:message>
	<wsdl:portType name="Identify">
		<!-- Identify individual -->
		<wsdl:operation name="individual" parameterOrder="idindividualinputs">
			<wsdl:input name="individualRequest" message="impl:individualRequest"/>
			<wsdl:output name="individualResponse" message="impl:individualResponse"/>
		</wsdl:operation>
	</wsdl:portType>
	<wsdl:binding name="IdentifySoapBinding" type="impl:Identify">
		<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
		<wsdl:operation name="individual">
			<wsdlsoap:operation/>
			<wsdl:input>
				<wsdlsoap:body use="literal"/>
			</wsdl:input>
			<wsdl:output>
				<wsdlsoap:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>
	<wsdl:service name="IdentifyService">
		<wsdl:port name="Ident" binding="impl:IdentifySoapBinding">
			<wsdlsoap:address location="http://localhost:8080/gce/services/Ident"/>
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by TCS (TCS) -->
<xsd:schema xmlns:tnsidindividual="http://domain.cityofchicago.gis.gce/versions/1.0/idindividual"; 
					   xmlns:idcommon="http://domain.cityofchicago.gis.gce/versions/1.0/idcommontypes"; 
					   xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
					   targetNamespace="http://domain.cityofchicago.gis.gce/versions/1.0/idindividual"; elementFormDefault="qualified">
	<xsd:import namespace="http://domain.cityofchicago.gis.gce/versions/1.0/idcommontypes"; schemaLocation="idcommontypes.xsd"/>
	<xsd:complexType name="idindividualinputs">
		<xsd:sequence>
			<xsd:element name="address" type="xsd:string"/>
			<xsd:element name="geoCodingtarget" type="xsd:int"/>
			<xsd:element name="targetlayers" type="xsd:string"/>
			<xsd:element name="returnflag" type="xsd:boolean"/>
			<xsd:element name="locatortype" type="xsd:boolean"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- inputs -->
	<xsd:element name="individual" type="tnsidindividual:idindividualinputs"/>
	<!-- outputs -->
	<xsd:element name="geocode" type="idcommon:geocode"/>
</xsd:schema>
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:common="http://domain.cityofchicago.gis.gce/versions/1.0/idcommontypes"; 
					   xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
					   targetNamespace="http://domain.cityofchicago.gis.gce/versions/1.0/idcommontypes"; 
					   elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:complexType name="layer">
		<xsd:sequence>
			<xsd:element name="record" type="common:record" maxOccurs="unbounded" />	
		</xsd:sequence>
		<xsd:attribute name="name" use="required" type="xsd:string"/>
	</xsd:complexType>
	<xsd:complexType name="record">
		<xsd:sequence>
			<xsd:element name="column" type="common:column" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>	
	<xsd:complexType name="column">
	   <xsd:sequence>
		   <xsd:element name="value" type="xsd:string" />
	   </xsd:sequence>
	   <xsd:attribute name="name" use="required"  type="xsd:string"/>
	</xsd:complexType>
	<xsd:complexType name="outputs">
		<xsd:sequence>
			<xsd:element name="layer" type="common:layer" minOccurs="0" maxOccurs="unbounded" />
			<xsd:element name="message" type="xsd:string" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="geocode">
		<xsd:sequence>
			<xsd:element name="outputs" type="common:outputs"/>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>

Attachment: IdentifySoapBindingImpl.java
Description: IdentifySoapBindingImpl.java



Reply via email to