I'm doing some testing with Web Services and I have not gotten far. I have
created a simple CFC to test with and when I call it as a component it works
fine, but when called as a WebService it bombs out. (The error is below.)

I am testing on my desktop machine (WinXP Pro) with CFMX (updater 3) and
Apache 1.3.27. Have I missed something? I sent my code to an associate and
he put it on his local server with no changes and it ran perfectly.

Any suggestions as to where to look would be appreciated.

Here's the body of my account.cfc:

<cfcomponent output="no">
        <cffunction
                name="test"
                returntype="string"
                access="remote"
                output="no"
        >
                <cfargument name="tester" type="string" required="yes">
                <cfreturn arguments.tester>
        </cffunction>
</cfcomponent>


Here is how I am calling it:

<cfinvoke 
        webservice="http://localhost/ws/account.cfc?wsdl";
        method="test"
        returnVariable="t"
>
        <cfinvokeargument
                name="tester"
                value="aTest"
        >
</cfinvoke>

(If I swap out the webservice= line for component="ws.account" it works
perfectly.)


And here is the error message:
(*** removed for security reasons)

Could not perform web service invocation "test" because AxisFault faultCode:
{http://xml.apache.org/axis/}Server.userException faultString:
java.net.UnknownHostException: ***.*** faultActor: null faultDetail:
stackTrace: java.net.UnknownHostException: ***.*** at
java.net.InetAddress.getAllByName0(Unknown Source) at
java.net.InetAddress.getAllByName0(Unknown Source) at
java.net.InetAddress.getByName(Unknown Source) at
java.net.Socket.&lt;init&gt;(Unknown Source) at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFact
ory.java:131) at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:175) at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:118) at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156) at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:126) at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:182) at
org.apache.axis.client.Call.invokeEngine(Call.java:2113) at
org.apache.axis.client.Call.invoke(Call.java:2102) at
org.apache.axis.client.Call.invoke(Call.java:1851) at
org.apache.axis.client.Call.invoke(Call.java:1777) at
org.apache.axis.client.Call.invoke(Call.java:1315) at
ws.AccountCfcSoapBindingStub.test(AccountCfcSoapBindingStub.java:120) at
java.lang.reflect.Method.invoke(Native Method) at
coldfusion.xml.rpc.ServiceProxy.invokeImpl(Unknown Source) at
coldfusion.xml.rpc.ServiceProxy.invoke(Unknown Source) at
coldfusion.runtime.CfJspPage._invoke(Unknown Source) at
coldfusion.tagext.lang.InvokeTag.doEndTag(Unknown Source) at
cftest2ecfm1985494384.runPage(C:\Program Files\Apache
Group\Apache\htdocs\test.cfm:49) at
coldfusion.runtime.CfJspPage.invoke(Unknown Source) at
coldfusion.tagext.lang.IncludeTag.doStartTag(Unknown Source) at
coldfusion.filter.CfincludeFilter.invoke(Unknown Source) at
coldfusion.filter.ApplicationFilter.invoke(Unknown Source) at
coldfusion.filter.PathFilter.invoke(Unknown Source) at
coldfusion.filter.ExceptionFilter.invoke(Unknown Source) at
coldfusion.filter.ClientScopePersistenceFilter.invoke(Unknown Source) at
coldfusion.filter.BrowserFilter.invoke(Unknown Source) at
coldfusion.filter.GlobalsFilter.invoke(Unknown Source) at
coldfusion.filter.DatasourceFilter.invoke(Unknown Source) at
coldfusion.CfmServlet.service(Unknown Source) at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:226) at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527) at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:198)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:
348) at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451
) at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:29
4) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) null  
 
  
The error occurred in C:\Program Files\Apache Group\Apache\htdocs\test.cfm:
line 49
 
47 :            value="aTest"
48 :    >
49 : </cfinvoke>
50 : <cfdump var="#t#">
51 : 

 
--------------------------------------------------------------------------
NOTICE:Unless expressly stated otherwise, this message is confidential and may be 
privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone 
else is unauthorized. If you are not an addressee, any disclosure or copying of the 
contents of this E-mail or any action taken (or not taken) in reliance on it is 
unauthorized and may be unlawful. If you are not an addressee, please notify your 
system administrator immediately at [EMAIL PROTECTED]

**Although this email and any attachments are believed to be free of any virus or 
other defect that might affect any computer system into which it is received and 
opened, it is the responsibility of the recipient to ensure that it is virus free and 
no responsibility is accepted by the sender for any loss or damage arising in any way 
from its use.
---------------------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

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

Reply via email to