[xsd-users] http://www.w3.org/2003/05/soap-envelope/

Boris Kolpackov boris at codesynthesis.com
Thu Nov 13 01:28:56 EST 2008


Hi Mirko,

Mirko Kohns <mirko.kohns at gmail.com> writes:

> I have various troubles generating the c++ and header files with
> xsd.exe using this schema:
> 
> http://www.w3.org/2003/05/soap-envelope/

In the future it would be helpful to know more details about the
problems you experience.


> Do you know if your framework can deal with this schema in mode cxx-tree?

Yes, it can (we will probably add a SOAP example based on this schema
in the next version of XSD).

I downloaded the above schema and saved it as soap-envelope.xsd. I
also downloaded xml.xsd which it includes from :

http://www.w3.org/2001/xml.xsd

Then I compiled both schemas with the following options:

--namespace-map http://www.w3.org/2003/05/soap-envelope=soap_envelope 
--namespace-map http://www.w3.org/XML/1998/namespace=xml 
--location-map http://www.w3.org/2001/xml.xsd=xml.xsd 
--generate-wildcard 
--root-element Envelope

If you define your message bodies in XML Schema and generate C++
classes from them then you will most likely want to parse the
content matched by the wildcards (any & anyAttribute) in the
Body type directly into these classes. For more information
on how to do this see the 'wildcard' example in the 
examples/cxx/tree/ directory.

Boris




More information about the xsd-users mailing list