Antoine,

Can I clarify what you're trying to do here? Are you trying to have a stateful session with a particular instance of a service i.e. the same service gets called twice? Or pass context across the-wire on subsequent uses of the same stub?

thanks,
John.




"Antoine Galataud" <[EMAIL PROTECTED]>

21/03/2006 09:27

Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org>

To
"Apache AXIS C User List" <axis-c-user@ws.apache.org>
cc
Subject
Re: Application, Session or Request scope





Hi !

I've found no way to solve my scope issue for the moment, I'm still looking for a way to do this (application scope, not handlers).

Thanks for any idea !

2006/3/16, Antoine Galataud < [EMAIL PROTECTED]>:
It doesn't work :

in fact, I succeeded in getting a session scope, e.g I request the service 2 times in the same main() client, but I can't have an application scope. But I don't get the error I described in my earlier mail, now it gives me nothing. And I'm talking about service scope, I don't use any handler.

Thanks for your answer

2006/3/16, John Hawkins <[EMAIL PROTECTED] >:

I've just looked at this again and I'm not sure I understand your question now!



If I look at your wsdd file it doesn't look correct to my thoughts (is it the complete wsdd file?) e.g. this is a client sample wsdd file

<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xlmns:C="http//xml.apache.org.axis/wsdd/providers/c">
 <service name="Handler" provider="CPP:DOCUMENT" description="Handler">
 <requestFlow>
 <handler name="myClientHandlerReq" type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler name="myClientHandlerReq" type="<inst_dir>\samples\handlers\myClientHandler.dll">
 </handler>
 </requestFlow>
 <responseFlow>
 <handler name="myClientHandlerRes" type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler name="myClientHandlerRes" type="<inst_dir>\samples\handlers\myClientHandler.dll">
 </handler>
 </responseFlow>
 </service>
 </deployment>










"Antoine Galataud" <[EMAIL PROTECTED]>

16/03/2006 12:57


Please respond to
"Apache AXIS C User List" <
axis-c-user@ws.apache.org>

To
"Apache AXIS C User List" <axis-c-user@ws.apache.org>
cc
Subject
Re: Application, Session or Request scope







yes, i'm referring to the service scope. I saw in the doc that I could set a scope for handlers in response/reauest flows, but I didn't see anything about service.

I'll try to set the scope also in client.wsdd, maybe it's what I'm missing.

Thanks for any further comments/suggestions.

2006/3/16, James Jose <
[EMAIL PROTECTED] >:

Hi,


 We are running HandlerTest01 to HandlerTest10.  But here Antoine is referring the scope of the service ..?


Regards
James
--------------------------------------------------
James Jose
Messaging Clients Team, WMQDDC
IBM Software Labs, India
Direct: 91-80- 25094331  Ext :2331
E-mail:
[EMAIL PROTECTED]


John Hawkins < [EMAIL PROTECTED]>

03/16/2006 17:50

Please respond to
"Apache AXIS C User List"


To
"Apache AXIS C User List" <axis-c-user@ws.apache.org >
cc
Subject
Re: Application, Session or Request scope










Well, service and global handlers should work for the client and I'm surprised they aren't working for the server. Can you try it in the client and see if you get the same results. James - what tests do we run on handlers nowadays?


"Antoine Galataud" <[EMAIL PROTECTED] >

16/03/2006 11:38

Please respond to
"Apache AXIS C User List" <
axis-c-user@ws.apache.org >


To
"Apache AXIS C User List" <axis-c-user@ws.apache.org >
cc
Subject
Re: Application, Session or Request scope











So, is there any work around to get this feature working ?

Thanks for your answer

2006/3/15, Antoine Galataud <
[EMAIL PROTECTED] >:
Hum, seems scope is not yet correctly implemented (or tested) in 1.6a.n (solaris) release. Here is my server.wsdd :

<service name="IAdminConfiguration" provider="CPP:RPC" description="IAdminConfiguration Web Services">
    <parameter name="allowedMethods" value="notifyDictionaryReinit initService"/>
    <parameter name="scope" value="application">
    <parameter name="className" value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
</service>

If I do that I get this in the init logs :

[15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope @11cec8,"application"

But if I invoke the service, it fails with :

[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException @ff0da988,7, <null>
[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > getMessageForExceptionCode @ff0da988,7
[15/03/2006 13:40:49:216 MET] 1 AxisWsddException < getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service not found"

I also tested with request and session scopes, it failed too.

2006/3/9, John Hawkins <
[EMAIL PROTECTED]>:

I'll put it this way - it's not tested.


"Antoine Galataud" <[EMAIL PROTECTED] >

09/03/2006 14:23

Please respond to
"Apache AXIS C User List" <
axis-c-user@ws.apache.org >


To
"Apache AXIS C User List" <axis-c-user@ws.apache.org >
cc
Subject
Application, Session or Request scope













Hi !

does Axis 1.6x handle scope ? I tried to add a scope="Application" in
my service declaration in server.wsdd, but it doesn't seem to work...

Thanks
--
Antoine Galataud

[EMAIL PROTECTED]

D�partement Architecture des Syst�mes d'Information
INSA - Rouen





--

Antoine Galataud

[EMAIL PROTECTED]
D�partement Architecture des Syst�mes d'Information
INSA - Rouen



--
Antoine Galataud

[EMAIL PROTECTED]
D�partement Architecture des Syst�mes d'Information
INSA - Rouen



--
Antoine Galataud

[EMAIL PROTECTED]
D�partement Architecture des Syst�mes d'Information
INSA - Rouen




--
Antoine Galataud

[EMAIL PROTECTED]
Département Architecture des Systèmes d'Information
INSA - Rouen




--
Antoine Galataud

[EMAIL PROTECTED]
Département Architecture des Systèmes d'Information
INSA - Rouen

Reply via email to