I am using webservice. I am getting data to Java in the form of C# dataset how to retrieve values from dataset in Java.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
I’ve handled this by using XPath with Xalan to query the DOM document that Axis hands to me. The schema of the serialized DataSet is pretty clear and easy to query. I just had to be sure to set up Xalan with the proper namespaces to perform the queries.
I ran into one problem handing the data this way. The serialized DataSet doesn’t contain an element for data that is null. If you know what data you are expecting then this isn’t a problem. However, if you don’t know exactly what data to expect, you can extract the fields that are in the DataSet from the XML document.