About XML interop

I Know that for using XML Interop I have to produce an XML file like that :
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jdeRequest comment="" environment="PY812" pwd="xxxx" role="*ALL" session="" sessionidle="" type="callmethod" user="BUFFETAUD">
     <callMethod app="" name="LaunchBatchApplication">
          <returnCode code="0"/>
          <params>
               <param name="szReport">R0006P</param>
               <param name="szVersionJDE">XJDE0001</param>
               <param name="cSynch">0</param>
               <param name="cPrintPreview">0</param>
               <param name="szDataSourceOverride"/>
               <param name="mnServerJobNumber">0</param>
               <param name="cReturn"/>
               <param name="cJDELogging">0</param>
               <param name="cTracing">0</param>
               <param name="cUBELoggingLevel">1</param>
               <param name="szJobQueue">QBATCH</param>
          </params>
     </callMethod>
</jdeRequest>
We are under JDE 8.12 Tools 8.98.2.3 and an AS400 V6R1.
We are now using Oracle Data Ingrator 11G.
I would like to know how and where to send using ODI this XML to make JDE execute my call?

This is from Oracle.
Please mark the answer as correct if you think it's right.
JXMLTool (EnterpriseOne 8.98)
Introduction:
The JXMLTool is a GUI tool developed by Global Support Services to submit XML requests to ERP enterprise servers. The tool can be used to verify the integrity of the ERP services (kernel configuration, BSFN processing, among others) when testing inbound integrations from XPI and/or other third party systems to ERP. This document contains instructions on how to install and configure the tool.
Installation and Configuration:
1) Verify that a supported Java Development Kit (JDK) is installed in the workstation to be used in the test (for example, verify that JDK 1.4.2 is installed).
Note: It is recommended that the workstation also have an EnterpriseOne 8.12 full client package installed.
2) Create a new directory in the workstation (for example, C:\JXMLTool).
3) Copy the following files from the Deployment server to the directory created in step 2:
e812\system\classes\Base_JAR.jar
e812\system\classes\JdeNet_JAR.jar
e812\system\classes\System_JAR.jar
e812\system\classes\log4j.jar
e812\system\classes\xerces.jar
e812\system\classes\xalan.jar
e812\system\classes\ManagementAgent_JAR.jar
e812\system\classes\jmxri.jar
e812\system\classes\commons-httpclient-3.0.jar
e812\system\classes\commons-logging.jar
e812\system\classes\ xmlparserv2.jar
e812\system\classes\ jmxremote_optional.jar
e812\system\Classes\samples\jdeinterop.ini.templ
e812\system\Classes\samples\jdelog.properties
Note: If you have multiple-foundation implemented in the system, make sure the files you are copying match the service pack level installed in the enterprise server.
4) Rename jdeinterop.ini.templ to jdeinterop.ini. Modify the jdeinterop.ini file copied in step 3 to reflect the correct enterprise server name:
a) Ensure that parameters glossaryTextServer in [SERVER] section, serviceNameConnect in [JDENET] section, and enterpriseServer, port in [INTEROP] section specify the correct enterprise server name and JDENET port number).
b) Configure the value of Repository under [INTEROP] section such that it points to the directory created in step 2 (for example, “Repository= C:\JXMLTool”).
c) Ensure that parameter SecurityServer in [SECURITY] section specify the correct security server.
d) Configure OCMEnabled to “false” in [OCM] section.
e) Add the parameter netTrace to [JDENET] section and configure its value as “1” (for example, “netTrace=1”)
5) Rename jdelog.properties.templ to jdelog.properties. Modify the jdelog.properties file to reflect the characteristics of the machine:
a) Ensure that jdelog.handler.JDELOG.File points to directory created in step 2 (for example, jdelog.handler.JDELOG.File=C:/JXMLTool/jderoot.log).
b) Ensure that jdelog.handler.JASLOG.File points to directory created in step 2 (for example, jdelog.handler.JASLOG.File=C:/JXMLTool/jas.log).
c) Remove comment marks from parameters jdelog.Debug, jdelog.handler.jasdebug, jdelog.handler.jasdebug.File, and jdelog.handler.jasdebug.Level.
c) Ensure that jdelog.handler.jasdebug.File points to directory created in step 2 (for example, jdelog.handler.jasdebug.File=C:/JXMLTool/jasdebug.log).
6) Create a new text file using the text editor of your choice (for example, Notepad).
7)Paste the following text to the new document:
@echo off
REM Edit this file to the locations for Java and EnterpriseOne
REM JDK root directory
set JAVA_HOME=C:\j2sdk1.4.2_12
set PATH=C:\j2sdk1.4.2_12\bin
REM EnterpriseOne Windows client install path
set OneWorld_HOME=C:\e812
REM This directory
set EXAMPLES=C:\Interop\JXMLTool
REM Set the CLASSPATH environment variable.
REM The following are libraries that are needed for Connector samples:
set CLASSPATH=Base_JAR.jar
set CLASSPATH=%CLASSPATH%;C:\Interop\JXMLTool\
set CLASSPATH=%CLASSPATH%;C:\Interop\JXMLTool\JXMLTool.class
set CLASSPATH=%CLASSPATH%;JdeNet_JAR.jar
set CLASSPATH=%CLASSPATH%;System_JAR.jar
set CLASSPATH=%CLASSPATH%;log4j.jar
set CLASSPATH=%CLASSPATH%;xerces.jar
set CLASSPATH=%CLASSPATH%;xalan.jar
set CLASSPATH=%CLASSPATH%;ManagementAgent_JAR.jar
set CLASSPATH=%CLASSPATH%;jmxri.jar
set CLASSPATH=%CLASSPATH%;commons-httpclient-3.0.jar
set CLASSPATH=%CLASSPATH%;commons-logging.jar
set CLASSPATH=%CLASSPATH%;xmlparserv2.jar
set CLASSPATH=%CLASSPATH%;jmxremote_optional.jar
set CLASSPATH=%CLASSPATH%;%OneWorld_HOME%\system\classes\
a) Ensure that "set JAVA_HOME" command sets the variable with correct path to JDK directory (for example, "set JAVA_HOME=c:\jdk142").
b) Configure value of OneWorld_HOME such that it points to the directory where OneWorld® is installed (for example, “set OneWorld_HOME=C:\e812”).
c) Ensure that "set EXAMPLES" command sets the variable with the correct path to directory created in step 2 (for example, "set EXAMPLES=C:\JXMLTool").
d) Configure value of JDEINTEROPINI such that it points to the jdeinterop.ini file you copied in step 3 (for example,
“set JDEINTEROPINI=%EXAMPLES%\jdeinterop.ini”).
e) Append the path of the bin directory of the JDK to the PATH variable. For example, add the following line:
“set PATH=%JAVA_HOME%\bin”
8) Save the file as setenv.bat in the directory created in step 2 (for example, C:\JXMLTool\setEnv.bat).
9) Create a new text file using the text editor of your choice (for example, Notepad).
10) Paste the following text to the new document:
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.util.GregorianCalendar;
import java.util.Date;
import javax.swing.JOptionPane;
import javax.swing.JFrame;
import com.jdedwards.system.xml.XMLRequest;
import com.jdedwards.system.net.JdeNetTimeoutException;
import com.jdedwards.system.net.JdeNetConnectFailedException;
// Application: JXMLTool
// Description: Java tool that submits XML requests to OneWorld® enterprise Servers
// Author: Luis A. Santillo
public class JXMLTool extends JFrame implements ActionListener {         
Panel xmlPanel;
Label ServerNameLabel;
Label PortNumberLabel;
TextField PortNumberField;
TextField ServerNameField;
TextArea RequestArea;
TextArea ReplyArea;
Button submitButton;
String directory;
String owServerName;
String ReplyString;
int owPortNumber;
MenuBar mb = new MenuBar();
Menu fileMenu = new Menu("File");
Menu helpMenu = new Menu("Help");
MenuItem openMenuItem = new MenuItem("Open");
MenuItem exitMenuItem = new MenuItem("Exit");
MenuItem helpMenuItem = new MenuItem("About");
public static void main(String args[]) {
JXMLTool jxmltool = new JXMLTool();
jxmltool.init();
public void init () {
xmlPanel = createXMLPanel();
this.setSize(640, 480);
this.setResizable(true);
this.getContentPane().add(xmlPanel, BorderLayout.CENTER);
this.setVisible(true);
openMenuItem.addActionListener(this);
fileMenu.add(openMenuItem);
fileMenu.add(new MenuItem("-"));
exitMenuItem.addActionListener(this);
fileMenu.add(exitMenuItem);
helpMenu.add(helpMenuItem);
mb.add(fileMenu);
mb.add(helpMenu);
this.setMenuBar(mb);
submitButton.addActionListener(this);
directory = System.getProperty("user.dir");
private Panel createXMLPanel()
GridBagLayout gridbag = new GridBagLayout();
GridBagConstraints constraints = new GridBagConstraints();
xmlPanel = new Panel();
xmlPanel.setLayout(gridbag);
buildConstraints(constraints, 0, 0, 1, 1, 10, 5);
constraints.fill = GridBagConstraints.NONE;
ServerNameLabel = new Label("OneWorld® Server Name", Label.LEFT);
gridbag.setConstraints(ServerNameLabel, constraints);
xmlPanel.add(ServerNameLabel);
buildConstraints(constraints, 1, 0, 1, 1, 40, 0);
constraints.fill = GridBagConstraints.NONE;
ServerNameField = new TextField("", 20);
gridbag.setConstraints(ServerNameField, constraints);
xmlPanel.add(ServerNameField);
buildConstraints(constraints, 2, 0, 1, 1, 10, 0);
constraints.fill = GridBagConstraints.NONE;
PortNumberLabel = new Label("Port Number", Label.LEFT);
gridbag.setConstraints(PortNumberLabel, constraints);
xmlPanel.add(PortNumberLabel);
buildConstraints(constraints, 3, 0, 1, 1, 40, 0);
constraints.fill = GridBagConstraints.NONE;
PortNumberField = new TextField("", 20);
gridbag.setConstraints(PortNumberField, constraints);
xmlPanel.add(PortNumberField);
buildConstraints(constraints, 0, 1, 4, 1, 0, 40);
constraints.fill = GridBagConstraints.BOTH;
RequestArea = new TextArea("", 10, 80);
gridbag.setConstraints(RequestArea, constraints);
xmlPanel.add(RequestArea);
buildConstraints(constraints, 0, 2, 4, 1, 0, 5);
constraints.fill = GridBagConstraints.NONE;
submitButton = new Button("Submit");
gridbag.setConstraints(submitButton, constraints);
xmlPanel.add(submitButton);
buildConstraints(constraints, 0, 3, 4, 1, 0, 40);
constraints.fill = GridBagConstraints.BOTH;
ReplyArea = new TextArea("", 10, 80);
ReplyArea.setBackground(Color.gray);
gridbag.setConstraints(ReplyArea, constraints);
xmlPanel.add(ReplyArea);
return xmlPanel;
void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, int wx, int wy) {
gbc.gridx = gx;
gbc.gridy = gy;
gbc.gridwidth = gw;
gbc.gridheight = gh;
gbc.weightx = wx;
gbc.weighty = wy;
public void actionPerformed(ActionEvent e) {
if (e.getSource() instanceof MenuItem) {
String label = ((MenuItem)e.getSource()).getLabel();
if (label.equals("File"));
if (label.equals("Open")) {
FileDialog f = new FileDialog(this, "Open File", FileDialog.LOAD);
f.setDirectory(directory);
f.show();
directory = f.getDirectory();
setFile(directory, f.getFile());
f.dispose();
if (label.equals("Exit"))
System.exit(0);
if (label.equals("About"));
if (e.getSource() instanceof Button) {
if (ServerNameField.getText().equals(""))
ReplyArea.setText("Error: server name is either null or empty!\nPlease enter new server name.\n");
else {
if (PortNumberField.getText().equals(""))
ReplyArea.setText("Error: port number is either null or empty!\nPlease enter new port number.\n");
else {
owServerName = ServerNameField.getText();
try {
owPortNumber = Integer.parseInt(PortNumberField.getText());
ReplyString = submitXMLRequest(RequestArea.getText());
ReplyArea.setText(ReplyArea.getText() + "\n\n" + ReplyString);
catch (NumberFormatException nfex) {
ReplyArea.setText("Error: unable to format port number!\n");
ReplyArea.setText(ReplyArea.getText() + "Exception: " + nfex +"\nPlease enter new port number.\n");
public void setFile(String directory, String filename) {
if ((filename == null) || (filename.length() == 0)) return;
File f;
FileReader in = null;
try {
f = new File(directory, filename);
in = new FileReader(f);
int size = (int) f.length();
char[] data = new char[size];
int chars_read = 0;
while(chars_read < size)
chars_read += in.read(data, chars_read, size-chars_read);
RequestArea.setText(new String(data));
catch (IOException e) {
ReplyArea.setText(e.getClass().getName() + ": " + e.getMessage());
finally { try { if (in != null) in.close(); } catch (IOException e) {} }
public String submitXMLRequest(String xmlIn) {
GregorianCalendar gregCalendar = new GregorianCalendar();
String xmlOut = null;
Date currentDate;
try {
ReplyArea.setText(gregCalendar.getTime() + " New XML request.\n");
ReplyArea.setText(ReplyArea.getText() + gregCalendar.getTime() + " Creating XML request using text in area above.\n");
XMLRequest xml = new XMLRequest(owServerName, owPortNumber, xmlIn);
ReplyArea.setText(ReplyArea.getText() + gregCalendar.getTime() + " XML request submitted to " + owServerName + " using port number " + PortNumberField.getText() + ".\n");
ReplyArea.setText(ReplyArea.getText() + gregCalendar.getTime() + " Waiting for reply from " + owServerName + ".\n");
xmlOut = xml.execute();
catch (JdeNetTimeoutException toex) {
ReplyArea.setText(ReplyArea.getText() + "\nError: JDENet timed out!\n" + "Exception: " + toex +"\n\n");
catch (JdeNetConnectFailedException cfex) {
ReplyArea.setText(ReplyArea.getText() + "\nError: JDENet connect failed!\n" + "Exception: " + cfex +"\n\n");
catch (java.io.IOException ioex) {
ReplyArea.setText(ReplyArea.getText() + "\nError: IO Exception!\n" + "Exception: " + ioex +"\n\n");
currentDate = new Date ();
gregCalendar.setTime(currentDate);
ReplyArea.setText(ReplyArea.getText() + gregCalendar.getTime() + " Reply received from " + owServerName + ".\n");
return xmlOut;
public void processWindowEvent(WindowEvent e) {
if (e.getID() == Event.WINDOW_DESTROY) {
System.exit(0);
11) Save the file as JXMLTool.java in the directory created in step 2 (for example, C:\JXMLTool\JXMLTool.java).
12) Create a new text file using the text editor of your choice (for example, Notepad).
13) Paste the following text to the new document:
@echo off
call setenv.bat
javac JXMLTool.java
14) Save the file as build.bat in the directory created in step 2 (for example, C:\JXMLTool\build.bat).
15) Build the JXMLTool Java application:
a) Open a new MS-DOS Command Prompt window.
b) Change the current directory to the directory created in step 2.
c) Call the build.bat script to compile the Java code and create the JXMLTool Java class.
d) Verify that JXMLTool.class exists in the directory created in step 2 (for example,
“C:\JXMLTool\JXMLTool.class”).
16) Create a new text file using the text editor of your choice (for example, Notepad).
17) Paste the following text to the new document:
@echo off
call setenv.bat
java -Dconfig_file=jdeinterop.ini JXMLTool
18) Save the file as run.bat in the directory created in step 2 (for example, C:\JXMLTool\run.bat).
Usage:
1) Open a new MS-DOS Command Prompt window.
2) Change the current directory to the directory created in step 2.
3) Call the run.bat script to execute the JXMLTool Java application.
5) In the Java application, enter enterprise server name and port number in appropriate text fields.
6) Enter the following text in the upper panel:
<?xml version='1.0' ?>
<jdeRequest type='callmethod' user='JDE' pwd='JDE' environment='JPD812' session=''>
<callMethod name='GetEffectiveAddress' app='JXMLTool'>
<params>
<param name='mnAddressNumber'>1001</param>
</params>
</callMethod>
</jdeRequest>
7) Modify the XML information to reflect the characteristics of the system:
a) Replace user, password, and environment with correct values for your system.
b) If 1001 is not a valid AddressBook number, replace it with a valid AB number.
8) Click the button “Submit”.
9) Verify that an XML reply is received from enterprise server. The reply will be displayed in the lower panel.
Retrieving an XML Template for BSFN Request:
1) Repeat steps 1 through 9 in Usage, using the following text in step 6:
<?xml version='1.0' ?>
<jdeRequest type='callmethod' user='JDE' pwd='JDE' environment='JPD812'>
<callMethodTemplate name='GetEffectiveAddress' app='JXMLTool'/>
</jdeRequest>
2) Highlight the text in the lower panel, starting with tag “<?xml version='1.0' ?>”.
3) Press Control (Ctrl) and C keys simultaneously.
4) Open a new text document using the text editor of your choice.
5) Paste contents into new text document.
6) Remove tag “<returnCode=’0’/>”.
7) Save text document with extension .xml.

