Re: message part has not been initialized in construct statement

Home Page Forums BizTalk 2004 – BizTalk 2010 message part has not been initialized in construct statement Re: message part has not been initialized in construct statement

#20388

 Hi,

I’m a newbie to Biztalk. I wanted to call a web service and so I had added reference to the web service but the XSD files for this web service are not generated. So, I decided to use Construct Message and Message Assignment shape to initialize my web request message from my incoming message data.(And then Send shape should send the Request Message to Request operation of web port.)

I’m trying to assign to my Web Request message in the message assignment shape with this expression:

WebRequest_doc.input_xml = InboundDoc.input_xml;

Where

WebRequest_doc is a message created in Orchestration View under messages with ‘Message Type’ pointing to request Type Name of web method. input_xml ‘s Object Type = Message part  with Type = System.String and ‘Message Body part = false’

And InboundDoc is a message created in Orchestration View under messages with following Schema

<?xml version=”1.0″ encoding=”utf-16″ ?>

<xs:element name=”ForEDM>
<xs:annotation>
<xs:appinfo>
<b:properties>
  <b:property distinguished=”true xpath=”/*[local-name()=’ForEDM’ and namespace-uri()=’http://EDMIntegrationSchema.DocID’%5D/*%5Blocal-name()=’input_xml&#8217; and namespace-uri()=”] />
  </b:properties>
  </xs:appinfo>
  </xs:annotation>
<xs:complexType>
<xs:sequence>
  <xs:element name=”input_xml type=”xs:string />
  </xs:sequence>
  </xs:complexType>
  </xs:element>
  </xs:schema>
 
But this does not work and I get this exception: Inner exception: The part ‘input_xml’ of message ‘WebRequest_doc’ contained a null value at the end of the construct block. 
How should I initialize the message part ‘input_xml’ ?
Thanks for your help in advance.
Regards,
Sharad