XML object help

I'm having major problems with what seems to be a straight
forward thing. I have an XML object that looks like this:
<SearchResponse xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns="
http://tempuri.org/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
<SearchResult>
<node>
<cluster FullName=", copyright, rights reserved"
Name="copyrightrights reserved">
<doc teaser="Teaser" url="APPLICAT.PPT" rank="1887"
size="361472" thumbs="true" title="Doc Title"/>
<doc teaser="Teaser" url="APPLICAT.PPT" rank="1887"
size="361472" thumbs="true" title="Doc Title"/>
<doc teaser="Teaser" url="APPLICAT.PPT" rank="1887"
size="361472" thumbs="true" title="Doc Title"/>
</cluster>
<cluster FullName="app server, application server, bea
weblogic" Name="app serverapplication serverbea weblogic">
<doc teaser="Teaser" url="APPLICAT.PPT" rank="1887"
size="361472" thumbs="true" title="Doc Title"/>
<doc teaser="Teaser" url="APPLICAT.PPT" rank="1887"
size="361472" thumbs="true" title="Doc Title"/>
<doc teaser="Teaser" url="APPLICAT.PPT" rank="1887"
size="361472" thumbs="true" title="Doc Title"/>
</cluster>
</node>
</SearchResult>
<SearchResponse>
I'm basically just trying to loop through it using something
like this:
for(var i:Number=0;
i<clusters_xml.node[0].cluster.length(); i++)
var clusterNode_xml:XML = clusters_xml.node[0].cluster
for(var j:Number=0; j<clusterNode_xml.doc.length(); j++)
var docNode:XML = clusterNode_xml.doc[j];
all_xml.appendChild(docNode);
The thing is, it works with an XML file with the SAME data
using HTTPService, but when it's a WebService - it just doesnt
work. I set the resultFormat to e4x on both

how do i handle the namespaces?
something like this ?
clusters_xml.removeNamespace(clusters_xml.namespace("xsi"));
clusters_xml.removeNamespace(clusters_xml.namespace("xsd"));
clusters_xml.removeNamespace(clusters_xml.namespace("soap"));
there's still the one called
http://tempuri.org/
which I cant get rid of even by using something like
clusters_xml.removeNamespace(clusters_xml.namespaceDeclarations()[0]);

