The Stub class that you are type casting the "math" port type has the method. So if you use the code as it is and compile, it should work.
Rachana > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ketan C Maheshwari > Sent: Friday, June 15, 2007 9:05 AM > To: [email protected] > Subject: [gt-user] Credential Delegation > > Hi All > > I am generating my service stubs using the GDT plugin for eclipse. > Now I want to set the client to delegate its credentials to > the service. > > Borja's tutorial says to do the following on the client: > *** > // Get PortType > math = locator.getMathPortTypePort(endpoint); > > // Setup security options > ((Stub) math)._setProperty(Constants.GSI_SEC_CONV, > Constants.SIGNATURE); > ((Stub) math)._setProperty(GSIConstants.GSI_MODE, > GSIConstants.GSI_MODE_FULL_DELEG); > ((Stub) math)._setProperty(Constants.AUTHORIZATION, > HostAuthorization.getInstance()); > > *** > > However, on my mathporttype, I could not find _setProperty method. > Anything else is required while setting up service/generating stubs? > > Or some configuration in GT4 is required? > > Any suggestions? > > Regards > Ketan > >
