Passing Variable Types back to clients
- From: "ScottReynolds" <scott@xxxxxxxxxxxx>
- Date: Sun, 24 Apr 2005 11:10:33 +0100
I am currently working on a WS project where we want to execute a varable
action based on the incoming message. e.g. I would have an arguement in the
incoming message called action Name that would state which action to
execute.
I have a project with about 20 services but only three external web
services. Two service for discovery and one for execution. These webservices
reflect on the underlying types to declare ther definitions to a client.
Based on that incoming message I want to return a xml document that looks
similar to the following:
<response>
<actionName>TestAction</Action>
<result>Completed</result>
<payload>
<Tests>
<Test name="SampleTest" result="passed" time="123">
<Test name="SampleTest" result="passed" time="123">
<Test name="SampleTest" result="passed" time="123">
<Test name="SampleTest" result="passed" time="123">
<Test name="SampleTest" result="passed" time="123">
</Tests>
</payload>
</response>
Payload is a variable xml Document and I have attached that document by
using the default serialization mechanisms and payload is declare on the
outgoing type as a XmlDocument
The issue I have with this solution is that there is no XSD defined for the
payload document as it is always changing. Is the lack of XSD an issue?
Should for each of the element in payload provide a name space reference?
Scott.
.
- Prev by Date: what are the best online resources for web services issues?
- Next by Date: Modifying the http/soap/xml after WS has created it, before it is
- Previous by thread: what are the best online resources for web services issues?
- Next by thread: Modifying the http/soap/xml after WS has created it, before it is
- Index(es):
Relevant Pages
|