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!

Similar Messages

  • 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

  • Client proxy generation problem

    Hi All,
    I'm trying to create client proxy using given WSDL link in SE80 under enterprise services.
    When I enter URL as given WSDL link it is asking for user and password.
    When I enter required details (domain name/username) and password, I'm getting an error saying problem with XML generation.
    When I access this WSDL link from IE with same user and password I'm able to access this service.
    Could some one help me on this issue.
    Thanks
    Raghavendra

    Hi Raja,
    I do have similar problem. But If I save the WSDL in local file will it meet my requirement  or not I'm  not sure about this.
    I'm trying to invoke the external web service by creating client proxy in SE80.
    which is deployed on some machine. This service will in turn create user account in windows active directory with the details from SAP.
    Now when SAP is invoking this service it will ask user and password.
    But if I save this in local file will this service will work or not I'm not sure.
    Is there anyway if I enter user and password then it will process further.
    Let me know your inputs on this.
    Regards
    Vikram

  • WIJ 20002 xml Parser Problem - Rich Client

    Hi,
    I have a problem with the rich client on a new installation:
    Business Objects Enterprise XI 3.1 SP3 on Windows 2008 Standard.
    If I connect with the rich client "import document"is disabled.
    if I try to create a new document from the rich client it returns the error below (I used the rich client on two workstations):
    WIJ 20002
    Version: null
    Analisi dello stack:
    java.lang.RuntimeException: java.lang.RuntimeException: XML parser problem:
    XMLJaxpParser.parse(): Element type "ABOUT_Patentnumbers" must be followed by either attribute specification, ">" or "/>".
    at com.businessobjects.wp.xml.jaxp.XMLJaxpParser.parse (Unknown Source)
    at.com.businessobjects.webi.richclient.XMLviaOccaRC.getServerConfiguration (Unknown Source)
    Have you any solution?

    The fixpack 3.5 client resolves the problem.

  • XML - ExportDocument problem

    I'm exporting a xml document that I'm creating dynamically in my application.
    I'm having the following problems (working with 30M.2).
    1)
    It's not possible to edit a DTD (or creating one run time) so I have to write a
    template doc XML to have it.
    I'm afraid that this is a costraint on the DOM1 so ...
    2)
    Once I complete the construction of the doc, I need to write it down (let's say
    on a file, but could be also in memory to send it on http).
    When I write it (using exportdocument function) I just find the root element
    with all it's children, no haeder (<?xml version="1.0" ?><!DOCUMENT ...>) so I
    cannot have the dtd information on the stream, and cannot enforce validation of
    the doc when someone read it afterwards.
    I admit I'm new of the subject, but or I miss something or something is wrong:
    having trouble to get a dtd and not being able to code it's information.
    Anyone has some ideas?
    TIA
    Luca

    I'm interested in DTDs. For example in the reported situation, why, if you
    know you've created a valid XML document would you want to give a DTD to
    someone at the other end? If someone has a DTD at the other end and want to
    use it to validate your XML then fine but if you create the XML and are
    controlling the format then wouldn't they just assume the XML correct if the
    DTD wasn't being controlled by a 3rd party or themselves?
    DTDs don't help you create a document but just validate it, I'd thought. If
    there is more to DTDs I'd appreciate if someone felt like ellaborating.
    Thanks.
    Matthew Middleton
    OrYx Software Consultant
    Lawpoint Pty. Limited
    A Solution 6 Company
    Ph: +61 2 9239 4972
    Fax: +61 2 9239 4900
    E-mail matthewmwriteme.com
    ----- Original Message -----
    From: Luca Gioppo <Luca.GioppoCSI.IT>
    To: <forte-userslists.xpedior.com>
    Sent: Tuesday, August 08, 2000 8:24 PM
    Subject: (forte-users) XML - ExportDocument problem
    >
    >
    I'm exporting a xml document that I'm creating dynamically in myapplication.
    I'm having the following problems (working with 30M.2).
    1)
    It's not possible to edit a DTD (or creating one run time) so I have towrite a
    template doc XML to have it.
    I'm afraid that this is a costraint on the DOM1 so ...
    2)
    Once I complete the construction of the doc, I need to write it down(let's say
    on a file, but could be also in memory to send it on http).
    When I write it (using exportdocument function) I just find the rootelement
    with all it's children, no haeder (<?xml version="1.0" ?><!DOCUMENT ...>)so I
    cannot have the dtd information on the stream, and cannot enforcevalidation of
    the doc when someone read it afterwards.
    I admit I'm new of the subject, but or I miss something or something iswrong:
    having trouble to get a dtd and not being able to code it's information.
    Anyone has some ideas?
    TIA
    Luca
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • 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.

  • Txt to xml. Problems with characters(&, , ',...)

    I want to generate a xml file with text from a txt file but i have problems with special characters such as &, <... I'd like to know if there�s any class or library to filter the text in order to generate my xml without problems.
    Thank you.

    Use JDOM to generate your XML. It will worry about escaping issues for you.
    Here's a (probably rather inelegant) example for you to play around with:
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.*;
    public class DateBoom {
         public static void main(String[] args)
              throws Exception
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = factory.newDocumentBuilder();
              String dodgyText = "< & '";
              Document document = builder.newDocument();
              Element root = document.createElement("root");
              root.setAttribute("dodgy",dodgyText);
              document.appendChild(root);
              Element child = document.createElement("child");
              root.appendChild(child);
              child.appendChild(document.createTextNode(dodgyText));
              Transformer transform = TransformerFactory.newInstance().newTransformer();          
              Source source = new DOMSource(document);
              Result result = new StreamResult(System.out);
              transform.transform(source,result);
    }Your alternative is to use something like String regular expressions (regex) to do this manually, but the XML oriented libraries will catch more corner cases than you're likely to anticipate, making them more reliable.

  • !DOCTYPE !ENTITY war file xml splitting problem

    Hi,
    I am trying to split a file - struts-config.xml - which eventually gets
    located into my war file.
    Here is the xml file.
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
    Configuration 1.0//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"
    <!ENTITY struts_FormBeans SYSTEM "./struts_FormBeans.xml">
    <!ENTITY struts_GlobalForwards SYSTEM
    "./struts_GlobalForwards.xml">
    <!ENTITY struts_ActionMappings SYSTEM
    "./struts_ActionMappings.xml">
    >
    The problem that I run into is that the xml parser at deploy time cannot
    locate the struts_FormBeans.xml file which is located in the same place as
    the struts-config.xml file.
    Does anyone know a way to tell it to look in the war file?
    or Does anyone know a better place to post a question like this?
    Thanks in advance!!

    The problem that I run into is that the xml parser at deploy time cannot
    locate the struts_FormBeans.xml file which is located in the same place as
    the struts-config.xml file.Uh-uh. Ran into this also.
    Does anyone know a way to tell it to look in the war file?Not me, but I wish I could.
    or Does anyone know a better place to post a question like this?This seems more like a Struts issue to me. Look here:
    http://marc.theaimsgroup.com/?l=struts-user&m=100016330124990
    and follow the thread. Someone suggested a patch to the ActionServlet, I
    haven't tried it yet. It sounds good and will probably do what you want.
    --Renaud
    "IH" <[email protected]> wrote in message news:[email protected]..
    Hi,
    I am trying to split a file - struts-config.xml - which eventually gets
    located into my war file.
    Here is the xml file.
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
    Configuration 1.0//EN"
    "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"
    <!ENTITY struts_FormBeans SYSTEM "./struts_FormBeans.xml">
    <!ENTITY struts_GlobalForwards SYSTEM
    "./struts_GlobalForwards.xml">
    <!ENTITY struts_ActionMappings SYSTEM
    "./struts_ActionMappings.xml">
    >
    The problem that I run into is that the xml parser at deploy time cannot
    locate the struts_FormBeans.xml file which is located in the same place as
    the struts-config.xml file.
    Does anyone know a way to tell it to look in the war file?
    or Does anyone know a better place to post a question like this?
    Thanks in advance!!

  • Problem regarding XML field value to XML generation

    Hi Everybody,
    I am facing a typical problem. I am storing xml in an xml datatype field in a table. But when I am generating physical file from the xml field, '&amp;' in the xml field is getting converted into '&' in the physical file. But I want '&amp;' to
    be intact.
    Can anyone faced the issue or have any idea of solving this?
    Thanks & Regards,
    Anujit Karmakar
    Anujit Karmakar Sr. Software Engineer

    Hi Anujit,
    How do you generate physical file from the xml field?
    I make a test on my computer using your XML data with the following scripts, '&amp;' exists in my exported file.
    DECLARE @testXML XML
    SELECT @TestXML='<ENVELOPE>
    <HEADER>
    <TALLYREQUEST>Import Data</TALLYREQUEST>
    </HEADER>
    <BODY>
    <IMPORTDATA>
    <LEDGER NAME="Prafulla Ghosh">
    <ADDRESS.LIST TYPE="String">
    <ADDRESS>BEHIND DILIP MATH &amp; DISARI CLUB</ADDRESS>
    </ADDRESS.LIST>
    <MAILINGNAME.LIST TYPE="String">
    <MAILINGNAME>Prafulla Ghosh</MAILINGNAME>
    </MAILINGNAME.LIST>
    <STATENAME>West Bengal</STATENAME>
    </LEDGER>
    </IMPORTDATA>
    </BODY>
    </ENVELOPE>'
    -- We Store the contents of an XML variable to a table
    CREATE TABLE MyXMLTable
    xCol XML
    INSERT INTO MyXMLTable ( xCol )
    SELECT @testXML
    We Save an XML value to a file.
    DECLARE @Command VARCHAR(255)
    DECLARE @Filename VARCHAR(100)
    SELECT @Filename = 'C:\Files\TestXMLRoutine'
    /* we then insert a row into the table from the XML variable */
    /* so we can then write it out via BCP! */
    SELECT @Command = 'bcp "select xCol from ' + DB_NAME()
    + '..MyXMLTable" queryout '
    + @Filename + ' -w -T -S' + @@servername
    EXECUTE master..xp_cmdshell @command
    --so now the xml is written out to a file
    SELECT CONVERT(nVARCHAR(max),BulkColumn)
    FROM OPENROWSET(BULK 'C:\Files\TestXMLRoutine', SINGLE_BLOB) AS x
    go
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Problem in XML generation

    Hi All,
    I am new to SNC consulting, currently i am learning the Purchase order Process of SNC. I created plant, material, Vendor and info records in ECC 6 and ciffed these data to SNC 7.0 system.
    After this i created a normal PO in ECC and an IDOC of type PORDCR1  PORDCR102 is generated in the ECC but i am not able to see the XML of type Purchase order ERPreplenishment  order notification_in in SNC system.
    I logged into PI system and checked the SXMB_MONI transcation, i could not find out any alternative way.
    Can anyone tell what i have to do inorder to get the XML transfered to SNC. And could you please share PO configuration and process documents.
    Thanks & Regards,
    Srilakshmi

    Hi Vasu,
    I Checked for the  inbound XML messages Assigned to Default process types it wast not there, but i maintained this setting in
    SAP SNC - >IMG->SNC-.Basic Settings->processing Inbound and outbound messages->process types for Inbound messages->Assign Inbound XML messages to Default process types.
    i selected the option "Supplier Collaboration" as the process type for all your XML messages.
    I created a new PO and sent it to SNC, still  i am not able see the XML.
    I checked the TA " SLDCHECK", it returned an error saying :
    Exchange Infrastructure: Test LCR Connection
    Properties of RFC destination SAPSLDAPI
      RFC host:
    %%RFCSERVER%%
      program id:      SAPSLDAPI_PI7
      gateway host:
    serverpi71
      gateway service: sapgw00
    Testing the RFC connection to the SLD java client...
    RFC ping returned exception with message:
    Error when opening an RFC connection (CPIC-CALL: 'ThSAPOCMINIT' : cmRc=2 thRc=67
    Summary: Connection to SLD does not work
    => Check SLD function and configurations
    Now checking access to the XI Profile
    Properties of RFC destination LCRSAPRFC
      RFC host:
    %%RFCSERVER%%
      program id:      LCRSAPRFC_PI7
      gateway host:
    serverpi71
      gateway service: sapgw00
    Testing the RFC connection to the SLD java client...
    RFC ping was successful
    Calling function EXCHANGE_PROFILE_GET_PARAMETER
    Retrieving data from the XI Profile...
    Function call terminated sucessfully
    Retrieved value of
    section   = Connections
    parameter = com.sap.aii.ib.server.connect.webas.r3.ashost
    Can you please help me how to solve this error.
    Thanks & Regards,
    Srilakshmi

  • Web.xml file generation problem

    Hi,
    I am trying to create web.xml file automatically using "java weblogic.marathon.ddinit.WebInit
    " command.
    I got the following message in the command prompt:
    Found Web components. Initializing descriptors
    filters=0 servlets=0 tags=0
    Above command is creating the web.xml and weblogic.xml files but it is not including
    the servlet-mapping information. why?
    Thanks,
    Prakash

    It doesn't look like it found any servlets. You'd have to show me your
    files if I'm to understand what's going on.
    -- Rob
    Prakash wrote:
    Hi,
    I am trying to create web.xml file automatically using "java weblogic.marathon.ddinit.WebInit
    " command.
    I got the following message in the command prompt:
    Found Web components. Initializing descriptors
    filters=0 servlets=0 tags=0
    Above command is creating the web.xml and weblogic.xml files but it is not including
    the servlet-mapping information. why?
    Thanks,
    Prakash

  • Datalink sequence method (XML file generation problem using Rdf)

    Hi All
    I want to Generate XML File using RDF , Here i used 4 datablocks and i lilnked each datablock with datalink like 1 to 2, 1to 3 and 1 to 4 respectively. while executing the report it choosing only one link like 1 to 2 and writting the data in the file for the same. its not touching 3rd and 4th datablocks I need to have data for all the blocks that are available.
    One more thing i want to close each blockonce the data is written in the file.But in this case the tags get open wites data goes to the other block write the data for this block come back to the first block and closes the block.
    eg: <Start>
    <First block>
    <Second block>
    <Third Block>
    </Third block>
    </second block>
    </First block>
    </Start>
    My requirment is
    <start>
    <First block>
    </First block>
    <Second block>
    </Second block>
    <Third Block>
    </Third block>
    </Start>

    You might want to look at the SQL/XML operators XMLAGG, XMLELEMENT, XMLFOREST, XMLATTRIBUTES. They provide you with fine grained control over the XML generated.

  • APEX 4.1 - APACHE FOP PDF generation problem.

    Hi all,
    I'm having problem with PDF generation using APACH FOP on OC4J.
    When I test my print server as described here:
    http://marcsewtz.blogspot.com/2008/06/heres-another-posting-on-pdf-printing.html
    everything works without problem. But when I upload my Layout to APEX and try to generate PDF from apex I'm getting error:
    oracle.xml.parser.v2.XMLParseException: Unexpected EOF.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.XMLReader.popXMLReader(XMLReader.java:549)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1375)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:362)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:308)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:337)
         at oracle.xml.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:714)
         at oracle.xml.xslt.XSLStylesheet.<init>(XSLStylesheet.java:322)
         at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:114)
         at apex_fop._jspService(_apex__fop.java:71)
         [SRC:/apex_fop.jsp:21]
    I could see similar post here:
    Handling Special characters in call to apex_util.download_print_document
    But it doesn't explain my case as it's crashing even when I generate empty pdf(no data so no special characters, only empty XML file with no data should be sent to print server)
    Is there any way to see what xml is sent do print server for processing? That could eventually show where is a problem.
    Palo

    My mistake, there was really an "&" character in my template. now when I replaced it with %26 it works.
    However I would be still interested if there is a way to see what data is APEX engine sending to print server cause it will help me to find this kind of errors.
    Palo

  • SOAP wdsl generation problem j developer

    hi im having a problem with wsdl file generated from jdeveloper.
    I expose a pl/sql function as a web service. I can then conect to the soap url with a web browser and sucessfull publish data to the db from this , but if i take the wsdl file from jdeveloper in to a soap test client (magoo) i get an error, on anything that trys to post data back to the DB ???
    the error is
    No Deserializer found to deserialize a ':emp' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.
    im not using BPEL (which i know has some soap problems)
    THIS IS THE SOAP MESSAGE THE WSDL FILE GENERATES
    <?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:m='MyWebService-v9' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns1='http://oadev11/Company.xsd' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'>
    <soapenv:Body soapenv:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
    <m:addemp>
    <emp>
    <eid xsi:type='xsd:int'>7</eid>
    <efirstname xsi:type='xsd:string'>mr</efirstname>
    <elastname xsi:type='xsd:string'>magoo</elastname>
    <addr>
    <street xsi:type='xsd:string'>granby grove</street>
    <city xsi:type='xsd:string'>southampton</city>
    <state xsi:type='xsd:string'>uk</state>
    <zip xsi:type='xsd:string'>so</zip>
    </addr>
    <salary xsi:type='xsd:double'>1000</salary>
    </emp>
    </m:addemp>
    </soapenv:Body>
    </soapenv:Envelope>
    this returns an error,
    No Deserializer found to deserialize a ':emp' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.
    ive tested the client with the googlesearchapi wsdl file, so the client is working ok, I think there might be a problem with the wsdl file generation. can anyone sugest what this might be?
    conecting directly to the soap service url and submitting xml suggested by the interface, adds the entry to the databse and works fine
    <emp xmlns:ns1="http://oadev11/Company.xsd"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:type="ns1:oadev11_EmployeeUser">
    <eid xsi:type="xsd:int">7</eid>
    <efirstname xsi:type="xsd:string">MR</efirstname>
    <elastname xsi:type="xsd:string">MAGGO</elastname>
    <addr xsi:type="ns1:oadev11_AddressUser">
    <street xsi:type="xsd:string">Granby grove</street>
    <city xsi:type="xsd:string">southampton</city>
    <state xsi:type="xsd:string">uk</state>
    <zip xsi:type="xsd:string">SO</zip>
    </addr>
    <salary xsi:type="xsd:double">1000</salary>
    </emp>
    This sucessfuly ads the entry to the databse any ideas please?

    Hi,
    Action parameter is always under Opertaion tag of your wsdl. In your case it is
    Action = rpc/http://siebel.com/CustomUI:ATDDQMatchWS
    <operation name="ATDDQMatchWS">
    <soap:operation soapAction="rpc/http://siebel.com/CustomUI:ATDDQMatchWS"/>
    <input>
    <soap:body use="literal" namespace="http://siebel.com/CustomUI"/>
    </input>
    <output>
    <soap:body use="literal" namespace="http://siebel.com/CustomUI"/>
    </output>
    </operation>
    It looks to me you are trying to invoke RC encoded webservice which is not supported in XI.
    Reward points if find useful
    Thanks
    Amit

  • Stub generation problem with the wsdl file

    Hi all
    I'm trying to write a simle webservice client based on JAX. My webservice is working fine I've tested it with a standalone app. In my webservice I'm using complex type. Problem is that i can't generate properly stubs. This is a msg I'm getting during the generation
    warning: ignoring operation "getEmployee": message part does not refer to a schema element declaration
    warning: Port "EmployeeIFPort" does not contain any usable operationsBecause of that my method to get the Object from the webservice is not generated.
    This is the wsdl file.
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="EmployeeService" targetNamespace="urn:Foo" xmlns:tns="urn:Foo" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
      <types>
        <schema targetNamespace="urn:Foo" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:Foo" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
          <complexType name="Employee">
            <sequence>         
              <element name="name" type="xsd:string"/>
              <element name="surname" type="xsd:string"/>
           <element name="age" type="xsd:int"/>
         </sequence>
         </complexType>
        </schema>
       </types>
      <message name="EmployeeIF_getEmployee">
        <part name="String_1" type="xsd:string"/>
        <part name="String_2" type="xsd:string"/>
        <part name="int_3" type="xsd:int"/>
      </message>
      <message name="EmployeeIF_getEmployeeResponse">
        <part name="result" type="tns:Employee"/>
      </message>
      <portType name="EmployeeIF">
        <operation name="getEmployee" parameterOrder="String_1 String_2 int_3">
          <input message="tns:EmployeeIF_getEmployee"/>
          <output message="tns:EmployeeIF_getEmployeeResponse"/>
        </operation>
      </portType>
      <binding name="EmployeeIFBinding" type="tns:EmployeeIF">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <operation name="getEmployee">
          <soap:operation soapAction=""/>
          <input>
            <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
          </input>
          <output>
            <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="EmployeeService">
        <port name="EmployeeIFPort" binding="tns:EmployeeIFBinding">
          <soap:address location="http://localhost:8080/EmployeeService/getEmployee"/>
        </port>
      </service>
    </definitions>However the complex type class Employee is generated properly as well as other stub classes like the interface EmployeeIF, EmployeeIF_getEmployee_RequestStruct and EmployeeIF_getEmployee_ResponseStruct (I mean i think they are generated properly). As I said befor the problem is that the webservice method from the EmployeeIF.getEmployee() is not generated in the EmployeeIF_Stub. Any ideas why? I'm using WTK 2.5
    thx in advance :)

    Here i Followed  Url &sap-user=XXX&sap-password=YYY to the WSDL-URL with XXX and YYY being your username and password and you will be authenticated.
    Later i Struck. Actual my requirement is I have two views i want to take a value from the first view and then return value displayed in the second view. All input/output parameters are the taken from the WSDL file. Can you please Help me.

Maybe you are looking for

  • Could someone tell me alittle about the AbstractDocument please

    Hi, hope someone can help, I am making a small internet chat program, and had it working great using JTextArea, but I wanted to style the text, and so switched to JTextPane, and using the AbstractDocument. Here these two code chunks are setting up my

  • PROBLEMS WITH ME32L

    Hi everyone. Iam facing a Problem in release Strategy of PO.We have a requirement like this.when we create a PO and Release the PO through ME29N,after that when u change the value (in change changes the net effective Price(ekpo-effwr) ) of PO in the

  • Business Package Implementation

    hi, i have installed the portal. i have uploaded a business package for CRM. the integration settings are done. when i try to view the business package i am able to see the display but i am not able to get any data from the CRM system. please guide w

  • How to add a bookmark ipad 2

    How can I add a faorite in the bookmark list with my ipad 2 IOS 6.0.1

  • Always crashing in the same car

    I keep getting the same message that I have to restart my IMac. Probably a software problem. I tried repairing prefs, safe mode, throwing away startup items etc. First it was at login, now its after 1 minute, when everything seems to be working. Plea