@Test public void testGetFieldOut() throws Exception { DatabaseMeta dbMeta = mock( DatabaseMeta.class ); IMetaStore metastore = mock( IMetaStore.class ); WebServiceMeta webServiceMeta = new WebServiceMeta( getTestNode(), Collections.singletonList( dbMeta ), metastore ); assertNull( webServiceMeta.getFieldOutFromWsName( "", true ) ); assertEquals( "GetCurrentExchangeRateResult", webServiceMeta.getFieldOutFromWsName( "GetCurrentExchangeRateResult", false ).getName() ); assertEquals( "GetCurrentExchangeRateResult", webServiceMeta.getFieldOutFromWsName( "something:GetCurrentExchangeRateResult", true ).getName() ); }
public WebServiceField getFieldOutFromWsName( String wsName, boolean ignoreWsNsPrefix ) { WebServiceField param = null; if ( Utils.isEmpty( wsName ) ) { return param; } if ( ignoreWsNsPrefix ) { String[] wsNameParsed = wsName.split( ":" ); wsName = wsNameParsed[wsNameParsed.length - 1]; } for ( Iterator<WebServiceField> iter = getFieldsOut().iterator(); iter.hasNext(); ) { WebServiceField paramCour = iter.next(); if ( paramCour.getWsName().equals( wsName ) ) { param = paramCour; break; } } return param; }
WebServiceMeta extends BaseStepMeta implements StepMetaInterface { public WebServiceField getFieldOutFromWsName( String wsName, boolean ignoreWsNsPrefix ) { WebServiceField param = null; if ( Utils.isEmpty( wsName ) ) { return param; } if ( ignoreWsNsPrefix ) { String[] wsNameParsed = wsName.split( ":" ); wsName = wsNameParsed[wsNameParsed.length - 1]; } for ( Iterator<WebServiceField> iter = getFieldsOut().iterator(); iter.hasNext(); ) { WebServiceField paramCour = iter.next(); if ( paramCour.getWsName().equals( wsName ) ) { param = paramCour; break; } } return param; } }
WebServiceMeta extends BaseStepMeta implements StepMetaInterface { public WebServiceField getFieldOutFromWsName( String wsName, boolean ignoreWsNsPrefix ) { WebServiceField param = null; if ( Utils.isEmpty( wsName ) ) { return param; } if ( ignoreWsNsPrefix ) { String[] wsNameParsed = wsName.split( ":" ); wsName = wsNameParsed[wsNameParsed.length - 1]; } for ( Iterator<WebServiceField> iter = getFieldsOut().iterator(); iter.hasNext(); ) { WebServiceField paramCour = iter.next(); if ( paramCour.getWsName().equals( wsName ) ) { param = paramCour; break; } } return param; } WebServiceMeta();  WebServiceMeta( Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore );  WebServiceMeta( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ); }
WebServiceMeta extends BaseStepMeta implements StepMetaInterface { public WebServiceField getFieldOutFromWsName( String wsName, boolean ignoreWsNsPrefix ) { WebServiceField param = null; if ( Utils.isEmpty( wsName ) ) { return param; } if ( ignoreWsNsPrefix ) { String[] wsNameParsed = wsName.split( ":" ); wsName = wsNameParsed[wsNameParsed.length - 1]; } for ( Iterator<WebServiceField> iter = getFieldsOut().iterator(); iter.hasNext(); ) { WebServiceField paramCour = iter.next(); if ( paramCour.getWsName().equals( wsName ) ) { param = paramCour; break; } } return param; } WebServiceMeta();  WebServiceMeta( Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore );  WebServiceMeta( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ); @Override void getFields( RowMetaInterface r, String name, RowMetaInterface[] info, StepMeta nextStep,
    VariableSpace space, Repository repository, IMetaStore metaStore ); WebServiceMeta clone(); void setDefault(); void check( List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta,
    RowMetaInterface prev, String[] input, String[] output, RowMetaInterface info, VariableSpace space,
    Repository repository, IMetaStore metaStore ); String getXML(); void loadXML( Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore ); void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ); void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step ); String getOperationName(); void setOperationName( String operationName ); StepInterface getStep( StepMeta stepMeta, StepDataInterface stepDataInterface, int cnr,
    TransMeta transMeta, Trans disp ); StepDataInterface getStepData(); WebServiceField getFieldInFromName( String name ); WebServiceField getFieldOutFromWsName( String wsName, boolean ignoreWsNsPrefix ); List<WebServiceField> getFieldsIn(); void setFieldsIn( List<WebServiceField> fieldsIn ); boolean hasFieldsIn(); void addFieldIn( WebServiceField field ); List<WebServiceField> getFieldsOut(); void setFieldsOut( List<WebServiceField> fieldsOut ); void addFieldOut( WebServiceField field ); String getInFieldArgumentName(); void setInFieldArgumentName( String inFieldArgumentName ); String getOutFieldArgumentName(); void setOutFieldArgumentName( String outFieldArgumentName ); String getUrl(); void setUrl( String url ); int getCallStep(); void setCallStep( int callStep ); String getOperationNamespace(); void setOperationNamespace( String operationNamespace ); String getHttpLogin(); void setHttpLogin( String httpLogin ); String getHttpPassword(); void setHttpPassword( String httpPassword ); String getProxyHost(); void setProxyHost( String proxyHost ); String getProxyPort(); void setProxyPort( String proxyPort ); String getInFieldContainerName(); void setInFieldContainerName( String inFieldContainerName ); String getOutFieldContainerName(); void setOutFieldContainerName( String outFieldContainerName ); boolean isPassingInputData(); void setPassingInputData( boolean passingInputData ); boolean isCompatible(); void setCompatible( boolean compatible ); String getRepeatingElementName(); void setRepeatingElementName( String repeatingElementName ); boolean isReturningReplyAsString(); void setReturningReplyAsString( boolean returningReplyAsString ); String getOperationRequestName(); void setOperationRequestName( String operationRequestName ); }
