c# - SSIS Web Service Task XmlNode Input POSSIBLE? -


i've scoured internet past 2 weeks , tried many different ways i'm beginning think might not possible via web service task in ssis. i've created web service task in ssis using provided wsdl - see screenshot below.

enter image description here

as can see requirement web service method pass in xml node contains filter items so:

<filteritems><filteritem filteritemid="12345">4/20/2015 12:00:00 am</filteritem></filteritems> 

this "filteritems" node nested in between xml element named "templatevalues" - see soap body:

<soap:body> <getreportresults xmlns="https://service.service.com">   <username>string</username>   <password>string</password>   <reportid>int</reportid>   <templatevalues>xml</templatevalues> </getreportresults> 

the problem i'm facing when go chose data type in variable list in ssis, there no xml data type have use string. funny part can use soapui , call same method no issues passing in:

<filteritems><filteritem filteritemid="12345">4/20/2015 12:00:00 am</filteritem></filteritems> 

here soapui call able use:

<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"      xmlns:ser="https://service.servicename.com">    <soapenv:header/>    <soapenv:body>        <ser:getreportresults>          <!--optional:-->          <ser:username>username</ser:username>          <!--optional:-->          <ser:password>12343</ser:password>          <ser:reportid>000</ser:reportid>          <!--optional:-->          <ser:templatevalues>             <filteritems><filteritem filteritemid="12345">4/20/2015 12:00:00      am</filteritem></filteritems>          </ser:templatevalues>       </ser:getreportresults>     </soapenv:body>     </soapenv:envelope> 

as can see, i've pasted xml in between element , soapui processes request no problem - why can't ssis web service task process same request?

my thoughts since ssis forcing me use string variable store xnlnode characters being parsed. here results of variable when debug , run web service task:

        value   <filteritems><filteritem filteritemid=\"12345\">4/20/2015 12:00:00 am</filteritem></filteritems>     

the debugging results show quotes have been escaped , believe part of problem. here other things i've tried:

passing in entirely encoded xml(also tried using cdata):

&lt;filteritems&gt;&lt;filteritem filteritemid=&quot;12345&quot;&gt;4/20/2015 12:00:00 am&lt;/filteritem&gt;&lt;/filteritems&gt; 

i tried creating sql task , when executed grab xml , add variable. once again @ runtime, escape characters added in quotes causing method not execute. i'm finding hard believe not common issue , there isn't easy workaround passing in xml web service task. fault in ssis or hasn't been implemented? appreciated!

it looks answer change web service accept simple types parameters. have scoured web , there seems no way dynamically create complex types consumption input values in web service task.

see also: create complex-type variables web service task


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -