axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajivgup <richa...@gmail.com>
Subject Create JAVA interface of a WSDL which imports another WSDL.
Date Thu, 22 Jan 2009 15:17:37 GMT

Hi, I'm a new user with Axis2 and wsdl. My requirement is, I have got a WSDL
from outside say mp.wsdl which I cannot modify, the wsdl came with xsd say
mp.xsd. I want to extend this WSDL with my extra operations. I have created
my wsdl say nt.wsdl and imported the mp.wsdl. I have also created nt.xsd to
define my additional datatypes and elements and imprted mp.xsd in the
ntap.xsd. I have defined extra messages and port types and wanted to
generate Java Interface using wsdl2java. On wsdl:service I have tried
multiple ports and multiple service but it generates Java Interface methods
for the operations defined in mp.wsdl and does not generate interface
methods for operation defined in my nt.wsdl. I want operations from both
wsdl should defined in single interface file as interface method. nt.wsdl is
given below:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
				  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
				  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
				  targetNamespace="http://ntapapi.esx.mpiow.netapp.com" 
				  xmlns:wsdl1="http://mp.esx.mpiow.netapp.com"
				  xmlns:urn="http://nt.esx.mpiow.netapp.com">

    <wsdl:import namespace="http://mp.esx.mpiow.netapp.com"
location="mp.wsdl"/>
    <wsdl:types>
    	<xsd:schema attributeFormDefault="qualified"
elementFormDefault="qualified"
    		targetNamespace="http://nt.esx.mpiow.netapp.com"
    		xmlns:xs2="http://mp.esx.mpiow.netapp.com/xsd"
    		xmlns:xs1="http://nt.esx.mpiow.netapp.com/xsd">

    		 <xsd:import namespace="http://nt.esx.mpiow.netapp.com/xsd"
schemaLocation="ntapapi.xsd"></xsd:import>
    		
    		<xsd:element name="Ntap_MpGetIoStats">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="oid" type="xs2:MP_OID"/>
						<xsd:element name="pIOStats" type="xs1:NTAP_MP_IO_STATS"/>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
    	</xsd:schema>
    </wsdl:types>

	<wsdl:message name="Ntap_MpGetIoStats">
		<wsdl:part name="parameter" element="urn:Ntap_MpGetIoStats"></wsdl:part>
	</wsdl:message>

	<wsdl:portType name="ntapapi">
		<wsdl:operation name="Ntap_MpGetIoStats">
			<wsdl:input message="urn:Ntap_MpGetIoStats"/>
			<wsdl:output message="wsdl1:MP_STATUS_MSG"/>
		</wsdl:operation>
	</wsdl:portType>

	<wsdl:binding name="Ntapapi" type="urn:ntapapi">
		<soap:binding style="document"
			transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="Ntap_MpGetIoStats">
			<soap:operation soapAction="" style="document" />
			<wsdl:input>
				<soap:body use="literal" />
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>

	<wsdl:service name="Ntapapis2">
    	<wsdl:port name="port1" binding="urn:Ntapapi">
    		<soap:address location="http://www.ntapapi" wsdl:required="true"/>
    	</wsdl:port>
	</wsdl:service>
	<wsdl:service name="Ntapapis1">
    	<wsdl:port name="port2" binding="wsdl1:mpapiBinding">
    		<soap:address location="http://www.mpapi" wsdl:required="true"/>
    	</wsdl:port>
	</wsdl:service>	
</wsdl:definitions>

Any help will be greatly appreciated.

Rajiv.
-- 
View this message in context: http://www.nabble.com/Create-JAVA-interface-of-a-WSDL-which-imports-another-WSDL.-tp21606258p21606258.html
Sent from the Axis - User mailing list archive at Nabble.com.


Mime
View raw message