0

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

3
Contributors
13
Replies
14
Views
7 Years
Discussion Span
Last Post by __avd
0

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

Hannah

0

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.

0

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?

0

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.

0

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

0

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

0

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

0

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.

0

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 topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.