# Is there a way to pass global variable in the URL for SOAP object which is been created

**URL:** <https://forum.katalon.com/t/is-there-a-way-to-pass-global-variable-in-the-url-for-soap-object-which-is-been-created/15446>\
**Category:** API Testing\
**Tags:** api-testing, katalon-studio\
**Created:** [December 13, 2018, 3:41pm UTC](https://forum.katalon.com/t/is-there-a-way-to-pass-global-variable-in-the-url-for-soap-object-which-is-been-created/15446 "2018-12-13T15:41:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shruti\_Bose](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@Shruti\_Bose](https://forum.katalon.com/u/Shruti_Bose)\
**Post date:** [December 13, 2018, 3:41pm UTC](https://forum.katalon.com/t/is-there-a-way-to-pass-global-variable-in-the-url-for-soap-object-which-is-been-created/15446/1 "2018-12-13T15:41:19Z")

</div>

Hi All,

I have created a SOAP object and passing the URL as [http://dnvtxsrt01:30010/productDomain-wls/com.amdocs.services.productdomain.mtposmanagement.UpdateDeliveryPaymentStatus?WSDL](http://dnvtxsrt01:30010/productDomain-wls/com.amdocs.services.productdomain.mtposmanagement.UpdateDeliveryPaymentStatus?WSDL).

Now in this URL we want to keep the dnvtxsrt01:30010 as global variable because this value gets changes as per the profile which we are selecting.

Can someone please let me know is there a way where we can pass global variable in this.

---

<div class="post-metadata">

**Author:** ![Ibus](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@Ibus](https://forum.katalon.com/u/Ibus)\
**Post date:** [December 14, 2018, 6:33am UTC](https://forum.katalon.com/t/is-there-a-way-to-pass-global-variable-in-the-url-for-soap-object-which-is-been-created/15446/2 "2018-12-14T06:33:32Z")

</div>

see:  
[https://docs.katalon.com/katalon-studio/docs/parameterize-a-web-service-object.html#variables-since-57](https://docs.katalon.com/katalon-studio/docs/parameterize-a-web-service-object.html#variables-since-57)

assuming you will use a parameter like ${yourParam}, when you call the test object do:

```auto
findTestObject('myTestObject', [('yourParam') : GlobalVariables.yourGlobalVar]))

```

so the parameter used will be substituted with the value stored in the profile

Or using the GUI only, in the test object \> Variables tab, add one with the name you used to parametrize the call and assign it GlobalVariable type with the value of your desired variable

---

<div class="post-metadata">

**Author:** ![Shruti\_Bose](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@Shruti\_Bose](https://forum.katalon.com/u/Shruti_Bose)\
**Post date:** [December 17, 2018, 10:36am UTC](https://forum.katalon.com/t/is-there-a-way-to-pass-global-variable-in-the-url-for-soap-object-which-is-been-created/15446/3 "2018-12-17T10:36:30Z")

</div>

HI Ibus,

Thanks for the response. The solution is working perfectly.

With Regards  
Shruti
