i am programatically creating a contact in crm 4.0.
i am using a windows service which calls into a wsdl generated proxy of the crm webservice.
it works fine - but when i create a contact which has an email address that contains an apostrophe. i.e
contact crmContact = new contact();
contact.emailaddress1 = "email@example.com";
//add other properties...
//this is an instance of my proxy
it always falls over with the following soap exception:
2011-03-16 16:06:56,448  ERROR [(null)] - Soap Exception in :mywindowsservice Error : <error>
<description>An unexpected error occurred.</description>
I have tried escaping the apostrope with sean.o\'firstname.lastname@example.org - but i still get the same exception.
thankyou very much.