Provider Model Test Post
This is a post testing the new provider model usage in VisualBlogger 2004. I've abstracted the system out, using a modified version of ScottW's .Text object model, so that I can map internal Entry objects into external objects as necessary. This particular test is using the primary DotText95BlogProvider, which uses the http://weblogs.asp.net/yourblog/services/aspnetweblog.asmx web service entry point. This one is still live in all distros, and has more functionality than the SimpleBlogService. It will be superceded by the dottextapi.asmx web service in .Text 0.96, but for now this works well.
I have been trying to test this for over 2 hours now, and I finally have a solution. I could not get the post configuration to work properly, and could not figure out why. Finally, I checked the enumeration as specified in the web service Reference.vb file. They were totally off. If you decide to use the web service in your own projects, you need to modify the file as follows:
1 '<remarks/>VS.NET's proxy will create an enum with values "1,2,4,8,16,32,64,128", respectively. That's it from me this evening. Now that everything is working, I can actually go to sleep. More from me in the morning.
2 <System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.aspnetweblog.com/services/aspnetweblogapi/"), _
3 System.FlagsAttribute()> _
4 Public Enum PostConfig
5
6 '<remarks/>
7 Empty = 0
8
9 '<remarks/>
10 IsActive = 1
11
12 '<remarks/>
13 IsXHTML = 2
14
15 '<remarks/>
16 AllowComments = 4
17
18 '<remarks/>
19 DisplayOnHomePage = 8
20
21 '<remarks/>
22 IncludeInMainSyndication = 16
23
24 '<remarks/>
25 SyndicateDescriptionOnly = 32
26
27 '<remarks/>
28 IsAggregated = 64
29 End Enum