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 think you should contact the ones who created that web service.

:)
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.

so what functions did you see when u tried to add that werb service?

they were two but i dont remember the names, i think you should create your webservice from scratch.

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

Had you assigned Namespace attribute?

<System.Web.Services.WebService(Name:="testwebservice", Namespace:="http://www.uclocal.com/")> _
<System.Web.Services.WebServiceBinding
  ...

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.