M
mdupris
What I'd like to do is export data from Excel into an XML file
directly readable by C#. Currently I'm working with a ListObject, but
it can be transformed as necessary. XmlMaps.Export() does a good job
at creating a plain vanilla XML file. That's not useful, though, if I
want to import the resulting file into an ArrayList within a C#
application.
C# is looking for a SOAP envelope, e.g.
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-
ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://
schemas.xmlsoap.org/soap/envelope/" xmlns:clr="http://
schemas.microsoft.com/soap/encoding/clr/1.0" SOAP-
ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body> ...
not just an XML file like:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> ...
I've not been able to find any documentation, or examples, that
generating such a SOAP file is even possible in VBA. Has anyone ever
done this, or have hints on where I should look?
= M =
directly readable by C#. Currently I'm working with a ListObject, but
it can be transformed as necessary. XmlMaps.Export() does a good job
at creating a plain vanilla XML file. That's not useful, though, if I
want to import the resulting file into an ArrayList within a C#
application.
C# is looking for a SOAP envelope, e.g.
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-
ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://
schemas.xmlsoap.org/soap/envelope/" xmlns:clr="http://
schemas.microsoft.com/soap/encoding/clr/1.0" SOAP-
ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body> ...
not just an XML file like:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> ...
I've not been able to find any documentation, or examples, that
generating such a SOAP file is even possible in VBA. Has anyone ever
done this, or have hints on where I should look?
= M =