Re: webservice.htc, no WSDL

From: Simon (simon_at_nospam.com.au)
Date: 06/16/04

  • Next message: Glenn: "XML DOM in IE"
    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


  • Next message: Glenn: "XML DOM in IE"

    Relevant Pages

    • Re: SOAP project
      ... and what do I do if they haven't published the WSDL document? ... your job is much easier - you can create a SOAP ... > | the server as standard SOAP messages. ...
      (microsoft.public.dotnet.languages.csharp)
    • RE: [PHP] WSDL Generator class
      ... I'm no big fan of SOAP and certainly think it's silly that I have to use like 8 million lines of WSDL to describe a 20 line function ... We use Ruby to talk to PHP5 via SOAP. ... I'am looking for an WSDL generator class. ... Is the soap extension or a PEAR classes will include this ...
      (php.general)
    • Re: How to get a WSDL from a given URI
      ... This sort of using standard SOAP API Packets as querying mechanisms is used ... Think of MEX as something rather similar. ... > to generate proxy class "If the SoapService endpoint is bound to an HTTP ... you can request the WSDL definition by appending "?wsdl" to the ...
      (microsoft.public.dotnet.framework.webservices.enhancements)
    • Re: SOAP to webservice
      ... Unfortunately they do not have the WSDL ... required for the SOAP header etc. Do you know of any "SOAP wrapper" ... XML document I've manually put together for testing, but I want to be able ... > class and open a socket to send the SOAP envelope to the Java server. ...
      (microsoft.public.dotnet.framework.aspnet)
    • IE SOAP Without WSDL - how?
      ... I am using SOAP from IE. ... retrieving a WSDL before I can make a SOAP call in the browser, ... So my question - how can I use the web service behvaiour to make a SOAP ...
      (microsoft.public.dotnet.framework.webservices)