Hi,
I'm trying to make an Inforpath 2010 form which shoul call an existing WebService. The webservice is not under our control, so I can't change the way it works, only hope I can gat InfoPath to create the request to the likings of the Webservice.
The webservice will accept a request like this (notice that the actual XML we're sending is embedded in the <XML> tag but that the tags within this tag needs to be HTML formatted, ie. < and > ):
For the sake of simplicity, I'v only included one of the sections of the embedded XML, in real life it is considerably larger.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:OpretKladde xmlns:tns="http://heweb.dk/webservices/hexml/">
<tns:brugernavn>XXXX</tns:brugernavn>
<tns:adgangskode>XXXXXX</tns:adgangskode>
<tns:xml><kladde>
<eftersyn>
<ejendoms_forsikring>Forsikring</ejendoms_forsikring>
<reference>MIL-001</reference>
<tidl_tilstandsrapport>Fra 2007</tidl_tilstandsrapport>
<tidl_energimaerke>Fra 2008</tidl_energimaerke>
<bestiller>Forsikringsselskab</bestiller>
<besigt_dato>2010-07-20</besigt_dato>
<bbr_dato>2010-06-30</bbr_dato>
<bemaerkning>sdfsfsd</bemaerkning>
<starttid>08:00</starttid>
<sluttid>10:00</sluttid>
</eftersyn>
</kladde>
</tns:xml></tns:OpretKladde></SOAP-ENV:Body></SOAP-ENV:Envelope>
I've managed to generate a request where the < and > is just regular < and >, but the webservcie will not accept this.
Is there any way I can generate the internal XML structure like the above example?
Best regards,
Michael Larsen