creating a proxy class for web service

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default creating a proxy class for web service

    hi,
    I'm trying to create a proxy class in my asp.net project for a web service.
    but,i have problem adding a web reference to my asp.net project through a wsdl file.
    as below:
    project--->add web reference--->[url]http://localhost/WFM/test.wsdl[/url]

    The problem is it doesn't create source file.
    I get an error message as:
    Custom tool warning: DiscoCodeGenerator unable to initialize code generator. No code generated.

    I tried executing WSDL.EXE from command prompt with WSDL file as input.
    But it fails to create class file with an error message.
    warning: no classes were generated.

    please can some one help me as to find out what am i missing?

    thanks
    --------------------------------
    From: Raghu Dongur

    -----------------------
    Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])

    <Id>+SHg4rMWrE2MBVu6JhL37Q==</Id>
    Raghu Dongur via .NET 247 Guest

  2. Similar Questions and Discussions

    1. Web Service Proxy class
      I created a Web Service that has a method that takes string arrays for ex: public void CalculateModel(string stringList1, string stringList2) {...
    2. Web Service generated proxy class
      I created a Web Service that has a method that takes string arrays for ex: public void CalculateModel(string stringList1, string stringList2) {...
    3. creating proxy class from WSDL file
      (Type your message here) HI, i have problem creating proxy class from VS.Net environment by referencing a WSDL file. I don't have .asmx file. I...
    4. Proxy class for an Axis Web Service
      Hello All I am trying to develop the proxy class for an Axis Web Service which is based on Document/Literal binding. I have hand coded my WSDL and...
    5. How to change what the Web Service Proxy class inherits from?
      I am successfully using SoapExtensionImporter to change how the web service proxy class is generated when I add web reference in VS. However, this...
  3. #2

    Default RE: creating a proxy class for web service


    --------------------
    >From: Raghu Dongur via .NET 247 <anonymous@dotnet247.com>
    >X-Newsreader: AspNNTP 1.50 (Matthew Reynolds Consulting)
    >Subject: creating a proxy class for web service
    >Date: Mon, 07 Jun 2004 07:58:52 -0700
    >
    >hi,
    >I'm trying to create a proxy class in my asp.net project for a web service.
    >but,i have problem adding a web reference to my asp.net project through a wsdl file.
    >as below:
    >project--->add web reference--->[url]http://localhost/WFM/test.wsdl[/url]
    >
    >The problem is it doesn't create source file.
    >I get an error message as:
    >Custom tool warning: DiscoCodeGenerator unable to initialize code generator. No code generated.
    >
    >I tried executing WSDL.EXE from command prompt with WSDL file as input.
    >But it fails to create class file with an error message.
    >warning: no classes were generated.
    >
    >please can some one help me as to find out what am i missing?
    >
    >thanks
    >--------------------------------
    >From: Raghu Dongur
    >
    >-----------------------
    >Posted by a user from .NET 247 ([url]http://www.dotnet247.com/[/url])
    >
    ><Id>+SHg4rMWrE2MBVu6JhL37Q==</Id>
    >
    Hi Raghu,

    Check to see that the wsdl has enough definitions to create a proxy. It should have
    · Types- a container for data type definitions using some type system (such as XSD).
    · Message- an abstract, typed definition of the data being communicated.
    · Operation- an abstract description of an action supported by the service.
    · Port Type-an abstract set of operations supported by one or more endpoints.
    · Binding- a concrete protocol and data format specification for a particular port type.
    · Port- a single endpoint defined as a combination of a binding and a network address.
    · Service- a collection of related endpoints

    Hope that helps,

    Michelle

    ***Disclaimer: This posting is provided "as is" with no warranties and confers no rights.***

    Michelle Hlaing Guest

  4. #3

    Default Re: creating a proxy class for web service

    check that in the WCF endpoint configuration you have binding="basicHttpBinding"
    eyal Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139