473,394 Members | 1,841 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,394 software developers and data experts.

Using XSDs in Web Services

A WSDL file contains a Schema that defines the XML Types transferred from
client to server. However, from what I can tell, this schema is never
validated by the default MS implementation of the Web Service class.

I know that I could, within the server's implementation, validate the input
by taking the concrete class and running it through a reserialization process
that would validate the XML against a given schema. However, I was wondering
if there was a more intrinsic way of doing this (e.g. an HTTP filter of some
sort).
If not, is there something else out there that can create Client/Server
objects for Web Services that will validate the information?

I tend to create rather strict XSD definitions (e.g. Enumerations, etc) and
as it is, none of the imput documents, defined by an XSD Schema, are
validated against that schema.
Sep 28 '06 #1
1 1130
"David Jessee" <Da*********@discussions.microsoft.comwrote in message
news:1B**********************************@microsof t.com...
>A WSDL file contains a Schema that defines the XML Types transferred from
client to server. However, from what I can tell, this schema is never
validated by the default MS implementation of the Web Service class.

I know that I could, within the server's implementation, validate the
input
by taking the concrete class and running it through a reserialization
process
that would validate the XML against a given schema. However, I was
wondering
if there was a more intrinsic way of doing this (e.g. an HTTP filter of
some
sort).
If not, is there something else out there that can create Client/Server
objects for Web Services that will validate the information?

I tend to create rather strict XSD definitions (e.g. Enumerations, etc)
and
as it is, none of the imput documents, defined by an XSD Schema, are
validated against that schema.
If you're asking about validating the messages sent to your web service,
then take a look at the following article:

http://msdn.microsoft.com/msdnmag/is...n/default.aspx
(Extend the ASP.NET WebMethod Framework by Adding XML Schema Validation).

I build a validator based on this, and use it for validating messages
received - and sent!

John
Sep 28 '06 #2

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

Similar topics

0
by: peter greaves | last post by:
hi everyone i am having a bad time with an entity resolver. my application uses a resolver to locally-cache the nested schemas that the basic xsd includes to a local directory. however i am...
1
by: Rupa | last post by:
Hi,I am trying to create a DATASET object using an .xsd file that has an import tag. The imported .xsd in turn has an include tag for another .xsd. Is it possible to create a dataset based on such...
2
by: David Muoio | last post by:
I am trying to validate an XML file against an XSD that is stored in the assembly as an embedded resource. I can get it to work as long as the XSD does not include other XSDs. After a fair amount...
0
by: ric_deez | last post by:
Hi there, I have just started looking into using Python to perform some XML processing and I need to ensure that it is capable of validating against a schema file (XSD not DTD!). The research...
13
by: Jerry C | last post by:
I am using some sample code from gotdotnet to Create DataSet mappings from a xsd schema. I am geting this error. code and error below. I might mention there is also a publictypelibrary file with...
2
by: syntego | last post by:
We commonly use triggers to log changes to our main tables to historical log tables. In the trigger, we create a concatenated string of the old values by casting them as follows: ...
2
by: GaryDean | last post by:
With ASP.Net 2.0 applications I am used to accessing data by using a 2.0 dataset and using the dataset wizard to create the tableadapter. I always (until now) have specified creation of embedded...
3
by: GaryDean | last post by:
In a new 2.0 website I am developing I am using .XSD tableadapters, building them with the wizard), and choosing the Stored Procedure option. I now notice that when I go back to change the sql...
4
by: syed.akhlaq | last post by:
Hi, Does anyone know how can I validate XPath expressions using xsd schema? Thanks
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.