Options

Ants Load record Parsing Issue

Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
edited July 23, 2004 12:33PM in ANTS Load
Hi Jeff,

In ANTS Load, you're meant to test webservices through the 'Test
Web Services' part of the wizard rather than 'test web sites'. If you test a
web service, you add a web reference to the service and ANTS Load's script
will be more like a program:

Protected Overrides Sub Run()

'The web service is located at
http://localhost/antsloadtutorialwebser ... oyees.asmx

'Create an instance of the proxy.

Dim webService As New Employees

'Uncomment and complete the following code to test the methods.

'The web service contains 6 web methods

'webService.GetEmployees

'webService.GetLocations

'webService.GetEmployeeDetails

'webService.GetEmployeePhotograph

'webService.IsEmployeeAuthorisedForLocation

'webService.SendInstantMessage

'Random think time of between 1 and 2 seconds

RandomSleep(1000, 2000)

End Sub


I could imagine that if you opted to test a web site and gave it the URL of
a webservice that ANTS Load could get mighty confused! That's probably what
happened, because web site tests use the AddPostData() and GET() methods and
webservice tests do not.


Please let me know if I can clear anything up further for you!



"jlowell" <jlowell@learning.com> wrote in message
news:ps6UPnDcEHA.1184@server53...
> Hi,
>
> I'm using the record feature of ANTS Load to test .net web services, but
am
> unable to run the script due to errors that seem to happen during the
> capture.
>
> Here is a snippet of what gets posted:
>
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
> xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
> <soap:Body>
> <GetCourseListForTeacher
> xmlns="http://www.learning.com/namespace/4.0/GetCourseList"&gt;
> <teacherId>string</teacherId>
> </GetCourseListForTeacher>
> </soap:Body>
> </soap:Envelope>
>
> This on the other hand is how it's being captured:
>
> WebClient.HttpRequest.AddPostData("<?xml version", ""1.0" encoding",
false)
>
> WebClient.HttpRequest.AddPostData(""utf-8"?>
>
> <SOAP-ENV:Envelope xmlns:xsi",
""http://www.w3.org/2001/XMLSchema-instance&quot;
> xmlns:xsd", false)
>
> WebClient.HttpRequest.AddPostData(""http://www.w3.org/2001/XMLSchema&quot;
> xmlns:SOAP-ENV",
> ""http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body&gt;
>
>
>
> The line breaks are as they appear in the editor as well as the use of
> quotes. Does anyone know why the information is being parsed by Ant in
this
> manner and how what I can do to correct it in the editor?
>
>
>
> Thanks for the time,
>
> -Jeff
>
>
This discussion has been closed.