Hi friends,
          I am little bit cofusing the way WSDL is generating by Axis2 code
generator eclipse plugin, here it is generating three ports , kindly explain
me why this is happening and how this port name will be use, please find the
below sample xml code

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:ns1="http://org.apache.axis2/xsd";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:xsd="http://test.ycs.com"; xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
targetNamespace="http://test.ycs.com";>
    <wsdl:types>
        <xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified" targetNamespace="http://test.ycs.com";>
            <xs:element name="hello">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="val" nillable="true"
type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="helloResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return"
nillable="true" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="helloRequest">
        <wsdl:part name="parameters" element="xsd:hello"/>
    </wsdl:message>
    <wsdl:message name="helloResponse">
        <wsdl:part name="parameters" element="xsd:helloResponse"/>
    </wsdl:message>
    <wsdl:portType name="HelloWorldPortType">
        <wsdl:operation name="hello">
            <wsdl:input message="xsd:helloRequest" wsaw:Action="urn:hello"/>
            <wsdl:output message="xsd:helloResponse"
wsaw:Action="urn:helloResponse"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="HelloWorldSoap11Binding"
type="xsd:HelloWorldPortType">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document"/>
        <wsdl:operation name="hello">
            <soap:operation soapAction="urn:hello" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="HelloWorldSoap12Binding"
type="xsd:HelloWorldPortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document"/>
        <wsdl:operation name="hello">
            <soap12:operation soapAction="urn:hello" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="HelloWorldHttpBinding"
type="xsd:HelloWorldPortType">
        <http:binding verb="POST"/>
        <wsdl:operation name="hello">
            <http:operation location="HelloWorld/hello"/>
            <wsdl:input>
                <mime:content type="text/xml" part="hello"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="hello"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="HelloWorld">
        <wsdl:port name="HelloWorldHttpSoap11Endpoint"
binding="xsd:HelloWorldSoap11Binding">
            <soap:address
location="http://localhost:8080/axis2/services/HelloWorld"/>
        </wsdl:port>
        <wsdl:port name="HelloWorldHttpSoap12Endpoint"
binding="xsd:HelloWorldSoap12Binding">
            <soap12:address
location="http://localhost:8080/axis2/services/HelloWorld"/>
        </wsdl:port>
        <wsdl:port name="HelloWorldHttpEndpoint"
binding="xsd:HelloWorldHttpBinding">
            <http:address
location="http://localhost:8080/axis2/services/HelloWorld"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

 In above xml there are three portnames
HelloWorldHttpSoap11Endpoint,HelloWorldHttpSoap12Endpoint and
HelloWorldHttpEndpoint.

 Which port name will use by default.

Thanks in Advance.
Siva

-- 
View this message in context: 
http://www.nabble.com/Generating-mutiple-port-names-while-generating-WSDL-using-Axis2-Code-generator-eclipse-plugin-tp25987803p25987803.html
Sent from the Axis - Dev mailing list archive at Nabble.com.

Reply via email to