Hi everyone,

I have a wsdl2 file like given below:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl2:description xmlns:wsdl2="http://www.w3.org/ns/wsdl";
        xmlns:tns="http://services.rest.myproject.com";
xmlns:wsoap="http://www.w3.org/ns/wsdl/soap";
        xmlns:wrpc="http://www.w3.org/ns/wsdl/rpc";
xmlns:ns1="http://org.apache.axis2/xsd";
        xmns:dc="http://model.rest.myproject.com/xsd";
        ...
        
<wsdl2:types>
<xs:schema xmlns:ax25="http://model.rest.myproject.com/xsd";
                        xmlns:ax23="http://exception.rest.datacert.com/xsd";
                        attributeFormDefault="qualified" 
elementFormDefault="qualified"
                        targetNamespace="http://services.rest.myproject.com";>
       <xs:import namespace="http://model.rest.myproject.com/xsd";
schemaLocation="Country.xsd"/>
....
....
<wsdl2:operation name="getCountry"
                        style="http://www.w3.org/ns/wsdl/style/rpc"; 
wrpc:signature="name #in
return #return "
                        pattern="http://www.w3.org/ns/wsdl/in-out";>
                        <wsdl2:input element="ns:getCountry" 
wsaw:Action="urn:getCountry" />
                        <wsdl2:output element="ns:getCountryResponse"
                                wsaw:Action="urn:getCountryResponse" />
                        <wsdl2:outfault ref="tns:PersonNotFoundException"
                                
wsaw:Action="urn:getCountryPersonNotFoundException" />
                </wsdl2:operation>

Country.xsd
-----------
This is the element that i have in my xsd file.
<xs:element name="getCountry">
        <xs:complexType>
                <xs:sequence>
                        <xs:element minOccurs="0" name="name" nillable="true"
                                type="xs:string" />
                </xs:sequence>
        </xs:complexType>
</xs:element>

I want to refer my "getCountry" element in my "wsdl2:input" like this 
<wsdl2:input element="dc:getCountry" wsaw:Action="urn:getCountry" />

I was able to import the xsd into the existing schema. and was able to refer
it from that schema. But was not able to find a solution 
to use in the above way. Kindly help me .
-- 
View this message in context: 
http://old.nabble.com/import-xsd-into-wsdl2-tp27535425p27535425.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to