# Configuring via API's

Configuring the properties for the client just involves setting the properties in the client's RequestContext:

```
Map<String, Object> ctx = ((BindingProvider)port).getRequestContext();
ctx.put("ws-security.encryption.properties", properties);
port.echoString("hello");
```