TempBlob.CreateOutStream(outstream, TextEncoding::UTF8); xmlport.Export(Xmlport::"My XmlPort", outstream); TempBlob.CreateInStream(instream, TextEncoding::UTF8); XmlDocument.ReadFrom(instream, xmldoc); xmldoc.SelectSingleNode('xs:schema', node); node.Remove();
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <My_XmlPort> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:complexType name="Quadro01" mixed="true"> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" name="Q01C1De" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="unbounded" name="Q01C1A" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="unbounded" name="Q01C2" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:complexType name="Quadro02" mixed="true"> <xs:sequence>
Answers
I think that a better way is to use SoapUI to create the XML from that output that is in fact a WSDL.
Regards.
What are you actually doing, i.e. how do you use the xmlport to generate output?
The schema should not be part of the generated xml document, unless designed like this.
Just realised that I was being dumb and overthinking this. Completely forgot that there's a xmlport property InlineSchema that solves this.
Thanks to you both for your time