Search-OSCEXOEmailMessage does not handle PageSize and Paging correctly

Another bug in the OSCEXO module… When searching for mails within a mailbox well known folder with more than “PageSize” messages the cmdlet Search-OSCEXOEmailMessage never return and keeps “searching” forever (or until you run out of memory – whatever happens first). The reason behind this is that the code that handles the “ExchangeService.FindItems()” calls does […]

PowerShell New-WebServiceProxy fails to instantiate Clickatell SOAP WebService

When trying to use the Clickatell SOAP WebService via “http://api.clickatell.com/soap/webservice.php?WSDL” you receive a “FileNotFoundException” exception: You effectively have to use the workaround described in the manual by calling the web service under this address: ‘http://api.clickatell.com/soap/webservice_vs.php?WSDL’. The reason behind it seems to be use of a conflicting attribute named ‘callback’.

CTERA Code Snipplets

Here are some code fragments that might help when dealing with CTERA REST responses. For a complete PowerShell module check this post Module: biz.dfch.PS.Storebox.Api. 1. Selecting an Attribute value based on its ‘id’: 2. Converting a list ov ‘val’ into an array 3. Loading XML template from ‘defaults’ and populate them:

[System.Net.WebClient] does not return data properly

When using the System.Net.WebClient class you are actually using a class that wraps WebRequesr and WebResponse with some benefits as abstracting stream and handling logic. However, this, comes at a price and sometimes along with some errors, too. When a web server responds with an HTTP 500 Status the WebClient throws an exception and you […]

Using DeathByCapture from PowerShell

DeathByCapture provides a .NET assembly for interaction with the mighty workforce overseas that lets you overcome those nasty captchas. Unfortunately you cannot use the assembly when you want to ‘[System.Reflection.Assembly]::LoadFile()’ as the ‘DeathByCaptcha.HttpClient’ is an abstract base class where you cannot pass the login credentials as arguments to the constructor. Adding the assembly to the […]

Invoke-WebRequest uses id attribute of input element as field name in form fields collection

As already described on elsewhere on the Internet and on Microsoft Connect, the new Invoke-WebRequest Cmdlet, that comes with PowerShell v3, handles form fields incorrectly. Instead of referring to the name attributes of input elements within a form the Fields Collection stores the ids of the attributes under the ‘key’ property. As in the following […]