Proxy Class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gerom
    New Member
    • Jan 2010
    • 4

    #1

    Proxy Class

    I have created my proxy class from a wsdl file using

    wsdl /out:myproxy.cs c:\barcodework. wsdl

    I have imported it into my windows service application written in c# .net and I want to call a function from the proxy.

    It returns an error when I try to call any function from the proxy. How can I make my application to communicate with the proxy file which is myproxy.cs? Here is how the proxy file starts:
    Code:
    using System;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Web.Services;
    using System.Web.Services.Protocols;
    using System.Xml.Serialization;
    
    // 
    // This source code was auto-generated by wsdl, Version=2.0.50727.1432.
    // 
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="LifecycleSoapBinding", Namespace="http://service.myservice.workflow.services.barcodework.com")]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserEdo))]
    public partial class BarcodecycleServiceService : System.Web.Services.Protocols.SoapHttpClientProtocol {
    ...
    etc.

    Sorry I am new to this
    Last edited by Frinavale; Jun 29 '10, 01:21 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by gerom
    I have created my proxy class from a wsdl file using

    wsdl /out:myproxy.cs c:\barcodework. wsdl

    I have imported it into my windows service application written in c# .net and I want to call a function from the proxy.

    It returns an error when I try to call any function from the proxy. How can I make my application to communicate with the proxy file which is myproxy.cs? Here is how the proxy file starts:
    Code:
    using System;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Web.Services;
    using System.Web.Services.Protocols;
    using System.Xml.Serialization;
    
    // 
    // This source code was auto-generated by wsdl, Version=2.0.50727.1432.
    // 
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.1432")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="LifecycleSoapBinding", Namespace="http://service.myservice.workflow.services.barcodework.com")]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(UserEdo))]
    public partial class BarcodecycleServiceService : System.Web.Services.Protocols.SoapHttpClientProtocol {
    ...
    etc.

    Sorry I am new to this
    What is the error?

    -Frinny

    Comment

    Working...