axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SivaKumarl <sivakum...@naradaproducts.com>
Subject Re: Generating mutiple port names while generating WSDL using Axis2 Code generator eclipse plugin
Date Wed, 21 Oct 2009 12:17:34 GMT

Hi Chinmoy,

          Thanks for your reply,what i understand is for security reasons it
generates different portname, i have one by default which port name it will
takes.

Cheers
--------
Siva kumar


Chinmoy Chakraborty wrote:
> 
> Once I aksed this question and below is the answer I got from a developer:
> 
> *Since Axis2 1.4 we have the concept of dispatching request to the
> endpoints
> not just to the service. The reason is that security scenarios could be
> configured on a endpoint level and hence we need to know the exact
> endpoint
> a request is headed to in order to apply the security scenario
> accordingly.*
> *This is the reason you see the unique addresses for each endpoint and it
> takes the form serviceName.endpointName.*
> 
> In your case "http://localhost:8080/axis2/services/HelloWorld" should
> work.
> 
> Chinmoy
> 
> On Wed, Oct 21, 2009 at 1:05 PM, SivaKumarl
> <sivakumarl@naradaproducts.com>wrote:
> 
>>
>> 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.
>>
>>
> 
> 

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


Mime
View raw message