Click here to Skip to main content
15,861,125 members

lepipele - Professional Profile



Summary

    Blog RSS
120,433
Author
720
Authority
1,500
Debator
170
Editor
5
Enquirer
179
Organiser
1,246
Participant
If you liked this article, consider reading other articles by me. For republishing article on other websites, please contact me by leaving a comment.

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralC# .NET List of timezones for TimeZoneInfo.FindSystemTimeZoneById Pin
lepipele25-Apr-11 9:54
lepipele25-Apr-11 9:54 
GeneralWord AutoSaver Pin
lepipele5-Jan-11 16:13
lepipele5-Jan-11 16:13 
GeneraliPhone NSString initWithFormat options / NSLog format specifiers Pin
lepipele9-Nov-10 9:51
lepipele9-Nov-10 9:51 
GeneralAdding custom headers to Silverlight's WCF calls Pin
lepipele28-Feb-10 13:00
lepipele28-Feb-10 13:00 
Bah... this proved tougher than I originally thought, because all I could find were bunch of smart-ass comments that contained no code. You'll hopefully evade that path by following these steps:

1. Download Solution from -> http://www.sendspace.com/file/465sb6[^]
2. Open .sln, press F5 -> press Button -> you should get dialog with bunch of variables showing that server is aware of calling client's credentials and culture
3. Open SilverlightWcf/Page.xaml.cs to see how calls are initialized - note that you only set culture/username/password during proxy's creation.

How to import this into your solution? Easy:

1. Copy Util.CustomHeader.Silverlight & Util.CustomHeader.WcfService projects into your solution's folder
2. Reference Util.CustomHeaders.Silverlight from your Silverlight project, Util.CustomHeaders.WcfService from your WCF project
3. Decorate your WCF service with [CustomHeadersBehaviorAttribute] attribute (alternatively you can set this in config by using CustomHeadersBehavior, see ref #3 for more details)
4. Add reference to your WCF service from Silverlight project and after proxy class generation is finished you'll use code like this to initialize your service:

public Page()
{
    InitializeComponent();

    ClientChannelBinding binding = new ClientChannelBinding();
    ClientChannelBinding.Culture = "sr-Latn-CS";
    ClientChannelBinding.Username = "username";
    ClientChannelBinding.Password = "password";

    EndpointAddress endpoint = new EndpointAddress(
        "http://localhost:1654/SilverlightWcf.Web/Services/Service1.svc");

    client = new SilverlightWcf.ServiceReference1.Service1Client(binding, endpoint);
    client.GetDataCompleted += client_GetDataCompleted;
}

private ServiceReference1.Service1Client client;


Of course, I recommend that you create some kind of WebServiceFactory.cs in your Silverlight project that will create services for you and do this initialization... while also exposing that web service URI in some config.

For those interested in details of how this works:

#1 - http://fluffyidentity.blogspot.com/2008/08/custom-wcf-channel-in-silverlight.html[^]
#2 - http://geekswithblogs.net/SunnyCoder/archive/2009/03/15/username-password-amp-ws-security-with-silverlight.aspx[^]
#3 - http://weblogs.asp.net/paolopia/archive/2007/08/23/writing-a-wcf-message-inspector.aspx[^]
GeneralAzure Blackjack! Pin
lepipele20-Dec-09 14:44
lepipele20-Dec-09 14:44 
GeneralRe: Azure Blackjack! Pin
Drew Stainton21-Dec-09 8:22
Drew Stainton21-Dec-09 8:22 
GeneralRe: Azure Blackjack! [modified] Pin
lepipele21-Dec-09 8:34
lepipele21-Dec-09 8:34 
GeneralRe: Azure Blackjack! Pin
Drew Stainton21-Dec-09 8:45
Drew Stainton21-Dec-09 8:45 
GeneralRe: Azure Blackjack! Pin
Drew Stainton21-Dec-09 11:23
Drew Stainton21-Dec-09 11:23 
GeneralRe: Azure Blackjack! Pin
lepipele21-Dec-09 11:33
lepipele21-Dec-09 11:33 
GeneralRe: Azure Blackjack! Pin
Drew Stainton21-Dec-09 11:41
Drew Stainton21-Dec-09 11:41 
GeneralRe: Azure Blackjack! Pin
lepipele21-Dec-09 11:50
lepipele21-Dec-09 11:50 
GeneralRe: Azure Blackjack! Pin
Drew Stainton21-Dec-09 12:07
Drew Stainton21-Dec-09 12:07 
GeneralRe: Azure Blackjack! Pin
lepipele21-Dec-09 12:18
lepipele21-Dec-09 12:18 
GeneralRe: Azure Blackjack! Pin
Drew Stainton21-Dec-09 12:22
Drew Stainton21-Dec-09 12:22 
BugRe: Azure Blackjack! Pin
im1dermike17-Dec-13 8:04
im1dermike17-Dec-13 8:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.