SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS Web Services Task question


SSIS Web Services Task question

Author
Message
Alan Lewis
Alan Lewis
Forum Newbie
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: General Forum Members
Points: 8 Visits: 376
I am new to SSIS and trying to add a variable to the Web Service Task Input section. In the "Enter Values for complex type", there are 3 input variables that I can type in. Instead of typing them in on that screen, I would like to enter them in as a variable and check the variable box in the fourth column. How do I format a variable for multiple values? I need to pass in a limit, page & sortfield values.
pcq0125
pcq0125
SSChasing Mays
SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)

Group: General Forum Members
Points: 608 Visits: 371
Alan,
I am having the same problem. Have you figure out how to input multiple complex value types?

Thanks,
MMartin1
MMartin1
SSCertifiable
SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)

Group: General Forum Members
Points: 7313 Visits: 2033
I think you mean to say that you want one variable to hold three values... and pass this to one method on the web service.

You can pass the values as a string in comma or other delimination ('val1, val2,val3'). This would depend I think totally on the method being called and how it wants its input. Did I understand correctly?
Thanks

----------------------------------------------------
How to post forum questions to get the best help
pcq0125
pcq0125
SSChasing Mays
SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)SSChasing Mays (608 reputation)

Group: General Forum Members
Points: 608 Visits: 371
That is correct. However my method is an XML complex types. Will the delimited works without the xml tags? I have tried inserted xml string into the variable but got an object type error? Do you know how I can create an object by u by retrieving data from a database?


Thanks for your help.
MMartin1
MMartin1
SSCertifiable
SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)SSCertifiable (7.3K reputation)

Group: General Forum Members
Points: 7313 Visits: 2033
The XML data type is not intended to be comma delimited, it is a different way of structuring data. So you are not able to pass the whole xml data as a string? I have no experience with passing a xml structure. Does your xml data originate from Sql Server? One thing you could try is setting your variable as a OBJECT type and pass it the results from a xml formatted recordset.

Example :
SELECT COl1, COl2, ... , Coln
FROM MyTable
FOR XML PATH ('YourRecords'), ELEMENTS

If this does not work you may need to add another method to the web service to accept a string (tags and all) and cast it into XML on the backend.

----------------------------------------------------
How to post forum questions to get the best help
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search