consuming web services

Ask a Question related to Macromedia Dreamweaver, Design and Development.

  1. #1

    Default consuming web services

    hey
    this is a brief description of my problem. there is this web service which i want to use.i want to use this web service or rather consume this web service within dreamweaver.by "within dreamweaver" i mean ,i want to consume this web service within a floating panel or anything else so that whatever the web service returns , is available in the floating panel.
    so what i want is not to use the web service methods in my page that i design but the results that the web service returns.there are different ways to consume a web service ,one is using the web service tags, which are used only in JSP pages.the other option is to use webservice behaviors(.htc). this is to my knowledge the only way web service can be consumed using a javascript. the problem with this is that is works only in IE.when i use this in dreamweaver,it does not work...hope i was clear enough in explaining the problem...please do reply...thanx


    ramya.subramanya webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Consuming Java Web Services
      We are developing a client in C# that uses Web Services writtenin Java. These typically return simple arrays of objects. Incertain cases we'd like...
    2. consuming web services record set
      I'm trying to consume a web service and use xslt transformation to display a simple HTML table with a record set from a SQL database. I have put...
    3. question about consuming web services with proxy
      I have this error when adding a web reference to a webservice accessable through the net.. The request failed with HTTP status 407: Proxy...
    4. Consuming Java Web Services with .NET
      I am not able to consume Java web services from .NET client. In an attempt to debug the problem, I created a simple HelloWorld web service that...
    5. Consuming Web Services using other editor than VS.NET
      Hi all! I've created a simple web service on server 1 that I wish to test from ASP.NET on server 2. Now, I don't use VS.NET (I use Macromedia...
  3. #2

    Default Consuming web services

    Hi,
    Can anyone assist with the following please?
    I'm new at using CF and web services so forgive me if I sound a bit vague..
    I'm currently developing a site and have managed to successfully used
    <cfinvoke> to consume a (Tomcat) secure web service to call train schedules.
    I can use <cfdump> to get a screed of raw data which is great. My problem
    however is to now have said data display in a table or user-friendly format .
    See below

    <cfset aCityPairSearchKey = StructNew()>
    <cfset aCityPairSearchKey.destinationCityCode="FRPAR" >
    <cfset aCityPairSearchKey.originCityCode="GBLON" >
    <cfset aCityPairSearchKey.scheduleSource="L" >
    <cfset aCityPairSearchKey.travelDate="07/12/2005" >
    <cfset aCityPairSearchKey.isRoundTrip="FALSE" >

    <cfinvoke
    webservice="http://mywebservices.myhost.com/services/IWSResaSchedules?wsdl"
    method="getSchedulesXML"
    returnvariable="aString">
    <cfinvokeargument name="cityPairSearchKey" value="#aCityPairSearchKey#"/>
    <cfinvokeargument name="time" value="22:00"/>
    <cfinvokeargument name="userKey" value="1235456"/>
    </cfinvoke>

    <cfoutput>#aString#</cfoutput>

    Above just returns a blank whilst below is a snippet of what I get back when
    dumping the returnvariable.

    <?xml version="1.0"?> <com.xxx.wsv.resa.beans.WSchedulesWrapper>
    <schedulesResponse> <com.xxx.wsv.resa.beans.WSResaProduct> <addlInfo>
    <![CDATA[]]> </addlInfo> <arrTime> <![CDATA[09:23]]> </arrTime> <deptTime>
    <![CDATA[05:34]]> </deptTime> <destCity> <![CDATA[FRPAR]]> </destCity>
    <destCodeStation> <![CDATA[FRPNO]]> </destCodeStation> <destStation>
    <![CDATA[PARIS NORD]]> </destStation> <distance> <![CDATA[0.0]]>
    </distance> <firstPrice> </firstPrice> <number> <![CDATA[1]]> </number>
    <origCity> <![CDATA[GBLON]]> </origCity> <origCodeStation>
    <![CDATA[GBWIT]]> </origCodeStation> <origStation> <![CDATA[LONDON
    WATERLOO]]> </origStation> <priceType> <![CDATA[]]> </priceType>
    <routeNumber> <![CDATA[0]]> </routeNumber> <scheduleId> <![CDATA[0]]>
    </scheduleId> <secondPrice> </secondPrice> <source> <![CDATA[]]> </source>
    .... etc etc ...

    Can someone please pont me in the right direction on how I can succesfully
    (a)parse this data and (b) save it to a database?

    Thanks

    :beer;:D:brokenheart;:camera;:clock;:confused;:coo l;:confused;:clock;:camera;:br
    okenheart;:D:beer;:o:confused;

    RegGentle Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139