...

View Full Version : wsdl help



maltese
02-12-2009, 11:01 AM
Hi

I need to convert this into a WSDL file, any ideas on how to do it?

#!/usr/bin/perl -w

use SOAP::Lite;
my $flightcode = VI856;
my $date = 01/10/2008;
print SOAP::Lite
-> uri('urn:flight')
-> proxy('http://homepages.feis.herts.ac.uk/~3com0109/cgi-bin/flights.cgi')
-> checkSeatAvailability($flightcode, $date)
-> result;


I tried something with XMLSPY but could not understand what was I doing

this is the messed up result


<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 rel. 2 sp2 (http://www.altova.com) by name (EMBRACE) -->
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://homepages.feis.herts.ac.uk/~3com0109/cgi-bin/flights.cgi" targetNamespace="http://homepages.feis.herts.ac.uk/~3com0109/cgi-bin/flights.cgi">
<wsdl:types>
<xs:schema targetNamespace="http://new.webservice.namespace" elementFormDefault="qualified"/>
</wsdl:types>
<wsdl:message name="checkSeatAvailability">
<wsdl:part name="flightcode" type="xs:string"/>
<wsdl:part name="date" type="xs:string"/>
</wsdl:message>
<wsdl:portType name="flight">
<wsdl:operation name="flight">
<wsdl:input message="tns:checkSeatAvailability"/>
<wsdl:output message=""/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="NewBinding" type="tns:flight">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="flight">
<soap:operation soapAction="urn:#NewOperation"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="NewService">
<wsdl:port name="NewPort" binding="tns:NewBinding">
<soap:address location="http://homepages.feis.herts.ac.uk/~3com0109/cgi-bin/flights.cgi"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum