Web services are driving me crazy.

Every tutorial on the web shows either a) ridiculously simple web  
service consumption, or b) those made with ColdFusion.

I'm trying to consume some web services, and most don't work. My errors  
include:

1. Document root element doesn't exist (because I'm not getting a valid  
xml response, see #2)
2. Returns: com.host@12345a
3. Not found (this one has to do with the port used)

The web services I'm trying to consume are all weather related:

<cfinvoke
  webservice = "http://www.ejse.com/WeatherService/Service.asmx?wsdl";
  method = "GetWeatherInfo"
  zipCode = "65641"
  returnvariable = "Weather">

info:  
http://www.bindingpoint.com/Service.aspx?sKey=a7a709c1-0f9a-4ed1-a3fd- 
af25215eb1a7

<cfinvoke
  method = "getWeatherReport"
  returnvariable = "WeatherReport"
  webservice = "http://live.capescience.com/wsdl/GlobalWeather.wsdl";>
        <cfinvokeargument name = "code" value = "KROG"/>
</cfinvoke>

info: http://www.capescience.com/webservices/globalweather/index.shtml

I realize both of my invoke statments are formatted differently. This  
is because I've tried everything (not that I think it makes a  
difference). The second service is the one where the port/binding has  
to be specified. I'm unaware how to do this. I've tried creating a SOAP  
call myself (using cfhttp), but always receive a connection failure.

Perhaps I was wrong thinking that you can consume any kind of service,  
ColdFusion or not. Any help would be greatly appreciated (including  
links to good tutorials on web services). Thanks.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to