BizTalk Server Orchestration - Help -- Use of unconstructed message, message has not been initial

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > May 2006 > Help -- Use of unconstructed message, message has not been initial





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Help -- Use of unconstructed message, message has not been initial
fullflavedave

2006-05-11, 1:14 pm

I am getting this error: "use of unconstructed message" and
"message has not been initialized in construct statement"

I'm creating an orchestration in BizTalk 2006. Biztalk is acting as a proxy
web service to the CRM web service (which has an awful API that we don't want
to expose to the outside world).

Everything goes fine until I want to transform the response message from the
CRM web service to my client response message (based on a schema I created).
I can't use a Transform shape to create the message because for some reason,
I can't get it to use the return web service message from the CRM as the
source for the transformation. So I am trying to use the Message Assignment
shape.

I have tried the following code in the Expression Editor (all fields are
distinguished, OnyxOrgRegResponseMessage is from the CRM):
PartnerOrgRegResponseMessage.Message =
OnyxOrgRegResponseMessage.ExecuteResult;
PartnerOrgRegResponseMessage.SuccessFailure = "Default";

On build, I get the "use of unconstructed message". I can try this code (in
the Expression shape):
construct PartnerOrgRegResponseMessage
{
PartnerOrgRegResponseMessage.Message =
OnyxOrgRegResponseMessage.ExecuteResult;
PartnerOrgRegResponseMessage.SuccessFailure = "Not Set";
}

or this code (in the Message Assignment or Expression shapes):

PartnerOrgRegResponseMessage = new System.Xml.XmlDocument();
PartnerOrgRegResponseMessage.Message =
OnyxOrgRegResponseMessage.ExecuteResult;
PartnerOrgRegResponseMessage.SuccessFailure = "Not Set";

which both build fine, but give me this error on execution:
Inner exception: A failure occurred while evaluating the distinguished field
Message against the message part data. The message part data does not contain
at least one of the nodes specified by the XPath expression (listed below)
that corresponds to the distinguished field. The cause for this error may be
that the message part data has not been initialized or that the message part
data does not conform to the message part schema. Ensure that the message
part data is initialized correctly. XPath expression:
/*[local-name()='OrgRegResponse' and
namespace-uri()='http://OrganizationRegistration.OrganizationRegistrationResponse']/*[local-name()='Message' and namespace-uri()='']

Any help/ideas are much appreciated. If I can't get this working we may go
with Aqualogic rather than Biztalk for our web service integration.

Thanks,
Dave
Harish

2006-05-11, 7:13 pm

rom: "Harish" <harishp2@gmail.com>
Newsgroups: microsoft.public.biztalk.orchestration
Subject: Re: Help -- Use of unconstructed message, message has not been
initial
Date: Thu, 11 May 2006 20:54:16 -0000

In your second piece of code add a line to set the new xmldom based
object to an empty shell of an xml message with a loadxml statement.
Then you sets you have an empty message then set it to the message you
really want

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com