Adding web service references for both HttpSoap and HttpGet
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.aspnet.webservices.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Stephen Walch
I want to give my customers the option of connecting to my service via both
SOAP and HTTP GET protocols. Whan I add a reference to my service in VS.NET
2003, I get a class that unherits from SoapHttpClientProtocol by default.
In the docs I see that there is also that there is a HttpGetClientProtocol
base class, but I can not see how to generate an instance of one when I have
a service that supports multiple protocols.

Ideally I would like to add two references to my project that talk to the
same service. If clients elect to use HTTP GET to connect (probably because
of firewall issues) then I would just call the alternate service. But how
do I generate both proxies?

Thanks in advance?

-Steve

Reply to this message...
 
    
[MSFT] (VIP)
Hi Steve,

If we generate the proxy with VS.NET IDE, it will use SOAP protocol by
default. AS a work around, we can generate the proxy class with command
line tool "WSDL.exe". Its property "protocol" includes SOAP, HTTP-GET, and
HTTP-POST. The default protocol is also SOAP. For more information about
this tool, you may refer to:

Creating an XML Web Service Proxy
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconcreatingwebserviceproxy.asp

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Reply to this message...
 
    
Stephen Walch
Thanks. I should have thought of that.

"[MSFT]" <Click here to reveal e-mail address> wrote in message
news:$Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Ravichandran J.V.
The DefaultWsdlHelpGenerator.aspx may also have some say in it, or would
it?

with regards,

J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Reply to this message...
 
 
System.Web.Services.Protocols.HttpGetClientProtocol
System.Web.Services.Protocols.SoapHttpClientProtocol




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com