I've got a little c# windows service that periodically pulls xml from a web service and stores the data in a database table.
Unfortunately it's failing because the web service has occasional bad data in it - strings instead of decimals. I don't have any control over the web service (unvalidated user input from software we can't change)...
Hi,
I am trying to implement IXmlSerializable.
My class implements serializable and writes a single string. I wish to be able to export an object graph schema using XsdDataContractExporter (the standard one).
The class serializes to a simple xml.
<Urn ns='http://palantir.co.za/urn'>somestring</Urn>
My implementation of Get...
Hi,
My XmlSchemaSet add method is being ignored. TargetNamespace probably already exists.
In my loop (part of GetSchema) I am adding existing classes to the XmlSchemaSet
public static System.Xml.Schema.XmlSchemaType GetSchema(System.Xml.Schema.XmlSchemaSet xs) {
XsdDataContractExporter exporter = new XsdDataContractExporte...
the method xsdSchema.validate(); which is a method of org.eclipse.xsd runs into out of memory error while parsing the following piece of code.
please help.
...
I have created the simplest web service in c#:
public void AddData(DataSet ds)
The generated schema (Wsdl) looks like this:
<s:schema xmlns:s="http://www.w3.org/2001/XMLSchema">
...
<s:element ref="s:schema" />
...
</s:schema>
Note the schema does not contain any import/include elements.
I am trying to load this schema to a c# ...
I need to find all types in a given SchemaSet.
What I do today is:
1) Iterate all XmlSchemaTypes in SchemaSet.GlobalTypes.Values.
2) Iterate all values of XmlTypeCode enum
I find this as insufficient because some XmlSchemaTypes can be defined in the depth of the schema(i.e not as a GlobalType).
Is there a way in .NET I can get all t...