Unable to consume web service

Sanjana

I published a simple Hello World web service in an ASP.Net web service project.I closed this project and opened another console based project to consume this web service. The problem is I cannot discover this web service to add reference.When I paste the url, I get the following error

    There was an error downloading 'http://localhost:65436/Service1.asmx/_vti_bin/ListData.svc/$metadata'.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:65436

I am using Visual Studio Ultimate 2013, I don't have IIS server installed.

UPDATE- : I created a new Console based project in the existing solution and it works fine.But the problem is how do I run this console project,when I click the debug button, it deploys it on browser.I simply printed the string output returned by web method,I need to see this output on console.

CodeCaster

I closed this project and opened another console based project to consume this web service. The problem is I cannot discover this web service to add reference.

Because the web service is not running. Web service references can only be generated when the metadata is available.

You can either:

  • Run two instances of Visual Studio, one for the web service and one for the client
  • Put a service and client project in one solution.

Also, you shouldn't use ASMX for new development. Take a look at WCF and WebAPI.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Trying to consume Web Service class

From Dev

Consume web service returning list

From Dev

consume rest web service in TextBlocks

From Dev

Unable to consume WCF service (hosted in IIS )

From Dev

Creating ABL Client to Consume a REST Web Service

From Dev

Consume .NET web service in Codename One

From Dev

Consume a simple web service using mule

From Dev

Consume SOAP based web service with https

From Dev

How to consume a JSON web service in Java

From Dev

Consume multiple resources in a RESTful Web Service

From Dev

AngularJS: consume web service from Wikipedia API

From Dev

How to consume Rest Web service in c#

From Dev

To consume a web service with multiple input arguments in mule

From Dev

How to consume a rest web service in phonegap for android?

From Dev

consume SOAP local web service in android

From Dev

how to consume the json web service in objective c?

From Dev

How to consume a web service with headers C #?

From Dev

How to Consume an RPC-Style Web Service with a WCF Service Reference?

From Dev

Create and consume web service on local machine by using WAMP

From Dev

Bypass SSL when I'm using SUDS for consume web service

From Dev

How to consume third party https wsdl web service in c#

From Dev

Trying to consume a C# web service in VB.NET

From Dev

how to consume a Restful Web Service (Restful API) in Java

From Dev

c# - Consume soap web service with Xamarin.droid

From Dev

How to consume wsdl web service by using a certificate in Windows Phone 8?

From Dev

How do I consume this xml web service in c#?

From Dev

how to consume web service from desktop c# app?

From Dev

How to consume a .net web service from a remote server with javascript

From Dev

Spring consume rest json web-service error

Related Related

  1. 1

    Trying to consume Web Service class

  2. 2

    Consume web service returning list

  3. 3

    consume rest web service in TextBlocks

  4. 4

    Unable to consume WCF service (hosted in IIS )

  5. 5

    Creating ABL Client to Consume a REST Web Service

  6. 6

    Consume .NET web service in Codename One

  7. 7

    Consume a simple web service using mule

  8. 8

    Consume SOAP based web service with https

  9. 9

    How to consume a JSON web service in Java

  10. 10

    Consume multiple resources in a RESTful Web Service

  11. 11

    AngularJS: consume web service from Wikipedia API

  12. 12

    How to consume Rest Web service in c#

  13. 13

    To consume a web service with multiple input arguments in mule

  14. 14

    How to consume a rest web service in phonegap for android?

  15. 15

    consume SOAP local web service in android

  16. 16

    how to consume the json web service in objective c?

  17. 17

    How to consume a web service with headers C #?

  18. 18

    How to Consume an RPC-Style Web Service with a WCF Service Reference?

  19. 19

    Create and consume web service on local machine by using WAMP

  20. 20

    Bypass SSL when I'm using SUDS for consume web service

  21. 21

    How to consume third party https wsdl web service in c#

  22. 22

    Trying to consume a C# web service in VB.NET

  23. 23

    how to consume a Restful Web Service (Restful API) in Java

  24. 24

    c# - Consume soap web service with Xamarin.droid

  25. 25

    How to consume wsdl web service by using a certificate in Windows Phone 8?

  26. 26

    How do I consume this xml web service in c#?

  27. 27

    how to consume web service from desktop c# app?

  28. 28

    How to consume a .net web service from a remote server with javascript

  29. 29

    Spring consume rest json web-service error

HotTag

Archive