HMC CreateFolder

September 9th, 2011 | by | devdog, micro$oft

Sep
09

Today I had the chance to get back to some code for CreateFolder which creates a public folder within our Exchange 2007 environment support by Microsoft’s Hosted Messaging and Collaboration frame work. I’ve been highly critical of Microsoft’s code before, and today has taken that to a new level.

Here is what I’m dealing with. First, let’s go to the documentation on TechNet:

Pretty clear that we have a few required parameters and a few optional ones to set some quotas. These optional parameters are what will soon drive me to uncontrollable rage.

Next, let’s look at the example directly from the web service. Here’s what it states we can pass:

POST /mpsws/ManagedEmail2007/Service.asmx HTTP/1.1
Host: prov01.bacon.lightedge.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://provisioning.microsoft.com/webservice/managedemail2007/CreateFolder"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CreateFolder xmlns="http://provisioning.microsoft.com/webservice/managedemail2007">
<CreateFolderRequest xmlns="http://provisioning.microsoft.com/managedemail2007">
<Data>
<organization>string</organization>
<preferredDomainController>string</preferredDomainController>
<name>string</name>
<path>string</path>
<server>string</server>
<maxItemSize>string</maxItemSize>
<postStorageQuota>string</postStorageQuota>
<storageQuota>string</storageQuota>
</Data>
</CreateFolderRequest>
<sendCredentials>boolean</sendCredentials>
</CreateFolder>
</soap:Body>
</soap:Envelope>

Again, everything looks great. postStorageQuota and storageQuota are both there and seem perfectly reasonable.

So let’s actually SEND that command to the web service. Here’s the error I get back:

The element 'CreateFolder_Request' in namespace 'http://provisioning.microsoft.com/exchange2007provider' has invalid child
element 'postStorageQuota' in namespace 'http://provisioning.microsoft.com/exchange2007provider'. List of possible elements expected: 'prohibitPostQuota, server, issueWarningQuota' in namespace 'http://provisioning.microsoft.com/exchange2007provider'.The element 'CreateFolder_Request' has invalid child element 'postStorageQuota' . List of possible elements expected: 'prohibitPostQuota, server, issueWarningQuota' .

You get this is you change PostStorageQuota to prohibitPostQuota.

The element 'CreateFolder_Request' in namespace 'http://provisioning.microsoft.com/exchange2007provider' has invalid child element 'storageQuota' in namespace 'http://provisioning.microsoft.com/exchange2007provider'. List of possible elements expected: 'prohibitPostQuota, server, issueWarningQuota' in namespace 'http://provisioning.microsoft.com/exchange2007provider'.The element 'CreateFolder_Request' has invalid child element 'storageQuota' . List of possible elements expected: 'prohibitPostQuota, server, issueWarningQuota' .

In case you missed it, they changed the variable with in the back end server code, and failed to tell anyone that they made this change. Awesome!

This appeared only after we made the jump up to HMC 4.5 rollup 9. Before the PostStorageQuota and StorageQuota worked as expected. Needless to say, I’m less than impressed that they changed properties on me and failed to update the documentation OR the web service example. I guess figuring this out with trial by fire is the way that Microsoft expects you to learn. Thanks Microsoft!

Comments Closed

XCode Errors

November 6th, 2008 | by | apple, devdog

Nov
06

By trade, I’m a PHP/C programmer and rarely have time to really work on some fun stuff at home. But recently, I have been trying to spend some more time working on some fun projects and getting my hands dirty with XCode and the iPhone SDK.

I recently downloaded the latest and greatest version of XCode and overwrote the beta versions I had been running with before. The installation went fine and I decided I would load up one of the demo apps to make sure that everything was indeed still working as I expected.

Unfortunately, I was greeted with this:
XCode Error

I know, pretty clear what that error is right?

If you’re new to XCode as I am, you were probably scratching your head thinking this is really messed up. The console logs didn’t make it much clearer so I figured that something got messed up during the installation. Since I had been running the beta version before, I must have missed something in the instructions or a check box in the installation that is not causing an issue.

I tried un-installing the iPhone SDK and re-installing to see if that fixed the problem…no luck there.

I tried removing the /Developer directory and re-installing. Still no luck.

I re-applied the 10.5.5. update as I had a few issues with it when I originally installed it. Then I removed the /Developer directory again and re-installed the iPhone SDK. STILL no luck.

At this point I was starting to think that I had some library that was b0rked beyond reason and the only easy way to take care of the issue was to blow away the machine and re-install.

Luckily, I happned to find this post.

Simply removing the Info.plist from my root folder on the hard drive solved the issue.

What a freaking pain in the ass it was to find that simple solution. Thanks to Google and some helpful coders on the internet, I’m happily playing around with iPhone development.

Hopefully this blog post will return the favor or at least get their page a higher rank so others can resolve this issue if they run into it.

Comments Closed