couldn't run the web service client generated from wsdl in VS.NET

Discussion in 'ASP .Net Web Services' started by Steve, Feb 24, 2006.

  1. Steve

    Steve Guest

    In VS.NET, when I add the web reference that points to a WSDL, and run
    F5 to run the web service client, it always show the following message,
    and I couldn't do anything. any ideas? The interesting thing is that
    even I write the C# code first, and then generate the WSDL file, and it
    is fine. However, when I create another project and use that generated
    WSDL file for creating the client, it doesn't work again, but it is the
    WSDL generated by VS.NET, why it keep showing the following messages.
    any ideas? thanks

    This web service is using as its default namespace.
    Recommendation: Change the default namespace before the XML Web service
    is made public.
    Each XML Web service needs a unique namespace in order for client
    applications to distinguish it from other services on the Web. is available for XML Web services that are under
    development, but published XML Web services should use a more permanent

    Your XML Web service should be identified by a namespace that you
    control. For example, you can use your company's Internet domain name
    as part of the namespace. Although many XML Web service namespaces look
    like URLs, they need not point to actual resources on the Web. (XML Web
    service namespaces are URIs.)

    For XML Web services creating using ASP.NET, the default namespace can
    be changed using the WebService attribute's Namespace property. The
    WebService attribute is an attribute applied to the class that contains
    the XML Web service methods. Below is a code example that sets the
    namespace to "":
    Steve, Feb 24, 2006
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bert Leu
    Cowboy \(Gregory A. Beamer\)
    Nov 23, 2007
  2. Bill Nguyen
    Bill Nguyen
    Sep 26, 2003
  3. mrnu

    wsdl.exe fails with WebMethods generated wsdl file

    mrnu, Jun 7, 2004, in forum: ASP .Net Web Services
  4. Bert Leu

    Creating a Web Service (Service, not Client) from WSDL

    Bert Leu, Nov 23, 2007, in forum: ASP .Net Web Services
    Cowboy \(Gregory A. Beamer\)
    Nov 23, 2007
  5. Replies:
    John Saunders
    Oct 7, 2008

Share This Page