use of nl.nn.adapterframework.doc.IbisDoc in project iaf by ibissource.
the class SchemaLocation method setWsdl.
@IbisDoc({ "the wsdl to read the xsd's from", " " })
public void setWsdl(String wsdl) throws ConfigurationException {
this.wsdl = wsdl;
WSDLReader reader = FACTORY.newWSDLReader();
reader.setFeature("javax.wsdl.verbose", false);
reader.setFeature("javax.wsdl.importDocuments", true);
ClassLoaderWSDLLocator wsdlLocator = new ClassLoaderWSDLLocator(this, wsdl);
URL url = wsdlLocator.getUrl();
if (wsdlLocator.getUrl() == null) {
throw new ConfigurationException("Could not find WSDL: " + wsdl);
}
try {
definition = reader.readWSDL(wsdlLocator);
} catch (WSDLException e) {
throw new ConfigurationException("WSDLException reading WSDL or import from url: " + url, e);
}
if (wsdlLocator.getIOException() != null) {
throw new ConfigurationException("IOException reading WSDL or import from url: " + url, wsdlLocator.getIOException());
}
}
use of nl.nn.adapterframework.doc.IbisDoc in project iaf by ibissource.
the class RecordXmlTransformer method setOutputFields.
@IbisDoc({ "comma separated string with tagnames for the individual input fields (related using there positions). if you leave a tagname empty, the field is not xml-ized", "" })
public void setOutputFields(String fieldLengths) {
StringTokenizer st = new StringTokenizer(fieldLengths, ",");
while (st.hasMoreTokens()) {
String token = st.nextToken().trim();
outputFields.add(token);
}
}
use of nl.nn.adapterframework.doc.IbisDoc in project iaf by ibissource.
the class AbstractRecordHandler method setInputFields.
@IbisDoc({ "2", "Comma separated specification of field lengths. if neither this attribute nor <code>inputSeparator</code> is specified then the entire record is parsed", "" })
public void setInputFields(String fieldLengths) {
StringTokenizer st = new StringTokenizer(fieldLengths, ",");
while (st.hasMoreTokens()) {
String token = st.nextToken().trim();
addInputField(Integer.parseInt(token));
}
}
use of nl.nn.adapterframework.doc.IbisDoc in project iaf by ibissource.
the class AbstractRecordHandler method setRecordIdentifyingFields.
@IbisDoc({ "comma separated list of numbers of those fields that are compared with the previous record to determine if a prefix must be written. if any of these fields is not equal in both records, the record types are assumed to be different", "" })
public void setRecordIdentifyingFields(String fieldNrs) {
StringTokenizer st = new StringTokenizer(fieldNrs, ",");
while (st.hasMoreTokens()) {
String token = st.nextToken().trim();
// log.debug("setRecordIdentifyingFields() found identifiying field ["+token+"]");
recordIdentifyingFields.add(new Integer(token));
}
if (recordIdentifyingFields.size() == 0) {
log.warn("setRecordIdentifyingFields(): value [" + fieldNrs + "] did result in an empty list of tokens");
}
}
Aggregations