Similar Messages

  • Passing data from an XML object to an itemRenderer

    I'm trying to color the background of a column in a datagrid and have found a sample file that illustrate the concept. However, the sample has data stored in an arrayCollection whereas mine is in an XML object. The problem is that the data in the sample file is apparently automatically passed to the itemRenderer (shown below: note the trace statement). My XML object does not appear to automatically pass data to the itemRenderer. So my questions are:
    1. Is there a simple way to pass data stored in an XML object to an itemRenderer
    or
    2. Should I convert my XML to an arrayCollection? If so, what's the best way to do this-- I've tried the following, but without success:
    <mx:Model id="xmldata" source="example3.xml"/>
      <mx:ArrayCollection id="myAC" source="{ArrayUtil.toArray(xmldata.Example1)}" />
    Here's what the xml looks like:
    <TABLE>
       <EXAMPLE1>
          <difficulty> 0.5 </difficulty>
          <discrimination> 0.7 </discrimination>
          <item> 3 </item>
       </EXAMPLE1>
    </TABLE>  
    Here's the itemRenderer:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Label xmlns:mx="http://www.adobe.com/2006/mxml">
        <!--
            This item renderer simply extends Label and overrides the updateDisplayList function to
            draw a gradient-filled rectangle. The colors in the gradient are determined from the
            data.
        -->
        <mx:Script>
        <![CDATA[
            import flash.geom.Matrix;
            import flash.display.GradientType;
            import flash.display.Graphics;
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
                super.updateDisplayList(unscaledWidth,unscaledHeight);
                var m:Matrix = new Matrix();
                m.createGradientBox(unscaledWidth,unscaledHeight);
                var g:Graphics = graphics;
                            trace("data.col3="+data.col3)
                var colors:Array = (data.col3 < 2000 ? [0x0000CC,0x0000FF] : [0x00CC00,0x00FF00]);
                g.clear();
                g.beginGradientFill(GradientType.LINEAR, colors, [0.2,0.6], [0,255], m);
                // the rectangle is drawn a little high and a little tall to compensate for the gap
                // the DataGrid introduces between rows.
                g.drawRect(0, -2, unscaledWidth, unscaledHeight+4 );
                g.endFill();
        ]]>
        </mx:Script>
    </mx:Label>

    This sample code should answer your question of how to bring data into the renderer automatically. It comes in via the DataGrid dataProvider and then you refer to it in the renderer as data.XYZ, where XYZ is the field in the XML with the data. See FB 3 help sys on e4x syntax.
    ------------------ mainapp.mxml --------------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="srvc.send();">
      <mx:Script>
        <![CDATA[
          import mx.rpc.events.ResultEvent;
          import mx.collections.XMLListCollection;
          [Bindable] private var xlc:XMLListCollection;
          private function dataHandler(evt:ResultEvent):void{
            xlc = new XMLListCollection(evt.result..EXAMPLE1 as XMLList);
        ]]>
      </mx:Script>
      <mx:HTTPService id="srvc" url="data2.xml" result="dataHandler(event)"
        resultFormat="e4x"/>
      <mx:DataGrid dataProvider="{xlc}">
        <mx:columns>
          <mx:DataGridColumn headerText="Difficulty" dataField="difficulty"/>
          <mx:DataGridColumn headerText="Discrimination" dataField="discrimination"/>
          <mx:DataGridColumn headerText="Item" itemRenderer="MyLabel"/>
        </mx:columns>
      </mx:DataGrid>
    </mx:Application>
    ----------- MyLabel.mxml --------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Label xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import flash.geom.Matrix;
          import flash.display.GradientType;
          import flash.display.Graphics;
          override protected function updateDisplayList(unscaledWidth:Number,
            unscaledHeight:Number):void{
            super.updateDisplayList(unscaledWidth,unscaledHeight);
            this.text = data.col3;
            var m:Matrix = new Matrix();
            m.createGradientBox(unscaledWidth,unscaledHeight);
            var g:Graphics = graphics;
            var colors:Array = (data.col3 < 2000 ? [0x0000CC,0x0000FF] : [0x00CC00,0x00FF00]);
            g.clear();
            g.beginGradientFill(GradientType.LINEAR, colors, [0.2,0.6], [0,255], m);
            g.drawRect(0, -2, unscaledWidth, unscaledHeight+4 );
            g.endFill();
        ]]>
      </mx:Script>
    </mx:Label>
    ------------ data2.xml ----------------
    <?xml version="1.0" encoding="utf8"?>
    <TABLE>
       <EXAMPLE1>
          <difficulty> 0.5 </difficulty>
          <discrimination> 0.7 </discrimination>
          <col3> 3 </col3>
       </EXAMPLE1>
    </TABLE>

  • How can i filter an xml object on an attribute?

    I want address an xml object with .(@ attributeNameHere == "textToSearchForHere") and have it return the node it’s associated with. 
    This is the text from the adobe help site and it’s similar to my actual code.  I’m querying this xml object: staticVar.employee.(@id=="347").  FlashBuilder 4.7 is returning an error “No such variable: @id”. when I look in debugger.
    This example is found in Adobe's help site: Adobe Flash Platform * Traversing XML structures
    The help site says
    The following expressions are all valid:
    x.employee.(lastName == "McGee")—This is the secondemployeenode.
    x.employee.(lastName == "McGee").firstName—This is thefirstNameproperty of the secondemployeenode.
    x.employee.(lastName == "McGee").@id—This is the value of theidattribute of the secondemployeenode.
    x.employee.(@id == 347)—The firstemployeenode.
    public var staticVar:XML = 
    <employeeList>
          <employee id="347">
               <lastName>Zmed</lastName>
               <firstName>Sue</firstName>
               <position>Data analyst</position>
          </employee>
          <employee id="348">
               <lastName>McGee</lastName>
               <firstName>Chuck</firstName>
               <position>Jr. data analyst</position>
          </employee>
    </employeeList>;
    I’m expecting this: staticVar.employee.(@id=="347") will return the following node:
    <employee nu="347">
    <lastName>Zmed</lastName>
    <firstName>Sue</firstName>
    <position>Data analyst</position>
    </employee>
    If this is the wrong, then what is the correct way to access the xml node based on an attribute?  How can i get that node 347 in this example to be found and returned?  I've opened a ticket with the adobe help team and we're on the 8th day and they have not been helpful at all.

    If you are using e4x as the result format for your service
    you can do the following
    //a XMLList of all day information
    var result:Object = event.result.day;
    //consits all information for month zero
    var month0:XMLList = result.(@month == 0);
    //consists of booking info for day 28 of month 0
    var day28Month0:XMLList = month0.(@day == 28);
    //this also can be done
    //contains booking info for all months for day 28
    var day28AllMonths:XMLList = result.(@day == 28);
    Using this technique you should be able to gather info about
    all user selected dates and build the smaller (filtered) list.
    HTH

  • Conversion of string into XML object

    Hi
    I am having some problems with conversion of string (containing XML data) into Flex XML object and binding it later to UI elements to output/maintain this data.
    Binding of XML structure to UI elements works perfectly fine if I will do following:
    1)      Hardcode XML object within Flex file
    2)      Read xml file from repository (xml file inside the Flex project)
    3)      Use HTTP request to retrieve XML data
    Unfortunately none of the above scenarios suits my solution.
    I am developing a prototype application for processing Flex forms inside SAP system. I have decided to make data bindings using XML structure stored in Data Base. When rendering form inside web browser based application I am retrieving corresponding XML schema (empty for new forms and populated for saved forms) and pass it to Flex form as a string type import parameter. Data is being passed correctly (I can display it on TextArea control for instance) but after conversion to XML and binding to DataGrid I am not getting any results.
    I am converting string (containing XML) to XML object in following way:
    Private var xml_obj:XML = new XML(string_xml );
    I am catching any potential errors but conversion is going well. After conversion I am not getting any results after binding it to DataGrid control and I am not able to access any of the nodes using AS code either. At the same time variable xml_obj is not empty (not null).
    Any help would be much appreciated.
    Regards
    Michael

    David
    First of all sorry for not stating it clearly but I am using Flex 3 for this development (at the moment it is the only choice when embedding Flex objects inside SAP applications).
    You must have missed the bit where I am describing how this XML data finds its way inside Flex. I am passing it to Flex as String type parameter during rendering (directly from DB where it is stored).
    Now, following code works perfect (XML is embedded inside Flex project):
                    <mx:XML id="form_data" source="../assets/example_xml_data.xml"/>
                    <mx:Script>
                                    <![CDATA[
                                                    import mx.collections.XMLListCollection;
                                                    import mx.controls.Alert;
                                                    [Bindable]
                                                    public var XML_list:XMLListCollection;
                                                    private function setParameters():void
                                                                   XML_list = new XMLListCollection(form_data.*);             
                                    ]]>
                    </mx:Script>
                    <mx:DataGrid id="myDataGrid" dataProvider="{XML_list}">
                                    <mx:columns>
                                                    <mx:DataGridColumn dataField="COMMON" headerText="Popular name"/>
                                                    <mx:DataGridColumn dataField="BOTANICAL" headerText="Botanical name"/>
                                                    <mx:DataGridColumn dataField="ZONE" headerText="Zone"/>
                                                    <mx:DataGridColumn dataField="LIGHT" headerText="Light"/>                                                                                                                                               
                                                    <mx:DataGridColumn dataField="PRICE" headerText="Price"/>                                               
                                                    <mx:DataGridColumn dataField="AVAILABILITY" headerText="Availability"/>                                    
                                    </mx:columns>               
                    </mx:DataGrid>
    But following code does not work (XML passed to Flex form as String input parameter):
    import sap.FlashIsland;
    import mx.controls.Alert;
    import mx.collections.XMLListCollection;
    [Bindable]
    public var xml_data:String;
    private var form_data:XML;
    [Bindable]
    private var XML_list:XMLListCollection;
    private function initApp():void
                    FlashIsland.register(this);
    private function setParameters():void
                    try
                                    form_data=new XML(xml_data);
                    catch (error:Error)
                                    Alert.show(error.toString());
                      XML_list = new XMLListCollection(form_data.*);           
    XML string does find its way inside Flex form. I can display content of variable xml_data in TextArea and all looks fine. Conversion to XML (variable form_data) goes well (no error)
    Please helpJ
    Regards
    Michael

  • How to create a xml object dynamically

    Hi all,
    In my current project the database is returning the query result in xml string format(using oracle's DBMS-XML package).
    Now I need to use this xml string and build a xml object and transform it into XSLT and then in a servlet and then pass it to the browser and display it using xsl stylesheets.
    Can some one help me in building an xml object using a string( the xml string is in the xml format i.e in <..> format) and then transform it into xslt in the servlet and send across to the browser.
    Any hands on code or references to the code will be most favourable.
    any help regarding this issue will be most appreciated. Pls do reply as early as possible as I do not have much time to implement this.
    Thanking in advance for your kind help.
    Srinivas.

    What's an "xml object"?
    If you want to transform it using XSLT (transforming it "into" XSLT doesn't make much sense), you can transform direct from the string. Like this:try {
      TransformerFactory xformFactory  = TransformerFactory.newInstance();
      Source xsl = new StreamSource("your.xsl");
      Transformer stylesheet = xformFactory.newTransformer(xsl);
      Source request  = new StreamSource(new StringReader(yourXMLString));
      Result response = new StreamResult(out);
      stylesheet.transform(request, response);
    catch (TransformerException e) {
      System.err.println(e);
    }By the way, if you haven't seen this code before then I suggest you go and read ERH's book about XML with Java:
    http://www.cafeconleche.org/books/xmljava/chapters/index.html

  • String to xml object java

    Hello,
    can anyone suggest me how to convert string to xml object in java?
    I have a string (Data) ant now I have to pass it as parameter as xml object, which structure should be:
    <MGWData>Data</MGWData>
    Where I surf I always see only solutions for converting string to xml document, but never to xml object.
    maybe the problem is I don't completely understand what xml object is in first place :/
    Any answer would help.
    Thanks.

    894871 wrote:
    here is the method to call:
    +/**+
    * Sets the p_DATAXMLTYPEIN value for this SVARCHAR2INSERT_RECEIVESInput.
    *+
    * @param p_DATAXMLTYPEIN
    *public void setP_DATAXMLTYPEIN(com.oracle.xmlns.orawsv.SISTEMA_MOKA.MGW_PUBLIC_FUNCTIONS.SVARCHAR2INSERT_RECEIVESInputP_DATAXMLTYPEIN p_DATAXMLTYPEIN) {*
    this.p_DATAXMLTYPEIN = p_DATAXMLTYPEIN;
    one of the classes contains:
    *public class SVARCHAR2INSERT_RECEIVESInputP_DATAXMLTYPEIN  implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {*
    *private org.apache.axis.message.MessageElement [] _any;*
    this method and some classes where generated using eclipse and wsdl file by creating web service client.
    wsdl says for that part: *<xsd:element name="P_DATA-XMLTYPE-IN">*
    So I suppose it should involve smth org.apache.axis.message.MessageElement. But when I create any type of parameter, it gives me error:
    + ....cannot be cast to com.oracle.xmlns.orawsv.SISTEMA_MOKA.MGW_PUBLIC_FUNCTIONS.SVARCHAR2INSERT_RECEIVESInputP_DATAXMLTYPEIN+
    I am new in web service stuff so thank you for response.Can you explain in plain English what you are trying to do? Or provide a [url http://sscce.org/]SSCE.

  • Mapping XML object to java object gives ClassCastException

    Hi All,
    I am trying to map a specific XML object to a specific java object using web
    services and received the following exception:
    java.lang.ClassCastException: weblogic.soap.xml.XMLObject
    at $Proxy0.getMonster(Unknown Source)
    at serviceClient.TestServiceClient.main(TestServiceClient.java:46)
    Exception in thread "main"
    I tried to map a simple type:
    <types>
    <schema targetNamespace='java:biomaterials'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    <element name="Monster">
    <complexType>
    <all>
    <element name="name"
    type="string"/>
    <element name="age"
    type="int"/>
    </all>
    </complexType>
    </element>
    </schema>
    </types>
    To the following java bean:
    package biomaterials;
    public class
    ster{
    private String name;
    private Integer age;
    public Monster(String name, int age) {
    this.name=name;
    this.age=new Integer(age);
    public String getName() {
    return name;
    public void setName(String s) {
    this.name=s;
    public Integer getAge() {
    return age;
    public void setAge(int n) {
    this.age=new Integer(n);
    Here is my client code:
    package serviceClient;
    import java.util.Properties;
    import weblogic.soap.codec.CodecFactory;
    import weblogic.soap.codec.SoapEncodingCodec;
    import weblog
    ic.soap.codec.LiteralCodec;
    import weblogic.soap.WebServiceProxy;
    import weblogic.soap.SoapMethod;
    import weblogic.soap.SoapType;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.ejb.*;
    import biomaterials.ServiceSession;
    import java.io.File;
    import java.io.IOException;
    import org.w3c.dom.Element;
    import biomaterials.Monster;
    public class TestServiceClient
    public static void main( String[] arg ) throws Exception
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.soap.http.SoapInitialContextFactory");
    h.put("weblogic.soap.wsdl.interface",
    ServiceSession.class.getName() );
    Context context = new InitialContext(h);
    ServiceSession serv =
    (ServiceSession)context.lookup("http://localhost:7001/biocat/biomaterials.Se
    rviceSession/biomaterials.ServiceSession.wsdl");
    //try
    //int result = serv.getTheNum();
    //String result=serv.getBIXBiologicals();
    //int result=serv.setBIXInfo("TARNUMBER");
    Monster result=serv.getMonster();
    System.out.print("The value is "+result);
    } /* end of main */
    } /* end of class */
    Here is the method in my stateless session bean:
    public Monster getMonster()
    return new Monster("Sully",3);
    And here is my whole wsdl file:
    <% response.setHeader( "Content-Type", "text/xml; charset=utf-8" ); %>
    <definitions
    targetNamespace="java:biomaterials"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="java:biomaterials"
    >
    <types>
    <schema targetNamespace='java:biomaterials'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    <element name="Monster">
    <complexType>
    <all>
    <element name="name" type="string"/>
    <element name="age" type="int"/>
    </all>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="getBIXBiologicalsRequest"></message>
    <message name="getBIXBiologicalsResponse">
    <part name="return" type="xsd:string" />
    </message>
    <message name="setBIXInfoRequest">
    <part name="arg0" type="xsd:string" />
    <part name="arg1" type="xsd:string" />
    <part name="arg2" type="xsd:integer" />
    </message>
    <message name="setBIXInfoResponse"></message>
    <message name="getMonsterRequest"></message>
    <message name="getMonsterResponse">
    <part name="body" element="tns:Monster"/>
    </message>
    <portType name="ServiceSessionPortType">
    <operation name="getBIXBiologicals">
    <input message="tns:getBIXBiologicalsRequest"/>
    <output message="tns:getBIXBiologicalsResponse"/>
    I am using weblogic 6.1 SP1 on WIN NT.
    Please help me out in this issue.
    Thanks in advance.
    Sapan

    HI !
    i dont think that the servicepack is an issue in this case.
    anyway i ahve tried it on 6.1SP4 and still getting similar results.
    any pointers will be highly appreciated.
    Thanks,
    sapan
    "manoj cheenath" <[email protected]> wrote in message
    news:[email protected]...
    I just skimmed through your email. You said you
    are using WLS 6.1 SP1. Can you try this using
    the latest SP. There are many bug fixes done
    after SP1.
    Web service support in 6.1 is very limited. But, It
    looks like 6.1 can handle the case you are trying out.
    regards,
    -manoj
    "Sapan Agarwal" <[email protected]> wrote in message
    news:[email protected]...
    Hi All,
    I am trying to map a specific XML object to a specific java object usingweb
    services and received the following exception:
    java.lang.ClassCastException: weblogic.soap.xml.XMLObject
    at $Proxy0.getMonster(Unknown Source)
    at
    serviceClient.TestServiceClient.main(TestServiceClient.java:46)
    >>
    Exception in thread "main"
    I tried to map a simple type:
    <types>
    <schema targetNamespace='java:biomaterials'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    <element name="Monster">
    <complexType>
    <all>
    <element name="name"
    type="string"/>
    <element name="age"
    type="int"/>
    </all>
    </complexType>
    </element>
    </schema>
    </types>
    To the following java bean:
    package biomaterials;
    public class
    ster{
    private String name;
    private Integer age;
    public Monster(String name, int age) {
    this.name=name;
    this.age=new Integer(age);
    public String getName() {
    return name;
    public void setName(String s) {
    this.name=s;
    public Integer getAge() {
    return age;
    public void setAge(int n) {
    this.age=new Integer(n);
    Here is my client code:
    package serviceClient;
    import java.util.Properties;
    import weblogic.soap.codec.CodecFactory;
    import weblogic.soap.codec.SoapEncodingCodec;
    import weblog
    ic.soap.codec.LiteralCodec;
    import weblogic.soap.WebServiceProxy;
    import weblogic.soap.SoapMethod;
    import weblogic.soap.SoapType;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.ejb.*;
    import biomaterials.ServiceSession;
    import java.io.File;
    import java.io.IOException;
    import org.w3c.dom.Element;
    import biomaterials.Monster;
    public class TestServiceClient
    public static void main( String[] arg ) throws Exception
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.soap.http.SoapInitialContextFactory");
    h.put("weblogic.soap.wsdl.interface",
    ServiceSession.class.getName() );
    Context context = new InitialContext(h);
    ServiceSession serv =
    (ServiceSession)context.lookup("http://localhost:7001/biocat/biomaterials.Se
    rviceSession/biomaterials.ServiceSession.wsdl");
    file://try
    file://int result = serv.getTheNum();
    file://String result=serv.getBIXBiologicals();
    file://int result=serv.setBIXInfo("TARNUMBER");
    Monster result=serv.getMonster();
    System.out.print("The value is "+result);
    } /* end of main */
    } /* end of class */
    Here is the method in my stateless session bean:
    public Monster getMonster()
    return new Monster("Sully",3);
    And here is my whole wsdl file:
    <% response.setHeader( "Content-Type", "text/xml; charset=utf-8" ); %>
    <definitions
    targetNamespace="java:biomaterials"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="java:biomaterials"
    >
    <types>
    <schema targetNamespace='java:biomaterials'
    xmlns='http://www.w3.org/1999/XMLSchema'>
    <element name="Monster">
    <complexType>
    <all>
    <element name="name" type="string"/>
    <element name="age" type="int"/>
    </all>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="getBIXBiologicalsRequest"></message>
    <message name="getBIXBiologicalsResponse">
    <part name="return" type="xsd:string" />
    </message>
    <message name="setBIXInfoRequest">
    <part name="arg0" type="xsd:string" />
    <part name="arg1" type="xsd:string" />
    <part name="arg2" type="xsd:integer" />
    </message>
    <message name="setBIXInfoResponse"></message>
    <message name="getMonsterRequest"></message>
    <message name="getMonsterResponse">
    <part name="body" element="tns:Monster"/>
    </message>
    <portType name="ServiceSessionPortType">
    <operation name="getBIXBiologicals">
    <input message="tns:getBIXBiologicalsRequest"/>
    <outputmessage="tns:getBIXBiologicalsResponse"/>
    >>
    >>
    >>
    >>
    >>
    >>
    >>
    I am using weblogic 6.1 SP1 on WIN NT.
    Please help me out in this issue.
    Thanks in advance.
    Sapan

  • Pulling particular attributes from the XML Object

    Hi !
    My requirement is onChange of a value from the first drop down, particular values needs to load in the second drop down. Values that needs to pull are designed in XML Object as Map entries Key,Pair Values.
    We can pull the first drop down values from the XML Object using Rule library and find the following code snippet ;
    <block>
    <set name='appData'>
    <invoke name='getExtension'>
    <invoke name='getObject'>
    <ref>ctx</ref>
    <invoke name='findType' class='com.waveset.object.Type'>
    <s>Configuration</s>
    </invoke>
    <s>Config_SDD_ReferenceData</s>
    </invoke>
    </invoke>
    </set>
    <ref>appData</ref>
    </block>
    Here, Config_SDD_ReferenceData.xml is the file where the map entries are written and the ref name is appData. Later in BPE the code "appData.units" are referred in ValueMap property.
    But we are stuggling to populate the second drop down values based on the valu selected in the first drop down.
    Please find the XML Object also;
    <Attribute name='units'>
    <Map>
    <MapEntry key='1' value='units1'/>
    <MapEntry key='2' value='units2'/>
    <MapEntry key='3' value='units3'/>
    </Map>
    </Attribute>
    Thanks in advance.

    u could use removeChild() method of the node interface....get the parent node named 'xxxxxx' from the DOM and perform a removeChild operation on it specifying the senderID, receiverID and dateTimeStamp Nodes as arguments to the method....
    Hope this helps
    VP

  • Writing XML Object to a File

    Hi, I am using InDesign JavaScript to make an XML object in memory. When my script is done, I want to write the XML to a file. When I run the code below, the file is created, but the XML is not written to the file. Any help would be appreciated. Thanks. Rick
    #target indesign
    var partsMap = <partsMap />;
    savePartsMap (partsMap);
    function savePartsMap (partsMap) {
        var partsFile;
        // Make a File object for the parts map XML file.
        partsFile = new File("E:\\Test.xml");
        // Open the map file.
        partsFile.open("w");
        partsFile.write(partsMap);
        partsFile.close();

    Add partsFile.encoding = 'UTF-8'; right after your File instantiation.
    I'm not sure but you also might want to write partsMap.toXMLString() instead of the partsMap.toString() you're implicitly writing.
    Jeff

  • Matching JS XML object with Indd XML elements

    Hello Scripters,
    I need help ...
    I have some XML from a file read into a Javascript XML object.
    The object has the name "myXml", and contains:
        <book id="bk101">
            <author>Gambardella, Matthew</author>
            <title>XML Developer's Guide</title>
            <genre>Computer</genre>
            <imagecontainer href="C:\33415677.JPG"></imagecontainer>
            <price>44.95</price>
            <publish_date>2000-10-01</publish_date>
            <description><test>Sublevel</test>An in-depth look at creating applications with XML.</description>
        </book>
        ... and several other books
    I also have some XML in Indesign, wich in my JS is known as "myTplXmlRoot".
    myTplXmlRoot is defined as myTplXmlRoot = mySelection.associatedXMLElement;
    What would be the best approach for matching elements of the same name in the two xml structures, and where there is a match* replace the Indesign content**, with that from the object "myXml"?
    *) Match if same name, dont worry about place in hirachy
    **) content might be an image

    I've figured out the solution to my problem. For anyone
    interested, see me code below (the xml element names are different,
    but the concept is the same).

  • XML Object dissapearing?!?!

    Hello, All.
    I guess I'm just missing something silly, but I have a weird
    situation where after I've loaded my XML data and looked at the
    attributes (w/ trace in the loading function), immediately after
    "successfully" loading the data, it becomes undefined. Anything
    obvious that I should check for? This is probably the 10th project
    of this type that I've done, but it's been a version or so since
    I've messed with Flash & XML. TIA for any help...
    Ciao,
    -Jei.

    Thanks for the reply. Yeah, I have all the loading code
    (nearly identical to another project from a couple years ago).
    Here's my code:
    function loaded(success){
    if (success == true) {
    _root.rootNode = testXML.firstChild;
    _root.testNode = _root.rootNode;
    _root.questionNode = _root.testNode.firstChild;
    _root.questionCount = _root.testNode.childNodes.length;
    _root.testTitle = _root.testNode.attributes.title;
    trace(_root.testTitle);
    trace("XML loaded");
    trace("Question total: " + _root.questionCount);
    trace(_root.questionNode.attributes.qText);
    }else{
    trace("An error occured while loading XML data.");
    var currentQuestion = 0;
    var currentTest = 0;
    testXML = new XML();
    testXML.load("wd_test1.xml");
    testXML.onLoad = loaded;
    testXML.ignoreWhite = true;
    This all appears in the first frame of the first layer of my
    movie. In the next frame, I try to set the value of a dynamic text
    box as such:
    questionText.htmlText =
    _root.questionNode[0].attributes.qText;
    What I get in the textbox is "undefined." I've traced the
    values also (in the same frame as the text value assignment) and
    it's as if the XML object was never created/loaded.

  • Exception caught while loading clients.xml: [object Error] in IE

    I’m following lesson 9 from Adobe Dreamweaver CS3
    Classroom in a Book which starts with viewing in a browser the
    final web page provided on the CD that comes with the book.
    The problem is that when I browse that file, IE 7 gives this
    error:
    quote:
    Exception caught while loading clients.xml: [object Error]
    Other browsers and versions of IE display the
    page fine.
    From Dreamweaver I ran Browser Compatibility check and it
    reported this:
    quote:
    Found 1 errors in external css files
    Affects: Firefox 1.5; Internet Explorer 6.0, 7.0; Netscape
    8.0; Opera 8.0, 9.0
    Found 2 errors in external css files
    Affects: Internet Explorer for Macintosh 5.2
    Found 3 errors in external css files
    Affects: Safari 2.0
    All errors point to this code from the same
    line:
    href="css/main.css
    and the whole line is:
    <link href="css/main.css" rel="stylesheet" type="text/css"
    media="screen" />
    I also ran validation of the file and it reported this:
    quote:
    2 The tag: "html" doesn't have an attribute: "xmlns:spry" in
    currently active versions.[XHTML 1.0 transitional]
    114 The tag: "div" doesn't have an attribute: "spry:region"
    in currently active versions.[XHTML 1.0 transitional]
    117 The tag: "th" doesn't have an attribute: "spry:sort" in
    currently active versions.[XHTML 1.0 transitional]
    118 The tag: "th" doesn't have an attribute: "spry:sort" in
    currently active versions.[XHTML 1.0 transitional]
    120 The tag: "tr" doesn't have an attribute: "spry:setrow" in
    currently active versions.[XHTML 1.0 transitional]
    120 The tag: "tr" doesn't have an attribute: "spry:select" in
    currently active versions.[XHTML 1.0 transitional]
    120 The tag: "tr" doesn't have an attribute: "spry:repeat" in
    currently active versions.[XHTML 1.0 transitional]
    120 The tag: "tr" doesn't have an attribute: "spry:odd" in
    currently active versions.[XHTML 1.0 transitional]
    120 The tag: "tr" doesn't have an attribute: "spry:hover" in
    currently active versions.[XHTML 1.0 transitional]
    128 The tag: "div" doesn't have an attribute:
    "spry:detailregion" in currently active versions.[XHTML 1.0
    transitional]
    129 The tag: "div" doesn't have an attribute: "tabindex" in
    currently active versions.[XHTML 1.0 transitional]
    134 The tag: "div" doesn't have an attribute:
    "spry:detailregion" in currently active versions.[XHTML 1.0
    transitional]
    143 The tag: "div" doesn't have an attribute:
    "spry:detailregion" in currently active versions.[XHTML 1.0
    transitional]
    The problem is that I don’t know what to do next and if
    and how this file can be fixed.
    Will appreciate greatly your help
    Thank you

    Another bump
    hoping the experts here might help if they check the files, I
    uploaded the project on a public site. You can download it from
    here:
    http://savefile.com/files/1452147
    at he bottom of the page click Download and on the next page
    at the bottom click Download file now
    These are the troubleshooting steps and solutions I
    attempted.
    After I ran check Browser Compatibility it showed problems
    located in main.css file
    I opened main.css and ran Browser Compatibility there too.
    The problems were listed as the following:
    Error Unsupported property: content
    Internet Explorer 6.0, 7.0; Internet Explorer for Macintosh
    5.2
    line 75 .clearfix:after { content: "."; display: block;
    height: 0; clear: both; visibility: hidden; }
    Error Unsupported property: zoom
    Firefox 1.5; Internet Explorer for Macintosh 5.2; Netscape
    8.0; Opera 8.0, 9.0; Safari 2.0
    line 82 .clearfix { zoom: 1; }
    Error Unsupported value: 'hand'
    Safari 2.0
    line 150 .hoverRow, .selectRow{ background-color: #FFFF00;
    cursor: pointer; cursor: hand; }
    also lines 157
    Warning Unsupported value: 'hand'
    Firefox 1.5; Internet Explorer 6.0, 7.0; Internet Explorer
    for Macintosh 5.2; Netscape 8.0
    line 150 .hoverRow, .selectRow{ background-color: #FFFF00;
    cursor: pointer; cursor: hand; }
    also lines 157
    I deleted unsupported properties and changed the unsupported
    value of hand to default and saved the main.css.
    Unfortunately IE still couldn't render the page showing the
    same error.
    I searched the CSS Advisor web site and even entire Google
    but except a few people reporting the same error no solution was
    posted.
    I also tied to contact the publisher of the book but I didn't
    get any replies with solutions yet.
    Since this is a learning project I'm trying to prepare myself
    for real live scenarios and wonder what experienced users would do
    when facing a similar problem if the project was for a client. What
    would you do. What is an acceptable practice? If you can't find a
    solution what would you say to your clients "well IE 7 can't render
    certain things from your page and there is nothing I can do about
    it"?
    I'll appreciate any input

  • BPE doesn't activate XML Objects and Workflows

    Hi all.
    I have created some BPE Processes. The all are active and with status 0 in transaction SXI_CACHE.
    The odd thing is, when I trigger messenges the BPE_ADAPTER error 'No object type found for this message; check the activation of the corresponding process' pops up with a statement in the trace: 'could not create BPE proxy for message, no XML object definition found for message...'.
    I have checked the objects, the Proxies are created, what is missing are the Workflows and the XML Objects.
    When I access the the XML Object the message is a green 'Definition <XML Object Name> not available', it is created though.
    I created a similar process a month ago. This is running perfectly. The system is a 640 on SP17. How can it be that the object generation at activation is incomplete?
    Thanks in advance for your help.
    Jens

    Jens,
    I have experienced the same exception while using BPM. I tried to debug in all ways and could finally solve it.
    In case of BPM, receiver determination to be configured to set receiver as BPM. If you do mistake while configuring inbound interface (it should be abstract interface) under interface determination then you get this type of exception.
    I suggest you to to check the receiver determination and interface determination configuration again.
    Regards.

  • Which utility -  to input XML objects into the Apps through an API

    Hello.
    We are just starting on XML Publisher in 11i10.2. We will need to automate the migration of saving templates into the apps through scripting so that new development can be migrated up our test environments and into production without human intervention.
    Is anyone aware of where we can find information on utility to input XML objects into the Apps through an API?
    Thank you.

    Hi all,
    You can download this document from the following location as long as Tim doesnot publishes it as a Metalink note :-o).
    The URL is:
    http://yuvi.esmartdesign.com/index.htm
    Navigate to the downloads section and check the XML Publisher section under it for the document.
    This document shall be available for a limited amount of time :-o)
    Hope this helps all.
    Thx,
    Nitin

  • Portal unlock xml objects

    Hi all,
    I'm new to Portal development and I'm having some problems with locked xml objects after some users access them.
    The problem occurs in the news section of the portal.
    When I go to the KM content, the xmls objects are locked to the last user who modified the file and I can't unlock these objects.
    This problem started after the EHP1.
    Could anyone help me?
    Thank you,
    Fernando

    João Macedo wrote:
    Hi Fernando,
    >
    > This appens when a user is editing the XML or otherwhise when the pop-ups is locked for the portal.
    >
    > To unlock, you can goo to the details of xml file, actions -> unlock.
    >
    > BR,
    > João Macedo
    Hi João,
    I'm unable to unlock these files, the menu unlock option is not available. I have an administrator account but I'm not able no unlock xml files locked by another users. I can unlock only the xml locked by my account.
    Olá João,
    Não consigo desbloquear os arquivos XML, no menu do KM não aparece a opção de desbloquear. Minha conta é de administrador mas mesmo assim não aparece a opção de desbloquear, somente aparece essa opção para os arquivos bloqueados pelo meu usuário. Existe algum perfil de usuario acima do administrador?
    Abs

Maybe you are looking for

  • Max no of lines appear in the back ground job out put

    Dear All, Please help me to solve following query, I am execution ME2N report in background. There are more then 100000 line item in the out put. However only 5000 line appear in the output of background job. Is there any setting in sap, where i can

  • Header Footer in Oracle Reports

    Can we print header,footer and mainsection in the same page in oracle reports?

  • Disable automatic album / song ratings

    I dunno if anyone else is like me and has a humongous music library, and therefore relies on star ratings to manage and enjoy it, but anyway - the iTunes album rating feature comes so close to being awesome, but instead lies frustratingly unused. I w

  • Material doc reversal

    Hi SAP Gurus, the error says Deficit of SL stck. in qual. insp 336 EA: material no plant sloc. i think the answer is, the Inspection lot for this has long since had a Usage Decision made on it. Once a lot has had a QM Usage Decision, you cannot rever

  • Printing SOAP Contents

    I have two programs, the Server.java and Client.java. The Client creates a simple SOAP message and send to the server. The server listens to the port and print out whatever it received from the port:  // Server.java ----------------------------------