473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Validating the XML returned from a WebService

Hello group

My problem: An XML feed of about 1000+ records needs to be sent over the web
and validated against an XML schema.
I am considering 2 possible solutions to achieve this, but would welcome any
suggestions on what would be the best approach:

1. Create data classes from the XML schema. Populate these with records and
pass them as complex data types (structs) via the WebMethod. I'm thinking
this would ensure that the XML that gets returned is valid and complies to
the schema from the very beginning and therefore will not require a
validation check using the XmlValidatingReader.

2. The client requests the records from an intermediary webservice (ws-A)
which calls the second webservice (ws-B)
The function of ws-A is to invoke the recordset from ws-B and validate the
XML returned by ws-A.
If the records are valid, it will bundle the XML into the SOAP body and
return the XML to the client. Otherwise it will return an a SOAP error
notifying the client of invalid XML.

The second approach is obviously a poor solution and I'm not even sure if
the the first solution is a best-practice approach. Would really appreciate
some pointers.

Thanks

cT
Nov 23 '05 #1
2 1278
I was surprised, reading the articel in the german professional journal c't:
"Web Services mit .NET, Teil 2"
When I was employed belonging computer systems, I worked with DCOM.
For me it was sometimes work for half a week, to get satisfactory connections
between clients and server.
Now, too old for further efforts, I read and see, that nothing was done for
understandability.
Sorry
Erhard

Nov 23 '05 #2
I was surprised, reading the articel in the german professional journal c't:
"Web Services mit .NET, Teil 2"
When I was employed belonging computer systems, I worked with DCOM.
For me it was sometimes work for half a week, to get satisfactory connections
between clients and server.
Now, too old for further efforts, I read and see, that nothing was done for
understandability.
Sorry
Erhard

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
2
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
8
by: Programatix | last post by:
Hi, I'm working on a project which includes XML WebServices and Windows Form application. The Windows Form application will call the XML WebServices to retrieve data from database. The data...
2
by: SteveR | last post by:
I want to return an ArrayList from my web service. I can write this part and everything compiles but I can't get the web application that uses the web service to compile. I call the service...
6
by: Picho | last post by:
Hi all. I have a webservice and a windows app. both of them reference the same class library called WebServiceTest.Core that defines a class called Class1. the webservice exposes a method...
0
by: Codex Twin | last post by:
Hello group My problem: An XML feed of about 1000+ records needs to be sent over the web and validated against an XML schema. I am considering 2 possible solutions to achieve this, but would...
21
by: Darin | last post by:
I have a form w/ a textbox and Cancel button on it. I have a routine to handle textbox.validating, and I have the form setup so the Cancel button is the Cancel button. WHen the user clicks on...
2
by: Jim S | last post by:
I have a .net framework 2.0 client (Pocket PC) and a .net 2.0 webservice that communicate on the same LAN. The Pocket PC has no problem consuming strings returned from the web service methoeds but...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.