Search in sources :

Example 1 with SapJcoProviderImpl

use of com.twinsoft.convertigo.beans.connectors.SapJcoConnector.SapJcoProviderImpl in project convertigo by convertigo.

the class SapJcoTransaction method addSchemaResponseDataType.

@Override
protected XmlSchemaComplexType addSchemaResponseDataType(XmlSchema xmlSchema) {
    XmlSchemaComplexType xmlSchemaComplexType = super.addSchemaResponseDataType(xmlSchema);
    XmlSchemaSequence xmlSchemaSequence = (XmlSchemaSequence) xmlSchemaComplexType.getParticle();
    if (xmlSchemaSequence == null)
        xmlSchemaSequence = new XmlSchemaSequence();
    try {
        connector = ((SapJcoConnector) parent);
        SapJcoProviderImpl provider = connector.getSapJCoProvider();
        XmlSchemaElement sap_output = provider.addJCoFunctionResponseSchema(this, xmlSchema);
        xmlSchemaSequence.getItems().add(sap_output);
    } catch (Exception e) {
        Engine.logBeans.error("Unable to generate response schema for SapJcoTransaction named '" + getName() + "'", e);
    }
    xmlSchemaComplexType.setParticle(xmlSchemaSequence);
    return xmlSchemaComplexType;
}
Also used : XmlSchemaSequence(org.apache.ws.commons.schema.XmlSchemaSequence) SapJcoProviderImpl(com.twinsoft.convertigo.beans.connectors.SapJcoConnector.SapJcoProviderImpl) XmlSchemaElement(org.apache.ws.commons.schema.XmlSchemaElement) SapJcoConnector(com.twinsoft.convertigo.beans.connectors.SapJcoConnector) XmlSchemaComplexType(org.apache.ws.commons.schema.XmlSchemaComplexType) EngineException(com.twinsoft.convertigo.engine.EngineException)

Aggregations

SapJcoConnector (com.twinsoft.convertigo.beans.connectors.SapJcoConnector)1 SapJcoProviderImpl (com.twinsoft.convertigo.beans.connectors.SapJcoConnector.SapJcoProviderImpl)1 EngineException (com.twinsoft.convertigo.engine.EngineException)1 XmlSchemaComplexType (org.apache.ws.commons.schema.XmlSchemaComplexType)1 XmlSchemaElement (org.apache.ws.commons.schema.XmlSchemaElement)1 XmlSchemaSequence (org.apache.ws.commons.schema.XmlSchemaSequence)1