473,657 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XSD Schemas - Which Direction

Hi All,

I am in the process of designing a web service for my company. It is my
first commercial web service, so i think my "Hello World" coding model wont
quite cut it here :). Anyway, i am writing a design document for it, and
want to provide XSD Schema information for XML used.

My question is, do i provide XSD schemas for the XML being passed into the
system, and the XML returned, or do i just do it for the XML being passed in.
Also, how does this work? becuase if the types are serialized and
deserialized at both ends how do i provide a schema for this interaction, i
mean if my method takes in an int, does the WDSL take care of that and the
XSD is only for pure XML being passed in? Sorry if this makes no sence, i am
trying to get the story 100% so i know what i am doing.

Any advice would be great.

Thanks,

Rob
Nov 23 '05 #1
3 1292
> do i provide XSD schemas for the XML being passed into the
system, and the XML returned, or do i just do it for the XML being passed
in.
Yes, both.

You should think of your service interface as message-based. The service
accepts a message and then (optionally) responds with a message. The schema
should describe what the message looks like. If you want to send only an
int, fine, but your design should wrap that in a message.

You can use the XML Schema designer in VS2003 to help you build the schema.
Other tools also work, of course. Or, if you're schema-savvy, you can use a
text editor and write it by hand.

check this out:
http://weblogs.asp.net/klaus.aschenb...25/247249.aspx

-D
"Modica82" <Mo******@discu ssions.microsof t.com> wrote in message
news:55******** *************** ***********@mic rosoft.com... Hi All,

I am in the process of designing a web service for my company. It is my
first commercial web service, so i think my "Hello World" coding model
wont
quite cut it here :). Anyway, i am writing a design document for it, and
want to provide XSD Schema information for XML used.

My question is, do i provide XSD schemas for the XML being passed into the
system, and the XML returned, or do i just do it for the XML being passed
in.
Also, how does this work? becuase if the types are serialized and
deserialized at both ends how do i provide a schema for this interaction,
i
mean if my method takes in an int, does the WDSL take care of that and the
XSD is only for pure XML being passed in? Sorry if this makes no sence, i
am
trying to get the story 100% so i know what i am doing.

Any advice would be great.

Thanks,

Rob

Nov 23 '05 #2
Hi Dino,

Thanks for the response and the link, it spured me to look at an existing
document i passed over, the link is below if anyone is interested.

http://msdn.microsoft.com/msdnmag/is...ervicesDesign/

I have a question though, if i have several messages that say return a
boolean, can i generate a generic response and specify that all method
responses that return a boolean are controlled by my genericBooleanR esponse
or genericIntegerR esponse etc etc or would it be better to define a different
response for all methods??

Any input would be good,

Regards,

Rob

"Dino Chiesa [Microsoft]" wrote:
do i provide XSD schemas for the XML being passed into the
system, and the XML returned, or do i just do it for the XML being passed
in.


Yes, both.

You should think of your service interface as message-based. The service
accepts a message and then (optionally) responds with a message. The schema
should describe what the message looks like. If you want to send only an
int, fine, but your design should wrap that in a message.

You can use the XML Schema designer in VS2003 to help you build the schema.
Other tools also work, of course. Or, if you're schema-savvy, you can use a
text editor and write it by hand.

check this out:
http://weblogs.asp.net/klaus.aschenb...25/247249.aspx

-D
"Modica82" <Mo******@discu ssions.microsof t.com> wrote in message
news:55******** *************** ***********@mic rosoft.com...
Hi All,

I am in the process of designing a web service for my company. It is my
first commercial web service, so i think my "Hello World" coding model
wont
quite cut it here :). Anyway, i am writing a design document for it, and
want to provide XSD Schema information for XML used.

My question is, do i provide XSD schemas for the XML being passed into the
system, and the XML returned, or do i just do it for the XML being passed
in.
Also, how does this work? becuase if the types are serialized and
deserialized at both ends how do i provide a schema for this interaction,
i
mean if my method takes in an int, does the WDSL take care of that and the
XSD is only for pure XML being passed in? Sorry if this makes no sence, i
am
trying to get the story 100% so i know what i am doing.

Any advice would be great.

Thanks,

Rob


Nov 23 '05 #3
What you describe makes sense. No problem with that.
-D

"Modica82" <Mo******@discu ssions.microsof t.com> wrote in message
news:A0******** *************** ***********@mic rosoft.com...
Hi Dino,

Thanks for the response and the link, it spured me to look at an existing
document i passed over, the link is below if anyone is interested.

http://msdn.microsoft.com/msdnmag/is...ervicesDesign/

I have a question though, if i have several messages that say return a
boolean, can i generate a generic response and specify that all method
responses that return a boolean are controlled by my
genericBooleanR esponse
or genericIntegerR esponse etc etc or would it be better to define a
different
response for all methods??

Any input would be good,

Regards,

Rob

