Hello, I see no answers yet to your post, I had the same problem, but there is a workaround in axis using AxisEngine object. My conerns is that what to do in other jaxrpc implementations? I dont think jaxrpc spec covert this!!! The needs to gain access to data btwn stub calls from a soap handler is real. Does anyone out there know the answer to this? Thanks Nan
> -----Original Message----- > From: Wolfram Ditzer [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 16, 2003 8:17 AM > To: [EMAIL PROTECTED] > Subject: transfer pars from client stub to transport pivot handler > > > Hello > > Im creating a web service client with axis from a wsdl file. > In client_deploy.wsdd I define a own Transport handler for http the > class MyHttpSender. > In my client stub class (class MyClientStub) I want to store some > variables which should be used by > the MyHttpSender. I thought I coul use the setProperty() adn > getProperty > of my MessageContext > But it does not work , I just get nulls! > > Bye Wolfram > > > I do this > > MyClientStub > request(..) > { > ... > MessageContext msgContext = _call.getMessageContext(); > msgContext.setProperty(OrcaHttpSender.ATTR_CONNECTION, conn); > msgContext.setProperty(OrcaHttpSender.ATTR_CONNECTION + > "blub", "hallo"); > ... > invoke() > .. > } > > MyHttpSender > invoke(...) > { > ... > // get the connection > String versuch = (String) > msgContext.getProperty(OrcaHttpSender.ATTR_CONNECTION + "blub"); > HttpPostConnection conn = (HttpPostConnection) > msgContext.getProperty(OrcaHttpSender.ATTR_CONNECTION); > Socket sock = conn.getSocket(); > ... > } > > > > >
