I'm fairly certain the code for sending the xml back and forth is fairly
simple..
Something similar to (for Mozilla/Netscape)
xmlhttp = new XMLHttpRequest();
xmlhttp.open("POST", "[serviceURL]",true);
xmlhttp.send(outDom);
and for IE
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
xmlhttp.open("POST", "[serviceURL]",true);
xmlhttp.send(outDom);
It is working on the example I found from searching around from the links
given to me here, http://jibbering.com/2002/4/httprequest.html, but not
working from localhost, just doing a GET from a text file atm for testing.
If I get this to work that will cut out my biggest headache. There seems to
be plenty of documentation on a Java service recieving an XML document,
although most of the axis examples are taking in arguments instead of xml,
except one that simply spits the XML right back out w/ out accessing any of
the inner elements.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:villardml@;free.fr]
Sent: Monday, October 21, 2002 2:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Axis and Mozilla SOAP Javascript
For js dom, here an URL: http://www.xs4all.nl/~ppk/js/
For the second item, I can't help you. I suppose you need a web service
server
on the client side or a push server.
Chris Howard wrote:
I'm trying to do the same thing. I did it at my previous job so I know it
is doable but I cannot find any good reference on it.
We created XML DOMs from scratch on the client side and sent that XML via
soap to the SOAP server. The soap server then split up the XML and handled
it appropriatly, using server side JScript. I am attempting to do the front
end the same way but Java on the server side.
The main bits of information I'm missing on the client side (they were
obfuscated with the code I was working on):
* How do you create an XML DOM in IE/Netscape (I know it is different syntax
to create them but after that they use the same code)
* How do I send the XML to the client and get the response back.
On the server side I'm having trouble finding the reference I need as well.
I cannot find documentation on how I get the XML and access it via the DOM
(document.getElementByTagName("..."), document.firstChild, and all that).
If anyone has any directions they can point me in I would be most greatfull.
I've been scouring google for about 3 days now.
-Chris
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:villardml@;free.fr]
Sent: Friday, October 18, 2002 6:14 PM
To: [EMAIL PROTECTED]
Subject: Axis and Mozilla SOAP Javascript
Hi,
I'm trying to invoke a web service from javascript using the mozilla
implementation (the only one? I don't know). But mozilla don't send the
SOAPAction header when invoking the service, and therefore axis is not
happy. Is
someone here has encountered the same problem?
Thanks
Lionel