EDN Admin
Well-known member
Hi
I am given the below SOAP service request by my development team to test it.Though i have knowledge of C#.Net , i never tested a webservice programmatically.
POST /WS2/BookingService.asmx HTTP/1.1<br/>
Host: http://www.flights.in www.flights.in <br/>
Content-Type: text/xml; charset=utf-8<br/>
Content-Length: length<br/>
SOAPAction: " http://www.flights.in/WS2/GetRouteDetails http://www.flights.in/WS2/GetRouteDetails "
<?xml version="1.0" encoding="utf-8"?><br/>
<soap:Envelope xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd=" http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema " xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/ <br/>
<soap:Body><br/>
<GetRouteDetails xmlns=" http://www.flights.in/WS2/ http://www.flights.in/WS2/ <br/>
<authentication><br/>
<LoginID>string</LoginID><br/>
<Password>string</Password><br/>
</authentication><br/>
<RouteId>int</RouteId><br/>
<DateOfJourney>dateTime</DateOfJourney><br/>
<PartnerId>string</PartnerId><br/>
</GetRouteDetails><br/>
</soap:Body><br/>
</soap:Envelope>
So I would like to know how to call the above service.The inputs/place holders the above service need are loginid,password,routeid,dateofjourney and partnerid.
Can anyone give me the sample code to call the above service .Any help would be greatly appreciated.
Thanks in advance.
<hr class="sig Regards Krrishna
View the full article
I am given the below SOAP service request by my development team to test it.Though i have knowledge of C#.Net , i never tested a webservice programmatically.
POST /WS2/BookingService.asmx HTTP/1.1<br/>
Host: http://www.flights.in www.flights.in <br/>
Content-Type: text/xml; charset=utf-8<br/>
Content-Length: length<br/>
SOAPAction: " http://www.flights.in/WS2/GetRouteDetails http://www.flights.in/WS2/GetRouteDetails "
<?xml version="1.0" encoding="utf-8"?><br/>
<soap:Envelope xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd=" http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema " xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/ <br/>
<soap:Body><br/>
<GetRouteDetails xmlns=" http://www.flights.in/WS2/ http://www.flights.in/WS2/ <br/>
<authentication><br/>
<LoginID>string</LoginID><br/>
<Password>string</Password><br/>
</authentication><br/>
<RouteId>int</RouteId><br/>
<DateOfJourney>dateTime</DateOfJourney><br/>
<PartnerId>string</PartnerId><br/>
</GetRouteDetails><br/>
</soap:Body><br/>
</soap:Envelope>
So I would like to know how to call the above service.The inputs/place holders the above service need are loginid,password,routeid,dateofjourney and partnerid.
Can anyone give me the sample code to call the above service .Any help would be greatly appreciated.
Thanks in advance.
<hr class="sig Regards Krrishna
View the full article