Home Page › Forums › BizTalk 2004 – BizTalk 2010 › NullAdapter – Tomas – I hope you are checking messages here!
- This topic has 3 replies, 1 voice, and was last updated 9 years, 1 month ago by
community-content.
-
AuthorPosts
-
-
June 16, 2006 at 9:37 PM #13870
I just installed the \”NullAdapter\” by Tomas Restrepo
http://www.winterdom.com/weblog/PermaLink,guid,475.aspx
My purpose is to initialize a correlation before a loop, without sending a real message – just a dummy message. Upto now, we are writing to a dummy flat file directory, and deleting all the files in that directory each night.
I followed Tomas’ install steps and they went amazingly well until the following.
I went to my flat file port, and attempted to change the \”TransportType\” from \”File\” to \”Null\”. That worked, but the question is what if anything to put in the \”Address (URI)\” field.
If I don’t put anything there and click \”Ok\”, I get this message:
[quote:71016a4577]Specify a valid address for the Primary Transport of Send Port \”mySendPortName\”.[/quote:71016a4577]If I click the ellipse (three dots) to the far side of \”Address (URI)\” I get the following error: [quote:71016a4577]\”Value cannot be null. Parameter name: stream\”[/quote:71016a4577].
After that I get the \”Null Transport Properties\” box – all blank, and then get this error when I click \”OK\” from that screen:
[quote:71016a4577] Generated instance document does not comply with schema supplied.
Object reference not set to an instance of an object.
Object reference not set to an instance of an object. [/quote:71016a4577]By the way, I did a change all on the namespace of the NullAdapter to make it consistent with our site standards. I did not change the schema or anything else (I hope).
Is there some other file or place I have to copy .DLL to?
I know with Pipelines there are a couple of important directories such as the \”PipelineComponents\” directory.Thanks for providing this adapter Tomas.
I’d be happy to provide a two or three page install doc with pictures if you want. -
June 19, 2006 at 4:03 PM #13871
Tomas,
Absolutely correct, I changed the Assembly Name but not the default namespace in the Project Properties.After making such a change – do you have to rerun the regedit/merge again?
Also, does the Adapter have to go in the GAC. Do you have to have a separate load directory in the regedit file (other than the GAC). I’m guessing this is kind of like why custom pipelines have to be in a special directory?
[quote:799210c4eb]Regarding the Address (Uri), just put whatever you want like \”null://whatever\”, this is just to give a unique name to the send location (if you use the properties dialog it will add the null:// for you). [/quote:799210c4eb]
Recall that you cannot type directly in the Addres (URI) – you have to click the ellipse and then fill in the next screen. That’s where my problem was. So I typed in null://DummyCorrelationInitPort, then clicked \”OK\”, then the address url had a double null, i.e. \”null://null://DummyCorrelationInitPort\”.
Does this \”name of port\” have to be unique (similar to SQL URLs)?
Thanks again for providing this adapter.
Neal-
June 16, 2006 at 11:27 PM #13872
Hi Neal,
Regarding the Address (Uri), just put whatever you want like \”null://whatever\”, this is just to give a unique name to the send location (if you use the properties dialog it will add the null:// for you).
Regarding the other problems, sounds like you might have accidentally screwed something up during the change. If you changed all the namespaces for the classes, make sure you also changed the default namespace for the project, as that affects embedded resources (in particular it affects the XSD resource).
Notice that also the NS constant in NullAdapterMgmt.cs will affect the namespace used to discover the send location XSD definition file (SendPortSchema.xsd) from an embedded resource (see above), so make sure those match.
That should be enough to get things going, I think, but if you have any other problem, just let me know and we can work it out.
-
June 19, 2006 at 4:12 PM #13873
[quote:85970ac205=\”nwalters\”]Tomas,
Absolutely correct, I changed the Assembly Name but not the default namespace in the Project Properties.After making such a change – do you have to rerun the regedit/merge again?
[/quote:85970ac205]You shouldn’t need to. It was just about getting resources correctly named into the assembly and ensuring the code can load them. You might want to check with Reflector to ensure everything matches, though.
[quote:85970ac205=\”nwalters\”]
Also, does the Adapter have to go in the GAC. Do you have to have a separate load directory in the regedit file (other than the GAC). I’m guessing this is kind of like why custom pipelines have to be in a special directory?
[/quote:85970ac205]The way the regedit file is configured, you can just deploy it to a directory of your choosing, but make sure the location matches in the regedit file when you register the adapter. Also, note that whatever is in the registry is copied over to the BizTalk MgmtDb when you register the adapter with the Management console, so changing the registry after that won’t do anything unless you remove the adapter and add it back again.
That said, there are ways to configure the adapter registration so that it is loaded from the GAC instead of from a directory. I don’t remember exactly how it goes, but I think the documentation mentions it.
[quote:85970ac205=\”nwalters\”]
Recall that you cannot type directly in the Addres (URI) – you have to click the ellipse and then fill in the next screen. That’s where my problem was. So I typed in null://DummyCorrelationInitPort, then clicked \”OK\”, then the address url had a double null, i.e. \”null://null://DummyCorrelationInitPort\”.
[/quote:85970ac205]
Ahh sorry about that, I guess I didn’t check for the null://. The idea is you just write DummyCorrelationInitPort there and that will be fine.[quote:85970ac205=\”nwalters\”]
Does this \”name of port\” have to be unique (similar to SQL URLs)?
[/quote:85970ac205]That’s the idea, although frankly, this particular adapter doesn’t really care much about it anyway, so I doubt anything bad will happen if you don’t 🙂
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.