Not receiveing document from pipeline into TN for processing.

Hi Experts,

I am try to retriving XML data which Trading partner submitted in TN.
For this I have created processing rule and invoking service through processing rule. Document is coming in pipeline directory but not able to retrive document in service.

I tried by following manners

  1. savePipelineToFile and restorePipelineToFile.
  2. I have put specification reference wm.tn.rec:ProcessingService but no results.

If anyone knows please explain me steps to resolve this issue. I’ll be really thankful.

Thanks,
Kuldeep:(

You can extract the TN data from the variable bizdoc from the pipeline (bizdoc/content (bytes) and do bytesToString (string has the xmldata)

or

just call this service first step wm.tn.doc.xml:bizdocToRecord (outputs IDATA boundNode) and map it to your XML document type (structure)

Please review the TN BIS services guide for more information also:

HTH,
RMG

Thanks RMG

I found my mistake which I was doing in savePipelineToFile service.
I was debugging again whereas service already got executed by processing rule.

Correct steps are for developing
1.Save pipeline
2. restorepipeline
3. select wm.tn.rec:processingService in Specification Reference and
4. bizdocToRecord.

Hoping these steps will help to beginners :slight_smile:

Thanks RMG

I found my mistake which I was doing in savePipelineToFile service.
I was debugging again whereas service already got executed by processing rule.

Correct steps are for developing
1.Save pipeline
2. restorepipeline
3. select wm.tn.rec:processingService in Specification Reference and
4. bizdocToRecord.

Hoping these steps will help to beginners :slight_smile:

good deal:

Bravo, what excellent answer.