By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,854 Members | 1,980 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,854 IT Pros & Developers. It's quick & easy.

WSE 2.0 - How could I replay the action recorded in the trace file

P: n/a
I have traced action in XML. Now I would like to replay that. How could I
do that based on this XML trace? I am using soap:tcp between client and
server.
thanks,
Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

I would think you 'd need to write a program that reads the trace log,
separates out each request, caches that somewhere, and then lets you choose
when to send a message. Some messages, such as those with time-outs,
cannot readily be replayed. You'll also want to be careful that you're not
replaying messages against a service that doesn't detect (or that cannot
detect) replays.

A good practice is to build into your application design a way to detect
replays, so that you can replay back the original response to any replayed
request. Like the applicaiton that can read a trace log and turn that into
a replay tool, you have to build this into your systems design or use a
commercial (or not) tool that is designed for this purpose.

If all you want to do is test a development version of your web service by
copy/paste of the XML from the trace log, you might be able to get by with
the tool I use for that purpose. Here's a copy of it - snip it and save it
to a file with an HTML extension, and then double click it, fill in the
right fields, and test away!

Good luck

Dan Rogers
Microsoft Corporation

--------------------------Snip--------------------------------
<HTML>
<SCRIPT LANGUAGE="VBScript">

sub postit(theform)
set xmlhttp = CreateObject("Msxml2.XMLHTTP")
url = "http://" + theform.serverName.value + "/"+ theform.dsmlURL.value
xmlhttp.open "POST", url,false
xmlhttp.setRequestHeader "SOAPAction", theform.soapAction.value
xmlhttp.setRequestHeader "Content-type", "text/xml"
theform.responseEl.value = ""
xmlhttp.send theform.requestEl.value
theform.responseEl.value = xmlhttp.responsetext
xmldoc.src = xmlhttp.responsexml

end sub
</SCRIPT>
<BODY>
<FORM target="_blank" name="myform" METHOD="post" ACTION="postit">
<FONT face="Arial"><FONT color="#000099"><FONT size="7">SOAP Test
Client</FONT><br>
</FONT></FONT>
<P><font face="Verdana" size="2"> Server Name&nbsp; <input type="text"
name="serverName" size="29" value="localhost" id="Text1">
&nbsp;&nbsp; Virtual Directory <input type="text" name="dsmlURL"
size="50" value="AddressService/AddressService.asmx">&nbsp;
<br>
<br>
SOAP Action&nbsp; <INPUT id="Text3" type="text" size="85"
value='GetTestAddress' name="soapAction"></font></P>
<P><FONT face="Verdana" size="2"><B>SOAP&nbsp;request:</B><font
color="#0000ff"> </font>
</FONT>
</P>
<p>
<TEXTAREA fontsize="large" vscroll="true" rows="10" cols="110"
name="requestEl" value="">
</TEXTAREA>
<p>
<INPUT TYPE="button" Value="Send Request" OnClick="postit(myform)">
<P>
<b><font face="Verdana" size="2">The&nbsp;SOAP response: </font></b>
<p>
<TEXTAREA rows="20" cols="110" name="responseEl" value="">
</TEXTAREA>
<br>
<XML id="xmldoc" src="" ></XML>
&nbsp;</FORM>
</P>
</BODY>
</HTML>

---------------------------Snip-------------------------------

--------------------
Thread-Topic: WSE 2.0 - How could I replay the action recorded in the trace
file
thread-index: AcTjyzp7EvsHT6SvSiyaBOXAp63d4A==
X-WBNR-Posting-Host: 63.89.163.150
From: "=?Utf-8?B?bmV3Y29tZXI=?=" <ne******@discussions.microsoft.com>
Subject: WSE 2.0 - How could I replay the action recorded in the trace file
Date: Thu, 16 Dec 2004 15:59:07 -0800
Lines: 4
Message-ID: <90**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8148
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

I have traced action in XML. Now I would like to replay that. How could I
do that based on this XML trace? I am using soap:tcp between client and
server.
thanks,

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.