Post a Job  |   Ask a Question?   |   Already registered? login or register
RavindraBabu Mullamuri
06/01/2016 12:57 PM

overiding operations in wsdl how to reslove that problem any one can help me


<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:roe="http://www.ravisoft.org/EmployeeService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:rot="http://www.ravisoft.org/EmployeeService/types" targetNamespace="http://www.ravisoft.org/EmployeeService"> <wsdl:types> <xsd:schema targetNamespace="http://www.ravisoft.org/EmployeeService/types"> <xsd:complexType name="Person"> <xsd:sequence> <xsd:element name="personName" type="xsd:string"/> <xsd:element name="date_Of_Birth" type="xsd:date"/> <xsd:element name="gender" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Job"> <xsd:sequence> <xsd:element name="job_Id" type="xsd:int"/> <xsd:element name="role_Of_Thejob" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="PaymentInfo"> <xsd:sequence> <xsd:element name="personName" type="xsd:string"/> <xsd:element name="salary" type="xsd:float"/> <xsd:element name="job_Role" type="xsd:string"/> <xsd:element name="status" type="xsd:string"/> <xsd:element name="contractType" type="xsd:boolean"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Type"> <xsd:sequence> <xsd:element name="status" type="xsd:string"/> <xsd:element name="contractEmployee" type="xsd:boolean"/> </xsd:sequence> </xsd:complexType> </xsd:schema> </wsdl:types> <wsdl:message name="employee_getPrice1"> <wsdl:part name="person" type="rot:Person"/> <wsdl:part name="job" type="rot:Job"/> </wsdl:message> <wsdl:message name="employee_getPrice1Response"> <wsdl:part name="result" type="rot:PaymentInfo"/> </wsdl:message> <wsdl:message name="employee_getPrice2"> <wsdl:part name="person" type="rot:Person"/> <wsdl:part name="job" type="rot:Job"/> <wsdl:part name="type" type="rot:Type"/> </wsdl:message> <wsdl:message name="employee_getPrice2Response"> <wsdl:part name="result" type="rot:PaymentInfo"/> </wsdl:message> <wsdl:portType name="Employee"> <wsdl:operation name="getPrice"> <wsdl:input message="roe:employee_getPrice1"/> <wsdl:output message="roe:employee_getPrice1Response"/> </wsdl:operation> <wsdl:operation name="getPrice"> <wsdl:input message="roe:employee_getPrice2"/> <wsdl:output message="roe:employee_getPrice2Response"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="EmployeeSOAPBinding" type="roe:Employee"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="getPrice"> <soap:operation soapAction="http://www.ravisoft.org/EmployeeService/getPrice"/> <wsdl:input> <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.ravisoft.org/EmployeeService"/> </wsdl:input> <wsdl:output> <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.ravisoft.org/EmployeeService"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="EmployeeService"> <wsdl:port name="EmployeeSOAPPort" binding="roe:EmployeeSOAPBinding"> <soap:address location="http://www.example.org/"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
Spam    2 Comments

RavindraBabu,Mullamuri
06/01/2016 13:14:43
sorry overloaded methods

jayanarayan,mallick
22/01/2016 23:08:24
hii bro just take each input and output tag of operation inside the soap body with unique name attribute then it will work.like <wsdl:input name="e1"> </wsdl:input> <wsdl:output name="e2"> </wsdl:output> <wsdl:input name="e3"> </wsdl:input> <wsdl:output name="e4"> </wsdl:output> i think try this it will work

Languages :
xml