Published Wednesday, February 04, 2004 9:27 AM by mtaulty

BizTalk Server 2004 & Socket Adapters

I started writing a small sample adapter for BizTalk 2004 to talk plain old TCP sockets. I've posted the sample here - feel free to take it and experiment with it but it's completely without any kind of implied warranty or rights.

At this point this adapter supports sending data down TCP connections to a socket that is configured by hostname and port number. You can also configure whether the socket should be "kept alive" in between message sends or whether it should be closed and re-opened each time it's used.

The adapter also has configuration for whether it should be performing its work (it uses NetworkStreams) in a synchronous or asynchronous manner but the asynch support hasn't been written just yet.

I'll update this over the next few days - items to be added are likely to be;

1) Decent handling for receiving sockets being closed on us.

2) Asynchronous support.

3) Receive functionality.

4) Anything else that comes to mind as I go along.

 

# re: BizTalk Server 2004 & Socket Adapters @ Thursday, April 29, 2004 3:47 AM

hi
thank you for your good biztalk adapter
can you please send me the new version of this in this adress nchouk@fnac.com

thank

mtaulty

# re: BizTalk Server 2004 & Socket Adapters @ Thursday, July 01, 2004 2:07 PM

How do you install the socket adapter.

many thanks,
Rebecca

mtaulty

# re: BizTalk Server 2004 & Socket Adapters @ Friday, July 02, 2004 8:39 AM

Good question in that it's been a while since i looked at it and can't remember :-)

From looking at it briefly, you need to build the sample with Visual Studio 2003 (preferably on your BizTalk box) and then you need to alter the .REG file to reflect the file paths that you've used (so that BizTalk can find the adapter) and then load up that .REG file into the registry.

When you've done that you should be able to go to the BizTalk Server Administration Console and go to the "Adapters" part of the tree and that will let you add the "TCP" or "Sockets" (can't remember) adapter.

Hope that helps - the sample's only 1/2 finished but maybe it'll move you along a little.

mtaulty

# re: BizTalk Server 2004 & Socket Adapters @ Wednesday, March 30, 2005 11:19 AM

Mike, i have two questions:

this socket need one agent or aplication listen in the port request? Is possible the BizTalk adapter receive port be active in the comunication cicle ?

tks in advance
José

mtaulty

# re: BizTalk Server 2004 & Socket Adapters @ Tuesday, October 18, 2005 10:10 PM

pls can u send the new version of this adapter and how to register it.

thank u very much

mtaulty

# re: BizTalk Server 2004 & Socket Adapters @ Sunday, April 30, 2006 7:02 AM

Check this sample adapter at
http://biztalkblogs.com/nishil/archive/2006/04/16/478.aspx

mtaulty