Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Inner exception: The part ‘input_xml’ of message ‘WebRequest_doc’ contained a null value at the end of the construct block.
- This topic has 0 replies, 1 voice, and was last updated 9 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
August 21, 2008 at 1:46 AM #20457
Hi,
I’m a newbie to Biztalk. I wanted to consume a web service and 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.)
The web method takes only one parameter
The REQUEST description, in browser window, of web method AcquireDocuments(string input_xml) shows as below:
<?xml version=”1.0″ encoding=”utf-8″?>
<soap:Envelope xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”>
<soap:Body>
<AcquireDocuments xmlns=”http://www.smed.com/imaging/240″>
<input_xml>string</input_xml>
</AcquireDocuments>
</soap:Body>
</soap:Envelope>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 AcquireDocuments. (WebRequest_doc.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:schema xmlns:b=”http://schemas.microsoft.com/BizTalk/2003“ xmlns=”http://EDMIntegrationSchema.DocID“ targetNamespace=”http://EDMIntegrationSchema.DocID“ xmlns:xs=”http://www.w3.org/2001/XMLSchema“><b:property distinguished=”true“ xpath=”/*[local-name()=’ForEDM’ and namespace-uri()=’http://EDMIntegrationSchema.DocID’%5D/*%5Blocal-name()=’input_xml’ and namespace-uri()=”]“ /></b:properties></xs:appinfo></xs:annotation><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’ and WebRequest_doc message?Thanks for your help in advance.Regards,Sharad
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.