Hi,
Indeed this is the aproach.
First genereate client-stub and then create a ServiceClient which calls
the stubmethods.
See small example voor de client main.
public static void main(String[] args) throws RemoteException {
// TODO Auto-generated method stub
DemoStub stub = new DemoStub();
DemoRequest request = new DemoRequest();
InputBean ib = new InputBean();
Structure[] ss = new Structure[5];
Structure str = new Structure();
for (int i = 0; i < 5; i++) {
str.setX(100 * (i + 1));
str.setY(200 * (i + 1));
ss[i] = str;
}
ib.setStruct(ss);
request.setInputBean(ib);
DemoResponse response = stub.bepaal(request);
OutputBean ob = response.getOutputBean();
}
regards
Dirk
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: vrijdag 15 februari 2008 13:12
To: [email protected]
Subject: writing a client
Hi,
Could you please let me how to go about writing a client?
I mean what is the approach.
1) Generate the client-side stub using wsdltojava & call methods
on the stub
2) Start from using ServiceClient ..
What is the suggested approach?
Thanks,
Ajit
DISCLAIMER:
This message contains privileged and confidential information and is
intended only for an individual named. If you are not the intended
recipient, you should not disseminate, distribute, store, print, copy or
deliver this message. Please notify the sender immediately by e-mail if
you have received this e-mail by mistake and delete this e-mail from
your system. E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete or contain viruses. The sender,
therefore, does not accept liability for any errors or omissions in the
contents of this message which arise as a result of e-mail transmission.
If verification is required, please request a hard-copy version.
================================================
The information transmitted via this e-mail is intended only for the person or
entity to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or taking
of any action in reliance upon this information by persons or entities other
than the intended recipient is prohibited. If you received this in error,
please contact the sender and delete the material from any computer.