J
jasonpaulplank
All,
My company is new to Web Services and we are doing some "prototyping"
with them. My boss wants to be able to have our clients (some .NET,
some Java, etc) call the web service and get back the appropriate
information.
If sounds like the perfect application for Web Services; however, what
"we" need to do is; depending on who is calling and what they are
calling it with, we want the return values/objects to differ.
We are a Financial institution so I will give you a "real world"
example We want to have a GetFundInformation webservice that takes the
name/acronym of a Fund. Depending on the name of the fund given, we
need to look up the type of fund (is it a bond fund, municipal fund,
etc). Different types of funds have different
attributes/fields/properties (for example, a bond fund might have a
maturity date but a municipal fund may have a state held) so the return
types would be different (again, different properties).
Another consideration is that, depending on who is calling the web
service, you may or may not be able to see certain attributes of the
fund. Joe Schmo off the street may not be allowed to see the Unapprove
Quarterly Interest Rate but someone in our Legal department can.
Is there a way to dynamically generate a class (and return it) at
runtime? If so, how well does this work with other environments (ie
Java)? Someone suggested returning an XMLDocument instead of a class
but would we lose anything as far as interoperability with other
environments (wouldn't we have to pass XSD documents to all of our
consumers)?
Sorry for my ignorance,
Jason
My company is new to Web Services and we are doing some "prototyping"
with them. My boss wants to be able to have our clients (some .NET,
some Java, etc) call the web service and get back the appropriate
information.
If sounds like the perfect application for Web Services; however, what
"we" need to do is; depending on who is calling and what they are
calling it with, we want the return values/objects to differ.
We are a Financial institution so I will give you a "real world"
example We want to have a GetFundInformation webservice that takes the
name/acronym of a Fund. Depending on the name of the fund given, we
need to look up the type of fund (is it a bond fund, municipal fund,
etc). Different types of funds have different
attributes/fields/properties (for example, a bond fund might have a
maturity date but a municipal fund may have a state held) so the return
types would be different (again, different properties).
Another consideration is that, depending on who is calling the web
service, you may or may not be able to see certain attributes of the
fund. Joe Schmo off the street may not be allowed to see the Unapprove
Quarterly Interest Rate but someone in our Legal department can.
Is there a way to dynamically generate a class (and return it) at
runtime? If so, how well does this work with other environments (ie
Java)? Someone suggested returning an XMLDocument instead of a class
but would we lose anything as far as interoperability with other
environments (wouldn't we have to pass XSD documents to all of our
consumers)?
Sorry for my ignorance,
Jason