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 / November 2005

Tip: Looking for answers? Try searching our database.

Routing messages through a tcp trace app in CONFIG

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Julie Lerman - 20 Nov 2005 21:22 GMT
In my client application, I can change the destination of a proxy to point
to a sniffer to read the binary coming over the wire and then have it send
the message back to the correct destination with

wsproxy.Destination=new EndpointReference(new
Uri("http://localhost:1932/MyService/MyService.asmx), new
Uri("http://localhost:8080/MyService/MyService.asmx))

(where 1932 is the correct port and messages traversing between 8080 and
1932 will be read into my sniffer... using www.pocketsoap.com/tcptrace)

However, I am doing this in code on the client side, which is not a flexible
method of implementing the trace on an as needed basis.

How can I do this declaritively, in config or even with routing (though that
doesn't make sense - as I want my message to get intercepted then sent on
it's way rather than totally rerouted).

Any ideas? (In WSE, not WCF where I know it can be done...)

Thanks

julie
Pablo Cibraro - 21 Nov 2005 15:19 GMT
Hi Julie,
I'm not sure if this can help you.
The product SoapScope does something similar, it registers a HttpProxy in
order to intercept all http messages.

<system.net>

 <!-- this allows the routing for the test tool support... -->

 <defaultProxy>

     <proxy proxyaddress="http://localhost:5049" bypassonlocal="false" />

     <module type="Mindreef.Net.WebProxyEx, MrTools, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=90f6595dbbe888f3" />

 </defaultProxy>

</system.net>

As you can see, the proxy is specified declaratively in the config file. I
don't know a way of doing the same in WSE.

Regards,

Pablo Cibraro

http://weblogs.asp.net/cibrax

http://www.lagash.com

> In my client application, I can change the destination of a proxy to point
> to a sniffer to read the binary coming over the wire and then have it send
[quoted text clipped - 19 lines]
>
> julie
Julie Lerman - 22 Nov 2005 02:11 GMT
thanks - perhaps I'll try it out with SoapScope. It's mostly curiousity at
this point since I am only using the TCP Trace for demos but really it's
just not right that I have to compile it into the client app. Then i can't
easily turn it on and off if I really wanted to in production.

This can be done in WCF of course ;-), but I was curious about it for WSE.

If you are curious Pablo, check out this blog post and the comment from
Christian Weyer who loves to tease me about WSE now that Indigo is so close.
(http://www.thedatafarm.com/blog/CommentView.aspx?guid=2e959b4e-68a0-4819-b133-74
0e851406d1


julie

> Hi Julie,
> I'm not sure if this can help you.
[quoted text clipped - 50 lines]
>>
>> julie

Rate this thread:







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.