Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2005

Tip: Looking for answers? Try searching our database.

How to test performance using the ACT

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alexis - 27 Jan 2005 21:29 GMT
Hello,
I have developted a webservice application. The application has a few
webservices each webservice with their own webmethods of course.
I want to measure the performance of my site. I look at the Application
Center Test of Visual Studio Enterprice edition, but can not make it to work
with the web services. I can't figure out how to call the web services from
an ACT test. It seems it only can work with aspx pages not web services asmx
(where you have to call the web method)
Eventhought you can create you own ACT projects from Visual Studio the only
laguages supported are vbscript and javascript.
Help!!!
Does any of you have tested performance on webservices?
/Alexis
Geoman - 30 Jan 2005 21:21 GMT
Hello

There are two ways you can do it.

Case 1:  

1. Create a proxy class DLL in C# or any .NET or COM.
2. If its C# or .NET regiter (gacutil.exe )it in GAC, by make it as interop
using regasm.exe.
3. Now write a script in ACT to instansite the object and call the method.

Case 2:

1. In ACT create a web request.
2. Build the soap request ( you can lauch the .asmx is IE and get the SOAP
request format"
3. now post the request e.g like below



Set oConnection = Test.CreateConnection(serviceServer, servicePort, false)
If (oConnection is Nothing) Then
    Test.Trace "Error: Unable to create connection to " & serviceServer & ":" &
servicePort
    Test.StopTest
Else
    Set oRequest             = Test.CreateRequest
    oRequest.Path         = serviceUrl
    oRequest.Verb             = "POST"
   oRequest.HTTPVersion     = "HTTP/1.1"
   oRequest.EncodeBody     = false
    Set oHeaders = oRequest.Headers
    '-------------------------------------------------------------------------
    '   Add Request header information
    '-------------------------------------------------------------------------
    oHeaders.RemoveAll
       oHeaders.Add "Accept", "image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*"
       oHeaders.Add "Accept-Language", "en-us"
       oHeaders.Add "Content-Type", "text/xml; charset=utf-8"
       oHeaders.Add "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.2; H010818; .NET CLR 1.0.3705; .NET CLR 1.1.4322)"
       oHeaders.Add "Host", "(automatic)"
       oHeaders.Add "Pragma", "no-cache"
       oHeaders.Add "Cookie", "(automatic)"
       oHeaders.Add "Content-Length", "(automatic)"
    oHeaders.Add "SOAPAction",  soapAction
    '------------------------------------------------------------------------------------------------------------
    '  Create the Request in memory
    '------------------------------------------------------------------------------------------------------------
        Dim ReqStr
        ReqStr =    ""
        ReqStr =    ReqStr + "<?xml version=""1.0"" encoding=""utf-8""?>"
ReqStr =    ReqStr + "<soap:Envelope
xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
xmlns:xsd=""http://www.w3.org/2001/XMLSchema""
xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">
 <soap:Body>
   <HugeText2500 xmlns=""http://tempuri.org/"" />
 </soap:Body>
</soap:Envelope>"
Set oResponse = oConnection.Send(oRequest)
 
  If (oResponse is Nothing) Then
............................

Cheers :)
Geoman

> Hello,
> I have developted a webservice application. The application has a few
[quoted text clipped - 9 lines]
> Does any of you have tested performance on webservices?
> /Alexis
Alexis - 31 Jan 2005 20:19 GMT
Hello and Thank you.
One question thought.
in your samle code is ReqStr the Body of the Request?

> Hello
>
[quoted text clipped - 78 lines]
> > Does any of you have tested performance on webservices?
> > /Alexis
Geoman - 01 Feb 2005 03:55 GMT
Its the whole request which would be send to the server. if you look closely
you can see the body.......

<soap:Body>
> >     <HugeText2500 xmlns=""http://tempuri.org/"" />
> >   </soap:Body>
> > </soap:Envelope>"

thanks
Geo

> Hello and Thank you.
> One question thought.
[quoted text clipped - 82 lines]
> > > Does any of you have tested performance on webservices?
> > > /Alexis

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.