Adding Namespace and attribute types in the outgoing WCF message

Asked By Raghu Donk
05-Nov-09 09:59 PM
Earn up to 30 extra points for answering this tough question.

Hi I am creating a WCF message with Header and Body and sending it to a service but that message is not getting created where CRM will accept and send a response, the message that is being created by biztalk is

 

<?xml version="1.0" encoding="utf-8" ?>

- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
- <s:Header>
- <CrmAuthenticationToken xmlns="http://schemas.microsoft.com/crm/2007/WebServices">
    </CrmAuthenticationToken>
  </s:Header>
 
but I need
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <s:Header>
- <CrmAuthenticationToken xmlns="http://schemas.microsoft.com/crm/2007/WebServices">
  </CrmAuthenticationToken>
  </s:Header>
I need to add this namespace xmlns:xsd="http://www.w3.org/2001/XMLSchema"> in my message
 
I also need to remove ns0: from this ns0:Execute xmlns:ns0="http://schemas.microsoft.com/crm/2007/WebServices" it should look like Execute xmlns ="http://schemas.microsoft.com/crm/2007/WebServices"
 
and I also need to replace or add  xsi:type="xsd:int"
<ns5:Value >0</ns5:Value>  to
<ns5:Value xsi:type="xsd:int">0</ns5:Value>
 
for these requirements to accomplish what should I do or what should I develop my request message. Any Suggestions or ideas?
 
Thanks
Create New Account