Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / July 2005

Tip: Looking for answers? Try searching our database.

Validating the XML returned from a WebService

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Codex Twin - 07 Jul 2005 13:48 GMT
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
Erhard Glueck - 12 Jul 2005 01:08 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.