-
1. Re: Wanted: Javascript/DHTML SOAP Client
jherber Dec 27, 2002 10:33 AM (in response to siegfried1)neither javascript nor dhtml can open a socket, let alone understand the soap protocol.
so what you want to do is write a servlet page that intercepts a regular http form post and then calls the soap object and returns the result via the intecercepting servlet. -
2. Re: Wanted: Javascript/DHTML SOAP Client
andygodwin Dec 28, 2002 10:29 AM (in response to siegfried1)Hmmmm ... I'm not so sure.
Axis, for one, supports invocation via HTTP GET as well
as POST, so calling a service is as simple as opening
a URL, which JS can do. IE will happily load the XML
reply and, AFAIK, let you navigate the XML DOM in JS so
you could extract the response.
Never say never! -
3. Re: Wanted: Javascript/DHTML SOAP Client
jherber Jan 3, 2003 11:23 AM (in response to siegfried1)he asked for a soap client built using javascript and dhtml... i stand by my claim. axis is just using a servlet to intercept the html post as i suggested.
-
4. Re: Wanted: Javascript/DHTML SOAP Client
psabadin Jan 8, 2003 12:49 PM (in response to siegfried1)Enough of the bickering already. Let's get some work done!
OK. SOAP + M$_I-Explorer + DHTML ...
I have already used a SOAP CLIENT (PocketSoap) in IE for a sanity test to pass an attachment. It Worked (as a COM object) and using jscript. I'm still trying to make the fat lady sing on this one.
However, M$ has a VERY interesting technology called DHTML Behaviors; in fact they HAVE one behavior that I think is EXACTLY what you are looking for called the WebService Behavior. You can use this to make SOAP calls from IE and bind the results to DHTML ... VOILA! It has significant but limited SOAP spec capability and good interop between SOAP implementations (M$ client and your SOAP server)is required. I think that it will probably do what you are looking for. I cannot use it because it does not handle SOAP attachments (yet).
Now, before you go to the following URL, promise me that you will keep those M$other____ers on the client an not on the server, lest our entire future entails coding ONLY in XML.
http://www.eggheadcafe.com/articles/20011011.asp
and
http://www.fawcette.com/vsm/2002_06/online/delcogliano/default_pf.asp
Paul -
5. Re: Wanted: Javascript/DHTML SOAP Client
andygodwin Apr 21, 2003 1:37 PM (in response to siegfried1)Finally (!) got round to having a look at this
webservice behaviour.
It's basically a javascript wrapper around IE's
XMLHTTP ActiveX object with all the wsdl/soap
formatting and encoding/decoding done in javascript.
You're not wrong, interoperability is a problem, it's
taken me a little while to get it to work with Axis.
The main problem was the htc code has a fair few
hardcoded xml namespaces littered around so only
worked with wsdl and soap formatted in a particular
way (funnily enough, just the way .NET services
format their wsdl/soap!). Fixed that to actually use
the namespace declarations in the definitions section
and it's happy with Axis now. Not tried it with any
other servers tho.
Also, recently discovered that Mozilla has an
XmlHttpRequest object which performs essentially
the same function as IE's XMLHTTP. So the next
thing is to port the functionality to that and, voila,
cross browser webservices client. -
6. Re: Wanted: Javascript/DHTML SOAP Client
sysuser1 Apr 22, 2003 10:34 PM (in response to siegfried1)
Hi siefgried.
I don't have examples at hand now, but I think you should have a look at:
IE Soap behaviour:
http://www.zdnet.com.au/builder/architect/webservices/story/0,2000035074,20270057,00.htm
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/webservice/webservice_node_entry.asp
Mozilla Soap client:
http://developer.apple.com/internet/webservices/mozillasoapapi.html
http://lxr.mozilla.org/mozilla/source/extensions/xmlextras/docs/Soap_Scripts_in_Mozilla.html
I hope it helps.
Francisco Figueiredo Jr. -
7. Re: Wanted: Javascript/DHTML SOAP Client
sysuser1 Apr 22, 2003 10:35 PM (in response to siegfried1)
Hi siefgried.
I don't have examples at hand now, but I think you should have a look at:
IE Soap behaviour:
http://www.zdnet.com.au/builder/architect/webservices/story/0,2000035074,20270057,00.htm
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/webservice/webservice_node_entry.asp
Mozilla Soap client:
http://developer.apple.com/internet/webservices/mozillasoapapi.html
http://lxr.mozilla.org/mozilla/source/extensions/xmlextras/docs/Soap_Scripts_in_Mozilla.html
I hope it helps.
Francisco Figueiredo Jr. -
8. Re: Wanted: Javascript/DHTML SOAP Client
sysuser1 Apr 22, 2003 10:36 PM (in response to siegfried1)Hi siefgried.
I don't have examples at hand now, but I think you should have a look at:
IE Soap behaviour:
http://www.zdnet.com.au/builder/architect/webservices/story/0,2000035074,20270057,00.htm
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/webservice/webservice_node_entry.asp
Mozilla Soap client:
http://developer.apple.com/internet/webservices/mozillasoapapi.html
http://lxr.mozilla.org/mozilla/source/extensions/xmlextras/docs/Soap_Scripts_in_Mozilla.html
I hope it helps.
Francisco Figueiredo Jr.