Assegnazione URL a cc PlainHTTP in modalità Assign Type URL Address
Assegnazione URL a cc PlainHTTP in modalità Assign Type HTTP Destination
public String PlainHTTPDestDynConf(String value, Container container)
throws StreamTransformationException{
try {
String url = value;
DynamicConfiguration conf = (DynamicConfiguration) container .getTransformationParameters() .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key=DynamicConfigurationKey.create("http://sap.com/xi/XI/System/HTTP", "TargetURL");
conf.put(key, url);
return url;
} catch(Exception e) {
String exception = e.toString();
return exception;
}
}
Lascia un commento