Will Tomlinson 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. 
>  
>
You've got a typo in your code.

<cfinvoke webservice="http://www.wtomlinson..com/queryCFC.cfc?wsdl";>

You've got a double full stop in domain name.

Regards

Stephen




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Sams Teach Yourself Regular Expressions in 10 Minutes  by Ben Forta 
http://www.houseoffusion.com/banners/view.cfm?bannerid=40

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182795
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to