Search EggHeadCafe's Job Board
EggHeadCafe Silverlight WPF ASP.NET VB.NET C# Excel SQL Server SharePoint
search
MicrosoftArticlesForumsFAQs
C# .NET
VB.NET
Visual Studio .NET
ADO.NET
Xml / Xslt
VB 6.0
.NET CF
GDI+
LINQ
Deployment
Security
FoxPro
Silverlight / WPF
Entity Framework
RIA Services

WebArticlesForumsFAQs
JavaScript
ASP
ASP.NET
WCF

DatabasesArticlesForumsFAQs
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsFAQs
Excel
Word
Powerpoint
Outlook
Publisher
Money

Non-MicrosoftArticlesForumsFAQs
NHibernate
Perl
PHP
Ruby
Java
Linux / Unix
Apple
Open Source

Operating SysArticlesForumsFAQs
Windows 7
Windows Server
Windows Vista
Windows XP
Windows Update
MAC
Linux / UNIX

Server PlatformsArticlesForumsFAQs
BizTalk
Site Server
Exhange Server
IIS

Graphic DesignArticlesForumsFAQs
Macromedia Flash
Adobe PhotoShop
Expression Blend
Expression Design
Expression Web

OtherArticlesForumsFAQs
Lounge
Subversion / CVS
Ask Dr. Dotnetsky
Active Directory
Networking
Uninstall Virus
Job Openings
Product Reviews
Search Engines
Resumes

 

  View Other BizTalk Posts   Ask New Question  Ask New Question With Power Editor

Adding Namespace and attribute types in the outgoing WCF message
Raghu Donk posted at Thursday, November 05, 2009 9:59 PM

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
Reply    Reply Using Power Editor
  Rank Winnings Points
November 0 $0.00 0
October 0 $0.00 0