RE: MessageContext is null, is something wrong? Still not working! Code given

2009-08-05 Thread Cyril Furtado
After several failed attempts of putting in the zip :),
Java file
public class DocumentService2 implements Lifecycle {
static com.skire.bluedoor.log.Log logger =

com.skire.bluedoor.log.LogSource.getInstance(DocumentService2.class);

public void init(ServiceContext context) throws AxisFault {
logger.debug(DocumentService2 init context 
);
logger.debug(DocumentService2 message 
checking***);
}

public void destroy(ServiceContext context) {
logger.debug(DocumentService2 destroy context );
}
private MessageContext inMessge;
public XMLObject getBPRecord (
 String a1
, String a2
, String a3
, String a4
, String a5
)
{

logger.debug(create*:+this.inMessge);
logger.debug(create***static 
**:+MessageContext.getCurrentMessageContext());

XMLObject xobj = new 
XMLObject();
xobj.setStatusCode(200);
xobj.setXmlcontents(just 
echo);
return xobj;
}
}
Services.xml file
service name=UnifierWebServices scope=Request 
description
 document literal Service
/description
messageReceivers
messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-only;
 
class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver/
messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out;
 
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/messageReceivers
parameter 
name=ServiceClasscom.skire.webservices.service.general.DocumentService2/parameter
operation name=getBPRecord 
mep=http://www.w3.org/2004/08/wsdl/in-out; /

/service

From: Cyril Furtado
Sent: Tuesday, August 04, 2009 7:02 PM
To: 'axis-user@ws.apache.org'
Subject: RE: MessageContext is null, is something wrong? Still not working! 
Code given

Zip file did not go thru sending the f.aar file in .txt, rename to 
web_services.aar

From: Cyril Furtado
Sent: Tuesday, August 04, 2009 6:55 PM
To: 'axis-user@ws.apache.org'
Subject: RE: MessageContext is null, is something wrong? Still not working! 
Code given


Thanks
Deepal,
I am enclosing the java file (DocumentService2.java)  the web_services.aar 
file , in fact I just ran the code again to re verify , same result, 
MessageContext is null.
Thanks
Cyril



Deepal wrote
I am not sure why that does not work for you, if you can send me your
service. I will give it a try.

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 3:45 PM
To: 'axis-user@ws.apache.org'
Subject: RE: MessageContext is null, is something wrong? Still not working!

Thank you Deepal
 I changed my implementation class as given from the below articles
 now my class looks like
public classMy service implements Lifecycle {
public void init(ServiceContext context) throws AxisFault {
   System.out.println(DocumentService2 init context ); // no 
output
   System.out.println(DocumentService2 message checking***);// no 
output
}
public void destroy(ServiceContext context) {
System.out.println(DocumentService2 destroy context ); // no 
output
}
public getRecord(int id){
   System.out.println(create***static 
**:+MessageContext.getCurrentMessageContext()); // output null
   return Record.getId();
}
}

my service response gets the correct info ( I have no problem here, its only 
when I want to check the MessageContext)
but the ONLY sys out is create***static **:null
other sys outs are not seen init does not show up
Im using axis2-1.4.1
MessageContext still elusive



I am sorry, those methods does not work anymore. Please refer to the
following article.

https://wso2.org/library/articles/axis2-session-management
http://blogs.deepal.org/2009/06/axis2-tutorials-and-articles.html

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 1:50 PM
To: 'axis-user@ws.apache.org'
Subject: MessageContext is null, is something wrong?

