The Code Snippet is as follwos
namespace RecruiterWebService
{
/// <summary>
/// Summary description for Service1
/// </summary>
[WebService(Namespace = "http://tempuri.org/") ]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
public class **Service1** : System.Web.Services.WebService
{
[WebMethod]
public XmlDocument Insert(XmlDocument Jobs)
{ }
[WebMethod]
public XmlDocument Update(XmlDocument Jobs)
{ }
[WebMethod]
public XmlDocument Delete(XmlDocument Jobs)
{ }
[WebMethod]
public XmlDocument Insert(string JobPath)
{ }
[WebMethod]
public XmlDocument Update(string JobPath)
{ }
[WebMethod]
public XmlDocument Delete(string JobPath)
{ }
[WebMethod]
public XmlDocument FeedBack(string UserName, string Password)
{ }
}
}
My Questions are:-
How can I change the name of the WebService from Service1 to lets say Jobs..I tried doing this but then while adding the WebReference its was giving Exception.
Here in this webservice I am using Method Overloading but aginb while Adding WebReference its throwing the Exception and suggets using Message Attribute which I am not able to understand.
After Resolving the above two bugs as per your Suggestion..I am having problem with the return type. I am using XMLDocument as the return type of all the WEBMethods but after adding it as web reference to the Client the Return Type of The Methods get changed to XMLNode how can I resolve this
Waiting for Response guys..