I'm guessing the clients that Axis's wsdl2java generates look for this 
file/repository automatically, which is why following the steps in the 
article still doesn't work. Right now the Muse client API has a way to 
generate methods so that you can add custom SOAP headers to your request. 
If you do:

        wsdl2java -wsdl MyResource.wsdl -headers

It will add to each method signature an additional parameter, Element[] 
customHeaders, which you can use to pass things like WS-Security values. 
Would it be possible to use the WSS4J API directly to add the headers you 
need for the request?

Dan



"Beil, Matthias" <[EMAIL PROTECTED]> wrote on 03/27/2007 10:55:18 AM:

> Hi Dan,
> 
> thx for the reply.
> 
> Yes, the ConfigurationContext is part of Axis2 client API. What I've 
found out
> so far for the integration of rampart is that I need on the client side 
an 
> axis2.xml file and also a service.xml file. In other words this means 
that I 
> have to set up a client side repository. 
> 
> I found following URL http://wso2.org/library/585 for "Different Ways of 

> Creating a ConfigurationContext in Axis2". I tried to set the properties 
-
> Daxis2.xml and -Daxis2.repo but that seems not to be enough.
> 
> So I think what I need is a way to make the Muse classes 
ConfigurationContext 
> aware, or at least set the Axis environment with a configuration context 
so 
> that the client repository is used. As rampart is a Axis2 handler the 
server 
> call must go through Axis2 handlers.
> 
> Setting up the server side was easy, now the server rejects each 
incoming 
> message as there is no security header ;-)
> 
> Best regards,
> Matthias
> 
> -----Ursprüngliche Nachricht-----
> Von: Daniel Jemiolo [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 27. März 2007 16:20
> An: [email protected]
> Betreff: Re: Setting ConfigurationContext for NotificationProducerClient
> 
> Is the client's ConfigurationContext part of the Axis2 client API? The 
> generated clients aren't Axis2-based clients, so I'm not sure how you'd 
> add that in. Perhaps you can tell us exactly what is involved in making 
> the client aware of Rampart and we can propose a way to integrate the 
> Axis2 API usage with the Muse client class.
> 
> Dan
> 
> 
> 
> "Beil, Matthias" <[EMAIL PROTECTED]> wrote on 03/26/2007 12:13:30 PM:
> 
> > Hi,
> > 
> > 
> > 
> > is there a way in Muse to set the ConfigurationContext for the client?
> > 
> > 
> > 
> > I need to set the ConfigurationContext in the client to make the 
client
> > aware of the rampart initialization. As I don't want to start to write 
a
> > complete new client I would like to continue to use the Muse 
convenient
> > NotificationProducerClient class. But I can't find a way how to set 
the
> > ConfigurationContext.
> > 
> > 
> > 
> > Just setting the -Daxis2.xml and -Daxis2.repo variables don't change
> > anything.
> > 
> > 
> > 
> > Mit freundlichen Gruessen / With kind regards
> > 
> > Matthias Beil
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to