http://www.gpsprogramys.co.in/com.gps.quiz/programService?wsdl
Note : When I was putting WSDL inside webapp folder wsdl/ then original WSDL was not published
Solution :
Please keep WSDL and XSD inside the WEB-INF folder shown as below....
http://www.gpsprogramys.co.in/com.gps.quiz/programService?wsdl
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"xmlns:tns="http://www.service.gps.com/model" name="ProgramsService" targetNamespace="http://www.service.gps.com/model">
<wsdl:types>
<xsd:schema>
<xsd:import namespace="http://www.service.gps.com/model" schemaLocation="http://localhost:5050/com.gps.quiz/programService?xsd=1"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="AddProgramRequest">
<wsdl:part name="addProgramInput" element="tns:addProgramRequest"/>
</wsdl:message>
<wsdl:message name="AddProgramResponse">
<wsdl:part name="return" element="tns:addProgramResponse"/>
</wsdl:message>
<wsdl:message name="FindProgramsRequest">
<wsdl:part name="FindProgramsInput" element="tns:findProgramsRequest"/>
</wsdl:message>
<wsdl:message name="FindProgramsResponse">
<wsdl:part name="return" element="tns:findProgramsResponse"/>
</wsdl:message>
<wsdl:portType name="ProgramService">
<wsdl:operation name="addProgram">
<wsdl:input message="tns:AddProgramRequest"/>
<wsdl:output message="tns:AddProgramResponse"/>
</wsdl:operation>
<wsdl:operation name="findPrograms">
<wsdl:input message="tns:FindProgramsRequest"/>
<wsdl:output message="tns:FindProgramsResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ProgramServiceBinding" type="tns:ProgramService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="addProgram">
<wsdl:documentation>protocol and style used to invoke this method</wsdl:documentation>
<soap:operation soapAction="http://www.service.gps.com/model/addProgram"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="findPrograms">
<wsdl:documentation>protocol and style used to invoke this method</wsdl:documentation>
<soap:operation soapAction="http://www.service.gps.com/model/findPrograms"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ProgramSoapService">
<wsdl:port name="ProgramServicePort" binding="tns:ProgramServiceBinding">
<soap:address location="http://localhost:5050/com.gps.quiz/programService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
No comments:
Post a Comment