I found this thread and it's the exact issue I'm running up against.  I
generated a client using the Eclipse plugin, it's perfect, except I
cannot get WS-Security added in as suggested in the documentation.  I am
in the same boat on the lack of a get*SOAP method or class without the
benefit of the getPort methods mentioned below.

 

Any help would be greatly appreciated.

 

-Jason

 

 

        Nope, I just tried once again (I'm using xfire 1.2.4).

          The *ServiceClient has the following methods:

           public Object getEndpoint(Endpoint endpoint)

           public Object getEndpoint(QName name)

           private void create0()

           public WSMidwayServicePortType
getWSMidwayServicePortTypeLocalEndpoint()

           public WSMidwayServicePortType

          getWSMidwayServicePortTypeLocalEndpoint(String url)

           public WSMidwayServicePortType getWSMidwayServiceHttpPort()

           public WSMidwayServicePortType
getWSMidwayServiceHttpPort(String url)

          

          BTW,

          UnsecuredWSMidwayServicePortType port =

          unsecuredServiceClient.getUnsecuredWSMidwayServiceHttpPort();

                       

          Client client = Client.getInstance(port);

          

          (Using the port instead of the ServiceClient) seems to work
fine.

          Is this correct?

          

          Thank you very much for you patiece.

          

          F.

          

          On 6/19/07, Tomek Sztelak <tszte...@gmail...

          > so you don't have any get*Soap method on your client ?

          >

          > On 6/19/07, Fausto Lelli <fausto.le...@gmail...

          > > Already seen this, but

          > > GeoIPServiceSoap geoIPClient =
service.getGeoIPServiceSoap();

          > > An equivalent method on my generated client is nowhere to
be found.

          > >

          > > F.

          > > On 6/19/07, Tomek Sztelak <tszte...@gmail...

          > > >
http://xfire.codehaus.org/Client+and+Server+Stub+Generation+from+WSDL

          > > >

          > > > On 6/19/07, Fausto Lelli <fausto.le...@gmail...

          > > > > Still not working :(

          > > > >

          > > > > //jaxb generated client

          > > > > WSMidwayServiceClient unsecuredClient = new
WSMidwayServiceClient();

          > > > >

          > > > > //get client instance to install security handlers

          > > > > Client client = Client.getInstance(unsecuredClient);

          > > > >

          > > > > got exception:

          > > > > IllegalArgumentException : not a proxy class.

          > > > >

          > > > >

          > > > > Thanx,

          > > > > Fausto.

          > > > >

          > > > >

          > > > > On 6/19/07, Tomek Sztelak <tszte...@gmail...

          > > > > > Client client =
Client.getInstance(GENERATED_CLIENT);

          > > > > > client.addOutHandler(...)

          > > > > >

          > > > > > On 6/19/07, Fausto Lelli <fausto.le...@gmail...

          > > > > > > Hi,

          > > > > > >

          > > > > > > > "regular" client (check docs or examples folder)

          > > > > > > can you point to some example ? my problem is that

          > > > > > > I know how to attach security handler to a dynamic
client but

          > > > > > > not to jaxb-bound portType.

          > > > > > >

          > > > > > > Any help would be greatly appreciated.

          > > > > > > Fausto.

          > > > > > >

          > > > > > > On 6/19/07, Tomek Sztelak <tszte...@gmail...

          > > > > > > > You can configure ws-sec on generated client in
the same way as on

          > > > > > > > "regular" client (check docs or examples folder)

          > > > > > > >

          > > > > > > > On 6/18/07, Fausto Lelli <fausto.le...@gmail...

          > > > > > > > > Hi,

          > > > > > > > >

          > > > > > > > > Is it currently possible to use WsGen to
generate

          > > > > > > > > jaxb client with ws-security enabled ?

          > > > > > > > >

          > > > > > > > > If not, is it possible to programmatically
configure

          > > > > > > > > ws-security support in a jaxb generated client
?

          > > > > > > > >

          > > > > > > > > Thanx

          > > > > > > > >

          > > > > > > > > Fausto

          > > > > > > > >

 

 

Reply via email to