BizTalk 2006 Adapter for CRM 4.0 Response


i am using BTS 2006 adapter for MS CRM 4.0 to create records and to fetch data from MS CRM 4.0. I want to get the response from CRM after the record is created or to fetch data from CRM For this i am using response.xsd coming with BTS 2006 adapter for MS CRM 4.0 to receive response from MS CRM i set the target namespace for reponse.xsd as: targetNamespace="" according to the organization name here orgName: "MicrosoftCRM" (For more details on this i am referring )

Now i am getting an error:

Exception thrown from: segment -1, progress -1 Inner exception: Received unexpected message type '' does not match expected type ''

Exception type: UnexpectedMessageTypeException Source: Microsoft.XLANGs.Engine Target Site: Void VerifyMessage(Microsoft.XLANGs.Core.Envelope, System.String, Microsoft.XLANGs.Core.Context, Microsoft.XLANGs.Core.OperationInfo)

Here is the Schema instance for response.xsd generated in Visual Studio 2005

 - <ns0:Response xmlns:ns0="">
    - <Header>
    - <Body>

and this the suspended message details of response from CRM

<ns0:Response xmlns:ns0="">
        <Message><prefix:CreateResponse xmlns:prefix="http://localhost/"><id>f0650fb5-3ff7-dd11-b0f0-0003ff1a2a3c</id></prefix:CreateResponse></Message>




Starting from Microsoft BizTalk CRM 4.0 adapter onwards, use the adapter auto-generated schema 'CRMAdapterResponse_Response.xsd', instead of 'response.xsd'. This schema will be specific to the organization under consideration.

The use of the schema will solve your 'schema does not match expected type' problem.


Need Your Help

Marshalling null values with a custom type used with an xml adapter

java jaxb jersey

I'm using a POJO object with XmlType for a custom XML adapter I built for marshaling a map of strings. I'm having issues however, with getting it to allow me to use null values properly. I was able...

User Access management in mysql/php web page

mysql database-design user-controls relational-database

I am making a semi-simple web application for my mother using php, mysql, and javascript.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.