How to convert EDI XML?
Hi allI'm writing some BPEL process that will send the EDI Documents for using the AQs B2B integration.
BPEL works with enqueues and finally the XML data it to the AQ IP_OUT_QUEUE. From there B2B will take and send to the Trading partner. I have examples of EDI documents, but they are not xml. Can someone tell me if I can convert these EDI XML documents?
The EDIFECS constructor can be of any use here?
TIA,
Yes, SpecBuilder (generator of EDIFECS alias I guess) can help with that.
(1) start SpecBuilder
(2) in the menu, select Tools/parser
(3) select one of your data files and type EDI data, also don't forget to check 'Advanced Options '.
(4) then (ignore preprocessor)
(5) then (no special data structure)
(6) choose the ECS file that you then use in B2B.
(7) possibly select next several times to accept the default values (displayed only if necessary dialog boxes)
(8) in Analyzer mode, select 'generate XData", following
(9) SpecBuilder displays the parsed file. Switch mode XML (top right button) and you're there!
The XML file can be saved, with the active XML view, select the button "save data under ' and save in a directory. There is your test in the XML file. The process is a bit complicated and it is easy to forget to select 'Advanced Options '.
Good luck!
-Erik
Tags: Fusion Middleware
Similar Questions
-
How to convert DateTime xml in xdp (Designer)?
Hi, I want to convert DateTime format an XML in the designer, the value DateTime in xml format is NOT in common format YYYY-MM-DD (if it is in a common format, can I do this with pattern)
I have a 'DateTime' field in Xdp can obtain Xml date and time:
In XML < DateTime > DD-MM-YYYY < / DateTime > I want to convert in XDP in DateTime Field in 'April-DD-YYYY ".
Can I do this?
You can do this way...
Bind the date field in your XML tag.
Set the model display to the date field.
Place the following code in the initialize event of the date field.
The value JavaScript as a language.
var dtStr = this.rawValue;
var pos1 = dtStr.indexOf ("-");
var pos2 = dtStr.indexOf ("-", pos1 + 1);
var strMonth = dtStr.substring (0, pos1);
strDay = dtStr.substring var (+ 1 pos1, pos2);
var strYear = dtStr.substring (pos2 + 1);Assign the value to put in shape to the Date field.
this.rawValue = strYear + '-' + strMonth + '-' + strDay.
Thank you
Srini
-
How to convert an xml to a string for a textflow
Hello
usually I use string type fields to feed the textFlows.
now for comfort Visual, I want to store in the file in XML format and the thing was successful, but when I want to use them I have problems, because the XML formatting creates line spacing that I don't want.
for example:
" < TextFlow columnCount ="inherit"columnGap ="inherit"columnWidth ="inherit"lineBreak ="toFit"paddingBottom ="4"paddingLeft ="4"paddingRight, paddingTop ="4"="4"paragraphSpaceAfter = '15' paragraphSpaceBefore ="0"verticalAlign ="top"id ="flow"whiteSpaceCollapse ="preserve"xmlns =" http://ns.Adobe.com/TextLayout/2008 ">
< linkActiveFormat >
< TextLayoutFormat color = "#cc00cc" fontWeight = "bold" = "underline" textDecoration / >
< / linkActiveFormat >
< linkHoverFormat >
< TextLayoutFormat color = "#cc0000" fontWeight = "bold" = "underline" textDecoration / >
< / linkHoverFormat >
< linkNormalFormat >
< TextLayoutFormat color = "#000099" fontWeight = "bold" = 'none' textDecoration / >
< / linkNormalFormat >
< p color = "#990099" fontSize = "15" >
< span > Gestione dei con translations TLF e Testo classico </span >
< /p >
< p color = "#666555" fontFamily = "Arial" fontSize = "14" >
< span > Novità introdotte con Ultima version di Flash CS5 sono molteplici, una di queste novita if i campi di testo. </span >
< /p >
< p color = "#990099" fontSize = "15" >
c < span > Cosa'e da sapere sul Text Layout Framework (TLF)? </span >
< img id = "1 |" emot | 0"height ="18"width = source"18"="[object Bitmap]"/ >
< span > < / span >
< /p >
< p color = "#666555" fontFamily = "Arial" fontSize = "14" >
Che respect al Testo Classico, </span > < span >
< /p >
< / TextFlow >
perform:
init--------------------------------------------------------------
Gestione dei con translations TLF e Testo classico
Novità introdotte con Ultima version di Flash CS5 sono molteplici, una di queste novita if i campi di testo.
C cosa'e da sapere sul Text Layout Framework (TLF)?
Che respect al Testo Classico,
--------------------------------------------------------------------- end
Instead of:
init--------------------------------------------------------------
Gestione dei con translations TLF e Testo classicoNovità introdotte con Ultima version di Flash CS5 sono molteplici, una di queste novita if i campi di testo.C cosa'e da sapere sul Text Layout Framework (TLF)?Che respect al Testo Classico,--------------------------------------------------------------------- end
like I want to.Now I see that with spark.utils I can use importFromXML to convert to a textFlow with collapse of the line in excess, but unfortunately the spark of class is not visible in Flash/as3.Can you help me?Thanks in advanceJean-Paulconfig = new Configuration();
format = new TextLayoutFormat (config.textFlowInitialFormat);
format.whiteSpaceCollapse = "collapse."
config.textFlowInitialFormat = format;
collapsingTextLayoutImporter = TextConverter.getImporter)
TextConverter.TEXT_LAYOUT_FORMAT, config);Flex SDK is opensource. Scrap of code above comes from spark.utils.TextFlowUtil.
-
Hello
I am now able to post data to a web server by using Blackberry JDE (medical use).
Now, instead of display the plain text, I would like to send an XML file.
I am able to do it using this code on a 'normal ': Java application
import java. IO;
Org.w3c.dom import. *;
Import javax.xml.parsers. *;
Javax.xml.transform import. *;
Javax.xml.transform.dom import. *;
Javax.xml.transform.stream import. *;public class {XML
Public Shared Sub main (String [] args) {}
try {}
DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();
DocumentBuilder builder = factory.newDocumentBuilder ();
Doc document = builder.newDocument ();
Root element = doc.createElement ("root");
doc.appendChild (root);
Child element = doc.createElement ("child");
child.setAttribute ("name", "value");
root.appendChild (child);Add a text element to the child
Text = doc.createTextNode ("text");
child.appendChild (text);implement a transformer
TRANSFAC TransformerFactory = TransformerFactory.newInstance ();
Transformer trans = transfac.newTransformer ();
trans.setOutputProperty (OutputKeys.OMIT_XML_DECLARATION, 'yes');
trans.setOutputProperty (OutputKeys.INDENT, 'yes');create the string of the xml tree
StringWriter sw = new StringWriter();
StreamResult result = new StreamResult (sw);
DOMSource source = new DOMSource (doc);
TRANS. Transform (source, result);
String xmlString = sw.toString ();
System.out.println (xmlString);
} catch (Exception e) {}
make error management
}
}
}However, on the Blackberry JDE, many functions is not recognized.
I saw the class DocumentBuilderFactory (net.rim.device.api.xml.parsers.DocumentBuilderFactory), the DocumentBuilder (net.rim.device.api.xml.parsers.DocumentBuilder) class and the interface of Document in the docs of Blackberry Java (4.2.1).
So, I'm able to create an XML Document... but I don't know how to convert to a string?
How can I do this? The TransformerFactory class doesn't seem to exist... and I did not find an alternative yet.
At the present time, here is the code I use to publish data:
String coord = lat + ";" + LNG; post data
con = (HttpConnection) Connector.open (url); Open the connection URL
con.setRequestMethod (HttpConnection.POST); POST method
con.setRequestProperty ("Content-Type", "application/x-www-formulaires-urlencoded");
out = con.openOutputStream (); display the results in a stream
out. Write (Coord.GetBytes ());responseCode = con.getResponseCode (); Send data and receive the response code
If (responseCode! = HttpConnection.HTTP_OK) {}
System.out.println ("HTTP STATUS CODE: 404"); error
} else {}
System.out.println ("HTTP STATUS CODE: 200"); successful
}
If (con! = null) con. Close; close the connection to the URLAs mentioned, rather than display a string with a delimiter between each value (there will be a lot more than two values finally), I would like to publish an XML. It will be more "elegant" and easier to parse by my code on the web server.
Maybe I don't have to convert it to a string?
In other words, how can I convert my XML Document to send it via the wireless network?
Thanks for your help!
TransformerFactory does not exist in the BlackBerry API. As far as I can tell, you need to implement yourself. You can do this by walking the DOM and the output of channels. They have an example of the market of the DOM in the XMLDemo, but they view as fields, you just need to write strings.
-
How to convert XMl to JSON object in jsx?
Is anyone know how can I convert an xml file to the json object. any help or any jsx library that can help please let me know if possible?
Thank you
Upendra
I was able to create this script with your help, which is a generic XML to JSON converter xml obj passes just in the service.
Thanks for your suggestion Silly-Vfunction xmlToJson(xml) { // Create the return object var obj = {}; if (xml.nodeKind() == "element") { if (xml.attributes().length() > 0) { for (var j = 0; j < xml.attributes().length(); j++) { var attributeName = xml.attributes()[j].name(); obj[attributeName] = String(xml.attributes()[j]); } } } else if (xml.nodeKind() == "text") { obj['text'] = xml.text(); } if (xml.children()) { for (var i = 0; i < xml.children().length(); i++) { var item = xml.child(i); if (xml.children()[i].nodeKind() == "text") { obj['text'] = xml.children()[i].toString(); } else { var nodeName = item.name(); if (typeof(obj[nodeName]) == "undefined") { obj[nodeName] = xmlToJson(item); } else { if (typeof(obj[nodeName].push) == "undefined") { var old = obj[nodeName]; obj[nodeName] = []; obj[nodeName].push(old); } obj[nodeName].push(xmlToJson(item)); } } } } return obj; };
Thank you
Upendra Stifler
-
How to convert xml to json in as2 object data
Hi all
Please let me know how I can convert the XML in json object. I have a lot of research, but did not find any solution. Please help me please guys.
Thank you
Shyam vir
create a swf main as3 to load your as2 project and an as3 swf that converts your xml in json file.
-
How to convert a .fmb file to .xml file and also how to download apex?
How to convert a .fmb file to .xml file and also how to download the .xml file converted in the oracle apex?
Any idea?
Any link?
Published by: skud on February 24, 2011 21:17
Published by: skud on February 24, 2011 21:28Hello
You need to replace the scott.nature_of_trans by nature_of_trans and re he convert to xml, and then create.
Kind regards
Patel Kartik
------------------------------------------------------------------------
http://patelkartik.blogspot.com/
http://Apex.Oracle.com/pls/Apex/f?p=9904351712:1 -
How to get the XML from the Request of Java object before sending. SOAP Web services
I'm building
Java
request toOnline Web Services
and we'll call itapplication A
. I got theWSDL
forms the second part of the file in order to communicate with their application and we'll call itapplication B
.Of the
WSDL
file generate theJava
required classes that areRequests
andResponses
. classesApplication A
will send somerequest
object after setting the parameters required and with the exception ofresponse
object ofapplication B
.The connection is established and the two
applications A and B
communicate with each other.Question:
Of
application A
How can I get thexml
data (or text file) for therequest
object before sending it toapplication B
?As described the connection is passing
Java
object such asrequest
and I know that in some point thisrequest
will be converted toxml
file. How to get it?-EDIT-
Missing important information which can be confusing.
I'm generated the
Java
rating were generated using theAxis
frameworkThe problem is solved by, add the following statements in the
bindingStub
class that was automatically generated from theWSDL
file to theweb-services
you are trying to access.String request = _call.getMessageContext().getRequestMessage().getSOAPPartAsString();
String response = _call.getMessageContext().getResponseMessage().getSOAPPartAsString();
These statements should be placed after the following method call
_call.invoke
otherwise you will getNullPointerException
._call
is a variable of typeorg.apache.axis.client.Cal
and it is automatically generated byAxis
-
How to convert pdf filled a fdf or xfdf file in c#
How to convert filled pdf to xml or fdf or file xdfd which is designed in the Adobe livecycle designer 7.1 starting point is more significant. Thanks in advance.
Concerning
-Ganesh
It is for use on a server (like the back end of a shipment, perhaps)?
-
hell there everyone,
I have a question which is:
How to convert a string that we get by reading an XML in the instance of date value type?
So there is a XML that modifiedDate as an attribute on a node of the XML and how I put this value in an instance variable date?
the timeformat in the XML file is: mm/dd/yyyy hh: mm: = > 31/12/2010 23:57:46
I chose this time format because I want to use the method . parse() which always causes an error, but that's another topic...,.
hope I was clear on the issue,
Thanks in advance for the help.
First of all, you should watch the Date object constructor to find out how to specify different parameters.
public void Date (yearOrTimevalue:Object, month:number, date:number = 1, hour:number = 0, minute:number = 0, second:number = 0, millisecond:number = 0)
Then you need to determne how to break the string by using the String.Split method. The first split() should be the space between the date and time, the second for the slashes in the date and the third for the colon in time.
Then you come to take each of these paintings of substrings and feed them in the constructor as the Number() values.
If you remain unsure how to do this, look at the different terms that I have identified in the help documents and you will find them all explained with examples.
-
How to convert pictures from iPhoto? I need general info and advice. I saw the help info but I am very nervous to take on this project, as my library is huge (95GB), organized in several events and albums. My library is saved (Time Machine SimpleSave HD). I am running OSX El Capitan 10.11.6 on iMac.
Have you seen this document? Updated Photos for OS X - Apple iPhoto support
https://support.Apple.com/en-GB/HT204655
Is your iPhoto Library Library on your system drive in the pictures folder? And you have a lot of free space on your system drive? The migration will need additional temporary storage.
Then drag the iPhoto library icon pictures open to create a new library of Photos of her.
Your albums appear unchanged in the Photos. Events will appear as additional albums, because the pictures has no events. See this link: How Photos handles content and metadata for iPhoto and Aperture - Apple Support
-
How to convert WAV, Alac
How to convert WAV to ALAC files.
- Select Apple Lossless as your chosen import format using edit > Preferences > import settings.
- Choose files to convert.
- Use file > convert > create the Version Apple Lossless.
TT2
-
How to convert .pdf to .epub
Please see me step by step how to convert .pdf to .epub
Hello PrasanW.
Thank you for using communities Support from Apple. I see your message that you want to convert PDF files into ePub files.
Read this article.
Creating ePub with Pages files
Have a great day.
-
How to convert mp3 to acc in new itunes file 12.4?
How to convert mp3 to acc in new itunes file 12.4?
Annoydc,
Read: Re: suddenly I can't right click to create Mp3s in iTunes.
-
How to convert audio files (many voices) to the text?
Hello community
How to convert file .aif audio to text?
It contains several voice
Thank you
With a transcription like this service:
Maybe you are looking for
-
In Safari, I get the error code BSOD 0 X 80060402, error code Windows defender in the available boot device. He told me to contact Microsoft certified technicians. I do not use Microsoft or windows.
-
This program was previously working until what I checked today and it has an error. I checked the channel name and the group name and they seem to be correct. Is someone can you please help me understand this.
-
Boolean Array controlled clock reentrante Subvi
I am in the final stage of implementation of my program. Currently, I have to overcome two obstacles. #1 corresponds to the attached VI "my chronometer. The round LED starts to count time and stops him. Problem is even if I turn it off it, the timer
-
Urgent: HP LaserJet Pro 200 Color MFP M276
Heeeeeeeelp! Urgent! I am looking for the software and driver for HP LaserJet Pro 200 Color MFP M276. To the HP Web site, there is no download available. Who can help me with a link downlod? [Personal information]
-
Sound icons & network disappeared.
I have Vista and my sound & network icons have disappeared from my bar. I went into the control panel and see that both sound & network icons appear in gray. Active Device Manager and no exclamation point. Now what?