Benson,
I'm still struggling. This is what I have now.
I have copied the Greeter example (js-browser-client-simple) from the
samples. Because cross-scripting is not allowed (I think that was
causing the 650 error I got) I have created a redirect in my apache web
server so my url is now local and at port 80. The ?js import works fine.
My url is the same as the ?js url, without the ?js.
I have tested my web service with SoapUI. When I point my browser to the
url from the javascript (similar to the /SoapContext/SoapPort in the
sample) I get an error message from the Soap server, so I know it's
listening at that url. But running the javascript gives an error -1,
"could not connect to server". I run the web service from within
Eclipse, which doesn't produce any log output when I get the -1 error.
It does when I get the error at the same url in my browser.
this is the first bit of my html, the rest is the same as the sample.
<html>
<head><title>...</title>
<script language="JavaScript" TYPE="text/JavaScript"
src="/dir/port?js"></script>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/JavaScript"><!--
var CXFChat = new chat__CXFChat ();
CXFChat.url="/dir/port";
var responseString;
var userId="";
function sayResponse(response)
{
responseSpan.firstChild.nodeValue = response.getResponseType();
}
function sayError(error)
{
alert('error ' + error);
}
......
--
dagdag is just a two character rotation of byebye
www.christine.nl