Results 1 to 5 of 5

Thread: Parsing XML WebService

  1. #1
    Join Date
    Feb 2010
    Posts
    188

    Exclamation Parsing XML WebService

    Hi all,

    I need to understand what is webservice. The concept of speaking, may be more complicated, but we can have a macro understanding of: webservice is an externally interface, which has Function calls available to external customers. If we are server-side, we have written in a webservice, and then put it to the customers, customers can obtain information from the server at the time of a relatively transparent state. That is, customers do not know the process, they only access to data. So I want to know that How to Parsing XML WebService. Please suggest. Please suggest.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Parsing XML WebService

    webservice passing the data can only be serialized data, typically is the xml data,I will discuss the xml data transfer. With some of the xml webservice's initial understanding, we will cut into the original question, that is a concrete example in the form of web service to explain the specific webservice usage. We need a customer interface, that is, sites, and we called it a Service Gather Site, it does not matter what form, and even its own does not require a database, it is only available to the user a query interface, the real service, ordinary users are not exposed to. Check and reply.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    Parsing XML WebService

    We will begin to introduce a specific webservice is written. In the code file, if we write a function, it is hoped that this function can be called for an external interface function, you need the function added a line of code [WebMethod (Description = "description of the function information")], if you do not have this function declares that it will not be a user reference. The following is quoted fragment:
    Code:
    [WebMethod (Description = "The easiest way to")]
    public string HelloWorld ()
    (
    return "Hello World";
    )
    This function is externally callable interface functions for users is equivalent to an API. If a user refers to the service, he called HelloWorld () method, he would be "HelloWorld" the return value.

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    Parsing XML WebService

    First of all the webservice of the the completion of the project to compile, assuming that our service is aimed at resource site A, we may call ServiceA. The first run separately asmx file, the implementation of GetSiteAData (string AssignName) method, you will be prompted to enter the parameters, you enter to search the content, points confirmed that it would return to give you an xml data, and displayed on the ie, this is what you search the contents of the pull. Check and reply.

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Parsing XML WebService

    Check the following code:
    Code:
    Public void BindData ()
    (
    serviceA12 = new SiteA.Service123 ();
    DataSet ds = new DataSet ();
    XmlNode xmlNode1;
    XmlDataDocument xd = new XmlDataDocument ();
    StringBuilder xmlString1;
    xmlNode11 = serviceA.GetSiteAData (strSearch);
    if (xmlNode1 == null) 
    return;
    xmlString1 = new StringBuilder (xmlNode1.OuterXml);
    if (xmlString12.ToString (). Equals (""))
    return;
    xd.LoadXml (xmlString1.ToString ());
    ds.ReadXml (new XmlNodeReader (xd));
    DataGrid12.DataSource = ds.Tables [ "list"]. DefaultView;
    DataGrid12.DataBind ();
    )
    This code gives the xml into a dataset solution, although it is not necessary, but after all, in the asp.net where, dataset accounts for the role of the weight, everyone knows that.

Similar Threads

  1. Security between flex+air and webservice
    By Isiah in forum Software Development
    Replies: 5
    Last Post: 09-07-2010, 03:10 AM
  2. Need a small webservice for my website.
    By Sarah Rogger in forum Technology & Internet
    Replies: 4
    Last Post: 15-06-2010, 12:21 AM
  3. consuming a webservice that requires login credentials
    By willjones in forum Software Development
    Replies: 1
    Last Post: 23-01-2010, 03:07 AM
  4. Enable SOAP to webservice
    By Harshini in forum Software Development
    Replies: 1
    Last Post: 22-04-2009, 11:53 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,702,122.65755 seconds with 16 queries