Java - Javabeans y Web Service

 
Vista:

Javabeans y Web Service

Publicado por Juan (1 intervención) el 25/10/2011 23:59:48
Hola,


En la empresa que laboro exite un Web Service desarrollado en .Net y debo hacer un javabean que consuma ese web service y luego colocarlo en oracle forms.


Yo cree un proyecto (Java Application) en netbeans 7, luego agrego por el wizard el web services y ejecuto los metodos de este servicio sin problemas, pero cuando lo coloco en forms se queda enganchado.

que podria ser esto?


public class CSC extends VBean implements ActionListener {
private IHandler m_handler;
private static final ID pSetSaludo = ID.registerProperty("SetSaludo");
private JLabel picLabel = new JLabel();

public CSC() {
super();
String strPrueba = Saludar("Juan");
picLabel.setText(strPrueba);
add(picLabel);
}

public static void main(String[] args) {
}

public void init(IHandler handler) {
m_handler = handler;
super.init(handler);
}

@Override
public void actionPerformed(ActionEvent e) {
throw new UnsupportedOperationException("");
}

public void dispatch_event(ID id) {
CustomEvent ce = new CustomEvent(m_handler, id);
dispatchCustomEvent(ce);
}

public Object getProperty(ID pId) {
return super.getProperty(pId);
}

public boolean setProperty(ID property, Object value) {
if (property == pSetSaludo) {
return true;
} else {
return super.setProperty(property, value);
}
}

private static String Saludar(java.lang.String Nombre) {
Pruebaws.servicios.banco.Saludar service = new Pruebaws.servicios.banco.Saludar();
Pruebaws.servicios.banco.SaludarSoap port = service.getSaludarSoap12();
return port.Saludar(Nombre);
}
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder