Marshaling and xml generation

Hi
Can any one pls tell for generating an xml file from fetching data from database do i have to use marshalling.
Why exactly marshalling is being used.?How is DomBuilder useful and diferent from marshaller?
Thanks
Swaroopa

Thanks for ur reply.
Let me make myself clear ...
I have to generate a flat xml file by pulling the data from db.
Now i want to use a dom builder where as one if my collegue who is fresher wants to use castor's marshalling process to generate xml.
I know the concept of marshalling which is used for serilaizing the object graph so that it is unmarshalled on the other end.But iam unable to convince her.
It would be great if u can give me 2 lines answer which is convincing enough to make her understand.
Thanks

Similar Messages

  • Marshalling and Unmarshalling on xml

    is this the one of the way of parsing xml??

    If by "marshalling and Unmarshalling on xml" you mean converting between XML and Java, then yes, JAXB can be a viable alternative to SAX or DOM, depending on your requirements.
    It is a simpler solution if it's the binding that you actually need.
    If Java representation of XML isn't relevant and you're only concerned about firing events when a particular XML artifact is detected, then SAX would be more indicated.
    Take the good habit of listing your actual requirements before considering a range of options.

  • Jabx xsd to classes and xml marshalling issues due to two namespaces

    Hello everyone,
    I am stack using jaxb and I ask for some help.
    My final objective is being able of marshalling and unmarshalling xml-s that follows the structure of this xsd:
    http://www.ipdr.org/public/VoIP3.5-A.0.1.xsd
    I have already generated the classes with xjc:
         xjc.bat VoIP3.5-A.0.1.xsd
    This generates the following class tree:
    parsing a schema...
    compiling a schema...
    org\ipdr\namespaces\voip\IPDRVoIPType.java
    org\ipdr\namespaces\voip\ObjectFactory.java
    org\ipdr\namespaces\voip\package-info.java
    org\ipdr\namespaces\ipdr\IPDRDoc.java
    org\ipdr\namespaces\ipdr\IPDRDocEnd.java
    org\ipdr\namespaces\ipdr\IPDRType.java
    org\ipdr\namespaces\ipdr\ObjectFactory.java
    org\ipdr\namespaces\ipdr\package-info.java
    Note that if you are behind a proxy and it is not configured it may fail.
    This is fine for now. Next step, I have the following xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Assumptions:
    Call is being made from cell phone to IP
    Call is terminated (normally) by the called side
    Optional and Conditional fields are included based on the type of call made
    Fields that did not include specific values (in the ipdr spec) have been
    populated with information based on SS7 equivalents
    IMSI/ESN/PIN/HLRID values are fictitious -->
    <IPDRDoc xmlns="http://www.ipdr.org/namespaces/ipdr"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.ipdr.org/public/VoIP3.5-A.0.1.xsd"
    IPDRRecorderInfo ="apex.virtualsummit.com"
    version="3.5-A.0.1">
    <IPDR>
    <seqNum>123</seqNum>
    <IPDRCreationTime>2000-02-01T07:00:00Z</IPDRCreationTime>
    <subscriberId>Vendor Phone-1</subscriberId>
    <ipAddress>172.17.17.10</ipAddress>
    <hostName>cisco.gateway.234</hostName>
    <imsiIngress>247478674378574</imsiIngress>
    <esnIngress>33375629401</esnIngress>
    <serviceConsumerType>EU</serviceConsumerType>
    <pin>6294621</pin>
    <startAccessTime>2000-11-25T09:45:30Z</startAccessTime>
    <startTime>2000-11-25T09:45:45Z</startTime>
    <endTime>2000-11-25T10:00:30</endTime>
    <timeZoneOffset>-480</timeZoneOffset> <callDuration>885</callDuration>
    <type>V</type>
    <feature>H</feature>
    <incomingCodec>G711Alaw</incomingCodec>
    <disconnectReason>normalCallClearing</disconnectReason>
    <averageLatency>145</averageLatency>
    <ani>214-924-0258</ani>
    <originalDestinationId>408-830-3711</originalDestinationId> <ipAddressEgressDevice>199.171.210.211</ipAddressEgressDevice>
    <portNumber>17779</portNumber>
    <homeLocationIdIgress>FF01ABD6</homeLocationIdIgress>
    <callCompletionCode>200</callCompletionCode>
    <uniqueCallId>id45678</uniqueCallId>
    </IPDR>
    </IPDRDoc>
    And I have the following classes:
    public class main {
         * @param args
         public static void main(String[] args) {
              Manager mng = new Manager();          
              mng.marshall();
              System.out.println("Agur mundua!");
    And:
    public class Manager {
         public void marshall() {
              try {
                   JAXBContext voip = JAXBContext.newInstance(
                             "org.ipdr.namespaces.voip", this.getClass()
                                       .getClassLoader());
                   Unmarshaller u = voip.createUnmarshaller();
                   // IPDRVoIPType po = (IPDRVoIPType)uvoip.unmarshal( new
                   // FileInputStream("files/example.xml"));
                   // IPDRType po = (IPDRType)uvoip.unmarshal( new
                   // FileInputStream("files/example.xml"));
                   // this implementation is a part of the API and convenient for
                   // trouble-shooting,
                   // as it prints out errors to System.out
                   u
                             .setEventHandler(new javax.xml.bind.helpers.DefaultValidationEventHandler());
                   // IPDRVoIPType structure = (IPDRVoIPType)u.unmarshal( new
                   // FileInputStream(
                   // "D:\\S3Lab-Projects\\Future Internet\\enviroment\\files\\example.xml"
                   JAXBElement<IPDRVoIPType> st = (JAXBElement) u.unmarshal(
                             new StreamSource(new File("files/example.xml")),
                             IPDRVoIPType.class);
                   IPDRVoIPType vtype = st.getValue();
                   System.out.println("ok");
              } catch (JAXBException je) {
                   je.printStackTrace();
    It gives me an exception saying that there are unexpected elements.
    If I use:
    JAXBContext voip = JAXBContext.newInstance(
                             "org.ipdr.namespaces.ipdr", this.getClass()
                                       .getClassLoader());
    JAXBElement<IPDRDoc> st = (IPDRDoc) u.unmarshal(
                             new StreamSource(new File("files/example.xml")),
                             IPDRDoc.class);
                   IPDRDoc vtype = st.getValue();
    I am able to read the attributes of IPDRDoc but not the ones from VoIP.
    My analysis is:
         The xml file is a IPDRDoc with VoIP3.5-A.0.1 elements
         JAXB does not know how to deal with xml that are spitted in various classes
         I cannot change any xsd files because they are standars
    So...
         What can I do to be able to marshall and unmarshall IPDRDoc xml with VoIP attributes generating the java classes from the standard xsd?
    Thank you for your time

    Hello everyone,
    I am stack using jaxb and I ask for some help.
    My final objective is being able of marshalling and unmarshalling xml-s that follows the structure of this xsd:
    http://www.ipdr.org/public/VoIP3.5-A.0.1.xsd
    I have already generated the classes with xjc:
         xjc.bat VoIP3.5-A.0.1.xsd
    This generates the following class tree:
    parsing a schema...
    compiling a schema...
    org\ipdr\namespaces\voip\IPDRVoIPType.java
    org\ipdr\namespaces\voip\ObjectFactory.java
    org\ipdr\namespaces\voip\package-info.java
    org\ipdr\namespaces\ipdr\IPDRDoc.java
    org\ipdr\namespaces\ipdr\IPDRDocEnd.java
    org\ipdr\namespaces\ipdr\IPDRType.java
    org\ipdr\namespaces\ipdr\ObjectFactory.java
    org\ipdr\namespaces\ipdr\package-info.java
    Note that if you are behind a proxy and it is not configured it may fail.
    This is fine for now. Next step, I have the following xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Assumptions:
    Call is being made from cell phone to IP
    Call is terminated (normally) by the called side
    Optional and Conditional fields are included based on the type of call made
    Fields that did not include specific values (in the ipdr spec) have been
    populated with information based on SS7 equivalents
    IMSI/ESN/PIN/HLRID values are fictitious -->
    <IPDRDoc xmlns="http://www.ipdr.org/namespaces/ipdr"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.ipdr.org/public/VoIP3.5-A.0.1.xsd"
    IPDRRecorderInfo ="apex.virtualsummit.com"
    version="3.5-A.0.1">
    <IPDR>
    <seqNum>123</seqNum>
    <IPDRCreationTime>2000-02-01T07:00:00Z</IPDRCreationTime>
    <subscriberId>Vendor Phone-1</subscriberId>
    <ipAddress>172.17.17.10</ipAddress>
    <hostName>cisco.gateway.234</hostName>
    <imsiIngress>247478674378574</imsiIngress>
    <esnIngress>33375629401</esnIngress>
    <serviceConsumerType>EU</serviceConsumerType>
    <pin>6294621</pin>
    <startAccessTime>2000-11-25T09:45:30Z</startAccessTime>
    <startTime>2000-11-25T09:45:45Z</startTime>
    <endTime>2000-11-25T10:00:30</endTime>
    <timeZoneOffset>-480</timeZoneOffset> <callDuration>885</callDuration>
    <type>V</type>
    <feature>H</feature>
    <incomingCodec>G711Alaw</incomingCodec>
    <disconnectReason>normalCallClearing</disconnectReason>
    <averageLatency>145</averageLatency>
    <ani>214-924-0258</ani>
    <originalDestinationId>408-830-3711</originalDestinationId> <ipAddressEgressDevice>199.171.210.211</ipAddressEgressDevice>
    <portNumber>17779</portNumber>
    <homeLocationIdIgress>FF01ABD6</homeLocationIdIgress>
    <callCompletionCode>200</callCompletionCode>
    <uniqueCallId>id45678</uniqueCallId>
    </IPDR>
    </IPDRDoc>
    And I have the following classes:
    public class main {
         * @param args
         public static void main(String[] args) {
              Manager mng = new Manager();          
              mng.marshall();
              System.out.println("Agur mundua!");
    And:
    public class Manager {
         public void marshall() {
              try {
                   JAXBContext voip = JAXBContext.newInstance(
                             "org.ipdr.namespaces.voip", this.getClass()
                                       .getClassLoader());
                   Unmarshaller u = voip.createUnmarshaller();
                   // IPDRVoIPType po = (IPDRVoIPType)uvoip.unmarshal( new
                   // FileInputStream("files/example.xml"));
                   // IPDRType po = (IPDRType)uvoip.unmarshal( new
                   // FileInputStream("files/example.xml"));
                   // this implementation is a part of the API and convenient for
                   // trouble-shooting,
                   // as it prints out errors to System.out
                   u
                             .setEventHandler(new javax.xml.bind.helpers.DefaultValidationEventHandler());
                   // IPDRVoIPType structure = (IPDRVoIPType)u.unmarshal( new
                   // FileInputStream(
                   // "D:\\S3Lab-Projects\\Future Internet\\enviroment\\files\\example.xml"
                   JAXBElement<IPDRVoIPType> st = (JAXBElement) u.unmarshal(
                             new StreamSource(new File("files/example.xml")),
                             IPDRVoIPType.class);
                   IPDRVoIPType vtype = st.getValue();
                   System.out.println("ok");
              } catch (JAXBException je) {
                   je.printStackTrace();
    It gives me an exception saying that there are unexpected elements.
    If I use:
    JAXBContext voip = JAXBContext.newInstance(
                             "org.ipdr.namespaces.ipdr", this.getClass()
                                       .getClassLoader());
    JAXBElement<IPDRDoc> st = (IPDRDoc) u.unmarshal(
                             new StreamSource(new File("files/example.xml")),
                             IPDRDoc.class);
                   IPDRDoc vtype = st.getValue();
    I am able to read the attributes of IPDRDoc but not the ones from VoIP.
    My analysis is:
         The xml file is a IPDRDoc with VoIP3.5-A.0.1 elements
         JAXB does not know how to deal with xml that are spitted in various classes
         I cannot change any xsd files because they are standars
    So...
         What can I do to be able to marshall and unmarshall IPDRDoc xml with VoIP attributes generating the java classes from the standard xsd?
    Thank you for your time

  • XML generation problem?

    Hi I'm relatively new to Flex 2 and I have a question.
    I'm generating an xml file from an oracle view and hope to
    use it as the basis for a chart/data grid.
    My generation process yields data something like this:
    <list>
    <commodity name="Laptop Computer" total="0">
    <warehouse name="California" onhand="10"/>
    <warehouse name="Viriginia" onhand="20"/>
    <warehouse name="Washington" onhand="0"/>
    </commodity>
    <commodity name="Desktop Computer" total="0">
    <warehouse name="Washington" onhand="9"/>
    </commodity>
    </list>
    I've taken this generated xml and put it into a local file
    for now.
    When I attempt to load this data I get this error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at TestFileAccess/TestFileAccess::resultHandler()
    at TestFileAccess/__srv_result()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    My mxml file looks something like this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns="*" paddingTop="3"
    creationComplete="initApp()" pageTitle="Warehouse Levels">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.*;
    [Bindable]
    private var commodData:Array;
    [Bindable]
    private var warehouseData:Array;
    [Bindable]
    public var slicedCommodData:ArrayCollection;
    private function initApp():void
    srv.send();
    slicedCommodData = new ArrayCollection();
    private function resultHandler(event:ResultEvent):void
    commodData = event.result.list.name.source as Array;
    warehouseData = new Array(commodData.length);
    slicedCommodData.source = commodData;
    var commodTotal:Number;
    for (var x:Number = 0; x < commodData.length; x++)
    warehouseData[x] = {name: commodData[x].name, onhand:0};
    var warehouses:Array = commodData[x].warehouse.source as
    Array;
    commodTotal = 0;
    for (var j:Number = 0; j < warehouses.length; j++)
    commodTotal += warehouses[j].onhand;
    commodData[x].total = commodTotal;
    ]]>
    </mx:Script>
    <mx:HTTPService id="srv" url="result.xml"
    useProxy="false" result="resultHandler(event)"/>
    <mx:Panel layout="absolute">
    <mx:ColumnChart id="WarehouseTotals"
    dataProvider="{slicedCommodData.source}">
    <mx:horizontalAxis>
    <mx:CategoryAxis dataProvider="{slicedCommodData.source}"
    categoryField="Name"/>
    </mx:horizontalAxis>
    <mx:series>
    <mx:ColumnSeries xField="Name" yField="Total"/>
    </mx:series>
    </mx:ColumnChart>
    <mx:DataGrid dataProvider="{slicedCommodData.source}">
    <mx:columns>
    <mx:DataGridColumn headerText="Commodity"
    dataField="Name"/>
    <mx:DataGridColumn headerText="Total"
    dataField="Total"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Panel>
    </mx:Application>
    I'm wondering if something is wrong with my generated xml
    data or if its something else. I did notice that my xml generation
    doesn't always produce 3 warehouse tags for every commodity. Could
    this be the problem?
    Also, the reason the commodity tag's total is always 0 in the
    xml is because this information is not captured in the view...I use
    mxml to calculate that.
    Thanks!

    It seems that I played with it for a while and fixed it. The
    problem was my xml data and the format my httpservice was
    returning. First my xml data needed to be enclosed by <data>
    and </data> tags not <list> and </list> tags.
    Second my httpservice needed to have a result format of e4x. This
    also caused me to have to change how I was handling the individual
    xml properties of the data.
    Anyway the fixed code looks like this for anyone that cares
    and has gotten a similar error.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*" paddingTop="3" creationComplete="initApp()"
    pageTitle="Warehouse Levels">
    <mx:Script>
    <![CDATA[
    import mx.collections.XMLListCollection;
    import mx.rpc.events.*;
    [Bindable]
    private var commodData:XMLList;
    [Bindable]
    public var slicedCommodData:XMLListCollection;
    private function initApp():void
    srv.send();
    private function resultHandler(event:ResultEvent):void
    commodData = event.result.commodity;
    slicedCommodData = new XMLListCollection(commodData);
    var commodTotal:Number;
    var nextNum:Number;
    for (var x:Number = 0; x < commodData.length(); x++)
    var warehouses:XMLList = commodData[x].warehouse as XMLList;
    commodTotal = 0;
    for (var j:Number = 0; j < warehouses.length(); j++)
    nextNum = 0;
    nextNum = new Number(warehouses[j].@onhand);
    commodTotal = commodTotal + nextNum;
    var firstItem:Object = slicedCommodData.getItemAt(i);
    firstItem.@total = commodTotal;
    ]]>
    </mx:Script>
    <mx:HTTPService id="srv" url="result.xml"
    resultFormat="e4x" result="resultHandler(event)"/>
    <mx:HDividedBox width="50%" height="100%">
    <mx:ColumnChart id="WarehouseTotals"
    dataProvider="{slicedCommodData}">
    <mx:horizontalAxis>
    <mx:CategoryAxis dataProvider="{slicedCommodData}"
    categoryField="@name"/>
    </mx:horizontalAxis>
    <mx:series>
    <mx:ColumnSeries xField="@name" yField="@total"/>
    </mx:series>
    </mx:ColumnChart>
    </mx:HDividedBox>
    <mx:HDividedBox width="50%" height="100%">
    <mx:DataGrid dataProvider="{slicedCommodData}">
    <mx:columns>
    <mx:DataGridColumn headerText="Commodity"
    dataField="@name"/>
    <mx:DataGridColumn headerText="Total"
    dataField="@total"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:HDividedBox>
    </mx:Application>
    Thanks for all of your help!

  • Problem for xml generation using DBMS_XMLGEN

    Hi All,
    i have problem during xml generation using Any help would be highly appreciate
    how could we publish xml data using data base API DBMS_XMLGEN in oracle applications (APPS) i.e. at 'View Output" using
    Any help would be highly appreciate.
    Let me know if need more explanation, this is High priority for me.
    Thanks and Regards,
    [email protected]
    Message was edited by:
    user553699

    You can set the null attribute to true , so that the tag appears in your XML
    see the statement in Bold.
    DECLARE
    queryCtx dbms_xmlquery.ctxType;
    result CLOB;
    BEGIN
    -- set up the query context
    queryCtx := dbms_xmlquery.newContext(
    'SELECT empno "EMP_NO"
    , ename "NAME"
    , deptno "DEPT_NO"
    , comm "COMM"
    FROM scott.emp
    WHERE deptno = :DEPTNO'
    dbms_xmlquery.setRowTag(
    queryCtx
    , 'EMP'
    dbms_xmlquery.setRowSetTag(
    queryCtx
    , 'EMPSET'
    DBMS_XMLQUERY.useNullAttributeIndicator(queryCtx,true);
    dbms_xmlquery.setBindValue(
    queryCtx
    , 'DEPTNO'
    , 30
    result := dbms_xmlquery.getXml(queryCtx);
    insert into clobtable values(result);commit;
    dbms_xmlquery.closeContext(queryCtx);
    END;
    select * from clobtable
    <?xml version = '1.0'?>
    <EMPSET>
    <EMP num="1">
    <EMP_NO>7499</EMP_NO>
    <NAME>ALLEN</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM>300</COMM>
    </EMP>
    <EMP num="2">
    <EMP_NO>7521</EMP_NO>
    <NAME>WARD</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM>500</COMM>
    </EMP>
    <EMP num="3">
    <EMP_NO>7654</EMP_NO>
    <NAME>MARTIN</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM>1400</COMM>
    </EMP>
    <EMP num="4">
    <EMP_NO>7698</EMP_NO>
    <NAME>BLAKE</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM NULL="YES"/>
    </EMP>
    <EMP num="5">
    <EMP_NO>7844</EMP_NO>
    <NAME>TURNER</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM>0</COMM>
    </EMP>
    <EMP num="6">
    <EMP_NO>7900</EMP_NO>
    <NAME>JAMES</NAME>
    <DEPT_NO>30</DEPT_NO>
    <COMM NULL="YES"/>
    </EMP>
    </EMPSET>
    http://sqltech.cl/doc/oracle9i/appdev.901/a89852/d_xmlque.htm

  • Avoid Bug 7146375 ORA-4030 MEMORY LEAK IN (Xml generation) in oracle 10g

    Hi All,
    I have to generate an xml from database which contains around 4 lac records. I had written a query using XmlSerialize and XmlElement.
    It does run properly for records less than 2 lacs.
    But when the record count goes above 2 lacs..it is throwing the following error -
    { ORA-04030: out of process memory when trying to allocate 1032 bytes (qmxlu subheap,qmemNextBuf:alloc)
    ORA-06512: at "SYS.XMLTYPE", line 111!}
    For the above error - I have tried increasing pga from 480M to 800M, but still we are getting the same error.
    After researching i found out -
    Cause
    This is caused by the following bug:
    Bug 7146375 ORA-4030 AND MEMORY LEAK IN SESSION HEAP: "KOH DUR HEAP D"
    Solution
    Bug 7146375 is fixed in 11.2
    So i tried out the query in another a db which has 11g installed and my query runs perfectly fine for records of upto 4 lacs.
    But since we have oracle 10g on our clients machine, are there other ways to achieve this XML generation other than this?
    Thanks.

    913389 wrote:
    After researching i found out -
    Cause
    This is caused by the following bug:
    Bug 7146375 ORA-4030 AND MEMORY LEAK IN SESSION HEAP: "KOH DUR HEAP D"
    Solution
    Bug 7146375 is fixed in 11.2
    So i tried out the query in another a db which has 11g installed and my query runs perfectly fine for records of upto 4 lacs.
    But since we have oracle 10g on our clients machine, are there other ways to achieve this XML generation other than this?I doubt it. If Oracle have investigated and created a bug report that says the solution is to upgrade to 11.2, then that's the answer, otherwise they would indicate that a particular 10g patch set can also be used.

  • Put report .rdf file and .xml customization

    hi frnds,
    where can i keep .rdf file and .xml file (for customization)? shall i keep on application server? now, to generate report i've written one script ...where can i keep this?
    -bhavin

    Hi Tim,
    Context: R12 France Telecom (FT) migration from 11i
    FT Reports are complex and the quantity of data / size of files generated by reports can reach up to 20Go. So I need to convert RDF to DATA Template because RDF can not generate some so big files (limit=2Go in 11i and may be 10Go in 12)
    I experience some troubles / issues / limits with reports conversion to XML.
    1 - some Data templates are not generated because of error : [052107_102109040][][EXCEPTION] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0. I sent you 2 mails in the past with error detail but have no answer.
    2 - Data Templates are not directly usable because Reports include call to packages stored in PLL files. Pakages definition are well include in XML file generated by Report converter (1st step of conversion) but are not take in account when PL/SQL routine generation (Data template generation).
    Can you help me especially for the 1st issue
    I'd like to show a XMLP demo to FT using the Data source generator XDODTEXE in GL. I see XDOGLDEMO and GLGENJRNDT concurrent programs but there is no Data Definition / XML Data Template associated. Can you tell me if it exists a Data Template and where it can be retrieved from.

  • JDE Enterprise One 8.11/8.12 and XML Publisher

    For one of the implementations, the requirement is to print the information from the application on a standard drawing....
    Can the XML Publisher be used to pick the information from the JDE Sales Configurator and print the same on a standard media attachement which is a pdf file....

    Hi Eddy,
    I notice that you are using the html generation machine also for product package and package builds as wel.
    You only need the C compiler for development AND packagebuild. Normally I would split these functionality. (different machines for development and html generation, product packaging)
    I'm not sure about Product packages, but I would advice doing the package builds on the deployment server. (doing only the assembly on a client for update packages)
    Building on the depl server makes the build process MUCH faster.
    hope this helps
    regards
    Alaric

  • Objects and XML-Transfer

    Hello, I'm a newbie to web services and I'm also not very experienced in programming. After reading through a number of articles and following some tutorials I'm still not sure about data and object transfer with JAX-WS and the binding with JAXB
    ---> let's say I have a web service that calculates signal path loss of an access point in a room. So I could create a room class that consists of a list of walls, and an access point. The wall class has the 2dimensional coordinates for it's 2 ends and the access point class has only it's 2d coordinate.... and so on.
    The client against this web service would have to create this room-object with the other objects it consists of and send it to the web service to calculate the signal map of the room.
    My question is: What ways can I use to transfer such a data structure and what is the best practice?
    1st way: I can create the room-object as a plain old java object and let JAX-WS do the marshalling to XML and the unmarshalling back to java object on the server side. (I tried this, it works quite easiely, but I doubt this is the right way, because client and server must be written in Java, and the client also need the Room-class in its library to compile....not really the goal of SOAP and WS's)
    2nd way: I guess that I also can create an XML-document that represent this room as I descibed above and send it to the server to process. <<<--- how do I do that?, do you know any tutorials about this?
    3rd way:? is there a better way to transfer such datastructures, with focus on language independency?
    Thank you in advance!

    VirtualG wrote:
    2nd way: I guess that I also can create an XML-document that represent this room as I descibed above and send it to the server to process. <<<--- how do I do that?, do you know any tutorials about this?you have already done that, you just don't realize it because of all the work that java is doing. you created a webservice with jaxws. did you see the wsdl which was generated by the webservice? this is the language independent piece of the puzzle.
    you in fact do not need the existing java classes in order to create a new java client. you could use the wsimport tool pointed at the wsdl from your service to generate the classes that you need to write a new java client. in this same fashion, a developer could use a similar tool written for another language (say .NET), to generate the necessary client side code to use your webservice.

  • MIDlet and XML

    Are there any easy to understand tutorials that just show how you connect to a server through Http, query the database and generate an XML file so that MIDP displays it ??
    I already have the database connection stuff working and http it's just that i don't understand the XML part.

    If you're accessing a server through HTTP, querying a database, and getting XML back, then the server is the one doing the XML generation and it would do so independantly of any midlet.
    As I understand it there are (3rd party, I believe) libraries available to process XML on J2ME devices. Never used them however.
    But anyway these are two different tasks, and although there may not be tutorials for the whole end-to-end process you describe, there are probably plenty of tutorials for each separate step.
    From my (admittedly limited) experience trying to do text parsing on a MIDP device, I'd suggest returning data in a format other than XML unless you can be very very sure that the users will use a limited set of devices that you can be sure will be powerful enough.

  • How to open and XML file?

    Does anyone have a way on Mac to open an XML file for viewing. This can be done with WIN Excel and XML toolkit but doesn't exist for Mac Excel in Office 2008. I can open with TextEdit but would like to see the info with headers and cells without all the XML coding. Numbers 09 can't open it at all.

    Numbers uses XML to build the description of the documents but it's not an XML editor.
    A simple search in Google with the intricate key string xml editor AND mac return numerous interesting links.
    Yvan KOENIG (VALLAURIS, France) vendredi 9 octobre 2009 11:33:27

  • HTML and XML files open in same window(KM Navigation iView)

    Hi All,
    I have created a KM navigation which is pointing the folder inside the documents repository. This folder contains HTML and XML files. It is rendering fine. But, when I click on the file links in KM Navigation iView, it is opening in new window.Here I need to open in same window. How can I acheive this?. Please help me.
    Thanks & Regards,
    Venkatesh R

    Hi ,
    check the below thread and try options mentioned in it
    https://www.sdn.sap.com/irj/sdn/thread?threadID=72594
    Koti Reddy

  • Error 10 when building an application in LV8 and Report generation toolkit 1.1.1

    I am trying to build an application using LV8.0.1 and Report generation toolkit 1.1.1 and i get this error.
    Error 10 occurred at ABAPI Dist Copy Non-VI Files.vi -> ABAPI Dist Build LLB Image.vi -> ABAPI Copy Files and Apply Settings.vi -> EBEP_Invoke_Build_Engine.vi -> EBUIP_Build_Invoke.vi -> EBUIP_Build_Invoke.vi.ProxyCaller
    Any ideas?
    Scientia est potentia!

    Did you attempt to add the _wordsub.llb and _excelsub.llb files to the application as support files?  I believe in LabVIEW 8.0 instead of adding the entire LLBs you should just add the _Word Dynamic VIs.vi and _Excel Dynamic VIs.vi as dynamic VIs.  I think I've seen a similar post on the discussion forums in the past that recommended this.
    If this suggestion doesn't help, please reply, and attach a simple VI and .lvproj file demonstrating the problem so I can investigate further.
    Good luck,
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • ASO: How to set up Quoting and XML to Print Quote in R12?

    Which are the steps to set up Oracle Quoting and XML in order to Print a Quote in R12?

    Hi,
    Please refer the Note : How to Create a Custom Print Quote Template in Oracle Quoting ? (Doc ID 780722.1)
    Thanks & Regards,
    Sridhar

  • Problems with reports and XML-publisher - No XML

    Hi!
    I'm having a problem with Apps and XML-publisher. I made a report file, which queries some views. When executing in reports, I get all the data I expect.
    Now, when I upload the reportfile to Apps and let it generate XML, my xml-file is empty (well, almost empty)
    <?xml version="1.0" ?>
    <!-- Generated by Oracle Reports version 6.0.8.27.0 -->
    <T03501684>
    <LIST_G_PERSOON>
    <LIST_G_PERSOON />
    </T03501684>
    Anyone who can shed any light upon this problem?

    OK, finally solved the problem... A good night's sleep always helps ;).
    After just trying each queried table one after an other, I found the problem:
    The difference between Oracle Apps (Dutch locale) and the reports builder (English) is the language... And our functional people have changed some names, but the Dutch ones, leaving the english names in place and one of the tables I query has language specific data, which is also appears in a where clause.

Maybe you are looking for