I have in my implementation class added two methods as given in Axis2 articles
public void init(MessageContext inMessge, MessageContext outMessage) {
 // store the message contexts
System.out.println(init message called); // 
is not seen in output  

RE: MessageContext is null, is something wrong? Still not working! Code given

2009-08-05 Thread Martin Gainty

could you please supply the WSDL?

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




From: cyr...@skire.com
To: axis-user@ws.apache.org
Date: Wed, 5 Aug 2009 10:11:46 -0700
Subject: RE: MessageContext is null, is something wrong? Still not working! 
Code given
















After several failed attempts of
putting in the zip J, 

Java file

public class DocumentService2
implements Lifecycle {

static
com.skire.bluedoor.log.Log logger =


com.skire.bluedoor.log.LogSource.getInstance(DocumentService2.class);   
 



public
void init(ServiceContext context) throws AxisFault {

logger.debug(DocumentService2
init context );

logger.debug(DocumentService2
message checking***);

}

 

public void
destroy(ServiceContext context) {

logger.debug(DocumentService2
destroy context );

}

private
MessageContext inMessge;

public
XMLObject getBPRecord (

 String
a1 

,
String a2 

,
String a3 

,
String a4 

,
String a5 

)

{


logger.debug(create*:+this.inMessge);

logger.debug(create***static
**:+MessageContext.getCurrentMessageContext());



XMLObject
xobj = new XMLObject();

xobj.setStatusCode(200);

xobj.setXmlcontents(just
echo);

return
xobj;

}

}

Services.xml file

service
name=UnifierWebServices scope=Request 

   
description


document literal Service

   
/description

   
messageReceivers

   
messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-only;


class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver/

   
messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out;


class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/

   
/messageReceivers

parameter
name=ServiceClasscom.skire.webservices.service.general.DocumentService2/parameter

operation
name=getBPRecord
mep=http://www.w3.org/2004/08/wsdl/in-out; /



/service

 





From: Cyril Furtado 

Sent: Tuesday, August 04, 2009 7:02 PM

To: 'axis-user@ws.apache.org'

Subject: RE: MessageContext is null, is something wrong? Still not
working! Code given





 

Zip file did not go thru sending
the f.aar file in .txt, rename to web_services.aar

 





From: Cyril Furtado 

Sent: Tuesday, August 04, 2009 6:55 PM

To: 'axis-user@ws.apache.org'

Subject: RE: MessageContext is null, is something wrong? Still not
working! Code given





 

 

Thanks

Deepal,

I
am enclosing the java file (DocumentService2.java)  the web_services.aar
file , in fact I just ran the code again to re verify , same result,
MessageContext is null.

Thanks

Cyril

 

 

 

Deepal wrote

I am not sure why that does not work for you, if you can send me
your

service. I will give it a try.

 

Thanks,

Deepal

 

 

 





From: Cyril Furtado 

Sent: Tuesday, August 04, 2009 3:45 PM

To: 'axis-user@ws.apache.org'

Subject: RE: MessageContext is null, is something wrong? Still not
working!





 

Thank
you Deepal

 I
changed my implementation class as given from the below articles


now my class looks like

public
classMy service implements Lifecycle {

   
public void init(ServiceContext context) throws AxisFault {

  

RE: MessageContext is null, is something wrong? Still not working! Code given

2009-08-04 Thread Cyril Furtado

Thanks
Deepal,
I am enclosing the java file (DocumentService2.java)  the web_services.aar 
file , in fact I just ran the code again to re verify , same result, 
MessageContext is null.
Thanks
Cyril



Deepal wrote
I am not sure why that does not work for you, if you can send me your
service. I will give it a try.

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 3:45 PM
To: 'axis-user@ws.apache.org'
Subject: RE: MessageContext is null, is something wrong? Still not working!

Thank you Deepal
 I changed my implementation class as given from the below articles
 now my class looks like
public classMy service implements Lifecycle {
public void init(ServiceContext context) throws AxisFault {
   System.out.println(DocumentService2 init context ); // no 
output
   System.out.println(DocumentService2 message checking***);// no 
output
}
public void destroy(ServiceContext context) {
System.out.println(DocumentService2 destroy context ); // no 
output
}
public getRecord(int id){
   System.out.println(create***static 
**:+MessageContext.getCurrentMessageContext()); // output null
   return Record.getId();
}
}

my service response gets the correct info ( I have no problem here, its only 
when I want to check the MessageContext)
but the ONLY sys out is create***static **:null
other sys outs are not seen init does not show up
Im using axis2-1.4.1
MessageContext still elusive



I am sorry, those methods does not work anymore. Please refer to the
following article.

https://wso2.org/library/articles/axis2-session-management
http://blogs.deepal.org/2009/06/axis2-tutorials-and-articles.html

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 1:50 PM
To: 'axis-user@ws.apache.org'
Subject: MessageContext is null, is something wrong?

I have in my implementation class added two methods as given in Axis2 articles
public void init(MessageContext inMessge, MessageContext outMessage) {
 // store the message contexts
System.out.println(init message called); // 
is not seen in output  inMesssage is null
this.inMessge = inMessge;
}

public void setOperationContext(OperationContext opContext){
System.out.println(setOperationContext message 
called ); // not seen in output
}

In my method
String getRecord(int id){

System.out.println(message context :+ 
MessageContext.getCurrentMessageContext());

}

getRecord when called from webservices
the only sys out I see is  message context :null
I do not see any of the other sys outs
Is there any other way to get the messageContext or am I doing something wrong?
Cyril





web_services.aar
Description: web_services.aar


DocumentService2.java
Description: DocumentService2.java


RE: MessageContext is null, is something wrong? Still not working! Code given

2009-08-04 Thread Cyril Furtado
Zip file did not go thru sending the f.aar file in .txt, rename to 
web_services.aar

From: Cyril Furtado
Sent: Tuesday, August 04, 2009 6:55 PM
To: 'axis-user@ws.apache.org'
Subject: RE: MessageContext is null, is something wrong? Still not working! 
Code given


Thanks
Deepal,
I am enclosing the java file (DocumentService2.java)  the web_services.aar 
file , in fact I just ran the code again to re verify , same result, 
MessageContext is null.
Thanks
Cyril



Deepal wrote
I am not sure why that does not work for you, if you can send me your
service. I will give it a try.

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 3:45 PM
To: 'axis-user@ws.apache.org'
Subject: RE: MessageContext is null, is something wrong? Still not working!

Thank you Deepal
 I changed my implementation class as given from the below articles
 now my class looks like
public classMy service implements Lifecycle {
public void init(ServiceContext context) throws AxisFault {
   System.out.println(DocumentService2 init context ); // no 
output
   System.out.println(DocumentService2 message checking***);// no 
output
}
public void destroy(ServiceContext context) {
System.out.println(DocumentService2 destroy context ); // no 
output
}
public getRecord(int id){
   System.out.println(create***static 
**:+MessageContext.getCurrentMessageContext()); // output null
   return Record.getId();
}
}

my service response gets the correct info ( I have no problem here, its only 
when I want to check the MessageContext)
but the ONLY sys out is create***static **:null
other sys outs are not seen init does not show up
Im using axis2-1.4.1
MessageContext still elusive



I am sorry, those methods does not work anymore. Please refer to the
following article.

https://wso2.org/library/articles/axis2-session-management
http://blogs.deepal.org/2009/06/axis2-tutorials-and-articles.html

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 1:50 PM
To: 'axis-user@ws.apache.org'
Subject: MessageContext is null, is something wrong?

I have in my implementation class added two methods as given in Axis2 articles
public void init(MessageContext inMessge, MessageContext outMessage) {
 // store the message contexts
System.out.println(init message called); // 
is not seen in output  inMesssage is null
this.inMessge = inMessge;
}

public void setOperationContext(OperationContext opContext){
System.out.println(setOperationContext message 
called ); // not seen in output
}

In my method
String getRecord(int id){

System.out.println(message context :+ 
MessageContext.getCurrentMessageContext());

}

getRecord when called from webservices
the only sys out I see is  message context :null
I do not see any of the other sys outs
Is there any other way to get the messageContext or am I doing something wrong?
Cyril



PK
æ•;   META-INF/þÊPK
å•;ÖW¥\jMETA-INF/MANIFEST.MFóMÌËLK-.Ñ
K-*ÎÌϳR0Ô3àårÌCq,HLÎHUŠ%ÍAÒÎE©‰%©)ºN• õ¦zñfºI¦
Á¥y
¾™ÉEùŕÅ%©¹Å
žyÉzš¼\¼\PK
‡t;
META-INF/com/PK
‹t;META-INF/com/skire/PK
št;META-INF/com/skire/webservices/PK
 t;'META-INF/com/skire/webservices/service/PK
®t;/META-INF/com/skire/webservices/service/general/PK
ɕ;ãG†VüÄEMETA-INF/com/skire/webservices/service/general/DocumentService2.class­VmsÛD~Îq,EVÓԍ
5RÛ´u_Ihiœ†”¾¹˜”wY¥²”ÑKqÿ¿‡ã:Ãg†Oü†=Iv\›tZÏx÷´»÷ÜÞ³·'ýù÷o¿8‡–‚y,O!÷e¬d±Š5ȸ,áŠ
  Ë2úªY£š2®)ØÄG®+˜Á²[2ú
º‚mܐpSÂ-†Œí¶ÛÜc8¡›nGóï[ךvÈ[®ëiäÔt·½Ê 
[Î6÷ý6g(é®×֌}ÃÜåšÑµüªfºNÀ»BŒ6¯Å4-³f9Vp™a¢Xj0¤kn‹Žê–Ão„÷îM›,9Ý5
»ax–xnŒé`×ò–‡2ûž7}î=°lî...@ks‡{†­m¸fØánpíuz-Vg8Så$ºŸ²ÈRJ|ÏÝêÈåZ×äûå:¾„Û„Òâ~๲m¬ßºÃM×k1üPÔ÷Œ†fN[«žå´Wÿ/KéªÂÀ²µnÇÖv¶õ›Í=nŠ„SÆ9AüˆðT…8/Ä!.•]·¹ÇP~™ä5ÓNê¯ÔÝÐ3ù¦%
›-UE$¡â5¼®b‹
K£SHÈ/”é'ᎊ:î2¼5܉ÏaÊfÞ§=Q8é±°¤BÏÀ2̏2²ZvKôȌéq#àåþoEŧh¨x'Äè3;¸Gƒ0?0Ë,$ÑWñ¾d(¾(‰*¾Â×

S{¡¸¹ëªøß2\úo-!Xn¤­l2^‰8;ë}8ÝúŽ›MQºÅ± «$7Ð„Åï†Éo†¤óÃç?9*¢ë2Æþw¨AÎþKƒ”ÆLIQVGâû€Ï‰—761ÌÇ)âô
^p
¯Pk×BÏ#ŽG]ï_æ¢âó N§%ôã+2]ܤL“y§cGӜÀa¯O§î¼øÚrèH:âIªÙ†ï?s{Œ½ð½eæA[F
²èRzI¥ÄÑ'=Ivj^’'éI#̈́µüìQV ™‰Œ³¨q–ðijaœ¢(1ù6ééüOHå~E:1šŒF`Ә 
¹…2˜¥è\1£·qšÀ‹4N“.Ñ¿LÅY֒…
²3¯D®“¤CÐÙt6¦2ãLø¥$‘nàSH÷CÎMõ ”A¶µ‡#ýÝô½Óä}‚£Cט!ϱ•ÌBæþè!·Éïav!óã
 ·Eb8KtWè›à]lз‚Ž*݅ç£\¯ÇY
rmPl%â»A¥©D;iмJDaƒfWˆ1ªÒh’ðr„tV‘qqPÔ¥˜9ŽüÌýŒÔ£¨r•#y)Êò½PK
 •;MgÀèMETA-INF/services.xml­TÁrÚ0=—¯Øú”Ì€ÌÐ:­Ã
!ÉÔÓ2˜4“£°£‰-¹’‡K¿½kYÚ´‡ÎÄ°¤÷ö½Ý'GoG£ÀOø*R”3°
ìaVñ”~µµ
×7ª–·bi8›%...@¯¨aitp¥¡tt,UÒj±©--%ð\#–(­a :úÅrϯa+ŠŸ  ÓáHA#ìŽ
Ò°%*že¢­Í