"Dino Chiesa [Microsoft]" wrote:
> do i provide XSD schemas for the XML being passed into the
> system, and the XML returned, or do i just do it for the XML being
> passed
> in.


Yes, both.

You should think of your service interface as message-based. The
service
accepts a message and then (optionally) responds with a message. The
schema
should describe what the message looks like. If you want to send only an
int, fine, but your design should wrap that in a message.

You can use the XML Schema designer in VS2003 to help you build the
schema.
Other tools also work, of course. Or, if you're schema-savvy, you can
use a
text editor and write it by hand.

check this out:
http://weblogs.asp.net/klaus.aschenb...25/247249.aspx

-D
"Modica82" <Mo******@discu ssions.microsof t.com> wrote in message
news:55******** *************** ***********@mic rosoft.com...
> Hi All,
>
> I am in the process of designing a web service for my company. It is
> my
> first commercial web service, so i think my "Hello World" coding model
> wont
> quite cut it here :). Anyway, i am writing a design document for it,
> and
> want to provide XSD Schema information for XML used.
>
> My question is, do i provide XSD schemas for the XML being passed into
> the
> system, and the XML returned, or do i just do it for the XML being
> passed
> in.
> Also, how does this work? becuase if the types are serialized and
> deserialized at both ends how do i provide a schema for this
> interaction,
> i
> mean if my method takes in an int, does the WDSL take care of that and
> the
> XSD is only for pure XML being passed in? Sorry if this makes no
> sence, i
> am
> trying to get the story 100% so i know what i am doing.
>
> Any advice would be great.
>
> Thanks,
>
> Rob


Nov 23 '05 #4

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

Similar topics

0
1415
by: kyancy | last post by:
Hello All. We have several XML schemas to describe common component document parts. We then create new XML schemas as necessary that use "xsd:import schemaLocation=whateverLocation.." to include the common type definitions from 1 or more of the component XML schemas rather than just explicitly adding the common definitions in every XML schema we create. This works great from a definition and validation point of view, but I
30
9818
by: btober | last post by:
Whenever I create a temporary table, with something like CREATE TEMPORARY TABLE temptable1 AS SELECT * FROM paid.ad_hoc_query; New schemas appear, with names like "pg_temp_1". I guess the appearance of these schemas with "temp" in the name indicates that they are "temporary" schemas and related to the temporary table creation, but the schemas persist even after the end of the session in which the temporary table was created.
7
1600
by: Roderick A. Anderson | last post by:
I'm looking for some input on a configuration I'm implementing. The long term goal is to providing hosting for companies and organizations with a basic/generic set of applications that use PostgreSQL. Most of these applications want to be installed in their own database. Given I'm looking at 6 or so already this would be 6+ databases per company. Not my idea of an easy to admin situation. My plan is to make one database (per...
4
1677
by: anonymous | last post by:
When I use the schema collection to apply many schemas to one XML instance document, I get an error if I do not qualify every element with the appropriate namespace. Both the W3C site and this article (http://www.xfront.com/ZeroOneOrManyNamespaces.html) imply that I can submit an XML instance without having to qualify each element. How do I accomplish this while still using .Net & the
2
1278
by: John Jenkins | last post by:
Hi, I have a lot of schemas to load into a schema collection. I load them in by reading each one into a XMLTextReader from disk and add them into a schema collection. I have a couple of issues to contend with. 1. The targetnamespace on all the schemas (except ones which define generic types) are the same. 2. The DefaultNamespace is the same as the Targetnamespace (I think this should be ok) 3. Some of the schemas import other sschemas...
1
1574
by: CSN | last post by:
I have two machines between which I exchange dumps a lot. On the first (Windows/cygwin), pgsql was set up with "Administrator" as the main superuser - who owns all schemas in template0 and template1. On the second machine (Linux), "postgres" is pgsql's main superuser. On whatever machines I do "createdb", the owner of the schemas in template0/1 is copied over to the schemas in the new database, even when specifying the owner parameter...
6
3520
by: Dennis Gearon | last post by:
This post is as much about getting some questions answered as leaving the following definitions in the archives for the next person. After a quick perview of the web, I came up with the following: tablespaces are a hardware issue, and totally transparent to SQL execution. It is for optimization for IO, recovery, and separating user and application usage amongst disks even in the same databases. schemas are a logical issue, and NOT...
0
1898
by: Net Virtual Mailing Lists | last post by:
I've been spending the last few days converting many databases into a single schema and have completed the process, but now I'm at somewhat of an impasse as to the best way to proceed forward.... It is important for me to explain that each of these databases has a rather different structure, going forward I'm using more of an inheritance model for each new schema, but that was simply was not possible back in the day and I hope one day to...
3
4621
by: Sami Marzouki | last post by:
Hi, What I'm trying to do is: - To write a Web.config with custom sections. (Done) - To write a xsd schema for this custom sections.(Done) - Tell the Web.config to take the two schemas. When i specify the two schemas in the schemas property of the web.config, it seems that only one is token.
0
8399
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8504
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8606
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7337
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.