Web Service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jonathan Eggert via DotNetMonster.com (forum_at_DotNetMonster.com)
Date: 03/17/05


Date: Thu, 17 Mar 2005 17:45:43 GMT

Two questions:

(1) Has anyone worked extensively with ServiceDescriptionImporter? I want
to generate proxies on the fly in my client application which consumes the
web service.

There is a property ServiceDescriptionImporter.PrptocolName which according
to MSDN documentation:

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/cpref/html/frlrfsystemwebservicesdescriptionservicedescriptionimporterclassprotocolnametopic.asp

is used for specifying which protocol to import. Most of the time it will
be SOAP (also the default I believe if nothing is specified) but I want to
build a proxy for HTTP Post. I have tried using values other than SOAP
(POST and HttpPost) but it just returns error messages:

Protocol with name 'HttpPost' is not recognized. Parameter name:
protocolName

Does anyone know how to accomplish what I am doing?

(2) I know that I can just name the input fields on a normal HTML form to
match my web service method parameters and change the form action to point
to the service. However, in this case, the values being sent are complex
types (binary) so I couldn't find a way to make this work without an
intermediary step (such as calling a proxy which does the conversion to
base-64 before POSTing).

I admit that my knowledge is limited in web services, so I appreciate the
guidance.

-- 
Message posted via http://www.dotnetmonster.com


Relevant Pages

  • Re: Why is soap.inproc not supported for production use?
    ... > I am designing a web service using WSE 2.0 that has flexible deployment ... I'm obviously going to use the HTTP transport. ... That is, the soap.inproc protocol, which can be used to send ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Keeping server-side object alive
    ... I'm trying to wrap a protocol behind a web service, ... part of this protocol involves a thread that waits for asynchronous ... event thread dies with it so I don't get any more messages. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Send XML without SOAPEnvelope wrapper?
    ... I've written a .NET 2.0 web service that takes an XML file as input. ... The envelope is part of the protocol, ... the header, then you need to put them there by defining them in your web ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Adding Research Services
    ... "speak" a particular protocol. ... front page of Brittanica's web site, not a web service (if indeed they ... >> Mary Sauer MSFT MVP ...
    (microsoft.public.word.newusers)