dynamic xsd to webservice

J

jhgonzales

There is a schema (xsd file) located on a web address that I want to use to
validate xml files sent my webservice. I'd like that schema to be part of the
wsdl of my web service. I could create an class file using xsd.exe and use it
in the web service, but the problem with that is that the schema could change
since I am not the author of the schema, but I am expected to receive and
validate xml files formatted for that schema.

How could I create my web service to "publish" the "dynamic" schema as part
of the wsdl of my web service?

Thanks,
Jhgonzales
 
B

Bill Priess \(MCP\)

Just my 2 cents, BUT...

I'm not 100% certain that you can add external schemas to your WSDL (I've
never seen or heard of it being done, but that doesn't mean that I am
right.. lol), but there is no reason why your web service could not do the
validation itself. Consider re-architecting the web service to receieve an
xml file (or string) and do the validation on the web service side rather
than the client.

HTH,
Bill Priess, MCP
 
J

jhgonzales

I haven't heard or found of anyone doing this either. I wanted to get fancy
with the web service and expose the schema in the wsdl and enable schema
validation in the web service so as to keep me from having to validate the
document myself.

That is the direction I was going to use if there was no other option, I
should have mentioned that :)

Thanks for the response.

Regards,
JHGonzales
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top