-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Takanori Suzuki wrote:
> I try to manage a session, but it is failed.
>
> I used the pojo sample 'AddressBook' which is in RC2. The entry is
> not keep when I change as follows:
>
>
> Try : SOAP Session
>
> 1. services.xml <service name="AddressBookService"
> scope="soapsession">
>
> 2. AddressBookRPCClient Options options =
> serviceClient.getOptions(); options.setManageSession(true);
To enable SOAP sessions, you need to do little more work than that,
a) you need to engage addressing module since the SOAP sessions
are maintained with the aid of <wsa:ReferenceParamenters> addressing
header.
RPCServiceClient serviceClient = new RPCServiceClient(..);
serviceClient.engageModule(new QName("", "addressing-1.1");
b) you need to set the soap:Action for the appropriate methods.
for findEntry()
options.setAction("urn:findEntry");
for addEntry()
options.setAction("urn:addEntry");
c) In this case you need to invoke findEntry(..) as the starting point
since
you need to get session info from the server when you about to start a
SOAP session.
Therefore you need to invoke the findEntry(..) to start the SOAP session
and then any method in any sequence you want.
Best,
Sanka
>
>
> Try : Transport Session
>
> 1. services.xml <service name="AddressBookService"
> scope="transportsession">
>
> 2. AddressBookRPCClient Options options =
> serviceClient.getOptions(); options.setManageSession(true);
>
> 3. axis2.xml <parameter name="manageTransportSession"
> locked="false">true</parameter>
>
>
> It failed in both. What's wrong?
>
> Thanks, Takanori Suzuki
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
>
>
- --
Sanka Samaranayake
WSO2 Inc.
T:+94-77-3506382 F:+94-11-2424304
http://sankas.blogspot.com/
http://www.wso2.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
iD8DBQFFUeqD/Hd0ETKdgNIRArCdAJ4tXzCiHrlzIdByMjkktrnPR3i/2QCdHd6Q
/Kz/baOzDF/HciAi/YMyjqE=
=mYgK
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]