Yes it does have a schema. www.airportslots.org/stationsupport/stationdata.asmx?wsdl GetStationAll is fine. I get what I want and can read the data (try AMS) SetStationAll is not fully working but it should ask for a structure. What I'm having fun with is the object required to send. I'm using the same format for the calls as the web services in task manager What you have below is the c# code. I'm ok with that. What I'm after is the VFP code to create the object required. Al
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Stephen Russell Sent: 14 August 2012 17:27 To: [email protected] Subject: Re: VFP9 web service call On Tue, Aug 14, 2012 at 9:26 AM, Allen <[email protected]> wrote: > Hi Steve > I assume the request does send the object. Up to now I have been doing > the client in C# so this is an attempt in VFP. I'm using the code from > the web service in task manager and getting a record is fine. Now I > want to send it back. So how do I get the object I need to fill. Note > I am sending a record not receiving in this case. ---------------- The record you receive has some sort of schema. Or is it just a single value String or ??? To present data to the service I bet that they are expecting you to load up an object and pass it via SOAP to them. In C# it would be like this. MyService ws = new MyService(); // get record you talk about here Int32 flightNum = 19844; String carrier = "Delta"; var stuffBack = ws.getThatRecord(carrier, flightNum); stuffBack could be an array or a simple string. Now for you to present data back to them you need to new up the object they are expecting to receive. then fill the object and finally pass it to them. Is this an old school web service or a newer WCF? The WCF will present you with all the schemas you need for consumption. ws.potentialNewRoute pnr = new potentialNewRoute(); pnr.carrier pnr.flightNumber pnr.departureTime pnr.arrivalTime As well as all the other stuff they need. You then pass the pnr back to the method they expose for testing potential new routes. ws.Route nr = ws.verifyPotentialNewRout(pnr); << This may be overloaded with 3,4,5 other objects I am just showing the simple pass here. Problem I see from VFP is how to work with the various data types that C# could present. You see an array but it says that it is a List<> I have heard that VFP9 can do collections now so that may be what you need to do with use of these objects going back and forth. They what type of message is the WS sending you? Straight up soap or json or maybe a hybrid they made themselves? -- Stephen Russell Sr. Analyst Ring Container Technology Oakland TN 901.246-0159 cell [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/002801cd7a32$e7a6bc70$b6f43550$@com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

