Wcf Binaryencoded Message Inspector For Fiddler For Mac



Précis

Includes a message encoding for WCF that does wonders by producing more compact messages than any system-provided encoding for WCF. Cross platform Available for.NET,.NET CF, Xamarin.iOS, Xamarin.Android, Xamarin.Mac, Windows Phone, Xbox, Silverlight, Mono and as PCL. For WCF binary encoding messages, be sure to download WCF Binary-encoded message inspector if you are using Fiddlerit’s awesome (hat tip to Dan Wahlin for the tip). Summary I suspect anyone running into these issues above is likely using Silverlight 3/VS2008 and deploying to an IIS6 instance. The Fast Infoset message encoding of WCF-Xtensions produces the most compact messages compared to any system-provided message encondings available in WCF. HTTP content negotiation The HTTP content negotiation binding element enables you to support multiple message encodings and compression methods on the same endpoint for serving different clients. If you want something more robust that you can include in your code, then I think what you want to implement is a WCF Message Inspector. More on how to do this on the client: You can inspect or modify the incoming or outgoing messages across a WCF client by implementing a System.ServiceModel.Dispatcher.IClientMessageInspector and inserting it.

Wcf Binaryencoded Message Inspector For Fiddler For Mac Osx

So I’ve had folks say that they still cant make the leap and get my examples to work in Office 365 SharePoint Online, so this post is to Prove out that IT can be done, there is no smoke and mirrors, I just wanted folks to take what I have and use that to go to the next level. This is not like a live session where I have an interactive audience, so I am putting the info out there in his blog.

This post builds on a few out there that I have done explaining how to use SharePoint Designer 2013 with the Dictionary Object to data in JSON Format to be used inside Workflows. Now, I do admit that there are VERY FEW examples out there, if any, that show you, how to do what I am about to tackle in Office 365 SharePoint Online. So here goes.

Wcf Binaryencoded Message Inspector For Fiddler For Mac Download

Approach

As usual we have an Initialization Stage and a Workhorse Stage, in the Init stage we will set our variables and make our REST call, we will parse it and limit our dataset to what we need for our results. I think folks are getting tripped up on what is needed in the Headers, as what I am getting as feedback is that the Workflow Starts but it stalls with a message like “Retrying last request. Next attempt scheduled after…” with a correlation ID, it also gives you a Retry Now Link.

So the first thing i will show you is of course what is in my List NOW, I will show it to you via the browser and in Fiddler.

Binaryencoded

now here is the items in Fiddler, i do this so you can appreciate the actions I will take later on in SPD when parsing the JSON data.

Now lets look at how we construct the Header, in this post, i have explained why you need certain Headers, so i wont go into it here, the only difference is that I am extrapolating what I did in Fiddler and using it in SharePoint Designer… now for obvious reasons, I am NOT showing you all the Header Information since it is my Valid Token to O365.

Now with that done, I have constructed a Site Workflow that will loop through the items and Log it to History, what you do with it for your Use Case can be quite elaborate, you essentially can

  • Communicate with any Office 365 SharePoint Online Tennant you want from a Single Workflow
  • Cross Communicate between an On Prem Farm and a Cloud Farm in one Workflow
  • Create List, Libraries, List Items, and do full CRUD operations

Wcf Binaryencoded Message Inspector For Fiddler For Mac Catalina

If you go and look at the REST API endpoints from that link i gave you before by Kirk Evans, you can see that its quite a bunch of things that are available now.

So. back to the story.

First Part of the Workflow

Second Pare of the Workflow

Next lets fire off this Workflow and look at the results.

Proof

Next we go to Site Contents, Site Workflows and click the one we just created after publishing

We should expect to see the below in our History List

and upon closer inspection of the Workflow

Summary

Wcf Binaryencoded Message Inspector For Fiddler For Mac Os

Now what I will say because I have worked quite a bit with SharePoint Online Wave 15 is that it can get squirrely and can crap out on you for no good apparent reason, it gives you obscure feedback when it does and often times it just says “something bad has happened..” and if you Refresh the browser, its back to normal. I don’t pretend to understand why, I don’t have eyes into the Data Centre nor access to the ULS Logs, so I am as much as in the blind as you are. BUT this is the reason why i do Fiddler first then SPD after…visibility.

I hope this helps! Cheers.

del.icio.us Tags: REST,JSON,SharePointFabian,SharePoint Online,Office365,Workflow