Olá pessoal,
Estou implementando um leitor de arquivos WSDL. Eu consegui recuperar o nome do serviço que o mesmo define, e as operações, mas não consigo recuperar os parâmetros das operações.
Segue o trexo de código:
this.bindingsMap = this.definition.getBindings();
it = this.bindingsMap.keySet().iterator();
while( it.hasNext() ) {
Binding bid = (Binding) this.bindingsMap.get( (QName) it.next() );
System.out.println( "BINDING: " + bid.getQName().getLocalPart() );
List<BindingOperation> op = bid.getBindingOperations();
Iterator it2 = op.iterator();
while( it2.hasNext() ) {
BindingOperation bo = (BindingOperation) it2.next();
System.out.println( "\tOP: " + bo.getName() );
BindingInput bi = bo.getBindingInput();
System.out.println( "INPUT: " + bi.getName() );
}
}
Teoricamente teria que retornar o nome (ou pelo menos o tipo do atributo). Mas retorna null.
Alguém sabe como eu posso fazer?