This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes Using UnManaged Web Services Client with WS-Policy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Using UnManaged Web Services Client with WS-Policy" Watch "Using UnManaged Web Services Client with WS-Policy" New topic
Author

Using UnManaged Web Services Client with WS-Policy

Sean Hetfield
Ranch Hand

Joined: Dec 01, 2003
Posts: 83


Does anyone have any information or reference about How to use the WS-Policy with UnManaged Web Services Client?

Thanks
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Do you mean configuring a web service client to use the policy provided by the service provider dynamically at runtime?
Sean Hetfield
Ranch Hand

Joined: Dec 01, 2003
Posts: 83
Yes. That's correct.

If it's Managed Web Service Client using WebSphere Application Server, I know how to configure it.

But if the client is UnManaged, I'm not sure how to proceed.

Thanks
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Ah, I think I get it - you want a standalone client, not one that runs in a WebSphere application server, to configure itself according to WS-Policy provided by the web service.
It turns out that I have actually done this using the following libraries from Metro:
• webservices-api.jar
• webservices-extra-api.jar
• webservices-extra.jar
• webservices-rt.jar
• webservices-tools.jar

You can find them at: https://metro.dev.java.net/

Drop them in and they automagically take care of applying WS-Policy of the server on the (standalone) client side.
Best wishes!
Sean Hetfield
Ranch Hand

Joined: Dec 01, 2003
Posts: 83
Thank you very much Ivan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using UnManaged Web Services Client with WS-Policy
 
Similar Threads
JAX-WS Client for a SOAP service provider
To authors
How to learn WS*?
Implementing SSL, JAX-WS Webservice IBM websphere JAX-WS runtime
axis2 with netbeans 6.1