Robert McLaws: FunWithCoding.NET

Public Shared Function BrainDump(ByVal dotNet As String) As [Value]

News

<script type="text/javascript"><!-- google_ad_client = "pub-4330602465258980"; google_hints = "ASP.NET, VB.NET, C#, C#.NET, WindowsForms, .NET Framework, VS2005, Visual Studio, XAML, WinFX, Windows Workflow, WPF, WCF, Atlas, NetFX3, Visual Studio Orcas"; google_ad_width = 120; google_ad_height = 240; google_ad_format = "120x240_as"; google_ad_type = "text_image"; google_ad_channel ="4997399242"; google_color_border = "B6C9E7"; google_color_bg = "EFEFEF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "002C99"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<!--
-->

You should feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever. That said, I will most likely only delete abusive, profane, rude, or annonymous comments, so keep it polite, please.

Blogroll

Cool .NET Articles

My .NET Tools

My Builder.com Articles

My MSKB Articles

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

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
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.

Comments

Scott_NO_@_SPAM_Tripleasp.net (Scott Watermasysk) said:

I would not build anything against aspnetweblog. It was an accident (actually something weird in VS.NET) that it still exists. Once 0.96 goes live, it will be removed from the system.

-Scott
# March 29, 2004 7:25 AM