WebServiceMeta extends BaseStepMeta implements StepMetaInterface { public WebServiceField getFieldOutFromWsName( String wsName, boolean ignoreWsNsPrefix ) { WebServiceField param = null; if ( Utils.isEmpty( wsName ) ) { return param; } if ( ignoreWsNsPrefix ) { String[] wsNameParsed = wsName.split( ":" ); wsName = wsNameParsed[wsNameParsed.length - 1]; } for ( Iterator<WebServiceField> iter = getFieldsOut().iterator(); iter.hasNext(); ) { WebServiceField paramCour = iter.next(); if ( paramCour.getWsName().equals( wsName ) ) { param = paramCour; break; } } return param; } WebServiceMeta();  WebServiceMeta( Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore );  WebServiceMeta( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ); @Override void getFields( RowMetaInterface r, String name, RowMetaInterface[] info, StepMeta nextStep,
    VariableSpace space, Repository repository, IMetaStore metaStore ); WebServiceMeta clone(); void setDefault(); void check( List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta,
    RowMetaInterface prev, String[] input, String[] output, RowMetaInterface info, VariableSpace space,
    Repository repository, IMetaStore metaStore ); String getXML(); void loadXML( Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore ); void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ); void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step ); String getOperationName(); void setOperationName( String operationName ); StepInterface getStep( StepMeta stepMeta, StepDataInterface stepDataInterface, int cnr,
    TransMeta transMeta, Trans disp ); StepDataInterface getStepData(); WebServiceField getFieldInFromName( String name ); WebServiceField getFieldOutFromWsName( String wsName, boolean ignoreWsNsPrefix ); List<WebServiceField> getFieldsIn(); void setFieldsIn( List<WebServiceField> fieldsIn ); boolean hasFieldsIn(); void addFieldIn( WebServiceField field ); List<WebServiceField> getFieldsOut(); void setFieldsOut( List<WebServiceField> fieldsOut ); void addFieldOut( WebServiceField field ); String getInFieldArgumentName(); void setInFieldArgumentName( String inFieldArgumentName ); String getOutFieldArgumentName(); void setOutFieldArgumentName( String outFieldArgumentName ); String getUrl(); void setUrl( String url ); int getCallStep(); void setCallStep( int callStep ); String getOperationNamespace(); void setOperationNamespace( String operationNamespace ); String getHttpLogin(); void setHttpLogin( String httpLogin ); String getHttpPassword(); void setHttpPassword( String httpPassword ); String getProxyHost(); void setProxyHost( String proxyHost ); String getProxyPort(); void setProxyPort( String proxyPort ); String getInFieldContainerName(); void setInFieldContainerName( String inFieldContainerName ); String getOutFieldContainerName(); void setOutFieldContainerName( String outFieldContainerName ); boolean isPassingInputData(); void setPassingInputData( boolean passingInputData ); boolean isCompatible(); void setCompatible( boolean compatible ); String getRepeatingElementName(); void setRepeatingElementName( String repeatingElementName ); boolean isReturningReplyAsString(); void setReturningReplyAsString( boolean returningReplyAsString ); String getOperationRequestName(); void setOperationRequestName( String operationRequestName ); static final String XSD_NS_URI; static final int DEFAULT_STEP; }