How do consume web service using VS.NET 2003 in VB
Hello.
I'm using Visual Studio.NET Enterprise Architect 2003. I want to be able to request a web service using VB and have it return a message.
I used the walkthrough "Accessing an XML Web Service Using Visual Basic or Visual C#" VB version to create my own project.
Below is the information i got from the web services web site on requesting just one of their operations using SOAP. How do i put this into my VB project ?
Any help would be greatly appreciated.
Thanks,
Tony
=====================================================
GetPeriodMileageData
Returns the mileage data for a vehicle or all vehicles within the specified
date range.
The result dataset consists of the following elements:
Adam
115.1
2001-11-06T15:04:00.0000000-06:00
67873.4
2002-03-26T10:55:00.0000000-06:00
230
2001-10-14T00:00:00.0000000-05:00
2002-10-14T23:59:59.0000000-05:00
ABC Company
4194334
1
1FV6HJBA9XHA219
Test
The test form is only available for requests from the local machine.
SOAP
The following is a sample SOAP request and response. The placeholders shown
need to be replaced with actual values.
POST /xatanetwebservice/export.asmx HTTP/1.1
Host: www.xatanet.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.xatanet.net/XataNetWebService/GetPeriodMileageData"
string
string
string
string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
dataset