I have a webservice running on a machine in the network. I have the wsdl file which looks like this.
I have my code which has constructed the following xml structure.Code:<?xml version="1.0" encoding="UTF-8" ?> - <wsdl:definitions targetNamespace="http://3.89.201.98:8080/pricing/services/urn:ConcatService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://3.89.201.98:8080/pricing/services/urn:ConcatService" xmlns:intf="http://3.89.201.98:8080/pricing/services/urn:ConcatService" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <wsdl:message name="concatStringRequest"> <wsdl:part name="s1" type="xsd:string" /> <wsdl:part name="s2" type="xsd:string" /> </wsdl:message> + <wsdl:message name="concatStringResponse"> <wsdl:part name="concatStringReturn" type="xsd:string" /> </wsdl:message> - <wsdl:portType name="Concat"> - <wsdl:operation name="concatString" parameterOrder="s1 s2"> <wsdl:input message="impl:concatStringRequest" name="concatStringRequest" /> <wsdl:output message="impl:concatStringResponse" name="concatStringResponse" /> </wsdl:operation> </wsdl:portType> - <wsdl:binding name="urn:ConcatServiceSoapBinding" type="impl:Concat"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="concatString"> <wsdlsoap:operation soapAction="" /> - <wsdl:input name="concatStringRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="encoded" /> </wsdl:input> - <wsdl:output name="concatStringResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://3.89.201.98:8080/pricing/services/urn:ConcatService" use="encoded" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:service name="ConcatService"> - <wsdl:port binding="impl:urn:ConcatServiceSoapBinding" name="urn:ConcatService"> <wsdlsoap:address location="http://3.89.201.98:8080/pricing/services/urn:ConcatService" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
I am not able to get any response from the webservice. What are the changes that I need to make?Code:<?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <mns:getToken xmlns:mns="http://3.89.201.98:8080/pricing/services/urn:ConcatService?wsdl"><firststring xsi:type="xsd:string">Star</firststring><password xsi:type="xsd:string">Trek</password></mns:getToken></SOAP-ENV:Body> </SOAP-ENV:Envelope>
Help,
Abhijit




Reply With Quote