06-07-06 12:19 AM
What pipeline are you using to receive this message?
You will need a pipeline with the XmlDisassembler component
The standard XmlReceive pipeline has this component.
The XmlDisassembler identifies the Xml schema. The schema is where the
distinguished fields are defined. It then writes the distinguished fields
values into the message context where they are available inside your
orchestartion.
Greg
"Ellen Deak" <ellen@newsgroups.nospam> wrote in message
news:B009EC18-9DFF-47B2-A94B-338D51C8580A@microsoft.com...
> Hello,
>
> I'm having trouble accessing the value of a distinguished field in an
> orchestration. If anyone can help identify what I'm doing wrong, I would
> really appreciate it.
>
> I have a schema generated from an adapter. I've promoted one of the
> elements
> in that schema as a Distinguished Field.
>
> After doing the send/receive to the adapter port in my orchestration, I
> have
> a decision shape where I am attempting to to check this distinguished
> field
> and do some different processing based on its value.
>
> However, the decision always seems to evaluate as if the value is blank.
> I've written the returned message out to a file and can see that the field
> does have a value (sample at end of this posting). I've written the
> distinguished field out to the event log and it seems to be blank.
>
> The following is the expression for the decision
>
> autocashItemXrefMBFSoapOut.bodyPart.jdeResponse.callMethod.params.cEdiSucc
essfullyProcess
> == "1"
>
> The following is the expression for writing to the event log
>
> System.Diagnostics.EventLog.WriteEntry("Debug","params.cEdiSuccessfullyPro
cess="+autocashItemXrefMBFSoapOut.bodyPart.jdeResponse.callMethod.params.cEd
iSuccessfullyProcess);
>
> The "else" side of the decision executes, even though the value in the
> message is "1".
>
> This is what I get in the event log:
>
> params.cEdiSuccessfullyProcess=
>
> Which is telling me the distinguished field is blank.
>
> I'm pretty new to BizTalk and assume I must be missing something that I
> need
> to do to access the distinguished field value. Any help would be
> appreciated.
>
> Thanks,
> --
> Ellen Deak
> BizTalk 2004
>
>
> <?xml version="1.0" encoding="utf-8"?><AutocashItemXrefMBFResponse
> xmlns="http://iwaysoftware.com/exposed/services/JDE_N5503B01/AutocashItemX
refMBF"><jdeResponse
> user="BTSSERVICE" sessionidle="" type="callmethod"
> session="8322.1149628469.45" environment="WDV7333" xmlns=""><callMethod
> returnNullData="yes" name="AutocashItemXrefMBF"
> runOnError="yes"><returnCode
> code="0" />
> <params>
> <cActionCode>A</cActionCode>
> <szIdentifier2ndItem>19</szIdentifier2ndItem>
> <szItemNoCustomerVendor>s</szItemNoCustomerVendor>
> <szCostCenter> 111000</szCostCenter>
> <szUserReservedCode />
> <mnUserReservedNumber>0</mnUserReservedNumber>
> <mnUserReservedAmount>0</mnUserReservedAmount>
> <szUserReservedReference /><jdUserReservedDate />
> <szUserId>BTSSERVICE</szUserId>
> <szProgramId />
> <szWorkStationId>AS01DEV</szWorkStationId>
> <jdDateUpdated>2006/06/06</jdDateUpdated>
> <mnTimeOfDay>161430</mnTimeOfDay>
> <cEdiSuccessfullyProcess>1</cEdiSuccessfullyProcess>
> </params></callMethod></jdeResponse></AutocashItemXrefMBFResponse>
[ Post a follow-up to this message ]
|