Post a Job  |   Ask a Question?   |   Already registered? login or register
Munendra Kumar
24/01/2016 11:54 AM

Overloaded Method using Jax-RPC(SI),Contract Last Approch

Hello guys , I am trying to implement method overloading in Jax-Rpc(SI) using contract last approch and i am using SoapUi for testing it,when i pass the wsdl url on SoapUi, it generates two method with two different names,but in SEI interface its having a same name.So my que is can we say this is method overloading or not?
Spam    4 Comments

24/01/2016 13:29:20
Yup. Observe. Method name append with some value like 1 or 2 based on overloading method

24/01/2016 22:19:30
I thnk we can not overload methods in contract last approch. Bt, it is possible in contract first approch. I am uploading sample wsdl.. That may helpful to u. <?xml version="1.0" encoding="UTF-8"?> <definitions name="ArthInfoService" targetNamespace="http://targetNm/arth/service" xmlns:tns="http://targetNm/arth/service" xmlns="" xmlns:xsd="" xmlns:soap=""> <types /> <message name="ArthInfo_add"> <part name="a" type="xsd:int" /> <part name="b" type="xsd:int" /> </message> <message name="ArthInfo_addResponse"> <part name="result" type="xsd:int" /> </message> <message name="ArthInfo_add2"> <part name="a" type="xsd:int" /> <part name="b" type="xsd:int" /> <part name="c" type="xsd:int" /> </message> <message name="ArthInfo_add2Response"> <part name="result" type="xsd:int" /> </message> <portType name="ArthInfo"> <operation name="add" parameterOrder="a b"> <input name="AddTwo" message="tns:ArthInfo_add" /> <output name="AddTwoResponse" message="tns:ArthInfo_addResponse" /> </operation> <operation name="add" parameterOrder="a b c"> <input name="AddThree" message="tns:ArthInfo_add2" /> <output name="AddThreeResponse" message="tns:ArthInfo_add2Response" /> </operation> </portType> <binding name="ArthInfoBinding" type="tns:ArthInfo"> <soap:binding transport="" style="rpc" /> <operation name="add"> <soap:operation soapAction="http://targetNm/arth/service#add1" /> <input name="AddThree"> <soap:body encodingStyle="" use="encoded" namespace="http://targetNm/arth/service" /> </input> <output name="AddThreeResponse"> <soap:body encodingStyle="" use="encoded" namespace="http://targetNm/arth/service" /> </output> </operation> <operation name="add"> <soap:operation soapAction="http://targetNm/arth/service#add2" /> <input name="AddTwo"> <soap:body encodingStyle="" use="encoded" namespace="http://targetNm/arth/service" /> </input> <output name="AddTwoResponse"> <soap:body encodingStyle="" use="encoded" namespace="http://targetNm/arth/service" /> </output> </operation> </binding> <service name="ArthInfoService"> <port name="ArthInfoPort" binding="tns:ArthInfoBinding"> <soap:address location="REPLACE_WITH_ACTUAL_URL" /> </port> </service> </definitions>

25/01/2016 10:25:19
Thank you for reply bro,Is there any way to overloading in CL Approch

25/01/2016 11:56:04
Yup take 2 overloading method in Sei interface. interface BookWeb { String getPrice (String isbnNo); String getPrice (String bookName); }

Languages :