Hello Bryan- > But I can't seem to find any examples of using an XML Schema with the > Apache SOAP API's. If I were the client, how do I specify that the object > I'm passing should conform to a particular xml schema? I assume a SOAP > payload can use XML Schema, but how can I use it through the Apache code?
The client doesn't specify such a thing. The service typically describes its interface with WSDL, and its up to the client to conform. Are you aware of Apache Axis? It is the follow-on to Apache SOAP, and it does support WSDL. Apache SOAP doesn't appear to have been updated for almost a year. Apache Axis has a WSDL2Java utility. You can use it to automatically create a skeleton implementation of a web service from the WSDL, as well as the client. You're probably aware of this, but just for completeness, you can incorporate your schema into the WSDL, and then use WSDL2Java to create the skeleton. We've got a step-by-step for the process here: http://www.omniopera.com/HowDoISimpleServiceAxis.html -- James Yegerlehner Omniopera: XML Schema and WSDL Authoring Software http://www.omniopera.com ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 18, 2002 1:53 PM Subject: using XML Schemas with SOAP > Hi: > > I've been able to deploy my service which accepts an object as a parameter. > Now I want to relay that information to my client by providing them with a > descriptor of some sort. From the docs I know Apache SOAP (which I am > using) cannot use WSDL. But I would at least like to describe the structure > of the parameter, so I was thinking XML Schema. > > But I can't seem to find any examples of using an XML Schema with the > Apache SOAP API's. If I were the client, how do I specify that the object > I'm passing should conform to a particular xml schema? I assume a SOAP > payload can use XML Schema, but how can I use it through the Apache code? > Or am I totally off on this concept? > > Any guidance would be appreciated. > > Thanks. > Bryan > > > This message is for the designated recipient only and may contain > privileged, proprietary, or otherwise private information. If you have > received it in error, please notify the sender immediately and delete the > original. Any other use of the email by you is prohibited. >
