I have a Service running in session <service name="POCService" provider="java:RPC"> <requestFlow> <handler type="java:org.apache.axis.handlers.SimpleSessionHandler"/> </requestFlow> <responseFlow> <handler type="java:org.apache.axis.handlers.SimpleSessionHandler"/> </responseFlow> <parameter name="allowedMethods" value="*"/> <parameter name="className" value="testservice.POC"/> <parameter name="scope" value="session"/> </service> This Service has code in its constructor that outputs the current session ID and the getMaintainSession value (true or false).
I created Client code for this session using wsdl2java. When I run the Client code, I am seeing new Sessions every call and getMaintainSession shows false. This is the code where I create the binding (using wsdl2java generated classes)... POCServiceLocator loc = new POCServiceLocator(); loc.setMaintainSession(true); POCServiceSoapBindingStub binding = (POCServiceSoapBindingStub) loc.getPOCService(); Then I call... binding.X(); binding.Y(); etc. Is there something I need to do when running wsdl2java, to do when making the call through the binding, or to tweak in the code generated by wsdl2java in order to get the client to use the session? thx andy