Javabeans en oracle forms
Publicado por Juan (1 intervención) el 26/10/2011 00:01:04
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);
}
}
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


0