Welcome, Guest
  • Author Topic: WebServicesConn Help Needed  (Read 1820 times)

    mcp

    • Server what's that
    • *
    • Posts: 35
      • View Profile
    WebServicesConn Help Needed
    « on: 05/22/06, 08:51 »
    I'm connecting to a webService that is only returning XML I pasted below.  Normally I use an XMLConnector to parse it and display it 100 different ways.  But my developers wanted to use webservices to get the info out of the dB to return this.  When I trace the results I get the XML but I can't seem to do anything with it.  I've tried to bind it to an XML Connector and work with those results... but nothing, and bind it straight to a list from the WSC to test if I can add the <projectName> and nothing.  So it seems to see it, but I just can't seem to work with it.  This is my fist time working with webservices so I'm way out of my league here.  Should I be able to receive that XML and work with it just as if I grabbed an XML doc with the XMLConnector?  I've seen a lot of tutorials on WS but all seem to deal with getting back specific data that will go right into another component.  I just want the XML so I can work with it just like working with the XMLConnector.  Any and all help would be great.  Thanks.

    Also -  Is there a way to call that webservice with URL?  There is one operation connected to the WS but I'm not sure why since I'm not passing any information to get the results.


    Code: [Select]
    <projects>
    <project>
    <projectName>EY/AART - November Update</projectName>
    <forSnap>yes</forSnap>
    <changeComments>Comment about a change goes here</changeComments>
    <phase>Deployment</phase>
    <description>Monthly Update channel of critical practice-related software.</description>
    <contact>Krista Jacobitz</contact>
    <startDate>05/06/2007</startDate>
    <endDate>05/08/2007</endDate>
    <dateType>Exact</dateType>
    <sponsoringOrg>AABS</sponsoringOrg>
    <businessCase>Ensure that users have the most recent versions of critical practice-related software.</businessCase>
    <area>Country 1,Country 2,Country 3</area>
    <businessLine>TAX</businessLine>
    <audienceDescription>Some text here...</audienceDescription>
    <experience>EY/Select channel prompts. **November channel</experience>
    <projectSponsor>Rick E. Baker</projectSponsor>
    <projectManager>Krista Jacobitz</projectManager>
    <projectOwner>Arthur Spector</projectOwner>
    <productSponsor>AABS</productSponsor>
    <productOwner>Stephen Brent</productOwner>
    <deployManager>Krista Jacobitz</deployManager>
    <crm>Jeff Hall</crm>
    <businessAdvocate>n/a</businessAdvocate>
    <commManager>n/a</commManager>
    <deploymentMethod reboot="yes">EY Select Channel</deploymentMethod>
    <area>Americas / US</area>
    <dependencies>
    <dependency>
    <name>GAAIT-PE</name>
    <comment>GAAIT-PE will be replacing E\Y/AART</comment>
    </dependency>
    </dependencies>
    <pilots>
    <pilot>
    <kind>Hardhat</kind>
    <startDate>11/02/2005</startDate>
    <endDate>11/12/2005</endDate>
    <comments>Goes out for testing - HH</comments>
    </pilot>
    </pilots>
    <links>
    <link>
    <title>Title</title>
    <url>http://www.url.com</url>
    </link>
    </links>
    </project>
    <project>
    <projectName>EY/AART - November Update</projectName>
    <forSnap>yes</forSnap>
    <changeComments>Comment about a change goes here</changeComments>
    <phase>Deployment</phase>
    <description>Monthly Update channel of critical practice-related software.</description>
    <contact>Krista Jacobitz</contact>
    <startDate>05/06/2007</startDate>
    <endDate>05/08/2007</endDate>
    <dateType>Exact</dateType>
    <sponsoringOrg>AABS</sponsoringOrg>
    <businessCase>Ensure that users have the most recent versions of critical practice-related software.</businessCase>
    <area>Country 1,Country 2,Country 3</area>
    <businessLine>TAX</businessLine>
    <audienceDescription>Some text here...</audienceDescription>
    <experience>EY/Select channel prompts. **November channel</experience>
    <projectSponsor>Rick E. Baker</projectSponsor>
    <projectManager>Krista Jacobitz</projectManager>
    <projectOwner>Arthur Spector</projectOwner>
    <productSponsor>AABS</productSponsor>
    <productOwner>Stephen Brent</productOwner>
    <deployManager>Krista Jacobitz</deployManager>
    <crm>Jeff Hall</crm>
    <businessAdvocate>n/a</businessAdvocate>
    <commManager>n/a</commManager>
    <deploymentMethod reboot="yes">EY Select Channel</deploymentMethod>
    <area>Americas / US</area>
    <dependencies>
    <dependency>
    <name>GAAIT-PE</name>
    <comment>GAAIT-PE will be replacing E\Y/AART</comment>
    </dependency>
    </dependencies>
    <pilots>
    <pilot>
    <kind>Hardhat</kind>
    <startDate>11/02/2005</startDate>
    <endDate>11/12/2005</endDate>
    <comments>Goes out for testing - HH</comments>
    </pilot>
    </pilots>
    <links>
    <link>
    <title>Title</title>
    <url>http://www.url.com</url>
    </link>
    </links>
    </project>
    </projects>


    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: WebServicesConn Help Needed
    « Reply #1 on: 05/22/06, 09:41 »
    One of the cases in  the data tutorials deals with binding the webservice connector and use the Webservice Panel, check http://download.macromedia.com/pub/documentation/en/flash/mx2004/data_tutorials.pdf

    Jorge

    mcp

    • Server what's that
    • *
    • Posts: 35
      • View Profile
    Re: WebServicesConn Help Needed
    « Reply #2 on: 05/22/06, 10:05 »
    Thanks for the link but that's one of those tutorials that deals with putting set values into specific components.  I can get the results from the WSC into a textArea but I can't get just the <projectName>'s into a combo or list component.  And that's only part of what I need to do with the resluting XML.  What I also need is to be able to get that XML and work with it just as I could if I were grabbing XML with the XMLConnector.  "evt.target.results.firstChild.firstChild.firstChild" returns undefined, when it should return "<projectName>EY/AART - November Update</projectName>".  Isn't there a way to get the resulting XML from the WSC and maniuplate it?

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: WebServicesConn Help Needed
    « Reply #3 on: 05/22/06, 10:56 »
    About result just check: WebServiceConnector.result
    I usually use the Webservice class directly instead, with the help of the Loading class: http://www.flash-db.com/Tutorials/lclasses/
    To parse the XML file (and avoid the boring firstChild.childNodes ....) I use Alessandro XMLToObject class, check http://www.sephiroth.it/file_detail.php?id=129

    Jorge