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 3 1279
> 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******@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.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
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 genericBooleanResponse
or genericIntegerResponse 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******@discussions.microsoft.com> wrote in message news:55**********************************@microsof t.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
What you describe makes sense. No problem with that.
-D
"Modica82" <Mo******@discussions.microsoft.com> wrote in message
news:A0**********************************@microsof t.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 genericBooleanResponse or genericIntegerResponse 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******@discussions.microsoft.com> wrote in message news:55**********************************@microsof t.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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....
...
|
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...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
| |