Skip to main content
Participating Frequently
February 15, 2009
Question

Pulling info out of service

  • February 15, 2009
  • 3 replies
  • 337 views
I found a quick cfc for creating a service in CF8:
<cfcomponent>
<cffunction name="sayHello" access="remote" hint="I say hi!" returntype="string">
<cfargument name="to" hint="Whom to say hi to." required="false" default="world" type="string" />
<cfreturn "Hello, #arguments.to#" />
</cffunction>
</cfcomponent>


After I view the page ( http://localhost:8500/TestingCF/service2.cfc?wsdl) it shows up with xml tags.
My question is how do I pull info out of the xml tags into a user friendly view?


    This topic has been closed for replies.

    3 replies

    Inspiring
    February 17, 2009
    Create a page with a form. Have it submit to a page that calls your webservice and displays the resulting variable.
    OaklanderAuthor
    Participating Frequently
    February 16, 2009
    Yes that is exactly what I need where the user would enter a name (Joe) and receive a response like "Hello, Joe".

    Please advise.
    Inspiring
    February 16, 2009
    what sort of 'user-friendly view' are you talking about?
    you want to present the ws structure details to the user?
    or you want the user to enter a name and receive "Hello, [name]!"
    response on the page?

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/