Similar Messages

  • Explain about xml schema with example

    Hi,
    Kindly anybody explain about xml schema with example?
    With Regards,
    L.rajesh

    Maybe this is what you are looking for ??? If not give us more info...
    Re: How it work?

  • Why are people so crazy about XML publisher?

    Why are people so crazy about XML publisher? Maybe there are things I am not aware of, but with the exception of adding the ability to export to Excel from EBS, or having a template for a letter in which a few things will change from copy to copy, I don't see a huge advantage to using it.
    Reports is such a powerful tool and creates so much flexibility in creating graphical documents. Things that are so easy to do in reports, from my experience, is extremely difficult to impossible in XML publisher. In publisher, you have to do a lot of logic yourself that reports would do for you just by saying Yes or No to a property.
    When I first learned about XML publisher, I was really excited about learning to use it. But when I saw how difficult it is to do simple tasks, and how much you have to reinvent the wheel, I became really disappointed. There are lots of examples on the web about how to do this or how to do that with it, but honestly they seem to show you how to go to a lot of trouble to accomplish something that is easy in reports.
    People seem to want to avoid bitmapped reports like the plague, but I think they are extremely underrated.
    What do you guys think? Am I missing something? I would like to hear other opinions and perspectives.
    Thanks,
    Kurz

    Hello Kurz,
    BI Publisher (XML Publisher)
    - can use any relational DB
    - can easily be connected to Oracle Applications (Siebel, JD Edwards, ...)
    - Templates can be edited by users
    - more output formats
    Have a look at http://www.oracle.com/technology/products/xml-publisher/docs/BI_Publisher_for_Apps.pdf
    or the product home at http://www.oracle.com/technology/products/xml-publisher/index.html
    Regards
    Marcus

  • Question about XML validation against schema

    My question is probably a basic one about XML. I tried PurchaseOrder example from the book "J2EE Web Services" by Richard Monson-Haefel. A simplified version as followings -
    Address.xsd -
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://xml.netbeans.org/schema/Address"
    xmlns:addr="http://xml.netbeans.org/schema/Address"
    elementFormDefault="qualified">
    <element name="address" type="addr:USAddress" />
    <complexType name="USAddress">
    <sequence>
    <element name="name" type="string" />
    <element name="street" type="string" />
    <element name="city" type="string" />
    <element name="state" type="string" />
    <element name="zip" type="string" />
    </sequence>
    </complexType>
    </schema>
    PurchaseOrder.xsd -
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://xml.netbeans.org/schema/PurchaseOrder"
    xmlns:po="http://xml.netbeans.org/schema/PurchaseOrder"
    xmlns:ad="http://xml.netbeans.org/schema/Address"
    elementFormDefault="qualified">
    <import namespace="http://xml.netbeans.org/schema/Address" schemaLocation="Address.xsd" />
    <element name="purchaseOrder" type="po:PurchaseOrder" />
    <complexType name="PurchaseOrder">
    <sequence>
    <element name="accountName" type="string" />
    <element name="accountNumber" type="unsignedShort" />
    <element name="shipAddress" type="ad:USAddress" />
    <element name="total" type="float" />
    </sequence>
    <attribute name="orderDate" type="date" />
    </complexType>
    </schema>
    Then PurchaseOrder.xml is -
    <purchaseOrder orderDate="2007-12-12"
    xmlns='http://xml.netbeans.org/schema/PurchaseOrder'
    xmlns:addr="http://xml.netbeans.org/schema/Address"
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xsi:schemaLocation='http://xml.netbeans.org/schema/PurchaseOrder ../xsd/PurchaseOrder.xsd'>
    <accountName>Starwood</accountName>
    <accountNumber>220</accountNumber>
    <shipAddress>
    <name>Data Center</name>
    <street>1501 Washington St.</street>
    <city>Braintree</city>
    <state>MA</state>
    <zip>02148</zip>
    </shipAddress>
    <total>250</total>
    </purchaseOrder>
    Then I did a XML validation but have this error -
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'name'. One of '{"http://xml.netbeans.org/schema/Address":name}' is expected. [19]
    It complains <name> tag in <shipAddrss> needs namespace of "http://xml.netbeans.org/schema/Address". Why?
    Is it possible to change XML so it does not need name space for elements inside <shipAddress>?
    Thanks

    Hi Madhura,
    see here my comparison of the web version against the local file version on my Windows box (which is itself not the fastest): It makes a factor 16 in difference!
    C:\Temp\xsdvalidator>java XsdValidator madhu.xsd madhu.xml
    cvc-pattern-valid: Value 'provamail.it' is not facet-valid with respect to patte
    rn '[^@]+@[^.]+[.].+' for type 'EmailType'.
    NOK - Validation error
    Elapsed time: 16353 ms
    C:\Temp\xsdvalidator>java XsdValidator madhu_local.xsd madhu.xml
    cvc-pattern-valid: Value 'provamail.it' is not facet-valid with respect to patte
    rn '[^@]+@[^.]+[.].+' for type 'EmailType'.
    NOK - Validation error
    Elapsed time: 994 ms
    Obviously, the w3c.org domain that you specified as ressource location is very slow - and, as the FAQ shows, this delay is intentional!
    The W3C servers are slow to return DTDs. Is the delay intentional?
    Yes. Due to various software systems downloading DTDs from our site millions of times a day (despite the caching directives of our servers), we have started to serve DTDs and schema (DTD, XSD, ENT, MOD, etc.) from our site with an artificial delay. Our goals in doing so are to bring more attention to our ongoing issues with excessive DTD traffic, and to protect the stability and response time of the rest of our site. We recommend HTTP caching or catalog files to improve performance.
    --> They don't want to have requests to their site from productive servers all around the world.
    Regards,
    Rüdiger

  • Problem about .xml file from PPro CS5 to FCP with RED and P2 file.

    I have create a Project in Premiere Pro CS5.
    I import the RED file R3D or P2  file XMF and editing my media.
    From menù File i select Export to "Final Cut Pro XML.."
    I open FCP and Import file XML but the media are not reconnect.
    "Warrnig: Non-critical error were found while processing an XML document.
    Would you like to see a log of these error now?"
    I want see the log file and...
    "<file>: Unable to attach specified media file to new clip."
    Where is the problem?

    Hi Dennis I re-format my MACPRO 8 Core and I installed Final Cut Studio Suite and CS5 Premium (no CS4)
    I install Blackmagick driver Decklink 7.6.3
    If I open the After Effects  and setting preview card blackmagic, I see the preview in external monitor.
    If I open the Premiere Pro and setting preview, I don't see the blackmagic card but the second monitor, DV....etc.
    In Premiere I see the blackmagic preset, but no the preview card.
    I have a second question.
    About Red file I want editing in Premiere Pro and i whant color correct in Apple Color from FCP.
    My problem is: my color program crash when I send file form FCP to Color (random mode)
    The sequence is:
    I import file red in PPro5 -- editing file --- export file xml.
    Close the PPro5.
    Open FCP import xml (no re-link media)
    Save de project in FCP
    Select sequence and send to Color.
    In this moment the Apple Color crash.
    I shutdown the MAC.
    I power-up the MAC
    Open FCP select the project and send the sequence to Color.
    Color see the project but no media.
    I re link the media and I editing in color my media.
    Why Apple Color program crash?
    Sorry for my English
    Many Thanks
    Distinti saluti
    Gianluca Cordioli
    Alchemy Studio'S di Gianluca Cordioli
    Via Pacinotti 24/B
    37135 VERONA
    cell.:+39 3385880683
    [email protected]
    www.alchemystudios.it

  • Question about xml schemas and the use of unqualified nested elements

    Hello,
    I have the following schema:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns="http://xml.netbeans.org/examples/targetNS"
        targetNamespace="http://xml.netbeans.org/examples/targetNS"
        elementFormDefault="unqualified">
        <xsd:element name="name" type="xsd:string"/>
        <xsd:element name="age" type="xsd:int"/>
        <xsd:element name="person">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element ref="name"/>
                    <xsd:element ref="age"/>
                   <xsd:element name="height" type="xsd:int"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
    </xsd:schema>I am just wondering why would someone have a nested element that is unqualified? here the "height" element.
    Can anyone explain this to me please?
    Thanks in advance,
    Julien.
    here is an instance xml document
    <?xml version="1.0" encoding="UTF-8"?>
    <person xmlns='http://xml.netbeans.org/examples/targetNS'
      xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
      xsi:schemaLocation='http://xml.netbeans.org/examples/targetNS file:/E:/dev/java/XML/WebApplicationXML/web/newXMLSchemaThree.xsd'>
    <name>toto</name>
    <age>40</age>
    <height>180</height>
    </person>

    Don't worry about it.
    There are two different styles of schemas. In one style, you define the elements, attributes, etc. at the top, and then use the "ref" form to refer to them. (I call this the "global" style.) The other style is to define elements inline where they are used. ("local" style)
    Within some bounds, they work the same and which you use is a choice of you and the tools that generate the schemas.
    A warning about the local style. It is possible to define an element in two different locations in the schema that are different. It will get past all schema validation, but it seems wrong to my sense of esthetics. With the global style, this will not happen.
    So, how did this happen? Probably one person did the schema when it only had a name and age. Then, someone else added the height element. They either used a different tool, or preferred the other style. I'm aware of no difference in the document you have described between the two styles.
    Dave Patterson

  • About XML file operation

    I want to get the configuration of my programme by reading the XML file.But I am not familiar with the class of handling XML file in java.Someone can give an example to me and simply explain.Thank you very much.

    That link over at the left there, the one that says "Tutorials"? Follow it to a page full of tutorials. From that page follow the link to the tutorial about Web Services.

  • About XML/AQ

    I'm testing the AQ Sample application (about Advanced Queuing with OC4J, downloadable from otn), and receive the next error:
    oracle.xml.parser.schema.XSDException: Element 'schema' has invalid namespace: 'http://www.w3.org/1999/XMLSchema'
         at oracle.xml.parser.schema.XSDBuilder.buildSchema(XSDBuilder.java:488)
         at oracle.xml.parser.schema.XSDBuilder.build(XSDBuilder.java:296)
         at oracle.xml.parser.schema.XSDBuilder.build(XSDBuilder.java:278)
         at ControllerServlet.parseXML(Unknown Source)
         at ControllerServlet.init(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Unknown Source)
    Anybody have some idea about that happened?
    I've installed OC4J 9.0.3, JDK 1.3.1 and ANT 1.4.1
    Thanks a lot for your help
    Cristian

    I found that changing from www.w3.org/1999 to www.w3.org/2001 works.
    The proble I now get is there are still references to 1999 somewhere when I run the shop example and it sends the SOAP message.

  • Special Problem about XML schema simpleType definition

    hi, OracleTeam,
    hi, Bruno,
    Fiena comes again :( :p
    It seems you do not use Oracle schema processor . I met a problem about schema ...
    here is test1.xsd
    <?xml version="1.0"?>
    <schema xmlns = "http://www.w3.org/1999/XMLSchema"
    targetNamespace = "http://www.sample.com"
    xmlns:vs ="http://www.sample.com">
    <element name = "Test" type= "vs:test" minOccurs ="1" maxOccurs="1"/>
    <simpleType name= "test">
    <restriction base="integer">
    <minInclusive value="-1290"/>
    <maxInclusive value="29035"/>
    </restriction>
    </simpleType>
    </schema>
    here is test1.xml
    <?xml version="1.0"?>
    <video:Video xmlns:video="http://www.sample.com"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xsi:schemaLocation="http://www.sample.com test1.xsd"
    >
    <Test>11</Test>
    </video:Video>
    but when I validate the two files with schema processor , it will said :
    Validation failed, error 909 ( not parer, but schema processor)
    I don't know why everytime I define "simplyType" , it will show this error...
    Thank you no matter you can answer me :)
    Best wishes,
    fiena
    null

    Thank you,
    I do understand it,
    but why or when it is necessary to have this structure ?
    I ask because I found simple exsamples of XML-Datafiles without this :
    like this example
    <A31>
    <HEADER>TEST HEADER</HEADER>
    <MASSNAHME>NR_10-0009/02-A07</MASSNAHME>
    <TEILMASSNAHME>
    <LFDNR>1</LFDNR>
    <STT3X>dies ist text 1</STT3X>
    </TEILMASSNAHME>
    <TEILMASSNAHME>
    <LFDNR>2</LFDNR>
    <STT3X>dies ist text 2</STT3X>
    </TEILMASSNAHME>
    </A31>
    in contrast to that :
    <A31>
    <A31_ITEM>
    <HEADER>TEST HEADER</HEADER>
    <MASSNAHME>NR_10-0009/02-A07</MASSNAHME>
    <TEILMASSNAHME>
    <TEILMASSNAHME_ITEM>
    <LFDNR>1</LFDNR>
    <STT3X>dies ist text 1</STT3X>
    </TEILMASSNAHME_ITEM>
    <TEILMASSNAHME_ITEM>
    <LFDNR>2</LFDNR>
    <STT3X>dies ist text 2</STT3X>
    </TEILMASSNAHME_ITEM>
    </TEILMASSNAHME>
    </A31_ITEM>
    </A31>
    this creates finally different ( incorrect ) schema-files
    to import into nested tables ?
    Norbert

  • Where can i find the doc about xml config file of 9ias?

    i cant find the "Oracle9iAS Containers for J2EE User&#8217;s Guide",
    it should contains the info about the xml config file, i dont
    know why oracle launch a product without the config guide, i
    have read ton of material for learning the configuration of 9ias
    but still have not find the answer!
    i cant find it in otn:
    http://otn.oracle.com/tech/java/oc4j/content.html#technicaldocs,
    it have jsp, servlet....etc guide but no config guide, if
    someone seen it in microsoft or sun or borland website, please
    call me :)

    i mean the deployment config file in the application server like: server.xml, application.xml, web.xml, it is the J2EE standard, and can be used between all application server, tomcat, 9ias, weblogic........

  • Get serious about xml input...

    After finding more bugs in Soundtrack Pro I ran some tests with importing Final Cut Pro XML lists into Logic Pro.
    This seems to be a token feature with no attempt to make it work at all. The automation data bears no relationship to the exported FCP levels. Stereo tracks are split into two channels,blah blah blah, bug, bug, bug...
    Is it hopeless to expect that this feature actually work someday? Logic is so powerful - would love to mix in Logic Pro... what a fantasy!
    Dual 1.8g G5   Mac OS X (10.4.6)  

    This isn't the place to contact apple.  It's user to user. 
    Ways to contact Apple.
    http://www.apple.com/contact/
    Here is the place for suggestions:
    *Feedback*
    "Use the form below to send us your comments. We read all feedback carefully, but please note that we cannot respond to the comments you submit."
    http://www.apple.com/feedback/ipad.html
    We can complain about Apple's business decisions, but these discussions are user to user talk about possible solutions.
    Here are the places to report bugs:
    Get an account at
    http://developer.apple.com/  then submit a bug report to http://bugreporter.apple.com/
    Developers:
    "Submitting Bugs and Feedback
    Your feedback goes a long way towards making our products even better. With Apple Bug Reporter, you can submit bug reports or request enhancements to APIs and developer tools."
    https://developer.apple.com/bug-reporting/
    Enterprise support:
    Call enterprise support  (866) 752-7753  to create  a case ID number

  • I dont know nothing about XML, but...

    could it fit my purposes...
    my purpose can be seen here
    http://forum.java.sun.com/thread.jsp?forum=31&thread=155662
    I was thinking that I could write the game in a text editor like this... is this XML and how I easily read this in to my game classes?
    <scene name=church>
    <hotspot action=gotoDoor()>
    <posx value=2>...
    </hotspot>
    </scene>
    <script name=gotoDoor()>
    <command name=ChangeStateCommand() subject=door state=opened>
    </script>

    <GAME>
    <STARTUP action="Startup"/>
    <SCRIPT name="Startup"> <ITEM name="Book" caption="Basic book">
      <INVENTORYIMAGE name="booki.jpg"/>
      <SCENEIMAGE name="books.jpg"/>
      <COMBINATION name="Book2" result="MysticBook"/>
    </ITEM>
       <COMMAND type="plotScene" scene="myScene" x="10" y="10" transform="fade"/>
       <COMMAND type="wait" time="1000"/>
       <COMMAND type="activateScene" scene="myScene"/>
    </SCRIPT>
    <SCENE name="myScene" background="scene.jpg">
      <ITEMIMPL item="Book" x=40 y=78/>
    </SCENE>
    </GAME>This is my test code... but I have read about the examples and know about nodes and stuff, but still don't know how to easily convert this to object structure. Script, for example, has Vector called commands, and commands are inner classes of script derived all from abstract class command. How do I perform the loading... saving is no problem since i can easily write
    Iterator i=commands.iterator();
    while (i.hasNext())
    ((Command) i.next()).outputXML(buffer);
    } or something like that... basicly that is pretty complicated too since I have to create xml writer for every command specially...
    I was thinking if i make a reader like this but I want your help too, or is there another way...
    Parse XML, test object encountered, if class is for example Script, use reflection to create new instance of script. Find the owner instance of this (Game) and perform a method called AddScript also via reflection, and add the script to game. I don't know... sound pretty "errorrious"...

  • I don't know this outlook error about xml.

    error message:
    [Outlook has disabled XML support for this document because it detected that your computer has become unstable. To correct this problem, it is recommended that you close all applications and restart your computer.]
    this error pop ups from about a week ago.
    As the error message, I closed all applications and restart computer,, but it doesn't work.
    I am using outlook2007 SP3.
    this pop up shows related to particular customer's mailing(send and forward~).
    So if i delete this customer mails but i can't delete cause it's important business conversation.
    What can i do to solve this problem? :-(

    Hi,
    Please first try to install below hotfix package and see if it helps:
    http://support.microsoft.com/kb/954892/en-us
    Outlook use Word for both the rendering engine and the composition engine. When you try to open a Word 2007 document that has nested XML tags applied to the Word document's content, you may receive the following error message:
    XML has been disabled in the document as the system has become unstable. Close all programs and restart your computer
    If the hotfix doesn't fix the issue, then try to launch Outlook in safe mode and verify result:
    Press Win + R and type "outlook.exe /safe" in the blank box, then press Enter.
    Hope this helps, please feel free to post back.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support

  • About xml and null values in 10g

    Hi, I have an UCM GetFile webservice component wich receives 4 arguments, two of them are null values (rendition and extraPops), and the xml request generated by obpm is:
    <GetFileByName xmlns="http://www.stellent.com/GetFile/">
      <dDocName>V_123410</dDocName>
      <revisionSelectionMethod>latestReleased</revisionSelectionMethod>
      <rendition/>
      <extraProps/>
    </GetFileByName>The problem is: On UCM web service, an empty tag like <rendition/> is treated like a "empty string" value, instead of a null value, and then the response i get isn't the expected.
    What I want do to is change this behavior, and when I put null values in requests, the obpm should not write those tags. Is that possible?
    Should be like that:
    <GetFileByName xmlns="http://www.stellent.com/GetFile/">
      <dDocName>V_123410</dDocName>
      <revisionSelectionMethod>latestReleased</revisionSelectionMethod>
    </GetFileByName>Thanks!

    Hi,
    I have question regarding aggregates. It's possible to read data from BW aggregates? We have webi reports on a SAP BW multi cube and we would like to optimize retriving query.
    >> Because you are using the BW Query as the source all the items that you have done so far in terms of aggregation, indexing, ... is all valid and there are no specific steps required to leverage it with Web Intelligence. Make sure the aggregates are "correct" meansing that they do reflect what you are asking for in the Web Intelligence query panel
    How can we filter in webi query null (#) values. If we create condition that some variabe is diffrent from # we still get null (#) values in report.
    >> You should be able to create a variable. in case you tried that already could you be more specific ?
    thanks
    Ingo

  • Question about XML mapping to ABAP internal table

    Hi experts.
    I'm trying to XML mapping. But it doesn't work well. Assume there are XML file as below.
    <HEADER>
      <ITEM>
        <FOO>123</FOO>
        <BAR>ABC</BAR>
      </ITEM>
      <ITEM>
        <FOO>456</FOO>
        <BAR>DEF</BAR>
      </ITEM>
    <HEADER>
    and I want to trasformation it as below.
    ITAB
    FOO       |      BAR
    123         |  ABC
    456         | DEF
    How could I trasformation using "call transformation"?
    Regards.

    Hi,
    REPORT  zind_xml_to_sap NO STANDARD PAGE HEADING.
    Data Declaration                                                    *
    DATA: client      TYPE REF TO if_http_client, "Interface
          host        TYPE string,
          port        TYPE string,
          proxy_host  TYPE string,
          proxy_port  TYPE string,
          path        TYPE string,
          scheme      TYPE i,
          xml         TYPE xstring,
          response    TYPE string.
    DATA: t_xml       TYPE smum_xmltb OCCURS 0 WITH HEADER LINE.  "XML Table structure used
                                                                  "for retreive and output XML doc
    DATA: g_stream_factory TYPE REF TO if_ixml_stream_factory.    "Interface
    DATA : return  LIKE  bapiret2 OCCURS 0 WITH HEADER LINE.      "XML Table structure used for retreive
                                                                  "and output XML doc
    Parameters                                                          *
    PARAMETER : p_add TYPE string LOWER CASE ,
                p_dfile   LIKE rlgrap-filename.
    AT Selection-Screen on value-request for file                       *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dfile.
    Get file
      PERFORM 100_get_file.
    Start-of-Selection                                                  *
    START-OF-SELECTION.
    Perform to upload xml data from URL to SAP internal table
      PERFORM 200_xml_upload.
      IF t_xml[] IS NOT INITIAL.
      Perform to Download data from Internal Table to a text file in local drive
        PERFORM 300_download.
        write : / 'Data Uploaded to Internal Table Successfully'.
        write : / 'XML Data Downloaded to Local path', p_dfile.
      else.
        write : / 'No Data for upload'.
      ENDIF.
    *if t_xml[] is INITIAL.
    WRITE : address, 'Given URl cannot be Converted' .
    else.
    LOOP AT t_xml .
       WRITE:  t_xml-cname, t_xml-cvalue.
    ENDLOOP.
    endif.
    *&      Form  get_file
          Get File
    FORM 100_get_file .
      CALL FUNCTION 'F4_FILENAME'
      EXPORTING
        PROGRAM_NAME        = SYST-CPROG
        DYNPRO_NUMBER       = SYST-DYNNR
        FIELD_NAME          = ' '
       IMPORTING
         file_name           = p_dfile
    ENDFORM.                    " 100_get_file
    *&      Form  200_xml_upload
          form to upload xml data from URL to SAP internal table
    FORM 200_xml_upload .
    *Check HTTP:// and concatenate
      IF p_add NS 'http://' OR p_add NS 'HTTP://'.
        CONCATENATE 'http://' p_add
                    INTO p_add.
      ENDIF.
    Fetching the address of the URL
      CALL METHOD cl_http_client=>create_by_url
        EXPORTING
          url    = p_add
        IMPORTING
          client = client.
    *Structure of HTTP Connection and Dispatch of Data
      client->send( ).
    *Receipt of HTTP Response
      CALL METHOD client->receive
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2
          http_processing_failed     = 3
          OTHERS                     = 4.
      IF sy-subrc <> 0.
        IF sy-subrc = 1.
          MESSAGE 'HTTP COMMUNICATION FAILURE' TYPE 'I' DISPLAY LIKE 'E'.
          EXIT.
        ELSEIF sy-subrc = 2.
          MESSAGE 'HTTP INVALID STATE' TYPE 'I' DISPLAY LIKE 'E'.
          EXIT.
        ELSEIF sy-subrc = 3.
          MESSAGE 'HTTP PROCESSING FAILED' TYPE 'I' DISPLAY LIKE 'E'.
          EXIT.
        ELSE.
          MESSAGE 'Problem in HTTP Request' TYPE 'I' DISPLAY LIKE 'E'.
          EXIT.
        ENDIF.
      ENDIF.
    Get data of the xml to Response
      response = client->response->get_cdata( ).
    *FM converting the XML format to abap
      CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
        EXPORTING
          text   = response
        IMPORTING
          buffer = xml.
    *FM converting XMl to readable format to a internal table.
      CALL FUNCTION 'SMUM_XML_PARSE'
        EXPORTING
          xml_input = xml
        TABLES
          xml_table = t_xml
          return    = return.
    ENDFORM.                    " 200_xml_upload
    *&      Form  300_download
    *form to Download data from Internal Table to a text file in local drive
    FORM 300_download .
      DATA filename TYPE string.
      filename = p_dfile.
      CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = filename
        WRITE_FIELD_SEPARATOR           = 'X'
      TABLES
        data_tab                        = t_xml
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
      IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.

Maybe you are looking for

  • Any hope for Powermac G4 400 mhz?

    I have GB running on a Powermac G4 400 mhz and, not surprisingly, it gives me the "disk too slow" message after more than 3 or 4 tracks. Without investing too much $, is there any hope for upgrading this to a more workable solution for GB, or would I

  • Keypress question

    Hi I am completly new to action scriping and have tried diligently to find the answer in the forums but most of it such a foreign language to me, so I am hoping someone can help me out with a straight answer and the exact bit of code I need. What I n

  • Order creation control if components stock not available

    I am creating a production order manually through CO01 for a material which is having components. But some components are not having sufficient  stock as per required for the above production order qty.Now system should not allow me to create the ord

  • Do I need a quiz to record a CBT "Completed"?

    I have a CBT that doesn't need a quiz, but it is registering as "not attempted" in the LMS. Do I need to add a quiz to the CBT for it to register as completed? I just want to track if someone opened it. Thanks.

  • Delete Facebook account

    I seem to have two Skype accounts: the one I set up and one called "facebook:[Removed for privacy]3". I don't know how this account came to exist and I certainly don't want it. But I can't log into it (even using the reset-password link). How do I ge