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 / May 2005

Tip: Looking for answers? Try searching our database.

Design question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TonyR - 26 May 2005 16:28 GMT
I've got to write a webservice with vb.net client and server such that the
client will upload an XML file.  The XML needs to be checked against a schema
and a validation message returned to the client.  

The easy way I found to do this is to pass a dataset which works fine,
unfortunately I have to write the server end such that a non-Microsoft
customers can develop clients too.

I could upload the file as a byte or string array then validate it (I have
done this and it works) but I'm wondering if there is an open standard for
receiving an .XML (as XML data rather than as a string) so that it can be
validated as it comes in.
inetmug - 27 May 2005 04:27 GMT
The JAX-RPC specification (v1.1) dictates that the xsd:any type be
represented by an
instance of a class that implements the javax.xml.soap.SOAPElement
interface. The
SOAPElement interface implements the org.w3c.dom.Node interface and offers a
similar
API as an object implementing the org.w3c.dom.Document interface for
manipulating its
content. Therefore, if you want to pass unmodified XML data you can
manipulate the
data in a document object, use the document to populate an instance of an
object
implementing SOAPElement, and then pass the data in an operation that uses
an xsd:any
as a parameter.
This note will illustrate this concept. You can find a nice introduction to
this topic at
http://www-106.ibm.com/developerworks/library/ws-xsdany.html.
Signature

Patrick

> I've got to write a webservice with vb.net client and server such that the
> client will upload an XML file.  The XML needs to be checked against a schema
[quoted text clipped - 8 lines]
> receiving an .XML (as XML data rather than as a string) so that it can be
> validated as it comes in.

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.