webMethods step by step EDI to XML file
Task: EDI to XML
OS: WindowsOS
Platform: webMethods 6.1
Step 1: Create a folder, folder name which I gave is âEdi2XmlGaneshâ
Step 2 :Now right click on the folder and go to New in New right click on all choice
Step 3 : After clicking on all choice select the option âFlat File Dictionaryâ and then click on next
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
Step 5: now the dictionary will be created now leave that
Step 6: Now right click on the folder i.e Edi2XmlGanesh and go to New and in New go to FlowService
Step 7: Now give the name of the flow service
The name of the flow service which I gave is âfirstflowserviceâ
Step 8: Now we will get the following screen as show below
Step 9: Now click on the package i.e WmEdi in that click on Wm
Step 10: After clicking on Wm you will get b2b Folder click on that
Step 11: After clicking on b2b folder you will get edi folder click on that
Step 12: After clicking on edi go to the last element i.e SEFParse and select that
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â
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
Step 15: Step14 continuation i.e after selecting wm.b2b.edi:SEFParse the elements in pipeline will be seen by us
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
Step 17: and paste that path in SEFfilename
Step 18 : now I have pasted the path(step17 continution for pasting the path)
Step 19: After pasting the path i.e C:webMethods61IntegrationServerpackagesWmEDIpubSEFSX12
Now type â 4010.sefâ
(C:webMethods61IntegrationServerpackagesWmEDIpubSEFSX124010.sef)
Step 20 : After that click on ok as shown below
Step 21: Now click on EDIDocName as shown below
Step 22: Now give EDIDocName as 850 and click on ok
Step 23: Now click on includeEnvelope
Step 24 : and make the includeEnvelope as true as show below
Step 25: And then click on ok
Step 26 : Now click on version as shown below
Step 27 : Now give the version 4010 and then click on ok
Step 28 : Now copy the folder name
Step 29 : Now click on targetSchema
Step 30 : Now paste the foldername which we have copied in the step28 as shown below
Step 31: Now give the schema name what ever you like I have given the name as âschemaâ (EDI2XMLGANESH:schema)
Step 32: Now go to target package as shown below
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
Step 34: Now copy the directory as shown below
Step 35: Now paste it in targetDictionary and click on ok as shown below
Step 36 : Now click on save
Step 37 : Now click on run as shown as shown below
Step 38: Now click on ok as shown below
Step 39 : Now click on refresh button as shown below
Step 40 : Now the schema will be coming automatically as shown below
Step 41 : Double click on the schema and you will get as shown below
Step 42 : Now click on SchemaDt(see the mouse where it is clicked)
Step 43 : Now we will get schemadt successfully as shown below
Step 44 : Now right click on the folder and go to New in that go to DocumentType
Strep 45: Now give the name of the documentType
The name of the documentType which I gave is xmldoc
Step 46: Now select document as shown below and give some name to the document
Step 47 : Name which I gave
Step 48 : Now select the document list as shown below
Step 49 : Give some name and keep it as child
Step 50: Now select string as shown below
Step 51 : as above take 3 strings and place them in documentList as child elememts as shown below
Step 52: Step 51 continuation
Step 53: Now save
Step 54 : Take a new flow service
Step 55: Now go to package WmEdiSamples in that go to sampleservice in that go to X12tovalues
Step 56: Double click on that and copy the document
Step 57: And paste in the new service which we have created in Step54
Step 58: Now paste EdiDoc in Edidata in
Step 59: Now make validate true and click on ok
Step 60: Now go to the following map link below and delete the the link St02 to docCtlrNumber
Step 61: Now map from ST to Values as shown below
Step 62 : Now copy schemaDt
Step 63: Now go to DocumentReference
Step 64: Now paste the copied of step 62 and paste as shown below
Step 65: Now map from EdiValues to Edi2XmlGanesh And save
Step 66: Now take Map in that copy xmldoc go to documentreference and paste in that as and click on ok shown below
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
Step 68: Now copy the schema and paste it in âWm.b2b.edi:converttovaluesâ by deleting the schema
As shown below and save
Step 69: Step 67 continuation
Step 70 : Now take documenttoxmlstring
Step 71: Now map from Edi2XmlGanesh to document
Step 72: Now Take âsample.IO.test:write to fileâ in that map from xmldata to filecontent
Step 73: Now make overwrite Flag as true and give the filename:path
And then save now click on run
Step 74 : The below is the output
