# WebServices connector does not execute updated requestEndPoint URL

**URL:** <https://developer.sailpoint.com/discuss/t/webservices-connector-does-not-execute-updated-requestendpoint-url/16737>\
**Category:** IIQ Discussion and Questions\
**Tags:** webservice-connector, identityiq\
**Created:** [August 26, 2023, 11:02am UTC](https://developer.sailpoint.com/discuss/t/webservices-connector-does-not-execute-updated-requestendpoint-url/16737 "2023-08-26T11:02:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gageet](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@gageet](https://developer.sailpoint.com/discuss/u/gageet)\
**Post date:** [August 26, 2023, 11:02am UTC](https://developer.sailpoint.com/discuss/t/webservices-connector-does-not-execute-updated-requestendpoint-url/16737/1 "2023-08-26T11:02:43Z")

</div>

On 8.3p2, I’m using a **WebServiceBeforeOperationRule** to update the call that’s executed during aggregation, but the updated URL on the **requestEndPoint** isn’t executed. It’s executing the URL stored on the app config.

I’ve tried setting the **requestEndPoint** full/context URLs, building the URL with java.net.URL, returning a new **EndPoint** object, using %26 instead of &… But the updated URL is never used

```auto
log.info( String.format(" getContextUrl Before: %s", requestEndPoint.getContextUrl()) );
requestEndPoint.setContextUrl( requestEndPoint.getContextUrl() + "&amp;limit=3" );
log.info( String.format(" getContextUrl After: %s", requestEndPoint.getContextUrl()) );

log.info( String.format(" getFullUrl Before: %s", requestEndPoint.getFullUrl()) );
requestEndPoint.setFullUrl( requestEndPoint.getFullUrl() + "&amp;limit=3" );
log.info( String.format(" getFullUrl After: %s", requestEndPoint.getFullUrl()) );

return requestEndPoint;

```

Prints as expected:

```auto
getContextUrl Before: users?&section=primary&location=true
getContextUrl After: users?&section=primary&location=true&limit=3
getFullUrl Before: https://my.api.com:PORT/v1/users?&section=primary&location=true
getFullUrl After: https://my.api.com:PORT/v1/users?&section=primary&location=true&limit=3

```

But aggregation runs the old query!

---

<div class="post-metadata">

**Author:** ![Jarin\_James](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/jarin_james/32/3372_2.png) [@Jarin\_James](https://developer.sailpoint.com/discuss/u/Jarin_James)\
**Post date:** [August 26, 2023, 3:13pm UTC](https://developer.sailpoint.com/discuss/t/webservices-connector-does-not-execute-updated-requestendpoint-url/16737/2 "2023-08-26T15:13:18Z")

</div>

Hi @gageet

Welcome to SailPoint Developer Community!

I would suggest trying to enable the Webservice loggers and please confirm the same.

```auto
sailpoint.connector.webservices.WebSvicesConnector
sailpoint.connector.webservices.WebServiceConnectorUtil

```

---

<div class="post-metadata">

**Author:** ![gageet](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@gageet](https://developer.sailpoint.com/discuss/u/gageet)\
**Post date:** [August 26, 2023, 10:36pm UTC](https://developer.sailpoint.com/discuss/t/webservices-connector-does-not-execute-updated-requestendpoint-url/16737/3 "2023-08-26T22:36:58Z")

</div>

Thanks @Jarin_James , I enabled the Loggers and found that although **requestEndPoint.getFullUrl()** appeared correct after setting it programmatically, the call actually sent had the characters improperly encoded, so the API was ignoring them (which would match the old query)

This worked:

```auto
String usersUrl = "%26userId=";
int remain = userIdsToQuery.size() - userIndex;
int bound = QUERY_LIMIT >= remain ? userIndex + remain : userIndex + QUERY_LIMIT;
usersUrl += String.join("%2C", userIdsToQuery.subList(userIndex, bound));

requestEndPoint.setFullUrl( requestEndPoint.getFullUrl() + usersUrl );
return requestEndPoint;

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [October 25, 2023, 10:36pm UTC](https://developer.sailpoint.com/discuss/t/webservices-connector-does-not-execute-updated-requestendpoint-url/16737/4 "2023-10-25T22:36:58Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
