Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Fetch lookup Data from MS CRM 4.0 › Re: Fetch lookup Data from MS CRM 4.0
HI,
Thanks for your reply.
I am working on same structure as described above.
When i use the response.xsd provided by Microsoft with the BTS 2006
adapter for MS CRM 4.0 to receive response by hard coding the
organization name in the target namespace.targetNamespace=“http://schemas.microsoft.com/crm/2007/BizTalkAdapter/MicrosoftCRM/Response” according to the organization name here orgName: “MicrosoftCRM”
Still i am getting an error:
Exception thrown from: segment -1, progress -1
Inner exception: Received unexpected message type ” does not match expected type ‘http://schemas.microsoft.com/crm/2007/BizTalkAdapter/MicrosoftCRM/Response#Response’
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=”http://schemas.microsoft.com/crm/2007/BizTalkAdapter/MicrosoftCRM/Response”>
– <Header>
<ReturnCode>ReturnCode_0</ReturnCode>
<ErrorCode>ErrorCode_0</ErrorCode>
<ErrorString>ErrorString_0</ErrorString>
<Retryable>Retryable_0</Retryable>
</Header>
– <Body>
<Message>Message_0</Message>
</Body>
</ns0:Response>
and this the suspended message details of response from CRM
<ns0:Response xmlns:ns0=”http://schemas.microsoft.com/crm/2007/BizTalkAdapter/MicrosoftCRM/Response”>
<Header>
<ReturnCode>1</ReturnCode>
<ErrorCode></ErrorCode>
<ErrorString></ErrorString>
<Retryable></Retryable>
</Header>
<Body>
<Message><prefix:CreateResponse xmlns:prefix=”http://localhost/schemas.microsoft.com/crm/2007/MicrosoftCRM/CreateResponse”><id>f0650fb5-3ff7-dd11-b0f0-0003ff1a2a3c</id></prefix:CreateResponse></Message>
</Body>
</ns0:Response>
Thanks,
Kuldip