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

Consuming a webservice and attributes

Explorer ,
Jul 25, 2006 Jul 25, 2006

Copy link to clipboard

Copied

I'm trying to noodle my way thru consuming a webservice and it is not making sense when I'm trying to get attributes from a webservice. Can someone point me in the right direction. I've included what the xml output looks like and my cfinvoke and a cfdump of the invoke return variable. I just don't know how to bring back that array of course ids??

The service returns course ids

<?xml version="1.0" encoding="utf-8" ?>
- <Courses>
<Course CourseID="1167" CourseName="Human Performance Tools - Self Checking" />
<Course CourseID="1168" CourseName="Human Perfomance Tools - 3 Way Communication" />
<Course CourseID="1169" CourseName="Human Performance Tools - Phonetic Alphabet" />
<Course CourseID="1170" CourseName="Human Performance Tools - Pre-Job Briefing" />
<Course CourseID="1171" CourseName="Initial Plant Access Training" PadsCode="PAT034" />
<Course CourseID="1172" CourseName="Initial Radiation Worker Training" PadsCode="RWT" />
<Course CourseID="1224" CourseName="Plant Access Requal Training" PadsCode="PAT034" />
<Course CourseID="1225" CourseName="RWT Requal Training" PadsCode="RWQ" />
<Course CourseID="1226" CourseName="Proctoring Responsibilities" />
<Course CourseID="1235" CourseName="Generic Confined Space" />
<Course CourseID="1236" CourseName="Generic Fall Protection" />
</Courses>


object of org.tempuri.LMSWebSvc.LMS_Interface.GetCoursesResponseGetCoursesResult

Methods hashCode (returns int)
equals (returns boolean)
getSerializer (returns interface org.apache.axis.encoding.Serializer)
getDeserializer (returns interface org.apache.axis.encoding.Deserializer)
getTypeDesc (returns org.apache.axis.description.TypeDesc)
get_any (returns [Lorg.apache.axis.message.MessageElement;)
set_any (returns void)
getClass (returns java.lang.Class)
wait (returns void)
wait (returns void)
wait (returns void)
notify (returns void)
notifyAll (returns void)
toString (returns java.lang.String)

TOPICS
Advanced techniques

Views

453

Translate

Translate

Report

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
Enthusiast ,
Jul 26, 2006 Jul 26, 2006

Copy link to clipboard

Copied

Please post the actual WSDL of the webservice if you are able.

Votes

Translate

Translate

Report

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
Explorer ,
Jul 27, 2006 Jul 27, 2006

Copy link to clipboard

Copied

Wsdl attached as code

Votes

Translate

Translate

Report

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
Explorer ,
Jul 27, 2006 Jul 27, 2006

Copy link to clipboard

Copied

I've tried some additional paradigms (they prove out that I can connect and get data)
Currently the WebService that I am consuming also supports HTTP.
Using CFHTTP works for me to retrievean xml document
So I guess I can start parsing it manually. But I have other webservice methods that I need to consume that want an array sent for input data and a HTTP Get won't work.
I'd really like to have some help on what I'm doing wrong with cfinvoke.

Votes

Translate

Translate

Report

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
Enthusiast ,
Jul 27, 2006 Jul 27, 2006

Copy link to clipboard

Copied

What version of cfmx are you using 6.1 or 7.0x?

Votes

Translate

Translate

Report

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
Explorer ,
Jul 27, 2006 Jul 27, 2006

Copy link to clipboard

Copied

7.02 mx

Votes

Translate

Translate

Report

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
Explorer ,
Aug 02, 2006 Aug 02, 2006

Copy link to clipboard

Copied

Ken thanks for responding to my posting. Do you have anything else you need from me? I can't get the CFMX to consume this service properly. Thoughts?
Thanks

Votes

Translate

Translate

Report

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
Explorer ,
Aug 16, 2006 Aug 16, 2006

Copy link to clipboard

Copied

LATEST
I found a way to get the soap request into an xml document. It was not intuitive to me but works.
Basically rereading this post: http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:44797#233359 gave me more insight. The tostring function appears to allow me to get the raw xml that CF is struggling to noodle out.

Votes

Translate

Translate

Report

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
Explorer ,
Jul 27, 2006 Jul 27, 2006

Copy link to clipboard

Copied

During my search I found
THere's a thread on House of Fusion that talks about this same issue but I don't see an answer. I tried to post there to get a response but no luck.


http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:44797#233359

Votes

Translate

Translate

Report

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
Documentation