webMethods step by step EDI to XML file
Feb 05, 2012 11:23 0 Comments Development Sashi


Task: EDI to XML

OS: WindowsOS

Platform: webMethods 6.1


Step 1: Create a folder, folder name which I gave is “Edi2XmlGanesh”

alt


Step 2 :Now  right click on the folder and go to New in New right click on all choice

alt

 

 

Step 3 : After clicking on all choice select the option “Flat File Dictionary” and then click on next

alt

 

 

Step 4: after clicking on next give the name of dictionary i.e 

The name which I gave is Name:dict

And then click on finish

alt

 

 

Step 5: now the dictionary will be created now leave that 

alt

 

 

Step 6: Now right click on the folder i.e Edi2XmlGanesh and go to New and in New go to FlowService

alt

 

 

Step 7:  Now give the name of the flow service

The name of the flow service which I gave is “firstflowservice”

alt

 

 

Step 8: Now we will get the following screen as show below

alt

 

 

Step 9: Now click on the package i.e WmEdi in that click on Wm

alt

 

 

Step 10: After clicking on Wm you will get  b2b Folder click on that 

alt

 

 

Step 11: After clicking on b2b folder  you will get edi folder click on that

alt

 

 

Step 12: After clicking on edi go to the last element i.e SEFParse and select that

alt

 

 

Step 13 : Now drag and drop that SEFParse into the flow service which we have created earlier

 the flow service name which I gave is “firstflowservice”

alt

 

 

Step 14 : Now select the Service which we have dragged and dropped i.e       wm.b2b.edi:SEFParse so that the elements in the pipeline will be seen by us

alt

 

 

Step 15: Step14 continuation i.e after selecting  wm.b2b.edi:SEFParse the elements in pipeline will be seen by us

alt

 

 

Step 16: Now go to the  path which I have shown in the screen shot below

Otherwise

 if webmethods is installed in C drive go to the following path C:webMethods61IntegrationServerpackagesWmEDIpubSEFSX12

copy the path 

 

alt


 

Step 17: and paste that path in SEFfilename 

alt

 

 

Step 18 :  now I have pasted the path(step17 continution for pasting the path)

alt

 

 

Step 19: After pasting the path i.e C:webMethods61IntegrationServerpackagesWmEDIpubSEFSX12

Now type “ 4010.sef”

(C:webMethods61IntegrationServerpackagesWmEDIpubSEFSX124010.sef)

alt

 

 

Step 20 : After that click on ok as shown below

alt

 

 

Step 21: Now click on EDIDocName as shown below

alt

 

 

Step 22: Now give EDIDocName as 850 and click on ok

alt

 

 

Step 23: Now click on includeEnvelope

alt

 

 

Step 24 : and make the includeEnvelope as true as show below

alt

 

 

Step 25: And then click on ok

alt

 

 

Step 26 : Now click on version as shown below    

alt

 

 

Step 27 : Now give the version 4010 and then click on ok

alt

 

 

Step 28 : Now copy the folder name 

alt

 

 

Step 29 : Now click on targetSchema

alt

 

 

Step 30 : Now paste the foldername which we have copied in the step28 as shown below

alt

 

 

Step 31: Now give the schema name what ever you like I have given the name as “schema”      (EDI2XMLGANESH:schema)

alt

 

 

Step 32:  Now go to target  package as shown below 

alt

 

 

Step 33: Give the name of your package(i.e the pkg  name in which your folder is present)

I have given my package name as jaiganesha 

alt

 

 

Step 34: Now copy the directory as shown below

alt

 

 

Step 35: Now paste it in targetDictionary  and click on ok as shown below

alt

 

 

Step 36 : Now click on save

alt

 

 

Step 37 : Now click on run as shown as shown below

alt

 

 

Step 38: Now click on ok as shown below

alt

 

 

Step 39 : Now click on refresh button as shown below

alt

 

 

Step 40 : Now the schema will be coming automatically as shown below

alt

 

 

Step 41 : Double click on the schema and you will get as shown below

alt

 

 

Step 42 : Now click on SchemaDt(see the mouse where it is clicked)

alt

 

 

Step 43 : Now we will get schemadt successfully as shown below

alt

 

 

Step 44 : Now right click on the folder and go to New in that go to DocumentType

alt


 

Strep 45: Now give the name of the documentType 

  The name of the documentType which I gave is xmldoc

alt

 

 

Step 46: Now select document as shown below and give some name to the document

alt

 

 

Step 47 :  Name which I gave

alt

 

 

Step 48 : Now select the document list as shown below

alt

 

 

Step 49 : Give some name and keep it as child

alt

 

 

Step 50: Now select string as shown below

alt

 

 

Step 51 : as above take 3 strings and place them in documentList as child elememts as shown below

alt

 

 

Step 52: Step 51 continuation

alt

 

 

Step 53: Now save 

 

 

Step 54 : Take a new flow service

alt

 

 

Step 55: Now go to package WmEdiSamples  in that go to sampleservice in that go to X12tovalues

alt

 

 

Step 56: Double click on that and copy the document

alt

 

 

Step 57: And paste in the new service which we have created in Step54

alt

 

 

Step 58: Now paste EdiDoc in Edidata in

alt

 

 

Step 59: Now make validate true and click on ok

 

alt

 

 

Step 60: Now go to the following map link below and delete the the link St02 to docCtlrNumber

alt

 

 

Step 61: Now map from ST to Values as shown below

alt

 

Step 62 : Now copy schemaDt

alt

 

 

Step 63: Now go to DocumentReference

alt

 

 

Step 64: Now paste the copied of step 62 and paste as shown below

alt

 

 

Step 65: Now map from EdiValues to Edi2XmlGanesh And save

alt

 

 

Step 66:  Now take Map in that copy xmldoc go to documentreference and paste in that as and click on ok shown below 

alt

 

 

Step 67 :  now map from Isa 06-àcode  to  string in documentlist

 

                                     Isa08-àcode to     string in documentlist

 

                                 GsàStàSt01àcode to string in documentlist

And click on save

alt

 

 

Step 68: Now copy the schema and paste it in “Wm.b2b.edi:converttovalues” by deleting the schema

As shown below and save

alt

 

 

Step 69: Step 67 continuation

alt

 

 

Step 70 : Now take documenttoxmlstring 

alt

 

 

Step 71: Now map from Edi2XmlGanesh to document

alt

 

 

Step 72: Now Take “sample.IO.test:write to file” in that map from xmldata to filecontent

alt

 

 

Step 73: Now make overwrite Flag as true and give the filename:path

And then save now click on run 

alt

 

 

Step 74 : The below is the output

 

alt

Prev Next
About the Author
Topic Replies (0)
Leave a Reply
Guest User

You might also like

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect