BizTalk 2006 Adapter for CRM 4.0 Response RRS feed

  • Question

  • HI,
    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>&lt;prefix:CreateResponse xmlns:prefix="http://localhost/"&gt;&lt;id&gt;f0650fb5-3ff7-dd11-b0f0-0003ff1a2a3c&lt;/id&gt;&lt;/prefix:CreateResponse&gt;</Message>


    Tuesday, February 10, 2009 7:35 AM

All replies

  • Did you try setting the target namespace to the one mentioned in the error with the "#Response" on the end of it?

    If this answers your question, please use the "Answer" button to say so | Ben Cline
    Wednesday, February 18, 2009 2:19 PM
  • Hi Kuldip, I am also experiencing the same exact problem. Did you find any solution? Prabhu T
    Monday, April 13, 2009 7:55 AM