Re: Problem generating code with wsdl
- From: "RYoung" <rcyoungatinkspotdev.com>
- Date: Mon, 30 Oct 2006 16:01:27 -0600
This is a snip from the client side proxy of the AvaluosService class
generated by wsdl, with the WebServiceBindingAttribute:
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="AvaluosBinding",
Namespace="urn:m15.AvaluosPortType")]
public partial class AvaluosService :
System.Web.Services.Protocols.SoapHttpClientProtocol {
Ron
"Cesar" <Cesar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3EA7F8F3-BD35-40A7-B008-D919212CA233@xxxxxxxxxxxxxxxx
Hello RYoung,
Thanks for your help. I did as you indicated and used the framework 2.0
SDK
(wsdl.exe) to generate the proxy class (C#). But when I tried to add it to
my
VS 2003 project an error ocurred. This is the error:
An exception occurred while trying to create an instance of
System.Web.Services.Protocols.SoapHttpClientProtocol. The exception was
"WebServiceBindingAttribute is required on proxy classes.".
Any ideas? Is there something that I need to configure ?
Thanks a lot.
Regards,
Cesar
"RYoung" wrote:
I used wsdl.exe on the wsdl you originally posted and didn't encounter
any
errors.
I generated both server implementation of the wsdl, and a client proxy.
Ahh, I just seen your using VS 2003. Maybe you can download the .NET 2.0
SDK
and use the wsdl.exe tool from there, then just generate the client side
proxy and add that to your project.
Ron
.
- References:
- Problem generating code with wsdl
- From: Cesar
- Re: Problem generating code with wsdl
- From: John Saunders
- Re: Problem generating code with wsdl
- From: John Saunders
- Re: Problem generating code with wsdl
- From: RYoung
- Problem generating code with wsdl
- Prev by Date: Re: Problem generating code with wsdl
- Next by Date: 2005 Break on Exception in WebService
- Previous by thread: Re: Problem generating code with wsdl
- Next by thread: Consuming a webservice from a class library
- Index(es):
Relevant Pages
|