Hi Tony
I have a few...Some on this list might disagree,
but it is always nice with a discussion.
I have done this, on several projects, and it works
very well, especially for interop.
The main point is: Use Schemas
1.
Define a schema for each message you want your
webservice to process.
Lets call these schemas for
message-schemas.
1 a)
Typically a "call" to a
webservice consists of some input message and maybe some output message.
Define a schema for both.
1 b)
When you define the schema for the messages, the
"value objects" will logically appear to you. Value objects in this context is
types (defined in schemas) for parameters you pass in the message and return
values of the message.
Outcome of 1:
You have a schema for each webservice that exactly
defines request/response messages for each web service method.
2.
As pointed out in 1 b) schemas for the
parameter/return types can/must also be defined. This might be an Order type,
Customer type, etc.
Lets call these schemas for
type-schemas.
2 a)
Define these parameter/return types in a schema,
too.
Outcome of 2:
You have a schema (or all in one schema) for
each parameter/return type that each webservice method must be able to
process.
Over time you'll have a "domain model" of types/classes described in
schemas. 3.
Use imports between schemas (both type-schemas and
message-schemas) to construct your WSDL document.
a) Import type-schemas in your message-schemas as
needed by parameter/return types.
b) Import message-schemas in your WSDL document as
needed.
Outcome of all three:
- You have a clean separation and description (in
terms of schemas) of the services a webservice provides and the "types of data"
these service operates on.
- Your WSDL doesn't get cluttered with
types
Anyone... comments on these steps are
welcome...
Regards
Henrik
|
- Re: Best Practice NJ Rogers, Learning and Research Technology
- Re: Best Practice tony . q . weddle
- Re: Best Practice Joe Plautz
- Re: Best Prac... tony . q . weddle
- Re: Best... smcardle
- Re: Best... Joe Plautz
- Re: Best... HG
- Re: Best Prac... Anand Natrajan
- Re: Best... Joe Plautz
- Re: ... Anand Natrajan
- Re: Best Practice HG
- Re: Best Practice tony . q . weddle
- Re: Best Practice HG
- RE: Best Prac... Anne Thomas Manes
- RE: Best Prac... Anne Thomas Manes
- RE: Best Practice Anne Thomas Manes
- RE: Best Practice Anne Thomas Manes
- Re: Best Practice HG
- RE: Best Practice Anne Thomas Manes
- RE: Best Practice Anne Thomas Manes
- Re: Best Practice HG