<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>9 Mar 2016 17:26:00 Z</lastBuildDate><pubDate>7 Mar 2016 10:40:00 Z</pubDate><description>Hi all,&#13;
&#13;
I need to build and sign an XML file called Application Request and finally sending it to a bank using a webservice called CorporateFileService. This goes beyond my procedurally thinking brains, so I need help from xml/ws specialists to get started.&#13;
&#13;
The necessary schema, certificate and WSDL files are available here:&#13;
http://www.nordea.fi/en/corporate-customers/payments/electronic-banking/testing.html#tab=Web-Services&#13;
&#13;
Aditional documents are here:&#13;
http://www.nordea.fi/en/corporate-customers/payments/electronic-banking/web-services.html#tab=Service-descriptions&#13;
&#13;
And the detailed message descriptions (in English, despite the link text's language) are here:&#13;
http://www.finanssiala.fi/maksujenvalitys/dokumentit/WebServices_Messages_20081022_105.pdf#search=web%20services%20kuvaus&#13;
&#13;
To start with, I need to build an "ApplicationRequest" XML file like below, where ... (3 dots) dots indicates that a portion of the string has been cut away. I have all the data prepared, the content base 64 -coded and the certificate containing the provate key in a separate file, I just need to know how to insert them into an xml file like this:&#13;
(Note: &lt;&gt; have been replaced with [] to keep it readable, the smiley has replaced characters ":p")&#13;
[ApplicationRequest xmlns="http://bxd.fi/xmldata/"] [CustomerId]679155330[/CustomerId] [Command]UploadFile[/Command] [Timestamp]2010-09-13T13:04:57.768+03:00[/Timestamp] [Environment]PRODUCTION[/Environment] [TargetId]11111111A1[/TargetId] [SoftwareId]MyProgram[/SoftwareId] [FileType]NDCORPAYS[/FileType] [Content]PD94bWwgdmVy ... dW1lbnQ+[/Content] [Signature xmlns="http://www.w3.org/2000/09/xmldsig#"] [SignedInfo] [CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"/] [SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/] [Reference URI=""] [Transforms] [Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/] [/Transforms] [DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/] [DigestValue]qBXne/Fko6yvVadNZVpbQQ8afWI=[/DigestValue] [/Reference] [/SignedInfo] [SignatureValue]fOJ3EwA ... 4Kd0o=[/SignatureValue] [KeyInfo] [X509Data] [X509Certificate]MIID+jCCAuKg ... BPkZp8OKo=[/X509Certificate] [X509IssuerSerial] [X509IssuerName]2.5.4.5=#130b3531363430362d30313230,CN=Nordea role-certificates CA 01,O=Nordea Bank AB (publ),C=SE[/X509IssuerName] [X509SerialNumber]13070788[/X509SerialNumber] [/X509IssuerSerial] [/X509Data] [/KeyInfo] [/Signature] [/ApplicationRequest] The schema looks like this (middle part cut away):&#13;
[?xml version="1.0" encoding="UTF-8"?] [!-- edited with XMLSpy v2009 (http://www.altova.com) by Petri Luoto (Nordea) --] [xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bxd="http://bxd.fi/xmldata/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://bxd.fi/xmldata/" elementFormDefault="qualified" attributeFormDefault="unqualified"] [xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema.xsd"/] [xs:element name="ApplicationRequest"] [xs:annotation] [xs:documentation]Wrapper for data. Used for transmitting data. Can be XML Digital Signed.[/xs:documentation] [/xs:annotation] [xs:complexType] [xs:sequence] [xs:element name="CustomerId" nillable="false"] [xs:simpleType] [xs:restriction base="xs:string"] [xs:minLength value="1"/] [xs:maxLength value="16"/] [/xs:restriction] [/xs:simpleType] [/xs:element] [xs:element name="Command" nillable="false" minOccurs="0"] [xs:simpleType] [xs:restriction base="xs:string"] [xs:maxLength value="32"/] [xs:minLength value="1"/] [/xs:restriction] [/xs:simpleType] [/xs:element] [xs:element name="Timestamp" type="xs:dateTime"/] ... (here many elements have been cut away) ... [xs:element name="Content" type="xs:base64Binary" nillable="true" minOccurs="0"/] [xs:element ref="ds:Signature" minOccurs="0"/] [/xs:sequence] [/xs:complexType] [/xs:element] [xs:simpleType name="EnvironmentCode"] [xs:annotation] [xs:documentation]Production or Test[/xs:documentation] [/xs:annotation] [xs:restriction base="xs:NMTOKEN"] [xs:pattern value="(PRODUCTION|TEST)"/] [/xs:restriction] [/xs:simpleType] [/xs:schema] So how do I code this?&#13;
I suppose I need to start with something like this:&#13;
xAppReq is xmlDocument [description="ApplicationRequest"] xNode is xmlNode //Or dynamic?!?!? How to continue?&#13;
&#13;
Best regards&#13;
Ola</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file/read.awp</link><title>[WD19] How to build and sign an XML file?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56774/read.awp</comments><pubDate>9 Mar 2016 17:26:00 Z</pubDate><description>Hi Ruben,&#13;
&#13;
Thank you very much; it works like you said. I tried this also earlier, but then it didn't work -- possibly because…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56774/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56774/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file/read.awp">[WD19] How to build and sign an XML file?</source><title>Re: [WD19] How to build and sign an XML file?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56771/read.awp</comments><pubDate>9 Mar 2016 12:52:00 Z</pubDate><description>Hi. If you use a XSD file you don't need assign the namespace. Windev add it when you chech and save the xml.&#13;
&#13;
Linea is xmlDoc…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56771/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56771/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file/read.awp">[WD19] How to build and sign an XML file?</source><title>Re: [WD19] How to build and sign an XML file?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56768/read.awp</comments><pubDate>9 Mar 2016 11:31:00 Z</pubDate><description>Namespace did the trick of adding the attribute to the first node, but it caused also a problem:&#13;
xAppReq is xmlDocument xNamesp…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56768/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56768/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file/read.awp">[WD19] How to build and sign an XML file?</source><title>Re: [WD19] How to build and sign an XML file?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56746/read.awp</comments><pubDate>8 Mar 2016 11:56:00 Z</pubDate><description>Thanks Allard,&#13;
&#13;
I'll try using the namespace to add the attribute.&#13;
&#13;
Best regards&#13;
Ola</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56746/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56746/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file/read.awp">[WD19] How to build and sign an XML file?</source><title>Re: [WD19] How to build and sign an XML file?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56740/read.awp</comments><pubDate>8 Mar 2016 08:29:00 Z</pubDate><description>Hi,&#13;
&#13;
I used the namespace for the ubl stuff ( xml invoicing )&#13;
&#13;
Maybe this helps:&#13;
&#13;
sPath_Pdf is string&#13;
sPath is string&#13;
xm…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56740/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56740/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file/read.awp">[WD19] How to build and sign an XML file?</source><title>Re: [WD19] How to build and sign an XML file?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56737/read.awp</comments><pubDate>7 Mar 2016 23:20:00 Z</pubDate><description>Hi again,&#13;
&#13;
I think I got over the first treshold, and my code now looks like this:&#13;
xAppReq is xmlDocument xNode is xmlNode xN…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56737/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file-56737/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56728-wd19-how-build-and-sign-xml-file/read.awp">[WD19] How to build and sign an XML file?</source><title>Re: [WD19] How to build and sign an XML file?</title></item></channel></rss>
