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;
}
Aggregations