Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 78295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:57:53+00:00 2026-05-10T20:57:53+00:00

The Code Snippet is as follwos namespace RecruiterWebService { /// <summary> /// Summary description

  • 0

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:-

  1. 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.

  2. 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.

  3. 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..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:57:54+00:00Added an answer on May 10, 2026 at 8:57 pm

    1: If you change the class name, you must also change the .asmx (or .svc for WCF) page, which has a (text) marker to Service1. Right-click the asmx and ‘View markup’ – it should look something like:

    <%@ WebService Language='C#' CodeBehind='Service1.asmx.cs' Class='WebService1.Service1' %> 

    Change the Class and CodeBehind to match your current setup.

    2: ws 1-1 doesn’t support overloading. You simply need to add an attribute to give a unique name to each method on the SOAP interface. However, note that this becomes the method name that your proxies will see.

    For example, you might change one of the messages as below:

        [WebMethod(MessageName = 'InsertXml')]     public XmlDocument Insert(XmlDocument Jobs)     { ... } 

    Now update the client; you (if you use wsdl.exe etc) will probably have an InsertXml(...) method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a code snippet as follows: <html xmlns=http://www.w3.org/1999/xhtml lang=en xml:lang=en> <head> <title>Test</title> <style>
Suppose i have the code snippet as follows : ( clarification purpose/not well formed
Code Snippet: ShippingPeriod[] arrShippingPeriods; . . . List<ShippingPeriod> shippingPeriods = ShippingPeriodList.ToList<ShippingPeriod>(); The Last line
Code snippet (normal pointer) int *pi = new int; int i = 90; pi
Code snippet.. if (regionalApprover == null) { throw new Exception(string.Format(The regional approver for {0}
The code snippet: C2DMessaging.java public class C2DMessaging { public static final String EXTRA_SENDER =
This code snippet is from C# in Depth static bool AreReferencesEqual<T>(T first, T second)
Which code snippet will give better performance? The below code segments were written in
Relevant Code Snippet: public class MyPreference extends Preference { public MyPreference(Context context, AttributeSet attrs)
In the following code snippet: NSMutableArray *tmpItemsArray =[[[NSMutableArray alloc] init] autorelease]; while (sqlite3_step(fetch_statement)==SQLITE_ROW){ int

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.