|
| |||||||||
| Tags: parse, parsing xml, webservice, xml |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
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
| ||||
| ||||
| 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
| ||||
| ||||
| 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"; )
__________________ The FIFA Manager 2009 PC Game |
|
#4
| ||||
| ||||
| 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.
__________________ Grand Theft Auto 4 PC Video Game |
|
#5
| ||||
| ||||
| 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 ();
) |
![]() |
|
| Thread Tools | Search this Thread |
| |
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 |