I just tried it and it worked fine....maybe a little slow, but it worked.

Here is the dump of the returned query:

query
        ZIPCODE
1       00501
2       00544
3       00601
4       00602
5       00603
6       00604
7       00605
8       00606
9       00610
10      00611
11      00612
12      00613
13      00614
14      00616
15      00617
16      00622
17      00623
18      00624
19      00627
20      00631




On Thu, 28 Oct 2004 06:40:00 -0400, Will Tomlinson <[EMAIL PROTECTED]> wrote:
> I'm learning about using Web Services and I'm getting an error that doesn't make 
> sense. Maybe someone could shed some light on the problem?
> 
> I'm using a CFC to simply retrieve some zip codes from a db.
> 
> <cfcomponent>
>         <cffunction name="myFunction" access="remote" returntype="query">
>                 <cfset getzips ="">
>                 <cfquery name="getzips" datasource="#DSN#" maxrows="20">
>                 SELECT zipcode FROM tblzipcodes
>                 </cfquery>
>                 <cfreturn getzips>
>         </cffunction>
> </cfcomponent>
> 
> Then I'm invoking it using this:
> 
> <cfinvoke webservice="http://www.wtomlinson.com/queryCFC.cfc?wsdl"; 
> method="myfunction"
> returnvariable="returnedquery">
> </cfinvoke>
> 
> <cfoutput query="returnedquery">#zipcode#<br></cfoutput>
> 
> It seems to work fine if the invocation is on my server, but when I have someone to 
> place it on their server to call my web service, there's an error:
> 
> http://gtcc-it.org/web-service.cfm
> 
> Could not generate stub objects for web service invocation.
> Name: http://www.wtomlinson..com/queryCFC.cfc?wsdl. WSDL: 
> http://www.wtomlinson..com/queryCFC.cfc?wsdl. java.net.UnknownHostException: 
> www.wtomlinson..com: www.wtomlinson..com 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&apos;t be retrieved or it is dynamically generated, it 
> is likely that the target web service has programming errors.
> 
> I'm assuming the XML file CF is creating
> is erroring? Does anyone have any ideas?
> 
> Thanks,
> Will
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the mailserver that powers this list at 
http://www.houseoffusion.com/banners/view.cfm?bannerid=17

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182802
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to