Search in sources :

Example 1 with IbisDoc

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());
    }
}
Also used : ConfigurationException(nl.nn.adapterframework.configuration.ConfigurationException) WSDLException(javax.wsdl.WSDLException) WSDLReader(javax.wsdl.xml.WSDLReader) URL(java.net.URL) IbisDoc(nl.nn.adapterframework.doc.IbisDoc)

Example 2 with IbisDoc

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);
    }
}
Also used : StringTokenizer(java.util.StringTokenizer) IbisDoc(nl.nn.adapterframework.doc.IbisDoc)

Example 3 with IbisDoc

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));
    }
}
Also used : StringTokenizer(java.util.StringTokenizer) IbisDoc(nl.nn.adapterframework.doc.IbisDoc)

Example 4 with IbisDoc

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");
    }
}
Also used : StringTokenizer(java.util.StringTokenizer) IbisDoc(nl.nn.adapterframework.doc.IbisDoc)

Aggregations

IbisDoc (nl.nn.adapterframework.doc.IbisDoc)4 StringTokenizer (java.util.StringTokenizer)3 URL (java.net.URL)1 WSDLException (javax.wsdl.WSDLException)1 WSDLReader (javax.wsdl.xml.WSDLReader)1 ConfigurationException (nl.nn.adapterframework.configuration.ConfigurationException)1