John,
This sounds like the functionality of consuming a remote CFC, which auto-generates a WSDL translation of the component.  It is a matter of calling the CFC method with an access="remote".  You can use cfsavecontent to create an xml with coldfusion and return a customized XML file as the web service return value.  This shoudl enable SPRY to read a formatted XML document returned from your CFC.

Teddy

On 8/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
essentially:

setup:
cfmx7
everything is local.

Calling page is Here:
<code_snippet source="john">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>test</title>
<script language="_javascript_" type="text/_javascript_"
src=""><script language="_javascript_" type="text/_javascript_"
src=""
<script language="_javascript_" type="text/_javascript_">
        //var cartData = new Spry.Data.XMLDataSet("com/cart.cfc?method=getcarts",
"/query/row");
//have have the cfc write out an xml file cause it wont read the above line
var cartData = new Spry.Data.XMLDataSet("myxml.xml", "/query/row");
</script>
<link rel="stylesheet" type="text/css" href="" />
</head>
<body>
<div id="container">
  <div id="top">Chart Cart v0.1Alpha</div>
     <div spry:region="cartData" id="content">
      <table border="1">
        <tr>
          <th Number</th>
          <th User</th>
          <th >Department</th>
          <th >by</th>
          <th Status</th>
          <th Repair
Ticket</th>
        </tr>
        <tr spry:repeat="cartData"
>          <td>{cartid}</td>
          <td>{username}</td>
          <td>{department}</td>
          <td>{authusername}</td>
          <td><span spry:if="'{statusid}' == 1;">
            <center>
              {cartstatusdescr} <br />
              <img src="" height="20" width="20">
            </center>
            </span> <span spry:if="'{statusid}' != 1;">
            <center>
              {cartstatusdescr} <br />
              <img src="" height="20" width="20">
            </center>
            </span> </td>
          <td><span spry:if="'{ticketid}' != 0;">
            <center>
              <img src="" height="20" width="20">
            </center>
            </span> <span spry:if="'{ticketid}' == 0;">
            <center>
              <img src="" height="20" width="20">
            </center>
            </span> </td>
        </tr>
      </table>
    </div>
    <div id="moreinfo" spry:detailregion="cartData">
                <div id="cartinfo">
          Last Date Checked Out:{checkout} <br />
      Last Date Check In:{checkin} <br />
      Notes: {notes} <br />
          </div>
          <div id="carttools">
          <a href="" In Cart {cartid}</a><br />
          <a href="" Out Cart {cartid}</a> <br />
          <a href="" Cart {cartid}</a><br />
          <a href="" new Cart</a>
          </div>
    </div>

  <div id="footer">blargh</div>
</div>
</body>
</html>

</code_snippet>


And the xml the cfc returns is here (though i have to have it write out to
myxml.xml for spry page to work):
<code_snippet source="johnscfc">
<?xml version="1.0" encoding="UTF-8" ?>
<query columns="10" rows="3">
  <row>
    <authusername>MARK FENNELL</authusername>
    <cartid>10</cartid>
    <cartstatusdescr>Checked In</cartstatusdescr>
    <checkin>August 22, 2006</checkin>
    <checkout>August 22, 2006</checkout>
    <department>Data Processing (936)</department>
    <notes>I have sung the songs of the exalted salted almonds</notes>
    <statusid>1</statusid>
    <ticketid>0</ticketid>
    <username>JOHN LYONS</username>
  </row>
  <row>
    <authusername>JOHN LYONS</authusername>
    <cartid>11</cartid>
    <cartstatusdescr>Checked In</cartstatusdescr>
    <checkin>August 22, 2006</checkin>
    <checkout>August 22, 2006</checkout>
    <department>Data Processing (936)</department>
    <notes>Can't Sleep Clowns will eat me</notes>
    <statusid>1</statusid>
    <ticketid>0</ticketid>
    <username>JOHN LYONS</username>
  </row>
  <row>
    <authusername>JOHN LYONS</authusername>
    <cartid>12</cartid>
    <cartstatusdescr>Checked In</cartstatusdescr>
    <checkin>August 22, 2006</checkin>
    <checkout>August 22, 2006</checkout>
    <department>Data Processing (936)</department>
    <notes>The cat ate his hat while dancing on a boy named matt</notes>
    <statusid>1</statusid>
    <ticketid>0</ticketid>
    <username>JOHN LYONS</username>
  </row>
</query>

</code_snippet)


I really need to do 2 things:
1) be able to call that cfc without having it write out the myxml file because
the file and what shows in the browser are identical

2)be able to send to a webservice with arguements so i can alter carts states
via the links at the bottom.




-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------






--
<cf_payne />

Blog: http://cfpayne.wordpress.com/
Atlanta CFUG: http://www.acfug.org
-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-------------------------------------------------------------

Reply via email to