hello

i am trying to add webreference by right clicking on project in visual studio 2008 located

at webadress http://www.uclocal.com/customerservice.asmx visual studio finds the webservice

but it dont add webreference it gives me error message below

The document at the url http://www.uclocal.com/customerservice.asmx?WSDL was not recognized

as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'http://www.uclocal.com/customerservice.asmx?WSDL' is 'The document format is

not recognized (the

the question is how to sort out error above

hannahwill

:)
i have created web service my self. what are u trying to say?

Hannah

yeah that is what i guessed, i think your problem is not adding the web reference, your problem is about creation of your web service.

No, certainly there is no problem with the web service because its very simple and already made visual studio 2008 asp .net Hello World web service. Do you have any working web service example?

i tried to add your webservice to my project, it gave that error, i think you make some mistakes creating the service. there are tons of web service examples if you search google.

i really appreciate your help but i am working hard to get this done. i just create a simple web service

<%@ WebService Language="VB" Class="Service1" %>

Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel

<System.Web.Services.WebService(Name:="testwebservice", Namespace:="test")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class Service1
    Inherits System.Web.Services.WebService

    <WebMethod()> _
    Public Function HelloWorld() As String
        Return "Hello World"
    End Function

End Class

i have uploaded it for u try to add it from this url first http://www.uclocal.com/myservice.asmx

then

http://www.elloracurrycentre.co.uk/myservice.asmx

namespace could be anything it not necessarily the location of web service.namespace is to differentiate naming confusions.

We have eye and ear to see and listen. Web service clients cannot have. Web service client uses WSDL document to locate web services. Please read MSDN online pages about WebService.

We have eye and ear to see and listen. Web service clients cannot have. Web service client uses WSDL document to locate web services. Please read MSDN online pages about WebService.

please stop ruining the threads. neither you nor anybody benefits from your posts.

This article has been dead for over six months. Start a new discussion instead.