threading problem insidea Handler

2006-03-27 Thread GIBERT Philippe RD-BIZZ-SOP



Hi,
i have a handler deployed in Axis 1.2 that must call a 
Web Service at the end of the handle Response operation.
The Web service call is synchronous and works well when 
called  from a classical WSC ( not in a Handler)
but here inside the handler, the call blocks and never 
returns... threading  problem?  event select loop  
problem?
 
Any idea would be appreciated 
thx
philippe
 


De : robert lazarski 
[mailto:[EMAIL PROTECTED] Envoyé : jeudi 23 mars 2006 
13:22À : axis-user@ws.apache.orgObjet : Re: 
Correlation between SOAP Request an response handlers?
This worked for me back in axis 1.x : import 
javax.xml.rpc.handler.Handler;public class ClientHandler implements 
Handler {  public boolean handleResponse(MessageContext context) 
{   doLDAPLogin(context); } ...  public 
boolean doLDAPLogin(javax.xml.rpc.handler.MessageContext javaxcontext) 
{ org.apache.axis.MessageContext mc = 
(org.apache.axis.MessageContext) javaxcontext;  }}Keep in 
mind in later Axis 1.x releases there is a static method that can get a hold of. 
>From the faq: How do I get access to the MessageContext in my service 
object? 
Use the static MessageContext.getCurrentContext() method at any 
  time during a method call on your object.HTH,Robert http://www.braziloutsource.com
On 3/23/06, GIBERT 
Philippe RD-BIZZ-SOP < 
[EMAIL PROTECTED]> wrote:

  
  Tanks 
  robert... but all these useful operations get* methods areavailable in the 
  case of an Axis handler..
  not in the 
  case of jax rpc handler , right ?  ( i had a glance to javax.xml.rpc.handler javadoc and i have seen nothing on 
  that , just HandlerInfo with little information)
  So , As my handler  
  could be hosted  on Jonas, Jboss or Axis,  i think it is mandatoryin 
  my case  to be jax-rpc compliant, right 
  ?
   
  philippe
  
  
  De : robert lazarski [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 
  22 mars 2006 12:12À : axis-user@ws.apache.orgObjet : Re: 
  Correlation between SOAP Request an response handlers?
  A session id can be created using java.util.UUID . MessageContext 
  has I believe the other info you're looking for - see the list of get*() 
  methods. HTH,Robert http://www.braziloutsource.com
  On 3/22/06, GIBERT 
  Philippe RD-BIZZ-SOP < 
  [EMAIL PROTECTED]> wrote: 
  GregThanx 
a lot .. I have seen the source of LogHandler , not far from my problem 
But i think, i also need 
:- a kind of SessionID 
to  map a request and a response ( Axis SessionHandler perhaps as 
a starting point ?)- the 
IP source and destination ( possible at the SOAP handler level or may i put 
in the chain a handler at transport level?)Any already developed 
handler with these requirements ?Philippe-Message 
d'origine-De : Greg Pelly [mailto: [EMAIL PROTECTED]]Envoyé 
: mardi 21 mars 2006 18:26À : axis-user@ws.apache.orgObjet : RE: Correlation between 
SOAP Request an response handlers?Philippe,Yes, add your 
handler to the  of your server-config.wsdd under 
the  and  and I believe you should be 
on your way (provided you want the two cases handled 
identically).Greg-Original Message-From: GIBERT 
Philippe RD-BIZZ-SOP[mailto:[EMAIL PROTECTED] ]Sent: Tuesday, 
March 21, 2006 9:13 AMTo: axis-user@ws.apache.orgSubject: Correlation between 
SOAP Request an response handlers?hi everybody,My 
environment: win XP + Axis 1.2My problem :i need to do correlation 
(storing each req/response pairs andcalculating roundtrip time 
)  between SOAP requests from WS client andSOAP Response/Fault 
from a Wservice I think handler could be a solution, but i don't know 
:   - If only one handler (intercepting request Flow and just 
afterresponse Flow ) can do the job ?   - If the handler 
could be deployed globally in the Axis runtime tointercept all the 
running web services ? Any idea or pointer 
?Thanksphilippe


RE: Correlation between SOAP Request an response handlers? Ip remote problem

2006-03-23 Thread GIBERT Philippe RD-BIZZ-SOP



thanx again robert it's  ok .. or quite ok 
:-)
 
i see and call all the get* 
methods  
getTransportName()  --> 
SimpleHTTPgetRequestMessage() --> [EMAIL PROTECTED]getResponseMessage() --> 
nullgetTargetService() --> 
HelloPortgetAxisEngine() --> 
[EMAIL PROTECTED]
MC_REALPATH:axis/services/HelloPort
 
But  the one that is mainly in interest for me ( that returns 
remoteIP) , return null :System.out.println("remoteIP:"+ 
ctxAxis.getStrProp(Constants.MC_REMOTE_ADDR));-->
remoteIP : null
 
i have tried different  clients applications ( java clients or 
commercial tools , same machine or not ..., in all cases the IP stay at null... 
? 
something to set up in Axis engine ?
 
philippe



De : robert lazarski 
[mailto:[EMAIL PROTECTED] Envoyé : jeudi 23 mars 2006 
13:22À : axis-user@ws.apache.orgObjet : Re: 
Correlation between SOAP Request an response handlers?
This worked for me back in axis 1.x : import 
javax.xml.rpc.handler.Handler;public class ClientHandler implements 
Handler {  public boolean handleResponse(MessageContext context) 
{   doLDAPLogin(context); } ...  public 
boolean doLDAPLogin(javax.xml.rpc.handler.MessageContext javaxcontext) 
{ org.apache.axis.MessageContext mc = 
(org.apache.axis.MessageContext) javaxcontext;  }}Keep in 
mind in later Axis 1.x releases there is a static method that can get a hold of. 
>From the faq: How do I get access to the MessageContext in my service 
object? 
Use the static MessageContext.getCurrentContext() method at any 
  time during a method call on your object.HTH,Robert http://www.braziloutsource.com
On 3/23/06, GIBERT 
Philippe RD-BIZZ-SOP < 
[EMAIL PROTECTED]> wrote:

  
  Tanks 
  robert... but all these useful operations get* methods areavailable in the 
  case of an Axis handler..
  not in the 
  case of jax rpc handler , right ?  ( i had a glance to javax.xml.rpc.handler javadoc and i have seen nothing on 
  that , just HandlerInfo with little information)
  So , As my handler  
  could be hosted  on Jonas, Jboss or Axis,  i think it is mandatoryin 
  my case  to be jax-rpc compliant, right 
  ?
   
  philippe
  
  
  De : robert lazarski [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 
  22 mars 2006 12:12À : axis-user@ws.apache.orgObjet : Re: 
  Correlation between SOAP Request an response handlers?
  A session id can be created using java.util.UUID . MessageContext 
  has I believe the other info you're looking for - see the list of get*() 
  methods. HTH,Robert http://www.braziloutsource.com
  On 3/22/06, GIBERT 
  Philippe RD-BIZZ-SOP < 
  [EMAIL PROTECTED]> wrote: 
  GregThanx 
a lot .. I have seen the source of LogHandler , not far from my problem 
But i think, i also need 
:- a kind of SessionID 
to  map a request and a response ( Axis SessionHandler perhaps as 
a starting point ?)- the 
IP source and destination ( possible at the SOAP handler level or may i put 
in the chain a handler at transport level?)Any already developed 
handler with these requirements ?Philippe-Message 
d'origine-De : Greg Pelly [mailto: [EMAIL PROTECTED]]Envoyé 
: mardi 21 mars 2006 18:26À : axis-user@ws.apache.orgObjet : RE: Correlation between 
SOAP Request an response handlers?Philippe,Yes, add your 
handler to the  of your server-config.wsdd under 
the  and  and I believe you should be 
on your way (provided you want the two cases handled 
    identically).Greg-----Original Message-From: GIBERT 
Philippe RD-BIZZ-SOP[mailto:[EMAIL PROTECTED] ]Sent: Tuesday, 
March 21, 2006 9:13 AMTo: axis-user@ws.apache.orgSubject: Correlation between 
SOAP Request an response handlers?hi everybody,My 
environment: win XP + Axis 1.2My problem :i need to do correlation 
(storing each req/response pairs andcalculating roundtrip time 
)  between SOAP requests from WS client andSOAP Response/Fault 
from a Wservice I think handler could be a solution, but i don't know 
:   - If only one handler (intercepting request Flow and just 
afterresponse Flow ) can do the job ?   - If the handler 
could be deployed globally in the Axis runtime tointercept all the 
running web services ? Any idea or pointer 
?Thanksphilippe


RE: Correlation between SOAP Request an response handlers?

2006-03-23 Thread GIBERT Philippe RD-BIZZ-SOP



Tanks robert... but all these useful operations get* 
methods areavailable in the case of an Axis handler..
not in the case of jax rpc handler , right ?  ( i 
had a glance to javax.xml.rpc.handler javadoc and i have 
seen nothing on that , just HandlerInfo with little 
information)
So , As my handler  could be hosted 
 on Jonas, Jboss or Axis,  i think it is mandatoryin my case  to 
be jax-rpc compliant, right ?
 
philippe


De : robert lazarski 
[mailto:[EMAIL PROTECTED] Envoyé : mercredi 22 mars 2006 
12:12À : axis-user@ws.apache.orgObjet : Re: 
Correlation between SOAP Request an response handlers?
A session id can be created using java.util.UUID . MessageContext has 
I believe the other info you're looking for - see the list of get*() methods. 
HTH,Robert http://www.braziloutsource.com
On 3/22/06, GIBERT 
Philippe RD-BIZZ-SOP < 
[EMAIL PROTECTED]> wrote:
GregThanx 
  a lot .. I have seen the source of LogHandler , not far from my problem 
  But i think, i also need 
  :- a kind of SessionID 
  to  map a request and a response ( Axis SessionHandler perhaps as a 
  starting point ?)- the IP 
  source and destination ( possible at the SOAP handler level or may i put in 
  the chain a handler at transport level?)Any already developed handler 
  with these requirements ?Philippe-Message 
  d'origine-De : Greg Pelly [mailto: 
  [EMAIL PROTECTED]]Envoyé : mardi 21 mars 2006 18:26À : axis-user@ws.apache.orgObjet : 
  RE: Correlation between SOAP Request an response 
  handlers?Philippe,Yes, add your handler to the 
   of your server-config.wsdd under the 
   and  and I believe you should be on 
  your way (provided you want the two cases handled 
  identically).Greg-Original Message-From: GIBERT 
  Philippe RD-BIZZ-SOP[mailto:[EMAIL PROTECTED] 
  ]Sent: Tuesday, March 21, 2006 9:13 AMTo: axis-user@ws.apache.orgSubject: 
  Correlation between SOAP Request an response handlers?hi 
  everybody,My environment: win XP + Axis 1.2My problem :i need to 
  do correlation (storing each req/response pairs andcalculating roundtrip 
  time )  between SOAP requests from WS client andSOAP 
  Response/Fault from a Wservice I think handler could be a solution, but i 
  don't know :   - If only one handler (intercepting request Flow 
  and just afterresponse Flow ) can do the job ?   - If the 
  handler could be deployed globally in the Axis runtime tointercept all the 
  running web services ? Any idea or pointer 
  ?Thanksphilippe


RE: Correlation between SOAP Request an response handlers?

2006-03-22 Thread GIBERT Philippe RD-BIZZ-SOP
 
Greg
Thanx a lot .. I have seen the source of LogHandler , not far from my problem
But i think, i also need :
- a kind of SessionID to  map a request and a response ( Axis 
SessionHandler perhaps as a starting point ?)
- the IP source and destination ( possible at the SOAP handler level or 
may i put in the chain a handler at transport level?)

Any already developed handler with these requirements ?

Philippe

-Message d'origine-
De : Greg Pelly [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 21 mars 2006 18:26
À : axis-user@ws.apache.org
Objet : RE: Correlation between SOAP Request an response handlers?

Philippe,

Yes, add your handler to the  of your server-config.wsdd 
under the  and  and I believe you should be on your 
way (provided you want the two cases handled identically).

Greg

-Original Message-
From: GIBERT Philippe RD-BIZZ-SOP
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 21, 2006 9:13 AM
To: axis-user@ws.apache.org
Subject: Correlation between SOAP Request an response handlers?


 hi everybody,
My environment: win XP + Axis 1.2
My problem :
 i need to do correlation (storing each req/response pairs and
calculating roundtrip time )  between SOAP requests from WS client and
SOAP Response/Fault from a Wservice I think handler could be a solution,
but i don't know :
   - If only one handler (intercepting request Flow and just after
response Flow ) can do the job ?
   - If the handler could be deployed globally in the Axis runtime to
intercept all the running web services ?

Any idea or pointer ?

Thanks
philippe

 



Correlation between SOAP Request an response handlers?

2006-03-21 Thread GIBERT Philippe RD-BIZZ-SOP
 hi everybody,
My environment: win XP + Axis 1.2
My problem :
 i need to do correlation (storing each req/response pairs and
calculating roundtrip time )
 between SOAP requests from WS client and SOAP Response/Fault from a
Wservice
I think handler could be a solution, but i don't know :
   - If only one handler (intercepting request Flow and just after
response Flow ) can do the job ?
   - If the handler could be deployed globally in the Axis runtime to
intercept all the running web services ?

Any idea or pointer ?

Thanks
philippe

 


Web service constructor call

2005-10-17 Thread GIBERT Philippe RD-BIZZ-SOP
 
Hi,
my Environment : Axis 1.2 + tomcat 5.0 on linux 

I would like to have A web service constructor to be called  when
axis/tomcat starts 
without any web service client call?
Is this possible ?  I have not found  any clue in the  wsdd file
documentation 
Or at the  wsdd reference  site http://www.osmoticweb.com/axis-wsdd/

philippe
 


RE: Axis web-service remote deployment

2005-09-06 Thread GIBERT Philippe RD-BIZZ-SOP
Hi ania

In eclipse 3.1 with wst tools 0.7.0 you have this feature ; i use to 
automatically deploy to a tomcat 5.X 

philippe

-Message d'origine-
De : Anna Krajewska [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 6 septembre 2005 09:36
À : axis-user
Objet : Axis web-service remote deployment

I'm using axis 1.2.1 and eclipse with the most new wtp plug-in. I would like to 
know if there is some possibility to automatic deploy my web-service on remote 
server. Maybe some of you know some usefull eclipse plug-in or some other tool 
that makes it possible?

regards,

ania



RE: application scope in axis 1.2

2005-08-19 Thread GIBERT Philippe RD-BIZZ-SOP
 
Hi richard
It works well form me .. But i have value="application" .. Just the "a" in 
lowercase
philippe
-Message d'origine-
De : richard falconer [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 19 août 2005 11:45
À : axis-user@ws.apache.org
Objet : application scope in axis 1.2

Hi,

I originally deployed my axis 1.2.1 service with the  As expected each time my client invokes a service method a 
new instance of the class is created to satisfy the request. However I've tried 
to change this so that I can do some one-off bootstrapping of resources so 
changed the parameter setting to the following:



However I'm still getting a new instance of my class generated for each client 
request. Also tried removing the parameter altogether but again my class is 
being re-created each time a request comes in.

Any help appreciated,
thanks Richard 




TR: Really a DIIclient in Axis?

2005-07-11 Thread GIBERT Philippe RD-BIZZ-SOP
Title: TR: Really a DIIclient in Axis?







hello,


My context : Axis1.2 on windows, WSP and WSC Axis/java

I have a WSP that expose the following operation, returning a Bill type:

   public Bill compute Bill ()


I have defined the Bill type in the wsdd file as following :



  

    xmlns:ns="http://endpoints.ws.Fun"

    qname="ns:Bill"

    languageSpecificType="java:MyServices.Bill"

    serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"

    deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"

    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"

  />

My WSP is deployed/runnnig in Axis/tomcat and it is called from an Axis  WSC

Like this….

call.setOperationName("computeBill");

Bill bill = (Bill)call.invoke( new Object[] {} );

…...

Everything is ok , but i want to really have a pure DII WSC approach, without having the client code

knowing the classes and services that will be called and my problem is that i need to declare 


QName qnBill= new QName("http://endpoints.ws.Fun", "Bill");

     call.registerTypeMapping(Bill.class, qnBill,

                      new BeanSerializerFactory(Bill.class,qnBill),

                      new BeanDeserializerFactory(Bill.class,qnBill));


at the beginning of the WSC code … 

So my question is :

How to develop/code my WSC to don't know  classes at compile time …?


Any idea 

Thx 

Philippe 






RE: Axis WS constructor problem

2005-07-04 Thread GIBERT Philippe RD-BIZZ-SOP



hi ferruh,
 
thx a  lot ,
 it is OK now.
philippe


De : Ferruh Zamangoer 
[mailto:[EMAIL PROTECTED] Envoyé : lundi 4 juillet 2005 
14:15À : axis-user@ws.apache.orgObjet : AW: Axis 
WS constructor problem


Hello 
Phillipe,
 
I think you must set in 
your wsdd file the following options.
 

  
value = “application”>
 
Then you have one 
instance of you service an every request is processes by this instance.  I 
think you have now the value request this means on every new request an instance 
of your web service is created.
 
Hope it 
helps.
 
Regards
Ferruh
 




Von: GIBERT Philippe RD-BIZZ-SOP 
[mailto:[EMAIL PROTECTED] Gesendet: Montag, 4. Juli 
2005 14:06An: axis-user@ws.apache.orgBetreff: RE: Axis WS constructor 
problem
 
 Hello,
Having deployed a Web 
Service on a  Axis 1.2 ( Jonas 4.2)
it seems that my Web 
Service  is instantiated at each call. ( the constructor is called at each 
WSC call)
but i just want the 
constructor to be called once , is it possible ?

could this property be 
changed ( in the wsdd file ?)

 
philippe 
 
Hi,I  have an already developped/deployed web 
service in a WASP 5.0 engine that works well, called by a WSC also 
developpedwith WASP 5.0. The WS consummer make 3  calls , and beetwen 
the calls i keep some kind of session values on  the WS provider 
side.That value is used on the server side, to  identify the WSC 
callingI had to  deploy  that Web Service on Axis.I have 
done  the translation and deploy on Axis 1.2 
/Jonas.
but each 
time  my WSC ( developped with axis) calls the WSP,  i have a call to 
the WSC constructor , loosing my  sessionID
i have not 
this behaviour with WASP, having just the WSP constructor called one time 
...
may I 
deploy with special settings in Axis ?
any clue 
?

 

regards

philippe
Philippe Gibert  +33 492945370France 
Telecom R&D – BIZZ/DIAM905, rue Albert Einstein06921 Sophia 
Antipolios Cedex


RE: Axis WS constructor problem

2005-07-04 Thread GIBERT Philippe RD-BIZZ-SOP



 Hello,
Having deployed a Web Service on a 
 Axis 1.2 ( Jonas 
4.2)
it seems that my Web Service 
 is instantiated at each call. ( the constructor is called at each WSC 
call)
but i just want the constructor to 
be called once , is it possible ?
could this property be changed ( in the wsdd file 
?)
 
philippe 

Hi,I  have an already developped/deployed web service 
in a WASP 5.0 engine that works well, called by a WSC also developpedwith WASP 5.0. The 
WS consummer make 3  calls , and beetwen the calls i keep some kind of 
session values on  the WS provider side.That value is used on the 
server side, to  identify the WSC callingI had to  deploy  
that Web Service on Axis.I have done  the translation and deploy on Axis 
1.2 /Jonas.
but each time  my WSC ( developped with axis) calls the 
WSP,  i have a call to the WSC constructor , loosing my  
sessionID
i have not this behaviour with WASP, having just the WSP 
constructor called one time ...
may I deploy with special settings in Axis ?
any clue ?
 
regards
philippe
Philippe Gibert  +33 492945370France Telecom R&D – 
BIZZ/DIAM905, rue Albert Einstein06921 Sophia Antipolios 
Cedex


Axis WS constructor problem

2005-07-01 Thread GIBERT Philippe RD-BIZZ-SOP



Hi,I  have an already developped/deployed web service 
in a WASP 5.0 engine that works well, called by a WSC also developpedwith WASP 5.0. The 
WS consummer make 3  calls , and beetwen the calls i keep some kind of 
session values on  the WS provider side.That value is used on the 
server side, to  identify the WSC callingI had to  deploy  
that Web Service on Axis.I have done  the translation and deploy on Axis 
1.2 /Jonas.
but each time  my WSC ( developped with axis) calls the 
WSP,  i have a call to the WSC constructor , loosing my  
sessionID
i have not this behaviour with WASP, having just the WSP 
constructor called one time ...
may I deploy with special settings in Axis ?
any clue ?
 
regards
philippe
Philippe Gibert  +33 492945370France Telecom R&D – 
BIZZ/DIAM905, rue Albert Einstein06921 Sophia Antipolios 
Cedex