Re: webservice.htc, no WSDL
From: Simon (simon_at_nospam.com.au)
Date: 06/16/04
- Previous message: jey: "How do i use onblur event to imitate ModalDialog?"
- In reply to: Martin Honnen: "Re: webservice.htc, no WSDL"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Jun 2004 12:37:54 +1000 To: Martin.Honnen@gmx.de
Martin Honnen wrote:
>
>
> Simon wrote:
>
>
>> I am using SOAP from IE. However I do not want the round trip of
>> retrieving a WSDL before I can make a SOAP call in the browser, which
>> the IE webservice.htc seems to demand.
>>
>> My services are not independantly exposed, I control the IE JavaScript
>> development and server side development. I am implementing simple
>> lookups - so pulling back the WSDL (when I know the SOAP format)
>> incurs a needless performance hit.
>>
>> So - can I use the web service behaviour to make a SOAP call without
>> needing the WSDL?
>
>
> I think the web service behaviour needs to read the WSDL to be able to
> offer you a simple API to call the methods of the web service and take
> care of marshalling your arguments and the return values.
> However the web service behaviour makes use of MSXML to make SOAP
> requests over HTTP so in principle you can use MSXML yourself to make
> the SOAP requests and receive the SOAP response. And of course for
> simple tasks SOAP is a overhead, maybe you can live with sending and
> receiving some simple XML with MSXML (or even with sending and receiving
> text if needed and properly UTF-8 encoded).
>
Thanks Martin,
After much playing and close review of webservice.htc, I've decided I
don't like it. I like the mozilla approach, which provides a soap api
for making soap calls directly, and also a wsdl api which retrieves the
wsdl and can make the soap call on the coder's behalf.
In my case, what the WSDL provides can be easily plugged directly into
the soap call (ie endpoint URI, namespaces, method name, argument
array), which saves the WSDL retrieval/parse overhead (not to mention
downloading webservice.htc). Unfortunately I can't see that
webservice.htc allows this!
So for IE, I am now replicating the mozilla soap api, using xmlHttp.
I have previously used xmlHttp for other xml documents - but now I am
hitting apache axis directly from the browser, so I need the soap envelope.
Cheers,
Simon
- Previous message: jey: "How do i use onblur event to imitate ModalDialog?"
- In reply to: Martin Honnen: "Re: webservice.htc, no WSDL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|