Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , ,

Sponsored Links



Parsing XML WebService

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 03-03-2010
Member
 
Join Date: Feb 2010
Posts: 174
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.
Reply With Quote
  #2  
Old 03-03-2010
MindSpace's Avatar
Member
 
Join Date: Feb 2008
Posts: 1,832
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.
Reply With Quote
  #3  
Old 03-03-2010
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
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.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #4  
Old 03-03-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
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.
Reply With Quote
  #5  
Old 03-03-2010
Modifier's Avatar
Member
 
Join Date: Jan 2008
Posts: 1,502
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Parsing XML WebService"
Thread Thread Starter Forum Replies Last Post
Security between flex+air and webservice Isiah Software Development 5 09-07-2010 04:10 AM
Need a small webservice for my website. Sarah Rogger Technology & Internet 4 15-06-2010 01:21 AM
consuming a webservice that requires login credentials willjones Software Development 1 23-01-2010 03:07 AM
Enable SOAP to webservice Harshini Software Development 1 23-04-2009 12:53 AM
Parsing in C++ Elijah Software Development 4 21-04-2009 12:39 AM


All times are GMT +5.5. The time now is 11:30 AM.