Jump to content
WAPT Forum
Sign in to follow this  
Guest WSOD

Using variables inside "Post raw data"

Recommended Posts

Guest WSOD

I am trying to use a variable in a Post. In the example below I need to cycle a series of tickers (500) to replace the GOOG. What would be the best way of doing this, without having to use a list file with the 500 unique post payloads?

 

Thanks

 

<?xml version="1.0" encoding="utf-8"?><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:Body><GetResponse xmlns="http://tempuri.org/"><pgInpt></pgInpt><req><wgt wID="40"><inpt><sym>GOOG</sym></inpt></wgt></req></GetResponse></soap:Body></soap:Envelope>

 

Share this post


Link to post
Share on other sites
Guest angela
I am trying to use a variable in a Post. In the example below I need to cycle a series of tickers (500) to replace the GOOG. What would be the best way of doing this, without having to use a list file with the 500 unique post payloads?

 

Thanks

 

<?xml version="1.0" encoding="utf-8"?><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:Body><GetResponse xmlns="http://tempuri.org/"><pgInpt></pgInpt><req><wgt wID="40"><inpt><sym>GOOG</sym></inpt></wgt></req></GetResponse></soap:Body></soap:Envelope>

 

It is not obligatory to initialize a variable from a list, you can use another functions, for instance, $Seq. With the help of this function you can get a unique value for each user.

 

Share this post


Link to post
Share on other sites
Guest WSOD

How do you insert the $Seq variable into the post data? I tried several differnt times, and was not able to get the variable to passed in.

 

So if this is my post data, how do you properly insert the variable? Also where where do you set the variable? In the attachement I am trying to add the $sym variable to the poast data like this:

post-489-1239894373.jpg

 

<?xml version="1.0" encoding="utf-8"?><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:Body><GetResponse xmlns="http://tempuri.org/"><pgInpt></pgInpt><req><wgt wID="40"><inpt><sym>$Sym</sym></inpt></wgt></req></GetResponse></soap:Body></soap:Envelope>

 

but that does not work. Can you provide instructions on how to do this?

Thanks

 

It is not obligatory to initialize a variable from a list, you can use another functions, for instance, $Seq. With the help of this function you can get a unique value for each user.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...