<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Send to webservice with a complete XML document inside a parameter</title><link>https://www.infopathdev.com:443/forums/thread/57149.aspx</link><pubDate>Wed, 21 Jul 2010 12:03:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57149</guid><dc:creator>mlarsen_dk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57149.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=57149</wfw:commentRss><description>&lt;p&gt;Ahaaa! I figured it out myself :-)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If anyboby runs into the same problem, I&amp;#39;ll post my findings here:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;To get the XML structure to look like above, you need to modify the settings for the WebService connection. Specifically, you need to select the parameter witch contains the XML you want to transfer within the tag, and then check the &amp;quot;Send data as a string&amp;quot; checkbox in the bottom of the parameters.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s it, it&amp;#39;s really that simple - no coding or anything :-)&lt;/p&gt;
&lt;p&gt;/Michael&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Send to webservice with a complete XML document inside a parameter</title><link>https://www.infopathdev.com:443/forums/thread/57115.aspx</link><pubDate>Tue, 20 Jul 2010 13:04:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57115</guid><dc:creator>mlarsen_dk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57115.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=57115</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m trying to make an Inforpath 2010 form which shoul call an existing WebService. The webservice is not under our control, so I can&amp;#39;t change the way it works, only hope I can gat InfoPath to create the request to the likings of the Webservice.&lt;/p&gt;
&lt;p&gt;The webservice will accept a request like this (notice that the actual XML we&amp;#39;re sending is embedded in the &amp;lt;XML&amp;gt; tag but that the tags within this tag needs to be HTML formatted, ie. &amp;amp;lt; and &amp;amp;gt; ):&lt;br /&gt;For the sake of simplicity, I&amp;#39;v only included one of the sections of the embedded XML, in real life it is considerably larger.&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;SOAP-ENV:Envelope xmlns:SOAPSDK1=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema"&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; xmlns:SOAPSDK2=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema-instance"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot; xmlns:SOAPSDK3=&amp;quot;&lt;a href="http://schemas.xmlsoap.org/soap/encoding/"&gt;http://schemas.xmlsoap.org/soap/encoding/&lt;/a&gt;&amp;quot; xmlns:SOAP-ENV=&amp;quot;&lt;a href="http://schemas.xmlsoap.org/soap/envelope/"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/a&gt;&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;SOAP-ENV:Body&amp;gt;&lt;br /&gt;&amp;lt;tns:OpretKladde xmlns:tns=&amp;quot;&lt;a href="http://heweb.dk/webservices/hexml/"&gt;http://heweb.dk/webservices/hexml/&lt;/a&gt;&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;tns:brugernavn&amp;gt;XXXX&amp;lt;/tns:brugernavn&amp;gt;&lt;br /&gt;&amp;lt;tns:adgangskode&amp;gt;XXXXXX&amp;lt;/tns:adgangskode&amp;gt;&lt;br /&gt;&amp;lt;tns:xml&amp;gt;&amp;amp;lt;kladde&amp;amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;lt;eftersyn&amp;amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;lt;ejendoms_forsikring&amp;amp;gt;Forsikring&amp;amp;lt;/ejendoms_forsikring&amp;amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;lt;reference&amp;amp;gt;MIL-001&amp;amp;lt;/reference&amp;amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;lt;tidl_tilstandsrapport&amp;amp;gt;Fra 2007&amp;amp;lt;/tidl_tilstandsrapport&amp;amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;lt;tidl_energimaerke&amp;amp;gt;Fra 2008&amp;amp;lt;/tidl_energimaerke&amp;amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;lt;bestiller&amp;amp;gt;Forsikringsselskab&amp;amp;lt;/bestiller&amp;amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;lt;besigt_dato&amp;amp;gt;2010-07-20&amp;amp;lt;/besigt_dato&amp;amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;lt;bbr_dato&amp;amp;gt;2010-06-30&amp;amp;lt;/bbr_dato&amp;amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;lt;bemaerkning&amp;amp;gt;sdfsfsd&amp;amp;lt;/bemaerkning&amp;amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;lt;starttid&amp;amp;gt;08:00&amp;amp;lt;/starttid&amp;amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;lt;sluttid&amp;amp;gt;10:00&amp;amp;lt;/sluttid&amp;amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;amp;lt;/eftersyn&amp;amp;gt;&lt;br /&gt;&amp;amp;lt;/kladde&amp;amp;gt;&lt;br /&gt;&amp;lt;/tns:xml&amp;gt;&amp;lt;/tns:OpretKladde&amp;gt;&amp;lt;/SOAP-ENV:Body&amp;gt;&amp;lt;/SOAP-ENV:Envelope&amp;gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve managed to generate a request where the &amp;amp;lt; and &amp;amp;gt; is just regular &amp;lt; and &amp;gt;, but the webservcie will not accept this.&lt;/p&gt;
&lt;p&gt;Is there any way I can generate the internal XML structure like the above example?&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Michael Larsen&lt;/p&gt;</description></item></channel></rss>