{
EndpointReferenceDocument weatherStationEprDoc = WEATHER_STATION_2_EPR_DOC;
EndpointReferenceDocument clientConfigEpr = CLIENT_CONFIG_EPR;
SetResourcePropertiesDocument setResourcePropertiesDocument = SetResourcePropertiesDocument.Factory.newInstance();
SetResourcePropertiesDocument.SetResourceProperties setResourceProperties = setResourcePropertiesDocument.addNewSetResourceProperties();
UpdateType update = UpdateType.Factory.newInstance();
WeatherStationReferenceDocument weatherStationReferenceDocument = WeatherStationReferenceDocument.Factory.newInstance();
weatherStationReferenceDocument.setWeatherStationReference(weatherStationEprDoc.getEndpointReference());
XmlBeanUtils.addChildElement(update, weatherStationReferenceDocument);
setResourceProperties.setUpdateArray(new UpdateType[]{update});
XmlObject addResponse = InteropRequestUtils.sendRequest(setResourcePropertiesDocument, "http://wsdmdemo.org/service/weather-station-dir/SetResourceProperties", new XmlBeansEndpointReference(clientConfigEpr.getEndpointReference()));