No discovery information when use php webservice with C# - c#

I got some critical problem when I just try to use php web service with C# windows form application..
My Problem is that Normally when I want to add web reference in my local pc and the web service is running in asp.net
I can add the web reference and work with It but when I try to add a web reference whic is build in php I got thid error....
Add reference button is inactive and...
Show the message....
The HTML document does not contain Web service discovery information.
It shows all methods of my php webservice ...
But what can I do now...
Please Help any One...

Related

ASP.NET, C#, RavenDB: error when running a web service located on another computer

Hello everyone.
I have implemented an ASP.NET web service that performs a query on a RavenDB database. I have then called this service by clicking on a button of a web page that is part of my web site and it is working just fine. I have generated a package from this web site. I have imported this package on IIS 8 located in another machine of the network I am connected to. On this other machine, when I launch the web site, is it working, but when I try to access the service by clicking on a button of a web page, I get the error displayed in the enclosed file. Is this error due to the fact that the web site is unable to locate the web service? If so, how can I fix it? If not, where does this error comes from?
Thanks in advance.

How to add vb webservice in C# project

Hi i am new to C# web services,
I need a clarification. In my company , i was given a webservice url (http://servicename/psWs/psWs.asmx) and the methods in this service are writtn in VB.net . But my problem is , i know only C# and i am a beginner in C# , is there a way to create C# Web Service or WCF and call the service reference url in VSTS where the web service url methods is written in VB .net. Can u please help to any solution . Your help is more valuable.
Finally what i am trying to achieve is ,
1.create a wcf C# application or asp.net web application
2.Add the reference url (http://servicename/psWs/psWs.asmx) where the methods is written in VB.net
3.Test the web service by giving input and validating the output
Please dont downvote if my question is irrelavant.
Just right click the project (in which you want to add web service reference) and add the web service reference. Language doesn't matters here. From MSDN
To add a Web reference to a project In Solution Explorer,
right-click the name of the project that you want to add the service
to, and then click Add Service Reference. The Add Service Reference
dialog box appears.
In the Add Service Reference dialog box, click
the Advanced button. The Service Reference Settings dialog box
appears.
In the Service Reference Settings dialog box, click Add Web
Reference. The Add Web Reference dialog box appears.
In the URL box,
enter the URL of the Web service to use. If you do not know the URL,
use the links in the browse pane to locate the Web service you want.
In the Web services found at this URL box, select the Web service to use.

Use a Web Service in C# Windows App

I am new to using web services. I am assigned a task in which I need to use a web service in my Windows app. This is the web service I would be using:
https://api.betfair.com/global/v3/BFGlobalService.wsdl
Now, I've learned how to add a web reference to this service, but I could not find a basic tutorial that could help me learn how to make an object of this web service and use the service as I want to.
Basicaly, what I need is to create an object from the above web service in my form, and to call it's methods. A C# code snippet would be great.
Can anyone give me some directions? I am working in Visual Studio 2008 and a C# Windows App.
Right click on References
select Add Service Reference
give the wsdl address in the address textbox
click Discover
Give a name for the namespace eg;- BFG
You can access the resources like BFG.MethodName() from you code

Calling a C# web service from another C# web service

I am working on a project where I have a a program or web page which calls a C# Soap Web Service. I need this web service to then call another Web Service. However, I have a problem that when the second soap web service is added to the first web service I get an error 500 page appear saying none of the supported bindings were found.
The second WebService is called Web Reference and I am calling it by using WebReference.BasicHttpBinding_ServiceName.
Thanks for any help you can provide
-> Please Ensure correct binding is used.
-> Add service reference of first service in second service.
-> Ensure the services are up and running.
It should work fine.

Problem to see Web Services running on local machine

I have written some web service, I run it and see it from my firefox and run it from there.
Now I want to call it from some other code/solution i trying to add there a web reference and Web Services on the Local Machine , but i cannot see there my web services.
Any idea what is missing ? Sorry for the newbie question it's my first time with web services.
Thanks.
when you run the web service you will get a url in browser.Copy that, in reference of your project Add Webreference , it will ask for the url paste it and click go.Add that to your project.
If you are not added in IIS. please add it to IIS and do the rest of operation.other wise when you try for that you wont get the web service.
Or run web service in visual studio debugger and dont close and to the operations.
please also ref: http://msdn.microsoft.com/en-us/library/d9w023sx(VS.80).aspx
If you created the Web service project in a file system, then it ll automatically assign the temporary port number to run the service. In this case you cannot see the service in other projects.
Try creating the IIS virtual directory for the web service and see.

Categories