David_B 0 Newbie Poster

Hi All,
New here and very new to .Net. I am currently trying to learn about consuming web services within .net and am having trouble with the following example.

I have the WSDL file to contact a vehicle look up web service which based on the selection in a drop down box, will populate a series of other other drop down boxes based on the previous drop down selection. i.e.

- I have a list of vehicle makes stored locally. I select the make (i.e. Ford)
- This then needs to call the web service 'Search Models' which based on the id passed, will return all the models for selected make.
- This continues for a few more drop down boxes, having choosen model, a web service is called to populate the next box which displays the available fuel types for that model and so on.

This is the documentation i have for the search models method: public List<DropDownOption> SearchModels(string pCode, string pID) Parameter pCode is your dealer access ID.
Parameter pID represents MakeID. E.g. VW has the GUID ‘be1741ed-4838-439b-9439-93fc3fc80e7a’.
The method returns a list of models related to the MakeID. The list consists of repeating DropDownOption elements which contain an ID and Desc(Model Name). The ID element is a pipe delimited value made up of ‘MakeID|ModelID’.

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfDropDownOption xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns="http://celtictuning.co.uk/dealerlookup">
  <DropDownOption>
    <ID>be1741ed-4838-439b-9439-93fc3fc80e7a|1e4834c8-7c88-4330-8346-fc0bb8f9546d</ID>
    <Desc>Beetle</Desc>
  </DropDownOption>
  <DropDownOption>
    <ID>be1741ed-4838-439b-9439-93fc3fc80e7a|a57d866f-2743-4b6d-8cd8-68fb1157e8d1</ID>
    <Desc>Bora</Desc>
  </DropDownOption>
  .
  .
  .
</ArrayOfDropDownOption>

Any help you could give me would be much appreciated. If you need to see the contents of the WSDL file just let me know.

On a side note, if anyone can recommend any resources for 'web services and .net for the beginner' then that would also be a help.

Thanks,
Dave

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.