Question : WebService Client problem

Hello.

I have this code for a webservice client and I have two problems.
First the "ipanel" object (a Jpanel with some buttons and textboxes) doesn't show up.
Second:
I need to get values from this object to assign to:
java.lang.String indice = "1";
java.lang.String msg = "ola";
int duracao = 10;
This of course after a double click on the "OK" button in the "ipanel" object.
The ipanel object is ok and I have methods to get the values from the textboxes.

How can I do it?

Note: I'm using netbeans 6.8
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
public static void main(String[] args) {

        try { // Call Web Service Operation
            wspub.WsPubService service = new wspub.WsPubService();
            wspub.WsPub port = service.getWsPubPort();
            // TODO initialize WS operation arguments here
            InPanel iPanel = new InPanel();
            iPanel.setVisible(true);
            java.lang.String indice = "1";
            java.lang.String msg = "ola";
            int duracao = 10;
            // TODO process result here
            java.lang.String result = port.pedido(indice, msg, duracao);
            System.out.println("Result = "+result);
        } catch (Exception ex) {
            // TODO handle custom exceptions here
        }

Answer : WebService Client problem

I manage to solve the problem. Yes I can put all the code in a class other than "main" and the flow between WS Server and WS client works.

shivaspk I will give you 250 point for the help in the first issue.
Random Solutions  
 
programming4us programming4us