Hi,
Im having trouble getting a simple webservice up and running.

I have a SuSE 9 linux server with CFMX 6.1 and Apache 1.3.28-74.

I just got Updater 3 up and working (after recompiling the apache
connector) so now when I browse to CF administrator it shows me
version 6,1,0,83762.

Now for my problem. I have a simple CFC webservice that produces an
error when invoking it from anywhere except locally on that machine.

I supply my CFC's (Bartender.cfc) method "sayHello" with a string
"aName", it returns a string like: "Hello there, #name#!"

So when I create a page to call the webservice and FTP it on the same
computer as the webservice, this code works fine:

<cfinvoke webservice="http://mysite/webservices/Bartender.cfc?wsdl";
method="sayHello"
aName="Jonathan"
returnVariable="THE_RESPONSE">

<cfdump var="THE_RESPONSE">

IE...when I browse to this page (http://mysite/testWebservice.cfm), I
do in fact see that "Hello there, Jonathan!" is indeed printed on the
page.

The problem comes when I run the same test page on my local machine at
my house. Now the same piece of code:

<cfinvoke webservice="http://mysite/webservices/Bartender.cfc?wsdl";
method="sayHello"
aName="Jonathan"
returnVariable="THE_RESPONSE">

<cfdump var="THE_RESPONSE">

returns to me an error message that states...
===============================================
Could not perform web service invocation "sayHello" because AxisFault
http://schemas.xmlsoap.org\/soap/envelope/\}Server.userException\
faultSubcode: faultString: java.net.UnknownHostException: linux.local\
faultActor: faultNode: faultDetail:\
{\http://xml.apache.org/axis/\}stackTrace:\
java.net.UnknownHostException: linux.local at\
java.net.PlainSocketImpl\.connect(PlainSocketImpl.java:153) at\
java.net.Socket.connect(Socket.java:452) at\
java.net.Socket.connect(Socket.java:402) at\
java.net.Socket.&lt;init&gt;(Socket.java:309) at\
java.net.Socket.&lt;init&gt;(Socket.java:124) at\
org.apache.axis.components.net\.DefaultSocketFactory.create(DefaultSocketFactory.java:129)\
at org.apache.axis.transport.http\.HTTPSender.getSocket(HTTPSender.java:157)\
at org.apache.axis.transport.http\.HTTPSender.invoke(HTTPSender.java:114)\
at org.apache.axis.strategies\.InvocationStrategy.visit(InvocationStrategy.java:71)\
at org.apache.axis.SimpleChain\.doVisiting(SimpleChain.java:150) at\
org.apache.axis.SimpleChain\.invoke(SimpleChain.java:120) at org.apa...\
\
The error occurred in C:\\Inetpub\\wwwroot\\testWebserv\ice\\index.cfm: line 37\
\
35 : <cfinvoke webservice="\http://mysite/webservices\/Bartender.cfc?wsdl\"\
36 :              method="sayHello"\
37 :              aName="Jonathan"\
38 :              returnVariable="THE_RESPONSE">\
39 :\
\
------------------------------\------------------------------\--------------------\
\
Please try the following:\
Check the ColdFusion documentation to verify that you are using the\
",1]);//-->faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode: faultString: java.net.UnknownHostException: linux.local
faultActor: faultNode: faultDetail:
{http://xml.apache.org/axis/}stackTrace:
java.net.UnknownHostException: linux.local at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153) at
java.net.Socket.connect(Socket.java:452) at
java.net.Socket.connect(Socket.java:402) at
java.net.Socket.&lt;init&gt;(Socket.java:309) at
java.net.Socket.&lt;init&gt;(Socket.java:124) at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:129)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:157)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:114)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apa...

The error occurred in C:\Inetpub\wwwroot\testWebservice\index.cfm: line 37

35 : <cfinvoke webservice="http://mysite/webservices/Bartender.cfc?wsdl";
36 :              method="sayHello"
37 :              aName="Jonathan"
38 :              returnVariable="THE_RESPONSE">
39 :



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:14:3697
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/14
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:14
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.14
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to