Hello Experts!
I'm a beginner at using web services (started yesterday).
I have a ASP.Net project with a basic website that has some options to select and then calls a web service to get results. I also added a web service class to that project. The basic web service looks like:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protoc
ols;
using System.Xml.Linq;
namespace testing
{
[WebService(Namespace = "
http://tempuri.org/")]
public class webservice1 : System.Web.Services.WebSer
vice
{
[WebMethod(Description="Te
sting")]
public string HelloWorld()
{
return "Hello World";
}
}
}
I tested this code on the localhost and it works, as you all would probably know.
When I try using the wsdl to generate the proxy code from the command line, it creates the file but there is nothing in it other then the basic comment.
//------------------------
----------
----------
----------
----------
----------
----
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1433
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------
----------
----------
----------
----------
----------
----
//
// This source code was auto-generated by wsdl, Version=2.0.50727.1432.
//
Nothing else shows up, I figured that since its a basic function call without doing any real work that nothing was generated.
What I'm trying to do is make a SOAP request to a web service on another website and store the xml response in the proper variables. I need some clearing up in this matter, searched around for a while looking for some code snippet that would show me how to send a request to a web service but could not find anything that would suit my needs or I just did not understand what was going on.
Thanks for any help :)
Start Free Trial