Hi,

First time post so I'll try to be as accurate as I can and if anyone needs anymore information then please just ask.

Basically I have a webservice that Im using to enable interop between java and .net.

My idea is to have the java class that does all the processing I need to be instatiated and then the web service will pass on the requests from my .net client to the intantiated java object.

The issue im having is that I cant get the webservice to maintain the instantiated java logic class between method calls from my .net client.The first method is called and that does seem to put the inputWin object into the session, but when I use the same code to retrieve the object in the browse A method, null is being returned.

Here is what I have so far....

Webservice
@WebService()
public class OptekWebService {
    @Resource private WebServiceContext wsContext;
 
 
    public String getCounter(){
        MessageContext mc = wsContext.getMessageContext();
        wsContext.toString();
        HttpSession session = ((javax.servlet.http.HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST)).getSession();
 
        session.setAttribute("counter", new inputWin());
        return "var is " + ((inputWin)session.getAttribute("counter")).toString();
    }
 
@WebMethod
    public String BrowseA(@WebParam(name="input") String[] inputArray)
    {
        MessageContext mc = wsContext.getMessageContext();
        HttpSession session = ((javax.servlet.http.HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST)).getSession();
 
        return "var is " + ((inputWin)session.getAttribute("counter");
    }

Any help is greatly appreciated, please let me know if you need anymore information.

Kind Regards

Ash