The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » Metro and JAXB

Thread: Ignoring the WS-Policy

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 7 - Last Post: Mar 23, 2009 3:20 AM by: Martin Grebac
nepuser

Posts: 11
Ignoring the WS-Policy
Posted: Mar 19, 2009 6:09 AM
 
  Click to reply to this thread Reply

Hello,

Is there a possibility to configure metro to ignore the WS-Policy? I have a WSDL which contains a Policy. And I don't want, that metro interpret this policy and set up the security environment based on this policy, because, I want handle this on my own.

I'm using metro 1.4

Thanks

jdg6688

Posts: 859
Re: Ignoring the WS-Policy
Posted: Mar 19, 2009 10:45 AM   in response to: nepuser
 
  Click to reply to this thread Reply

One way is that you can create the client with local copy of the WSDL which
has no policy.

nepuser

Posts: 11
Re: Ignoring the WS-Policy
Posted: Mar 20, 2009 12:39 AM   in response to: jdg6688
 
  Click to reply to this thread Reply

Thanks for your answer. But I'm on the server side. I want to deliver the WSDL with Policy to the Client, if the client calls ?wsdl. But I want handle the Policy related stuff on my on. Everythink is on the server!

regards

Fabian Ritzmann
Re: Ignoring the WS-Policy
Posted: Mar 20, 2009 4:37 AM   in response to: nepuser
  Click to reply to this thread Reply

On 20. Mar 2009, at 09:39, metro@javadesktop.org wrote:

> Thanks for your answer. But I'm on the server side. I want to
> deliver the WSDL with Policy to the Client, if the client calls ?
> wsdl. But I want handle the Policy related stuff on my on.
> Everythink is on the server!

You could create a WSDL without policies and use that to configure
your service and point the client at the WSDL with policies at a
different location. The other option would be to use plain JAX-WS
instead of Metro:
https://jax-ws.dev.java.net/2.1.5/

Fabian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net


Harold Carr
Re: Ignoring the WS-Policy
Posted: Mar 20, 2009 8:01 AM   in response to: Fabian Ritzmann
  Click to reply to this thread Reply

Curious, what is your use case?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net


krausest1

Posts: 5
Re: Ignoring the WS-Policy
Posted: Mar 20, 2009 11:51 AM   in response to: Fabian Ritzmann
 
  Click to reply to this thread Reply

Sounds like a silly question, but how do you use plain JAX-WS in glassfish? To me it seems as if the security tube of metro would always kick in if the WSDL contains a relevant policy.

Message was edited by: krausest1

Fabian Ritzmann
Re: Ignoring the WS-Policy
Posted: Mar 23, 2009 3:05 AM   in response to: krausest1
  Click to reply to this thread Reply

On 20. Mar 2009, at 20:51, metro@javadesktop.org wrote:

> Sounds like a silly question, but how do you use plain JAX-WS
> glassfish? To me it seems as if the security tube of metro would
> always kick in on glassfish if the WSDL contains a relevant policy.

That's true for GlassFish, not without meddling with code and files in
the Metro jars at least. With Metro 2.0 we are introducing a
configuration file that allows you to control what tubes get
instantiated. The code is there already but we don't have any
documentation yet (and some details might still change).

Fabian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net


Martin Grebac
Re: Ignoring the WS-Policy
Posted: Mar 23, 2009 3:20 AM   in response to: Fabian Ritzmann
  Click to reply to this thread Reply

There's also NetBeans configuration for this in recent 6.7 builds.
MartinG

Fabian Ritzmann wrote:
> On 20. Mar 2009, at 20:51, metro@javadesktop.org wrote:
>
>> Sounds like a silly question, but how do you use plain JAX-WS
>> glassfish? To me it seems as if the security tube of metro would
>> always kick in on glassfish if the WSDL contains a relevant policy.
>
> That's true for GlassFish, not without meddling with code and files in
> the Metro jars at least. With Metro 2.0 we are introducing a
> configuration file that allows you to control what tubes get
> instantiated. The code is there already but we don't have any
> documentation yet (and some details might still change).
>
> Fabian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>

--
Martin Grebac, http://blogs.sun.com/mgrebac

Web Technologies & Standards
Sun Microsystems Czech

ICQ: 93478885


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net





 XML java.net RSS