Home Page › Forums › BizTalk 2004 – BizTalk 2010 › BizTalk WCF Publishing Wizard – manual vs automated?
- This topic has 5 replies, 1 voice, and was last updated 9 years, 7 months ago by
community-content.
-
AuthorPosts
-
-
May 12, 2008 at 3:16 PM #19617
Thanks for your blog here – adding the ASPNET user to my Isolated Host User Group solved the problem for me.
BUT – here’s my question. The “Biztalk WCF Publishing Wizard” is rather GUI oriented. Is there a batch way of doing it, or an import/export? For example, I just built a service with 4 methods. What if I want I made a mistake on one of the schemas?
What if I want to add another 3 methods to the service next week? Do I have to start all over again?Thanks,
Neal Walters
http://BizTalk-Training.com -
May 12, 2008 at 4:21 PM #19619
You might want to take a look at this: http://www.masteringbiztalk.com/blogs/jon/PermaLink,guid,3998ad88-372b-4daa-8544-c32cda32c922.aspx
Jon did that with the Web Publishing Wizard. So the same can probably be done with the WCF one.
Take care.
-
May 14, 2008 at 8:10 AM #19638
Thanks, I’ll check it out later. I looked at the files that the wizard builds in the inetpub\wwwroot directory. It looks like you could change them manually or programmatically, but it looks like it would take a lot of careful study or a good program to do it.
For example, yesterday, I had one response schema wrong. I went into the files and change the response schema, but then when I did an “Update Reference” on the web service, it wouldn’t build, probably because that schema was not included.
So, I basically went through the entire wizard again. Kind of a pain. Right now, I have about 4 methods, but might have 10 eventually.
Neal
-
May 15, 2008 at 4:40 AM #19655
Check out this blog post on TopXml.
You need to create a WcfServiceDescription xml file – there is one created in App_Data\temp when you run the wizard that you can start with.
Rather than using MSBuild I added this code to a console application that I can run as a post-processing script in Biztalk
-
May 15, 2008 at 10:14 AM #19671
Thanks Greg. It looks like that utility handles minor changes to schemas. So maybe if you changed the request parm or the response parms, this utility would refresht he schemas.
But if for example, you picked a wrong schema when you ran the wizard, it seems like you are kind of stuck. You either have to delete the IIS Virtual Directory, and start all over. Perhaps with a day or more of research and study, I could adapt their utility to fix such a problem, but right now I don’t think it’s worth that much time.
Ideally, when you ran the wizard, it would read the existing configuration, and allow you to make minor changes. Obviously Microsoft didn’t spend a lot of time on this wizard.
Neal
-
May 15, 2008 at 10:33 AM #19672
I decided to spend a few minutes looking. It does look Microsoft’s wizard uses an underlying class in these two namespaces:
Microsoft.BizTalk.Adapter.Wcf.Publishing;
Microsoft.BizTalk.Adapter.Wcf.Publishing.Description;So in theory, one should be able to build a C# that does the same thing the wizard does. I googled this namespace, and the TopXML article is the only reference to it, so Microsoft did not decide to document it on MSDN.
I played around for a few minutes, and supposedly I could write some code like this (this was not tested at all, I was just trying to see what objects and methods existed):
WcfMessage myMessage =
new WcfMessage(“Message1”, WcfMessage.WcfMessageDirection.Input);WcfOperation oper =
new WcfOperation(“MyOperation1”);oper.WcfMessages.Add(myMessage);
oper.WcfService.WcfOperations.Add(oper);
Neal
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.