Dynamically set variable to pass to foreach loop and exec web service inputs

Hi, I'm a little lost (and new) on where to begin with this. Using SSIS 2008 r2 I've been able to create a small package to connect to a currency converter web service and
select the hardcoded supplied by a web service. However, doing it this way I would have to create multiple mini sequence containers and select the currency to and from country codes. I would like to create a user::to and user::from variable and then run a
sql task to set the variables. 
Ie, select distinct( [to_countryCD], [from_CountryCD] ) from tbl_CountryCd
and then run my sequence as a forloop dynamically passing the 'to' and 'from' country codes. Any idea's would really be appreciated.

First you have to save the result of 
select distinct( [to_countryCD], [from_CountryCD] ) from tbl_CountryCd
into object variable. This result set will be fed to For each loop container (FELC). Inside FELC, if you need to iterate through this result set, you will have either use the input parameter method of passing the values to the exec sql task (which is inside
FELC) or build dynamic expression using SqlStatementSource property.
http://blog.boxedbits.com/archives/34
http://www.toadworld.com/platforms/sql-server/b/weblog/archive/2013/01/17/ssis-replace-dynamic-sql-with-variables.aspx
Thanks, hsbal

Similar Messages

  • Dynamically set Variables

    I am trying something like below with no luck. I am using APEX 4.1
    DECLARE
    l_exists INTEGER;
    i VARCHAR(50);
    BEGIN
    i := 'PAT_FIRST_NAME';
    i := :P2_ || i;
    select answer into ':P2_' || i from JSW1.CHND
    where question = 'PAT_FIRST_NAME' and HAR_ID = 811810075;
    end;
    What I am trying to do is build a cursor that I will then pass in the HAR_ID and question to. Then I will set a variable from this result, but it s not setting the variable. Any help would be appreciated. Thank you.

    What you are attempting simply is not possible in PL/SQL. You absolutely can not dynamically specify a variable name.
    All I can suggest is an explicit* case to set one variable or the other based on the value of QUESTION.
    CASE QUESTION
        WHEN 'PAT_FIRST_NAME' THEN
                SELECT....
                INTO :P2_PAT_FIRST_NAME
        WHEN 'PAT_LAST_NAME THEN
                SELECT....
                INTO :P2_PAT_LAST_NAME
    END-Joe

  • Dynamic Set Variable

    I am having a peculiar issue with the Set function. See the following code.
    In a workflow I'm performing this code and yet it seems as though the user object is not actually ever modified.
    <set name='resourcename'>
    <s>server1</s>
    </set>
    <set name='attributename'>
    <s>firstname</s>
    </set>
    <set name='fqname'>
    <concat>
    <s>user.accounts[</s>
    <ref>resourcename</ref>
    <s>].</s>
    <ref>attributename</ref>
    </concat>
    </set>
    <set>
    <ref>fqname</ref>
    <s>testvalue</s>
    </set>
    When I trace <ref>user.accounts[server1].firstname</ref> it returns testvalue correctly but when I check in the view it never updates the resource and does not show in the WFTrace. I'm thinking somehow that this user object is never truly updated. Anyone know of a better way to do this dynamically generated variable name?

    When you check out the view are you assigning a Form?
    The firstname attribute appears in the default user form and will be mapped from the global namespace. This can cause unexpected issues.
    While you may not be directly using the form, if one is not assigned... it will use the default.
    Create a completely empty form called myEmptyForm and add the variable Form to the checkout view with the value myEmptyForm.
    David

  • SSIS and the FOREACH LOOP and no Connection String Property

    Hello!
    I am tryng to set up a Foreach Loop. I have everything configured properly but the Expression Property does not have Connection String in it as is shown in several examples. Anyone have any suggestions?
    Thanks
    Mike
    Mike Kiser

    Mike,
    I think you are confusing Flat file connection manager's conn string property with for each loop (FELC). As Arthur said, FELC doesn't have any conn strings !!!. As per xample, you have to got to properties of the flat file conn manager (highlight FF conn
    manager and press F4). Then hit eliipses and there you'll see connecting string property in dropdown. This is explained in the link you are seeing !!!!
    Thanks, hsbal

  • Passing SOAP header while invoking a web service partner link from BPEL

    I followed the steps of adding bpelx.inputheadervariable. Which is supposed to add the soad header. But after running the BPEL process if I see the message in the console, I don't see the SOAP header. Is there any way to see how the SOAP header is passed or did I set it incorrectly?
    This is what the message looks like:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Header>
    <ns0:Context xmlns:ns0="http://www.informatica.com/wsh">
    <SessionId>[string]</SessionId>
    </ns0:Context>
    </soap:Header>
    <soap:Body>
    <ns0:StartWorkflow xmlns:ns0="http://www.informatica.com/wsh">
    <DIServiceInfo>
    <DomainName>[string]</DomainName>
    <ServiceName>[string]</ServiceName>
    </DIServiceInfo>
    <FolderName>[string]</FolderName>
    <WorkflowName>[string]</WorkflowName>
    <WorkflowRunId>[int]</WorkflowRunId>
    <WorkflowRunInstanceName>[string]</WorkflowRunInstanceName>
    <Reason>[string]</Reason>
    <Attribute>
    <Name>[string]</Name>
    <Value>[string]</Value>
    </Attribute>
    <Key>
    <Key>[string]</Key>
    <mustUse>[boolean]</mustUse>
    </Key>
    <ParameterFileName>[string]</ParameterFileName>
    <Parameters>
    <Parameters>
    <Scope>[string]</Scope>
    <Name>[string]</Name>
    <Value>[string]</Value>
    </Parameters>
    </Parameters>
    <RequestMode>[ETaskRunMode]</RequestMode>
    <TaskInstancePath>[string]</TaskInstancePath>
    <IsAbort>[boolean]</IsAbort>
    <OSUser>[string]</OSUser>
    </ns0:StartWorkflow>
    </soap:Body>
    </soap:Envelope>
    I am trying to invoke the 'startworkflow' operation of Informatica web service Dataintegration.wsdl
    Edited by: user611166 on Apr 1, 2010 10:10 AM

    Hi,
    Try using obtunnel with your bepl console.
    Alternatively, if your server is on unix/ linux, try tcpdump to capture packets to a particular server and then open the file in wireshark to analyse the contents.
    Wish SOA suite would allow us to view this by default!
    Regards,
    Sappy

  • How to Pass BAPIPWD from Export workflow in Web Services Connector MA

    Hello,
    I need to export users from FIM to SAP using web services connector. I have created Export Work flow and added the values like user name , first name, last name and etc. I couldnt set the value for password because the data type is BAPIPWD. Could you please
    tell me how to create a user in SAP from FIM using Export Workflow and how to pass the password parameter.
    Thanks,
    Nallasivan

    Hi you can add parameters to your FPM application and launch the aplication from POWL action.
    Insder FPM, using FPM parameters you can access these varaibles inside your local webdynpro component.
    Regards
    Ravi

  • How to pass credentials/saml token access sharepoint web service ex:lists.asmx when sharepoint has single sign on with claims based authentication

    How to pass credentials/saml token exchange to the sharepoint web service ex:lists.asmx when sharepoint has single sign on with claims based authentication 
    Identity provider here is Oracle identity provider 
    harika kakkireni

    Hi,
    The following materials for your reference:
    Consuming List.asmx on a claims based sharepoint site
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/f965c1ee-4017-4066-ad0f-a4f56cd0e8da/consuming-listasmx-on-a-claims-based-sharepoint-site?forum=sharepointcustomizationprevious
    Sharepoint Claims based authentication and Single Sign on
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2dfc1fdc-abc0-4fad-a414-302f52c1178b/sharepoint-claims-based-authentication-and-single-sign-on?forum=sharepointadminprevious
    Sharepoint Claim Based Authentication Web Service issuehttp://social.msdn.microsoft.com/Forums/office/en-US/dd4cc581-863c-439f-938f-948809dd18db/sharepoint-claim-based-authentication-web-service-issue?forum=sharepointgeneralprevious
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Dynamic and embeddable web service client

    Hello,
    I want to write a web service client application that can run on JSE (not requiring JEE5, J2EE 1.4, an enterprise server or anything). This should be no problem with JSE6. However, I would like the client application to run on embedded devices (cell phones, PDA's etc.) as well. So I would like to know if web service clients are supported by the embedded JAVA runtimes in such devices. One additional requirement is that the webservices will only be accessible over SSL. So all clients will need support for SSL as well.
    The other problem (and probably the more difficult one) is this: Using the WDSL file, stubs for the client can be generated. However, the WDSL files (at least the ones generated by the SUN enterprise server) contain the IP-address of the server. In the final deployment of the system the IP-address of the server will be different from the one of the development system. Secondly, the same service might be deployed on different servers and needs to be accessible from the same client. So I'm looking for a mechanism to still use stubs generated from the WDSL file, but dynamically configure the IP address of the server to which the client should connect.
    Any help here is greathly appreciated.

    Hey Rishika,
    You don't need tomcat to run a client. A web service client does not need a container and can be run without it.
    Karan

  • Identity 6.0 issues passing SSO token from JSP to web service

    Hi,
    Environment: Solaris 8, SunOne IS 6.0, SP1, Sun One WebServer
    We're using a JSP (based on the samples) to pass an SSO token to a java based web-service (everthing is running locally on one server):
    The token string resulting from calling mgr.createSSOToken is different from the value examined in the browser/JSP initial cookie and is practically useless when passed to the web-services for use as an SSO token (doesn't work and IS doesn't recognize it as a valid session/token).
    Here's the code:
    >>>>>>>
    SSOTokenManager mgr = SSOTokenManager.getInstance();
    SSOToken token;
    if (request.getParameter("token") == null)
    token = mgr.createSSOToken(request);
    else
    token = mgr.createSSOToken(request.getParameter("token"));
    mgr.validateToken(token);
    >>>>>>>>
    What are we doing wrong?

    not resolved closed

  • Need HELP passing raw SOAP to JAX-RPC Web Service

    Ive recently downloaded the web services development kit from the SUN site and have got all the examples to work fine.
    What I am now trying to do is pass RAW SOAP to the HelloWorld JAX-RPC example,
    Ive managed to get the service to call the sayHello function with no params which returns 'Hello NULL'.
    I can't however get any parameters to be passed to the sayHello function,
    Below is the existing SOAP ive got calling the function with no params.
    <?xml version="1.0"?>
    <soap:Envelope soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><sayHello xmlns="http://hello.org/wsdl">????????????</sayHello></soap:Body></soap:Envelope>
    If anybody could tell me what I need to replace ???????????? with then I would be more than gratefull.
    P.s If I changed the webservice to accept multiple arguments what would I need to put in my SOAP?
    Yours,
    Cris.

    Thanks for your help on this one. However there is still one thing I don`t understand.
    In the example SOAP I posted on the orignal message I have added the namespace ns1 pointing to
    http://hello.org/wsdl
    The example you posted goes to http://caller.org/wsdl
    below is SOAP you posted for me.
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:ns0="http://caller.org/wsdl"
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <env:Body>
    <ns0:sayHello>
    <String_1 xsi:type="xsd:string">some text</String_1>
    </ns0:sayHello>
    </env:Body>
    </env:Envelope>
    This returns me an error! However If I change ns0 to point to http://hello.org/wsdl it all works perfectly.....
    If you open a browser and go to http://hello.org/wsdl OR http://caller.org/wsdl neither URL points to anything!!!!!!! All the other namespaces used point to valid XML Schemas, which makes sense.
    So how can this SOAP message work if the namespace ns0 is nothing???????????
    Yours,
    Cris.

  • How to set clock skew property at client side when invoking web services

    Hello,
    now we're using weblogic 11g, we want to set the clock skew properties.
    in server side, we "Create a Web Service security" to set the "Clock Skew" property, change it value from 60000 to 120000, then we invoke the web service from stand-alone client on another machine, the clock skew between the server machine an client machine is 80000. but it still throw exception:
    javax.xml.ws.soap.SOAPFaultException: Message Created time past the current time even accounting for set clock skew+
    at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processResponse(TubeFactory.java:241)+
    we think we still need set the clock skew at client side. in webloigc8.1 doc(http://download.oracle.com/docs/cd/E13222_01/wls/docs81/webserv/client.html), we find there's properties such as "weblogic.webservice.security.clock.precision" we can set in client side, but in weblogic 10.3 doc, we can't find these properties.
    now how to set the clock skew at stand-alone client in weblogic 11g?
    Thanks!
    Fred

    Hello,
    now we're using weblogic 11g, we want to set the clock skew properties.
    in server side, we "Create a Web Service security" to set the "Clock Skew" property, change it value from 60000 to 120000, then we invoke the web service from stand-alone client on another machine, the clock skew between the server machine an client machine is 80000. but it still throw exception:
    javax.xml.ws.soap.SOAPFaultException: Message Created time past the current time even accounting for set clock skew+
    at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processResponse(TubeFactory.java:241)+
    we think we still need set the clock skew at client side. in webloigc8.1 doc(http://download.oracle.com/docs/cd/E13222_01/wls/docs81/webserv/client.html), we find there's properties such as "weblogic.webservice.security.clock.precision" we can set in client side, but in weblogic 10.3 doc, we can't find these properties.
    now how to set the clock skew at stand-alone client in weblogic 11g?
    Thanks!
    Fred

  • The Proper way to go - Passing Serialized Java Objects vs. Web Services?

    The team which I am apart of in our little "community" is trying to convince some "others" (management) that we should not use web services to communicate (move large data) within the same application (allbeit a huge application spanning across many servers).
    Furthermore these "others" are trying to tell us that in this same application when two small apps. inside of this large app. are both java we should not communicate via serialized java objects but instead we should use Web Services and XML. We are trying to convince them that the simplest way is best.
    They have asked us to provide them with proof that passing serialized java objects back and forth between two smaller java applications inside of a larger one is an Industry Standard. Can anyone help either straighten my fellow workers and I out or help us convince the "others" of the proper way to go?

    When I was a consultant we always gave the client what they wanted. Even if it was the wrong choice. Suck it up.
    I'm glad I wasn't one of those customers. Although I agree that a customer is the one who decides what to do, when I pay someone for consultancy, I expect them to consult me. If they know I'm trying to do something that I shouldn't be doing, I expect a good consultant to be able to show me that there's a better way (not just tell me I'm not doing it right, mind you).
    We pass a lot of data using XML and we don't have any transmission or processing speed issues.
    Then you either have a much better network than our customer did, or we're not talking about the same amounts of data here.
    I used the JAX-RPC RI ...
    That's cool... our customer was, unfortunately, infected with Borland products, so we had to use BES. The web services on BES were run by Axis.
    How large were these messages?
    Huge... each element had about 15 attributes, so 1,200 elements would require 19,200 XML nodes (envelope not included). By comparison, the serialized messages weren't even a quarter that size. It's not just about what you send across the network; it's also the effort of parsing XML compared to desrializing Java objects. Our web service wasn't exactly the only process running at the server.
    Anyone who understand the fundamental difference between ASCII (XML) and binary (serialized) formats realizes that no web service can possibly achieve the performance of binary Java services. Why do you think that work is being put into binary web services? I'm not saying XML is never a good thing; just that it's not The Holy Grail that a lot of people are making it look like.
    http://issues.apache.org/jira/browse/AXIS-688
    Ouch.

  • How to set multiple file extension in ForEach Loop Component.

    I want to enumerate all *.xls and *.xlsx file. How to fill the Files box? 

    This is correct, even after you have enumerated over the marked (xls and xlsx files) how do you intend to process these files. What are the subsequent tasks in the for each loop?
    Please vote as helpful or mark as answer, if it helps
    Cheers, Raunak | t: @raunakjhawar |
    My Blog
    can the excel data provider process both xlsx and xls file?
    is there any way to process  both xlsx and xls file in dataflow?

  • How to pass in complex data to a web service using dynamic client

    I wrote to dynamic client to access the complex example in weblogic 7.000, I would
    like to know how I passed in a complex type to a dynamic client.

    An example of using dynamic client is attached:
    regards,
    -manoj
    "fkeita" <[email protected]> wrote in message
    news:3d051775$[email protected]..
    >
    I wrote to dynamic client to access the complex example in weblogic 7.000,I would
    like to know how I passed in a complex type to a dynamic client.[call4.jar]

  • How to pass SOAP Attachments with JAX-RPC Web Service

    I'm confused...
    This sample shows how to send/receive SOAP attachments by using the JAX-RPC Handler mechanism. Can somebody confirm if this is the preferred way to do this. I've seen an example wich does something like:
      public interface AttachmentService extends Remote {
        public String storeDocumentService(javax.activation.DataHandler dh, String filename) throws RemoteException;
      }and then uses JAX-RPC utilities to create wsdl, stubs and stuff. Does this have the same result, as what the OTN example shows (from an architecture perspective?
    Thx,
    Jan.

    Well, how an attachment is processed depends on your application logic...if your application logic requires to processing attachments and verify it before processing the SOAP message, handlers could be better option.
    If you need to process the attachment while processing the SOAP message, you can do it in the service implementation class.
    In both the cases you need to get access to SOAPMessage object and from there get the attachments with getAttachments method.

Maybe you are looking for

  • Lines Missing from .eps file

    I genereate the inital image in AutoCAD, export it as an .eps file then format the image using Illustrator CS5. The files are then placed into an ExCel spreadsheet where the lines will not show up. When using Illustrator I change the stroke of all li

  • SSD for Macbook Pro 2012

    What is the most compatible SSD 256 GB for Macbook Pro Mid-2012 originally installed with a 750-5600rpm hdd?

  • Unable to access player in tv

    When I attempt to play any saved items or a new one in Abobe tv the player appears but is a blank screen.

  • Programmatically adding sub report

    Post Author: [email protected] CA Forum: General hello friends. is there a way to programatically or dynamically load sub reports to the main report apart from creating on Demand sub report. like i habe 10 sub reports like a.rpt, b.rpt, c.rpt now on

  • Quicktime doesn't show last frame of mpeg4 movies

    Why can't I see the last frame of a small mpeg4 videoloop in quicktime (w276 h276 30fr/s 11 frames)? The frame does exist when opening the file in editingsoftware.