How to Output Nodes from XML web service to a FLV?

Hi
I've used AS3 to query a web service and obtain the resulting XML.  I need to parse the result down to just a few nodes for a given location.  I can tackle that separately.  I am wondering how I output the parsed XML to a flash video file (.flx)?  The video has place holders for the XML node values.  What do I need to do to place the XML results in the video?
Thanks,
Sid

Andrei1 wrote:
What is a content of XML nodes? I am not sure what you mean by "inserting nodes". Do you mean that you want to display some information over the video?
And yes, encoders do take XMLs to inject metadata into video. But this is metadata only.
OSML = Open Source Media Framework:
http://www.opensourcemediaframework.com/
By inserting nodes, I mean that the XML web service returns data for each city, which needs to be parsed to just high temp, low temp and current condition.  Those 3 values needed to be dispalyed over, or woven into, the video at each city location.  My thought was that AS3 could somehow recognize the 3 placeholders for each city and insert the high temp, low temp and condition icon into each placeholder.  However, when I import the FLV file into Flash, there are no elements into which I can infuse this data.

Similar Messages

  • How to retrieve data from a web service

    Hi
    i am at very beginner level about web services.
    I am searching for a simple example of retrieving data from a web services, but cant find.
    How can i get xml data from a web service. i dont need to develop the web service it is already ready, i just need how could i fetch data from it.
    Can somebody point out or give an example?
    Thanks in advance

    Hi,
    just create a skeleton for the Web Service. In JDeveloper, create a new project and then use the "NEW" context menu option.
    Navigate to "Business Tier" --> Web Services and select "Web Service Proxy"
    In teh following, provide the WSDL reference to create the Java proxy. This gives you accss to the WS without having to parse the XML yourself
    Frank

  • Designer beginner's question: How to populate form with XML web service output?

    sorry, here is yet another Adobe Designer beginners question: <br /><br />My form uses a webservice data connection which returns <br />an xml-string like this: <br /><br /><?xml version="1.0" encoding="utf-16"?> <br /><CurrentWeather> <br />  <Location>Sion, Switzerland (LSGS) 46-13N 007-20E 481M</Location> <br />  <Time>Apr 26, 2007 - 09:50 AM EDT / 2007.04.26 1350 UTC</Time> <br />  <Wind> from the WSW (240 degrees) at 15 MPH (13 KT):0</Wind> <br />  <Visibility> greater than 7 mile(s):0</Visibility> <br />  <SkyConditions> partly cloudy</SkyConditions> <br />  <Temperature> 80 F (27 C)</Temperature> <br />  <DewPoint> 46 F (8 C) </DewPoint> <br />  <RelativeHumidity> 30%</RelativeHumidity> <br />  <Pressure> 29.88 in. Hg (1012 hPa)</Pressure> <br />  <Status>Success</Status> <br /></CurrentWeather> <br /><br />What is the simplest and recommended way to extract the <br />element fields to my form? <br /><br />Thank you very much an kind regards, <br />Hans Grund

    The question is still unanswered!
    Let me give some details and break up the problem
    in more specific questions:
    - In Designer 8.1 I click new data binding --> wsdl -->
    http://www.webservicex.net/globalweather.asmx?wsdl
    A message box comes up and says "cannot load wsdl file"
    ==> 1. Question:
    Why maybe refuses Designer to load the http-wsdl,
    although this option is explicitly allowed?
    - When I save the wsdl to a file, Designer loads it
    without any problems. The web service uses two input parameters
    (CountryName and CityName) and returns an xml-string GetWeatherResult)
    like the one in my first posting. I drag these fields from the binding view to my form, and it runs ok!
    - THE PROBLEM IS, THAT I NEET TO EXTRACT THE ELEMENT FIELDS
    FROM THE RESULT XML-STRING!
    ==> 2. Question:
    How to extract xml element fields from wsdl output into a form?
    - I tried with eclipse and XmlSpy to build a modified wsdl file
    with structured output definition, so that the specific element fields
    show up in the data binding view and are usable to my form,
    and the modified wsdl maps consistently to the web service result string.
    So far without success: In the PDF -preview or Reader-
    when the wsdl-binding is executed and the web service output
    should show up in the result fields, just nothing happens.
    ==> 3. Question:
    Can this strategy to provide a "modified wsdl" possibly succeed,
    and how?
    ==> 4. Question:
    Is is possible -and how?- to check whether an xml string
    is valid as web service output against the wsdl-definition?
    ==> 5. Question:
    How to debug a web service connection with Designer?
    - Finally I tried to find a way to load the result xml-string
    into a local var in the script editor and parse it, much like:
    var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.load(DataSet.MyForm.GetWeatherResult.rawValue);
    ==> 6. Question:
    Is it possible -and how?- to use a framework like dotnet?
    How to utilize SAX or DOM in Designer?
    Many thanks and appreciations for your help!!

  • How to update data from a web service

    Hi all,
    I have a webservice that returns some data as e4x type. I
    pull the data i need and put it into an object. I manipulate that
    data, then I want to write it back with another webservice. I get
    serialization errors when I call the update method. I must be doing
    something wrong here. Can anyone help?
    Webservice Methods:
    <mx:operation name="FetchfrmContact" resultFormat="e4x"
    result = "fetchfrmContactResultHandler()">
    <mx:request/>
    </mx:operation>
    <mx:operation name="updatefrmContactCampaigns"
    resultFormat="e4x"
    result="updatefrmContactCampaignsResultHandler()">
    <mx:request/>
    </mx:operation>
    Below is what .lastResult looks like from the fetch method of
    the webservice. I update the different campaign fields by adding or
    removing them in an object called contactData.
    <FetchfrmContactResponse xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:soapenv="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns="urn:DefaultNamespace" xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <FetchfrmContactReturn>
    <campaignsOptedOut>
    "BP - 411"
    </campaignsOptedOut>
    <campaignsOptedOut>
    "200700 - Avnet Leads"
    </campaignsOptedOut>
    <campaignsOptedOut>
    "200700 - BP-AdHoc"
    </campaignsOptedOut>
    <campaignsReceived>
    "BP - 411"
    </campaignsReceived>
    <campaignsSubscribed>
    "200700 - Avnet Leads"
    </campaignsSubscribed>
    <campaignsSubscribed>
    "200700 - BP-AdHoc"
    </campaignsSubscribed>
    <campaignsSubscribed>
    "200700 - BP - BCS"
    </campaignsSubscribed>
    <campaignsSubscribed>
    "200700 - BP - Extracomm"
    </campaignsSubscribed>
    <campaignsSubscribed>
    "200700 - BP - IBM"
    </campaignsSubscribed>
    <campaignsSubscribed>
    "BP - 411"
    </campaignsSubscribed>
    <companyDocID>
    "CMDPDN-65HTAK"
    </companyDocID>
    <companyName>
    "Provena Hospitals"
    </companyName>
    <contactDocID>
    "CTGSCG-6AHLWW"
    </contactDocID>
    <contactEmail>
    "[email protected]"
    </contactEmail>
    <contactFirst>
    "Steve"
    </contactFirst>
    <contactLast>
    "Rieger"
    </contactLast>
    <docID xsi:nil="true"/>
    <fetchBy>
    "email"
    </fetchBy>
    <form xsi:nil="true"/>
    <locationDocID/>
    </FetchfrmContactReturn>
    </FetchfrmContactResponse>
    The fetch method returns an object of type FrmContactType and
    the update method takes an object of type FrmContactType as it's
    parameter
    package com.psc.components
    import mx.collections.ArrayCollection;
    import mx.collections.XMLListCollection;
    [Bindable]
    public class FrmContactType
    // field variables
    public var contactDocID : String;
    public var companyDocID : String;
    public var locationDocID : String;
    public var campaignsOptedOut : XMLListCollection; //
    SFProfileField_70
    public var campaignsReceived : XMLListCollection; //
    SFProfileField_68
    public var campaignsSubscribed : XMLListCollection; //
    SFProfileField_69
    public var contactEmail : String = "";
    public var fetchBy : String;
    public var docID : String;
    public var form : String;
    public var contactFirst : String = "";
    public var contactLast : String = "";
    public var companyName : String = "";
    Here is the result handler of the fetch method
    private function fetchfrmContactResultHandler() : void
    contactData.contactFirst =
    wsfrmContactLookup.FetchfrmContact.lastResult..contactFirst;
    contactData.contactLast =
    wsfrmContactLookup.FetchfrmContact.lastResult..contactLast;
    contactData.companyName =
    wsfrmContactLookup.FetchfrmContact.lastResult..companyName;
    contactData.contactDocID =
    wsfrmContactLookup.FetchfrmContact.lastResult..contactDocID;
    if( wsfrmContactLookup.FetchfrmContact.lastResult )
    contactData.campaignsReceived = new XMLListCollection(
    wsfrmContactLookup.FetchfrmContact.lastResult..campaignsReceived );
    contactData.campaignsSubscribed = new XMLListCollection(
    wsfrmContactLookup.FetchfrmContact.lastResult..campaignsSubscribed
    contactData.campaignsOptedOut = new XMLListCollection(
    wsfrmContactLookup.FetchfrmContact.lastResult..campaignsOptedOut );
    if( contactData.campaignsSubscribed.length > 0 )
    for( var index : int = 0; index <
    checkBoxSubscribed.length; index++ )
    checkBoxSubscribed[index].selected = true;
    if( contactData.campaignsOptedOut.length > 0 )
    for( index = 0; index < checkBoxOptedOut.length; index++
    checkBoxOptedOut[index].selected = true;
    In my code I update the contactData object, then call the
    update method passing contactData as it's parameter and it barks at
    me. Any ideas why I'd be getting the error message shown below?
    <soapenv:Fault xmlns:soapenv="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <faultcode>
    "soapenv:Server.generalException"
    </faultcode>
    <faultstring>
    "org.xml.sax.SAXException: SimpleDeserializer encountered a
    child element, which is NOT expected, in something it was trying to
    deserialize."
    </faultstring>
    <detail/>
    </soapenv:Fault>

    Hi,
    just create a skeleton for the Web Service. In JDeveloper, create a new project and then use the "NEW" context menu option.
    Navigate to "Business Tier" --> Web Services and select "Web Service Proxy"
    In teh following, provide the WSDL reference to create the Java proxy. This gives you accss to the WS without having to parse the XML yourself
    Frank

  • Handling result ciontaining xml nodes from  c# web service method call in flex

    I have read a article headed: Handling results as XML with
    the e4x result format
    Using this I have build a test application.But facing lot of
    problems.
    Here are the details of my code.I have used first example of
    using namespace.
    private namespace tempNamespace = "TEST1.WebServices";
    use namespace tempNamespace;
    I have specified result type as 'e4x' :
    <mx:WebService id="myTestService" showBusyCursor="true"
    wsdl="
    http://localhost/TEST/TestFlexWS.asmx?WSDL"
    useProxy="false">
    <mx:operation name="HelloWorldEx" resultFormat="e4x"
    result="Hello_Result_New(event);"
    fault="Hello_fault_New(event);">
    <mx:request>
    <strProductName>Test</strProductName>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    In result handler:
    o/p of myTestService.HelloWorldEx.lastResult is:
    <HelloWorldExResponse xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns="TEST1.WebServices" xmlns:soap="
    http://schemas.xmlsoap.org/soap/envelope/">
    <HelloWorldExResult>&lt;PRODUCTCOLLECTION&gt;
    &lt;PRODUCT&gt;
    &lt;PRODUCTNAME&gt;Test Product
    121&lt;/PRODUCTNAME&gt;
    &lt;/PRODUCT&gt;&lt;/PRODUCTCOLLECTION&gt;</HelloWorldExResult>
    <TestResult></TestResult>
    </HelloWorldExResponse>
    When I display alert for :
    Alert.show(
    myTestService.HelloWorldEx.lastResult.HelloWorldExResult);
    It's showing me result as:
    <PRODUCTCOLLECTION>
    <PRODUCT>
    <PRODUCTNAME>NEW DAM</PRODUCTNAME>
    </PRODUCT>
    </PRODUCTCOLLECTION>
    But when I display alert for inner node it doesn't show me
    anything:
    Alert.show(
    myTestService.HelloWorldEx.lastResult.HelloWorldExResult.PRODUCTCOLLECTION.PRODUCT.PRODUC TNAME);
    Can anybody help me out?
    It will be gr8 help for me.

    I have read a article headed: Handling results as XML with
    the e4x result format
    Using this I have build a test application.But facing lot of
    problems.
    Here are the details of my code.I have used first example of
    using namespace.
    private namespace tempNamespace = "TEST1.WebServices";
    use namespace tempNamespace;
    I have specified result type as 'e4x' :
    <mx:WebService id="myTestService" showBusyCursor="true"
    wsdl="
    http://localhost/TEST/TestFlexWS.asmx?WSDL"
    useProxy="false">
    <mx:operation name="HelloWorldEx" resultFormat="e4x"
    result="Hello_Result_New(event);"
    fault="Hello_fault_New(event);">
    <mx:request>
    <strProductName>Test</strProductName>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    In result handler:
    o/p of myTestService.HelloWorldEx.lastResult is:
    <HelloWorldExResponse xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns="TEST1.WebServices" xmlns:soap="
    http://schemas.xmlsoap.org/soap/envelope/">
    <HelloWorldExResult>&lt;PRODUCTCOLLECTION&gt;
    &lt;PRODUCT&gt;
    &lt;PRODUCTNAME&gt;Test Product
    121&lt;/PRODUCTNAME&gt;
    &lt;/PRODUCT&gt;&lt;/PRODUCTCOLLECTION&gt;</HelloWorldExResult>
    <TestResult></TestResult>
    </HelloWorldExResponse>
    When I display alert for :
    Alert.show(
    myTestService.HelloWorldEx.lastResult.HelloWorldExResult);
    It's showing me result as:
    <PRODUCTCOLLECTION>
    <PRODUCT>
    <PRODUCTNAME>NEW DAM</PRODUCTNAME>
    </PRODUCT>
    </PRODUCTCOLLECTION>
    But when I display alert for inner node it doesn't show me
    anything:
    Alert.show(
    myTestService.HelloWorldEx.lastResult.HelloWorldExResult.PRODUCTCOLLECTION.PRODUCT.PRODUC TNAME);
    Can anybody help me out?
    It will be gr8 help for me.

  • How to create XML data source/ and load data from a web service to BI

    All,
    I m trying to find a 'how to' document (or any document) that shows how to create an XML data source to load data directly from a web service or from an XML file.
    I appreciate any help.

    Hi Mike,
    Two more for you:----
    /thread/111488 [original link is broken]
    http://help.sap.com/saphelp_nw70/helpdata/en/e6/1dd53bb90cbb1ae10000000a11402f/content.htm
    Regards,
    Suman

  • Get xml data from a web service into Forms?

    Hello folks! I am reading active directory info from a web service into forms via imported java classes. I can read from functions that return strings just fine, but I have to get the output from getGroupUsers which returns an XmlDataDocument. How do I read this in and parse it in Forms?
    I will be grateful if y'all could point me to an example.
    Thank you,
    Gary
    P.S. Here is a snippet of how I get the full name by passing an ID:
    DECLARE
    jo ora_java.jobject;
    rv varchar2(100);
    BEGIN
    jo := ADSoapClient.new;
    rv := ADSoapClient.getUserName(jo, 'user_ID');
    :block3.fullname := rv;

    Hello,
    Since you are already dealing with server-side JAVA, I would suggest you create a method that would do the parsing server-side and what your PL/SQL will be dealing with is just the return string.
    Here is a method I use to read an XML file (actually, it is an Oracle Reports file converted to XML) and from the string version, I will do search, replace and other things.
    So, from getGroupUsers which returns an XmlDataDocument, you can adapt this method to get your data server-side and let the form module read the output data.
    <blockquote>
    private String processFileXml(String fileName, int iFile) throws ParserConfigurationException, SAXException,
    IOException, XPathExpressionException{
    try{                
    DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
    domFactory.setNamespaceAware(true);
    InputStream inputStream = new FileInputStream(new File(fileName));
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    Document doc = builder.parse(inputStream);
    StringWriter stw = new StringWriter();
    Transformer serializer = TransformerFactory.newInstance().newTransformer();
    serializer.transform(new DOMSource(doc), new StreamResult(stw));
    return stw.toString();
    catch (Exception e){
    System.err.println(e);
    System.exit(0);
    return "OK";
    </blockquote>
    Let me know if this is of nay help.
    Thanks.

  • Converting string data from a web service respons into XML structure of XI

    Hi,
    We receive a string structure from a web service.
    The string structure has an xml type format, that is all the tags and its content are in one line .
    The WSDL file of the webservice defines its response structure as a string type.
    How do i convert this string into proper XML structure (predefined by me in Integration repository).
    OR how do i make XI understand this string as an XML structure for further processing.
    Later i have to map this XML message type into IDoc.
    Himani

    Hi Himani,
    Please find the code for ur requirement -
    String need to parse -<response_webservice><from_date>20080101</from_date><to_date>20080202</to_date></response_webservice>
    Below mentioned code will convert it to -<MT_DATA><FROMDATE>20080202</FROMDATE><TODATE>20080101</TODATE></MT_DATA>
    Create a Message type and map it like this using java mapping ( no need to use Graphical mapping).
    Use MT_DATA as source and map it to your target structure .
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.StringReader;
    import java.util.HashMap;
    import java.util.Map;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.TransformerFactoryConfigurationError;
    import org.w3c.dom.DOMException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Text;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    public class XMLParser {
         private Map param = null;
         public static void main(String[] args) {
              try {
                   XMLParser wdb = new XMLParser();
                   wdb.parse();
              } catch (Exception e) {
                   e.printStackTrace();
         public void setParameter(Map param) {
              this.param = param;
              if (param == null) {
                   this.param = new HashMap();
         public void parse() {
              String document = "<response_webservice><from_date>20080101</from_date><to_date>20080202</to_date></response_webservice>";
              try {
                   Document sdoc;
                   DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                   // Using factory get an instance of document builder
                   DocumentBuilder db = dbf.newDocumentBuilder();
                   // parse using builder to get DOM representation of the XML file
                   sdoc = db.parse(new InputSource(new StringReader(document)));
                   Element docEle = sdoc.getDocumentElement();
                   NodeList nl = docEle.getElementsByTagName("from_date");
                   Element lstElmnt = (Element) nl.item(0);
                   NodeList nl1 = docEle.getElementsByTagName("to_date");
                   Element fstElmnt = (Element) nl1.item(0);
                   System.out.println(fstElmnt.getFirstChild().getNodeValue());
                   System.out.println(lstElmnt.getFirstChild().getNodeValue());
                   Document tdoc = db.newDocument();
                   Element structure = createElement("MT_DATA", null, tdoc);
                   tdoc.appendChild(structure);
                   Element statement = createElement("FROMDATE", fstElmnt.getFirstChild().getNodeValue(), tdoc);
                   structure.appendChild(statement);
                   Element statement2 = createElement("TODATE", lstElmnt.getFirstChild().getNodeValue(), tdoc);
                   structure.appendChild(statement2);
                   System.out.println("Struct is :::"+tdoc.getDocumentElement().toString());               
              } catch (DOMException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              }  catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (FactoryConfigurationError e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (ParserConfigurationException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SAXException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (TransformerFactoryConfigurationError e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         static Element createElement(String elementName, String content,
                   Document document) {
              Element returnElement;
              returnElement = document.createElement(elementName);
              if (content != null) {
                   Text T = document.createTextNode(content);
                   returnElement.appendChild(T);
              return returnElement;
         static Element createElement(String elementName, String content,
                   String attributeName, String attributeValue, Document document) {
              Element returnElement = createElement(elementName, content, document);
              returnElement.setAttribute(attributeName, attributeValue);
              return returnElement;
    Regards,
    Kishore

  • How to refer to J2EE library server component from a web service?

    Hi,
    I need help!  I created a web service and it worked fine.  However, I started having problems when I tried to use java classes from my deployable J2EE library server component.  I got the NoClassDefFound error.
    I tried to include the library DC in the Used DC list and put the reference of it in the web service deployment descriptor xml (application.xml and application-j2ee-engine.xml), but it did not work.
    How do I refer and use java classes from my deployable J2EE library at run time from my web service application?  What should I do?
    Thanks,
    Giavinh Pham

    I would like to clarify more about the web service project.  I created a Java DC project and converted it into a web service as the SAP manual instructions.  It worked fine by itself, but I now want to use some of my classes that I deployed as a J2EE library server component. 
    It was compiled and built when I refer to my J2EE library server component DC in the UsedDC.  It was deployed fine as well.  However, it broke when I tested the web service calls.  The class declarations and usage from the J2EE server component could not be found (NoClassDefFound error.) 
    I thought it was because I did not have an application-j2ee-engine.xml in my META-INF folder so I created one and referred to the library in xml as type library and reference 'strong'.  I built and deployed again.  It still did not work. 
    I examined the EAR and noticed that there were two parts of the EAR.  One is the WSAR archive file that contains the META-INF folder from my project and other web service assemblies.  The other part is the META-INF folder generated by the SAP NetWeaver IDE. 
    The strange thing was that SAP NetWeaver IDE generated an application-j2ee-engine.xml without any reference to my J2EE library server component.  However, the nested application-j2ee-engine.xml in the WSAR archive file did contain the info. 
    Since I cannot control the application-j2ee-engine.xml generated by SAP NetWeaver IDE, what should I do?  Is it the cause for my problem?
    Please advice, anyone?
    Giavinh

  • Get_xplan_msc, How Do I call this method??? , xml, web service, wsdl,dataProvider="{myServiceXML.lastResult.DataSet}"

    Result:
    <wsdl:definitions targetNamespace="
    http://tempuri.org/" xmlns:soap="
    http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tm="
    http://microsoft.com/wsdl/mime/textMatching/"
    xmlns:soapenc="
    http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:mime="
    http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:tns="
    http://tempuri.org/" xmlns:s="
    http://www.w3.org/2001/XMLSchema"
    xmlns:soap12="
    http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="
    http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:wsdl="
    http://schemas.xmlsoap.org/wsdl/">
    <wsdl:types>
    <s:schema elementFormDefault="qualified"
    targetNamespace="
    http://tempuri.org/">
    <s:element name="Get_xplan_tpu">
    <s:complexType/>
    </s:element>
    <s:element name="Get_xplan_tpuResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1"
    name="Get_xplan_tpuResult">
    <s:complexType>
    <s:sequence>
    <s:element ref="s:schema"/>
    <s:any/>
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="Get_xplan_msc">
    <s:complexType/>
    etc....
    <?xml version="1.0" encoding="utf-8" ?>
    - <DataSet xmlns="
    http://tempuri.org/">
    + <xs:schema id="NewDataSet" xmlns="" xmlns:xs="
    http://www.w3.org/2001/XMLSchema"
    xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    - <xs:element name="NewDataSet" msdata:IsDataSet="true"
    msdata:UseCurrentLocale="true">
    - <xs:complexType>
    - <xs:choice minOccurs="0" maxOccurs="unbounded">
    - <xs:element name="xplan_MSC_Planning">
    - <xs:complexType>
    - <xs:sequence>
    <xs:element name="MSC" type="xs:string" minOccurs="0"
    />
    <xs:element name="Date" type="xs:dateTime" minOccurs="0"
    />
    <xs:element name="Traffic" type="xs:decimal"
    minOccurs="0" />
    <xs:element name="Radios" type="xs:int" minOccurs="0"
    />
    <xs:element name="InstalledCapacity" type="xs:int"
    minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    - <diffgr:diffgram
    xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
    xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    - <NewDataSet xmlns="">
    - <xplan_MSC_Planning diffgr:id="xplan_MSC_Planning1"
    msdata:rowOrder="0">
    <MSC>NYGMSC01</MSC>
    <Date>2007-06-24T00:00:00-07:00</Date>
    <Traffic>12730.8400</Traffic>
    <Radios>676</Radios>
    <InstalledCapacity>12342</InstalledCapacity>
    </xplan_MSC_Planning>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    backgroundColor="#f6f6f6"
    backgroundGradientColors="[#f6f6f6, #bbbbbb]"
    creationComplete="myServiceXML.send()">
    <!-- Script -->
    <!-- Our result handler functions get any value returned
    from the server -->
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    // you import the event classes for strong typing
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    public function handleResultXML(event:ResultEvent):void {
    // the result object is your xml root
    lastResultValue.text = "Result:\n" + event.result;
    // you get the row nodes of your result object
    http://localhost:1343/***/DataService.asmx?op=Get_xplan_msc
    // the data of the dataprovider populates the component
    http://www.flexcapacitor.com/examples/php/datagrid_xml.php
    myDataGrid.dataProvider = event.result.row;
    // this function is called when you get an error from the
    server
    http://localhost:1343/***/DataService.asmx?wsdl
    public function handleFault(event:FaultEvent):void {
    lastResultValue.text = "Fault: " + event.fault.faultDetail;
    //trace(myServiceXML.toXMLString());
    // var myService:XML = XML(event.result);
    //trace(myService.toXMLString());
    ]]>
    </mx:Script>
    <!-- Data Communications -->
    <!-- The url is the page you post to -->
    <!-- In the request object you add your name and value
    pairs -->
    <!-- The curly brackets surrounding "username.text" get
    the value of username.text -->
    <!-- Note: The curly brackets are also used for
    databinding where supported -->
    <!-- Note: We set the resultFormat to E4X to
    automatically convert your return string to an XML object with E4X
    support -->
    <mx:HTTPService id="myServiceXML" url="
    http://localhost:1343/***/DataService.asmx?wsdl"
    method="POST" result="handleResultXML(event)"
    fault="handleFault(event)"
    useProxy="false" resultFormat="e4x">
    </mx:HTTPService>
    <!-- Layout -->
    <mx:Label x="10" y="10" text="Populate DataGrid with XML"
    fontSize="20" fontWeight="bold"/>
    <mx:HRule x="10" y="49" width="80%"/>
    <mx:Button id="submit0" x="10" y="73" label="Get XML"
    click="myServiceXML.send()"/>
    <mx:Label x="10" y="228" text="Result"/>
    <mx:DataGrid id="myDataGrid" x="10" y="114" width="611"
    height="106" dataProvider="{myServiceXML.lastResult.DataSet}">
    <mx:columns>
    <mx:DataGridColumn headerText="xplan_MSC_Planning"
    dataField="Traffic"/>
    <mx:DataGridColumn headerText="MSC" dataField="MSC"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:TextArea x="10" y="244" width="611" height="400"
    id="lastResultValue"/>
    </mx:Application>

    I haven't been able to see the results from my web service.
    I'm seeing this error.
    It might be an internal security issue...I'm not sure
    why...any help is greatly
    appreciated.
    David
    - <s:element name="Get_xplan_msc">
    <s:complexType />
    </s:element>
    - <s:element name="Get_xplan_mscResponse">
    - <s:complexType>
    - <s:sequence>
    - <s:element minOccurs="0" maxOccurs="1"
    name="Get_xplan_mscResult">
    - <s:complexType>
    - <s:sequence>
    <s:element ref="s:schema" />
    <s:any />
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:sequence>
    </s:complexType>
    </s:element>
    [WSDLError faultString="Element
    http://tempuri.org/:Get_xplan_mscResponse
    not resolvable" faultCode="WSDL.BadElement" faultDetail="null"]
    at mx.rpc.soap::WSDLParser/
    http://www.adobe.com/2006/flex/mx/internal::parseMessage()
    at mx.rpc.soap::WSDLOperation/parseMessages()
    at mx.rpc.soap::Operation/
    http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
    at mx.rpc.soap::Operation/
    http://www.adobe.com/2006/flex/mx/internal::invokeAllPending()
    at mx.rpc.soap::WebService/::unEnqueueCalls()
    at mx.rpc.soap::WebService/
    http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.rpc.soap::WSDLParser/dispatchEvent()
    at mx.rpc.soap::WSDLParser/::parseCompleted()
    at mx.rpc.soap::WSDLParser/
    http://www.adobe.com/2006/flex/mx/internal::httpResultHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::resultHandler()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    at ::DirectHTTPMessageResponder/completeHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    backgroundColor="#f6f6f6"
    backgroundGradientColors="[#f6f6f6, #bbbbbb]"
    creationComplete="getXplan_MSC()">
    <!-- Script -->
    <!-- Our result handler functions get any value returned
    from the server -->
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    // you import the event classes for strong typing
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.managers.CursorManager;
    import mx.controls.Alert;
    default xml namespace = "
    http://localhost:1343";
    //necessary to access the xml elements easily
    [Bindable]private var _xmlResult:XML; //holds the result xml
    [Bindable]private var _xlDayData:XMLList; //dataProvider for
    the day weather dataGrid
    [Bindable]private var _sPlace:String;
    /** invokes the web service operation to get the weather */
    private function getXplan_MSC():void
    CursorManager.setBusyCursor();
    WS.Get_xplan_msc.send();
    //lastResultValue.text = "Result:\n" +
    event.result.Get_xplan_msc;
    /** called by the WebService result event. Sets the
    dataProviders as necessary */
    private function onResult(oEvent:ResultEvent):void
    _xmlResult = XML(oEvent.result);
    //var xmlResultNode:XML = _xmlResult.Get_xplan_mscResult[0];
    // var xmlDetailsNode:XML = xmlResultNode.Details[0];
    //outputInfo.text = xmlDetailsNode.toXMLString();
    //outputInfo.text = _xlDayData.text();
    // outputInfo.text = _xmlResult.toXMLString();
    // outputInfo.text = xmlResultNode.MSC.text();// + ", " +
    xmlResultNode.StateCode.text();
    // _xlDayData =
    xmlDetailsNode.toXMLString();//Get_xplan_mscResult[0];
    outputInfo.text = _xmlResult.text();
    CursorManager.removeBusyCursor();
    }//onResult
    /** labelFunction for DataGrid. It seems that the namespace
    on the xml makes
    * using the DataGridColumn dataField not work. At least I
    couldn't get it to work. */
    public function handleResultXML(event:ResultEvent):void {
    // the result object is your xml root
    lastResultValue.text = "Result:\n" +
    event.result.Get_xplan_msc;
    // you get the row nodes of your result object
    http://localhost:1343/***/DataService.asmx?op=Get_xplan_msc
    // the data of the dataprovider populates the component
    http://www.flexcapacitor.com/examples/php/datagrid_xml.php
    //myDataGrid.dataProvider = event.result.row[0];
    // this function is called when you get an error from the
    server
    http://localhost:1343/***/DataService.asmx?wsdl
    public function handleFault(event:FaultEvent):void {
    lastResultValue.text = "Fault: " + event.fault.faultDetail;
    lastResultValue.text = "Fault: " + event.fault.faultDetail;
    //trace(myServiceXML.toXMLString());
    // var myService:XML = XML(event.result);
    //trace(myService.toXMLString());
    ]]>
    </mx:Script>
    <!-- Data Communications -->
    <!-- The url is the page you post to -->
    <!-- In the request object you add your name and value
    pairs -->
    <!-- The curly brackets surrounding "username.text" get
    the value of username.text -->
    <!-- Note: The curly brackets are also used for
    databinding where supported -->
    <mx:WebService id="WS" wsdl="
    http://localhost:1343/***/DataService.asmx?wsdl">
    <mx:operation name="Get_xplan_msc" resultFormat="e4x"
    />
    </mx:WebService>
    <!-- Layout -->
    <mx:Label x="10" y="10" text="Populate Chart with XML"
    fontSize="20" fontWeight="bold"/>
    <mx:HRule x="10" y="49" width="80%"/>
    <mx:Button id="submit0" x="139" y="199" label="Get XML"
    click="getXplan_MSC()"/>
    <mx:Label x="10" y="228" text="Result"/>
    <mx:TextArea x="10" y="244" width="333" height="400"
    id="lastResultValue"/>
    <mx:TextArea x="377" width="354" height="400"
    id="outputInfo" y="244"/>
    <!--
    <mx:ColumnChart x="243" y="80" id="columnchart1"
    width="293" height="115" dataProvider="">
    <mx:series>
    <mx:ColumnSeries displayName="Date" yField="Date"/>
    <mx:ColumnSeries displayName="MSC" yField="MSC"/>
    <mx:ColumnSeries displayName="Traffic"
    yField="Traffic"/>
    <mx:ColumnSeries displayName="Radios"
    yField="Radios"/>
    </mx:series>
    </mx:ColumnChart>
    <mx:Legend dataProvider="{columnchart1}" x="108"
    y="100"/>
    -->
    </mx:Application>

  • How to bind list data to XML Web service request

    How do I bind specific columns in a DataGrid to the Web
    service request? I'm having trouble finding any documentation that
    addresses that specific pattern, i.e. sending a complex list to the
    server via a Flex Web service send() command. I'm fairly new to
    Flex programming and don't know if what I want to do is possible.
    Here what I've been able to do so far.
    1. Using a Web service called a service on the server and
    retrieved a complex list.
    2. Poplulated a DataGrid with the result
    3. The user has selected multiple rows from the DataGrid
    using a checkbox column
    4. The user pressed a button that calls a Web service send().
    This Web service should only send data from only two columns and
    only for those rows the user has checked.
    5. I can loop over the DataGrid and find the selected rows
    and put them in another ArrayCollection called 'selectedRows'.
    The issue is that I don't know how to bind 'selectedRows' to
    the Web service. Right now I'm reading up on "Working with XML" in
    the Programming with ActionScript 3.0 chapter. But I'm just fishing
    here. No bites yet.

    Don't bind. Build the request object programatically, as you
    are doing with your selectedRows AC, and send(myObject) that.
    Tracy

  • Bad XML from external web service and would like to change the content

    I am getting a bad XML(not valid) from external web service and I would like to change the content of the body in OSB proxy service to make it valid.
    For example
    <g:Information xsi:schemaLocation="http:// bad schema" xmlns:g="http://abc.com/t.xsd">
    <test>Test Data</test>
    </g:Information>
    should become
    <g:Information xmlns:g="http://abc.com/t.xsd">
    <test>Test Data</test>
    </g:Information>
    Do you how can I do this?

    I don't think it would be the best solution but you may try -
    1. Conver the incoming XML to string using fn-bea:serialize() function
    2. Replace the not-required content with a blank
    3. Covert the string back to XML using fn-bea:inlinedXML
    If you find any other solution, please let us know.
    Regards,
    Anuj

  • How can I call a SAPME web service from MII such as PlaceFutureHold?

    Dears,
    How can I call a SAPME web service from MII such as PlaceFutureHold?
    By using MII, I would like to develop some logic to check some values which query from SAPME database, if the value is out of spec, it needs to send a emal to inform user ans also hold the SFC.
    Thanks!

    With Web service action block you can view all ME available services
    in I.E
    https://sapme:5000/manufacturing-services/ProductionServiceService?wsdl  you could see your FutureHold service
    To do that in MII, you need Web Service action block. Have you work with MII transaction before?
    (saw your post in MII)

  • How to delete a perticular node from xml file using java code

    Hii All,
    Now i am trying to delete a perticular node from xml file.Like...
    XML file:
    <Licence>
    <SERVER>
    <was id="1">1</was>
    <was id="2">2</was>
    </SERVER>
    </LICENCE>
    I am working in messaging service using JABBER framework with whiteboard facility.
    Here Some commands i have created to add,modify,delete nodes from xml file.They Are
    1.If u want to add a new node then.
    create Licence.SERVER <ss id="3">ddd</ss> lic.xml
    (here u want to add a new node called "ss" under Licence.SERVER.
    And lic.xml is tyhe xml file name where it was saved.
    2.If u want to delete a node(Suppose <was id="1">),then the command should be
    delete Licence.SERVER.was:id='"1" lic.xml
    A problem arises that here it find two was attributes.And it delete the last was attribute,not the requested node.
    PLEASE HELP ME IN SOLVING THIS CODE..
    ------------------------------------

    Looks like you clicked on "Post" before you pasted in the code you were talking about.

  • Help me!    How to use it as a web service from third party application?

    After using JDeveloper to develop BSSV object e.g. JP550010, how to use it as a web service from third party application?
    TKS!

    Obviously the OP is working on a project for the Bead Society of Southeastern Virginia http://www.bssv.org. Oh, wait, maybe he's researching the Blueberry Shoestring Plant Virus http://abbreviations.yourdictionary.com/bssv
    :D
    John

Maybe you are looking for

  • Can't See All Windows in Mission Control

    My favorite feature on the mac has always been the ability to see all open windows with a simple click (F3 on my keyboard). I often have multiple word documents and multiple pdf files open, as well as two or three different browser windows, several i

  • Images are always placed -2pt below base line - how to change?

    Hi all, for small icons that should appear in the text, we use image elements within the paragraph. When I select the placement option at insertion point, then the image is always placed -2pt "above" the base line (thus, actually below the line). If

  • How to create a folders and sub folders in solution manager ?

    Hi gurus, i want  2 know how to create folders and subfolders inside solution manager under configuration structure or business blue print  structure. tell me in detailed Thank you Regards sasikanth

  • Software Update May 2015

    My mom installed the latest update. Since then her account had to be setup again and now when she tries to skype she gets a message asking for skype credits. She had a free account previous to this update and cannot figure out how to solve the proble

  • Pb whith loader

    I want to load a txt file into oracle (it's a big file (850 M)) for all others files (all txt) it works but for this one I have an error message saying approximately : impossible to find ORAPERF8.dll this library doesn't exist!!! if someone can help