You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by OUYANG Yang <yo...@smu.edu.sg> on 2006/04/12 15:32:34 UTC
[axis2][0.95]problem with client
Hello all:)
I met a problem when tried to create a client for web service following the user guide.
When create the EchoBlockingClient, the source code is as follows:
try {
OMElement payload = ClientUtil.getEchoOMElement();
Options options = new Options();
options.setTo(targetEPR);
options.setListenerTransportProtocol(Constants.TRANSPORT_HTTP);
options.setUseSeparateListener(false);
……
}catch (AxisFault axisFault) {
axisFault.printStackTrace();
}
When I tried to compile this in IntelJ, there was a problem with the ClientUtil. The IntelJ said "cannot resolve symbol 'ClientUtil' ".
What is this ClientUtil? Did I miss some jar file?
Thank you very much!
Regards
Ouyang yang
RE: [axis2][0.95]problem with client
Posted by do...@yahoo.de.
Hi,
just have a look at the directory with the samples (AXIS2_HOME/samples/userguide/src/userguide/clients. ClientUtil is a class implemented to create the OMElement to call the EchoService. Put the java-file into your project and the sample should work.
Ted
OUYANG Yang <yo...@smu.edu.sg> schrieb: [axis2][0.95]problem with client Hello all:)
I met a problem when tried to create a client for web service following the user guide.
When create the EchoBlockingClient¡¤ the source code is as follows:
try {
OMElement payload = ClientUtil.getEchoOMElement();
Options options = new Options();
options.setTo(targetEPR);
options.setListenerTransportProtocol(Constants.TRANSPORT_HTTP);
options.setUseSeparateListener(false);
¡Ä¡Ä
}catch (AxisFault axisFault) {
axisFault.printStackTrace();
}
When I tried to compile this in IntelJ, there was a problem with the ClientUtil. The IntelJ said "cannot resolve symbol 'ClientUtil' ".
What is this ClientUtil? Did I miss some jar file?
Thank you very much!
Regards
Ouyang yang
---------------------------------
Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
Jetzt Yahoo! Messenger installieren!
Re: [axis2][0.95]problem with client
Posted by Ali Sadik Kumlali <as...@yahoo.com>.
Hi Ouyang,
You can find ClientUtil.java under samples/userguide/clients folder of
0.95 distribution (axis2-std-0.95-bin.zip).
Regards,
Ali Sadik Kumlali
--- OUYANG Yang <yo...@smu.edu.sg> wrote:
> Hello all:)
> I met a problem when tried to create a client for web service
> following the user guide.
> When create the EchoBlockingClient�� the source code is as
> follows:
> try {
> OMElement payload = ClientUtil.getEchoOMElement();
>
> Options options = new Options();
> options.setTo(targetEPR);
>
> options.setListenerTransportProtocol(Constants.TRANSPORT_HTTP);
> options.setUseSeparateListener(false);
> �ġ�
>
> }catch (AxisFault axisFault) {
> axisFault.printStackTrace();
> }
> When I tried to compile this in IntelJ, there was a problem with the
> ClientUtil. The IntelJ said "cannot resolve symbol 'ClientUtil' ".
> What is this ClientUtil? Did I miss some jar file?
>
> Thank you very much!
>
> Regards
> Ouyang yang
>
>
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com