Skip to main content

Web client of service?

5 replies [Last post]
sean_brydon
Offline
Joined: 2003-06-18

Hi,

In the samples you have endpoints which are web war files, and clients which are java main clients. Do you have any examples of a web war file client calling one of the endpoints instead? How would I package the client into a war file so that it can access a service?

In the jax-rpc2.0 ea download there are details about packaging a service endpoint into war, but not for the client. I am interested in exploring the client programming model for jax-rpc 2.0, so any pointers would be helpful.

thx,
Sean

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
arungupta
Offline
Joined: 2003-06-13

Hi Sean,

WS-I Sample Application 1.1 [1] was released along with JAX-RPC 2.0 EA and uses a client bundled in a WAR file that invokes other endpoints in the same WAR file.

Basically, with JAX-RPC EA release you need to generate your client-side artifacts, bundle them in a jar file and copy that jar file in your WEB-INF/lib directory.

Hope that helps.

[1] http://weblogs.java.net/blog/arungupta/archive/2005/04/wsi_sample_appl.html

Thanks,
-Arun

vivekp
Offline
Joined: 2003-06-10

We have not tried putting JAXRPC 2.0 EA client in to war file to access a service. We are working on EA2 and significant changes will happen in our runtime.

We will put samples with such clients in our next EA release.

-vivek.

> Hi,
>
> In the samples you have endpoints which are web war
> files, and clients which are java main clients. Do
> you have any examples of a web war file client
> calling one of the endpoints instead? How would I
> package the client into a war file so that it can
> access a service?
>
> In the jax-rpc2.0 ea download there are details about
> packaging a service endpoint into war, but not for
> the client. I am interested in exploring the client
> programming model for jax-rpc 2.0, so any pointers
> would be helpful.
>
> thx,
> Sean

sean_brydon
Offline
Joined: 2003-06-18

Hi,

That's great. Approximately when is the next Jax-RPC 2.0 EA release that you think will have some support and examples for web clients? Is this in a weekly release? Or another release? Maybe not an official date, but a rough estimate of when this is available?

thx,
Sean

vivekp
Offline
Joined: 2003-06-10

I can try to have a web client sample as part of one of our upcoming weekly. But latest by the next EA release we should have such a sample. The next EA release should be around javaone.

-vivek.

vivekp
Offline
Joined: 2003-06-10

We have not tried putting JAXRPC 2.0 EA client in to war file to access a service. We are working on EA2 and significant changes will happen in our runtime.

We will put samples with such clients in our next EA release.

-vivek.

In the meantime

We
> Hi,
>
> In the samples you have endpoints which are web war
> files, and clients which are java main clients. Do
> you have any examples of a web war file client
> calling one of the endpoints instead? How would I
> package the client into a war file so that it can
> access a service?
>
> In the jax-rpc2.0 ea download there are details about
> packaging a service endpoint into war, but not for
> the client. I am interested in exploring the client
> programming model for jax-rpc 2.0, so any pointers
> would be helpful.
>
> thx,
> Sean