Well, the first problem seems to be that you arent referencing the WSDL
file in the URL, so You will need to append the ?wsdl to the end of
it. Beyond that, I'm still having problems accessing that particular web
service, which i suspect has to do with this line from the WSDL file:
soap:binding transport=http://schemas.xmlsoap.org/soap/http;
style=document /
I'm not sure if CFMX knows how to process this. When i try to run it like
this:
cfinvoke
webservice=http://www.interpressfact.net/webservices/getAds.asmx?wsdl;
search=#FORM.search# method=adSearch returnvariable=jobs
I get the following error:
Could not generate stub objects for web service invocation.
Name: http://www.interpressfact.net/webservices/getAds.asmx?wsdl.
WSDL: http://www.interpressfact.net/webservices/getAds.asmx?wsdl.
java.io.IOException: Type http://www.w3.org/2001/XMLSchema:schema is
referenced but not defined.
I know that AXIS in CFMX likes to consume web services which use a Binding
Style=RPC
So far as I know, CFMX is unable to consume web services using a different
style of binding.
At 11:35 AM 11/1/2002 -0500, Pete Ruckelshaus wrote:
I'm trying to do a proof of concept for a project that I'm working on; my
employer is headed towards going .NET, probably in the 18-24 month
timeframe. I want to build a content management system that uses web
services to exchange data so that when the .NET upgrade occurs, we won't
have to rewrite everything from Cold Fusion. Anyway, I found some
services on xmethods.net that I want to try out but I can't figure out how
to get it to work properly.
For example, in trying to connect to this service
http://www.xmethods.net/ve2/ViewListing.po?serviceid=151707 (WSDL
definition is here
http://www.interpressfact.net/webservices/getAds.asmx?wsdl). I am using
this code:
cfparam name=form.action default=
cfswitch expression=#FORM.action#
cfcase value=submit
cfinvoke
webservice=http://www.interpressfact.net/webservices/getAds.asmx;
search=#FORM.search# method=adSearch returnvariable=jobs
cfoutput
Title: #jobs.title#br
adText: #jobs.adText#br
website: #jobs.website#br
adUrl: #jobs.adUrl#br
category: #jobs.category#br
email: #jobs.email#br
postdate: #jobs.postdate#
/cfoutput
/cfcase
cfdefaultcase
form action=cfoutput#CGI.script_name#/cfoutput method=post
Search: input type=text name=search input type=submit
name=action value=submit
/form
/cfdefaultcase
/cfswitch
which, to me, seems like it should be correct. However, I get an error
message:
Could not generate stub objects for web service invocation.
Name: http://www.interpressfact.net/webservices/getAds.asmx. WSDL:
http://www.interpressfact.net/webservices/getAds.asmx.
java.lang.NullPointerException It is recommended that you use a web
browser to retrieve and examine the requested WSDL document for
correctness. If the requested WSDL document can't be retrieved or it is
dynamically generated, it is likely that the target web service has
programming errors.
I have Ben's Advanced CFMX and have gone over it, but the section on
using .ASMX resources is pretty brief and I feel like I'm missing
something. What am I doing wrong?
Thanks
Pete
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm