Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Pulling info out of service

New Here ,
Feb 15, 2009 Feb 15, 2009
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?


332
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 15, 2009 Feb 15, 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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 16, 2009 Feb 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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 16, 2009 Feb 16, 2009
LATEST
Create a page with a form. Have it submit to a page that calls your webservice and displays the resulting variable.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources