Re: [Axis2] soap over jms

2007-02-08 Thread Ali Sadik Kumlali
Hi Fabio,

Yes, you can use your stubs without any modification. Just compile the custom 
sender and put it in your classpath where you run your client.

Regards,

Ali Sadik Kumlali

- Original Message 
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Thursday, February 8, 2007 4:06:37 PM
Subject: RE: [Axis2] soap over jms

Hi Ali,
thanks a lot for your help.

Just one question, is the solution that you are suggesting going to be
possible after the wsdl2java tool use?

If you look at my client which one will be the right place to put this
information? I mean where should i put the code that you suggest me?
Am i still able to use the stub?

Thanks a lot i advance.

Best Regards,
Fabio

-Original Message-
From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 08, 2007 1:35 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] soap over jms

Hi Fabio,



AFAIK, API doesn't support custom JMS properties and you don't have an
easy solution for now.



I would suggest you follow the steps below:

- Create your custom sender (e.g. CustomJmsSender) by copying JMSSender
coming with Axis2.
Note that you should use "org.apache.axis2.transport.jms" as package
name. Since createJMSMessage() is private, we cannot just extend
JMSSender and override the method.
- Add following lines just before "return message;" statement of
createJMSMessage ().


   message.setStringProperty("Content_Type", "application/xml;
charset=\"utf-8\"  ");

   message.setStringProperty("Mime_Version", "1.0");

-   In axis2.xml, replace transport sender definition
"org.apache.axis2.transport.jms.JMSSender" with
"org.apache.axis2.transport.jms.CustomJmsSender"

Don't forget that it is in your responsibility to keep this class
compatible with the new Axis2 releases ;)

Regards,

Ali Sadik Kumlali


- Original Message 

From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>

To: axis-user@ws.apache.org

Sent: Thursday, February 8, 2007 11:14:08 AM

Subject: soap over jms



soap over jms   Hi all,  

I am new to Axis2 and to axis in general. 

  I need to create an Axis2 client starting from the WSDL provided by
the server.  

I have gone through changing the axis2.xml file with the filowing
information: 



  

com.tibco.tibjms.naming.TibjmsInitialContextFactory

  tibjmsnaming://localhost:7222  

QueueConnectionFactory  

  

 

   

  and after that I have used the wsdl2java tool to generate the java
stub. I have then created a simple client that was using this stub:

   

public class testAxis2JMS {  

/**  

 * @param args  

 */  

public static void main(String[] args) {  

// TODO Auto-generated method stub  

try{  

String endpointURL = "jms:/TCM.INTEGRAT.REQ.ADDRESS?"  

+
"transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory"  

+ "&java.naming.factory.initial="   

  +
"com.tibco.tibjms.naming.TibjmsInitialContextFactory"  

+
"&java.naming.provider.url=tibjmsnaming://localhost:7222"  

+ "&java.naming.security.principal=user"  

+ "&java.naming.security.credentials=password";


  

IntfTestWSfromXSDProcessServiceStub stub =   

new
IntfTestWSfromXSDProcessServiceStub(endpointURL);  

Indirizzo ind = new Indirizzo();  

ind.setCitta("Rome");  

ind.setNumero(2);  

ind.setVia("blabla");  

  

Output out = stub.TestWSfromXSDProcessOp(ind);  

System.out.println("Code : " + out.getCode());  

System.out.println("Me : " + out.getMsg());  

} catch(Exception e){  

e.printStackTrace();  

System.out.println("\n\n\n");  

} 

  }  

} 

  Now when I send the request to the jms server the message is
successfully sent. The problem is that the web service that I am calling
needs to have some more information on the JMS header sent from my
client to the jms server.

 

 The jms message sent look like this:

 $Header:  

JMSMessageID=ID:EMS-SERVER.8A445C9FBB14:3  

JMSTimestamp=Wed Feb 07 17:18:09 CET 2007  

JMSDestination=Queue[TCM.INTEGRAT.REQ.ADDRESS]  

JMSDeliveryMode=PERSISTENT  

JMSCorrelationID=null  

JMSType=null  

JMSReplyTo=Queue[$TMP$.EMS-SERVER.8A445C9FBB14.3]  

JMSPriority=4  

$Properties:  

SOAPAction="test/Axis2"  

$Body:  

http://schemas.xmlsoap.org/soap/envelope/";>http://www.tibco.com/schemas/eChannel/Schema.x

Re: [Axis2] soap over jms

2007-02-08 Thread Ali Sadik Kumlali
Hi Fabio,



AFAIK, API doesn't support custom JMS properties and you don't have an easy 
solution for now.



I would suggest you follow the steps below:

- Create your custom sender (e.g. CustomJmsSender) by copying JMSSender coming 
with Axis2.
Note that you should use "org.apache.axis2.transport.jms" as package name. 
Since createJMSMessage() is private, we cannot just extend JMSSender and 
override the method.
- Add following lines just before "return message;" statement of 
createJMSMessage ().


   message.setStringProperty("Content_Type", "application/xml; 
charset=\"utf-8\"  ");

   message.setStringProperty("Mime_Version", "1.0");

-   In axis2.xml, replace transport sender definition 
"org.apache.axis2.transport.jms.JMSSender" with 
"org.apache.axis2.transport.jms.CustomJmsSender"

Don't forget that it is in your responsibility to keep this class compatible 
with the new Axis2 releases ;)

Regards,

Ali Sadik Kumlali


- Original Message 

From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>

To: axis-user@ws.apache.org

Sent: Thursday, February 8, 2007 11:14:08 AM

Subject: soap over jms



soap over jms   Hi all,  

I am new to Axis2 and to axis in general. 

  I need to create an Axis2 client starting from the WSDL provided by the 
server.  

I have gone through changing the axis2.xml file with the filowing information: 



  

com.tibco.tibjms.naming.TibjmsInitialContextFactory

  tibjmsnaming://localhost:7222  

QueueConnectionFactory  

  

 

   

  and after that I have used the wsdl2java tool to generate the java stub. I 
have then created a simple client that was using this stub:

   

public class testAxis2JMS {  

/**  

 * @param args  

 */  

public static void main(String[] args) {  

// TODO Auto-generated method stub  

try{  

String endpointURL = "jms:/TCM.INTEGRAT.REQ.ADDRESS?"  

+ 
"transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory"  

+ "&java.naming.factory.initial="   

  + "com.tibco.tibjms.naming.TibjmsInitialContextFactory"  

+ "&java.naming.provider.url=tibjmsnaming://localhost:7222"  

+ "&java.naming.security.principal=user"  

+ "&java.naming.security.credentials=password";   

  

IntfTestWSfromXSDProcessServiceStub stub =   

new IntfTestWSfromXSDProcessServiceStub(endpointURL);  

Indirizzo ind = new Indirizzo();  

ind.setCitta("Rome");  

ind.setNumero(2);  

ind.setVia("blabla");  

  

Output out = stub.TestWSfromXSDProcessOp(ind);  

System.out.println("Code : " + out.getCode());  

System.out.println("Me : " + out.getMsg());  

} catch(Exception e){  

e.printStackTrace();  

System.out.println("\n\n\n");  

} 

  }  

} 

  Now when I send the request to the jms server the message is successfully 
sent. The problem is that the web service that I am calling needs to have some 
more information on the JMS header sent from my client to the jms server.

 

 The jms message sent look like this:

 $Header:  

JMSMessageID=ID:EMS-SERVER.8A445C9FBB14:3  

JMSTimestamp=Wed Feb 07 17:18:09 CET 2007  

JMSDestination=Queue[TCM.INTEGRAT.REQ.ADDRESS]  

JMSDeliveryMode=PERSISTENT  

JMSCorrelationID=null  

JMSType=null  

JMSReplyTo=Queue[$TMP$.EMS-SERVER.8A445C9FBB14.3]  

JMSPriority=4  

$Properties:  

SOAPAction="test/Axis2"  

$Body:  

http://schemas.xmlsoap.org/soap/envelope/";>http://www.tibco.com/schemas/eChannel/Schema.xsd";>Romeblabla2

  The problem is that it should look like this: 

  $Header:  

JMSMessageID=ID:EMS-SERVER.8A445C9FBB184:8  

JMSTimestamp=Thu Feb 08 10:09:16 CET 2007  

JMSDestination=Queue[TCM.INTEGRAT.REQ.ADDRESS]  

JMSDeliveryMode=PERSISTENT  

JMSCorrelationID=null  

JMSType=null  

JMSReplyTo=Queue[$TMP$.EMS-SERVER.8A445C9FBB185.7]  

JMSPriority=4  

$Properties:  

Content_Type=application/xml; charset="utf-8"  

Mime_Version=1.0  

SoapAction="test/Axis2"  

$Body:  

http://schemas.xmlsoap.org/soap/envelope/";>http://www.tibco.com/schemas/eChannel/Schema.xsd";>Romeblabla2

  There are this two properties in the jms message header (Content_Type and 
Mime_Version) that I need to add in order to make the Web Servixce server work.

  Is it possible to do anything like this form the client side?   

I have tried to check withtin the Axis2 Api 

Re: Soap over JMS example with Axis2

2007-02-07 Thread Ali Sadik Kumlali
Hi Fabio,

Here it is: http://ws.apache.org/axis2/1_1_1/jms-transport.html

Regards,

Ali Sadik Kumlali

- Original Message 
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Wednesday, February 7, 2007 8:00:42 PM
Subject: Soap over JMS example with Axis2

Soap over JMS example with Axis2


 
 




HI all,


do you know where I can find an Axis example which use JMS as a transport?



Thanks a lot in advance.



Fabio









 

Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

Re: [axis2] what is the difference between sendRobust and fireAndForget

2007-01-27 Thread Ali Sadik Kumlali
Hi Falom,



Hope this helps.


fireAndForget: One-way invocation which doesn't handle service side exceptions
--
- Send message. 
- Don't expect a result message from the service. 
- Don't worry about the errors occur in service side. 

- Handle client side faults.





JavaDoc found in ServiceClient[1]:

 /**

  * Directly invoke an anonymous operation with an In-Only MEP. This method

  * just sends your supplied XML without the possibility of any response from

  * the service (even an error - though you can still get client-side errors

  * such as "Host not found"). For more control, you can instead create a

  * client for the operation and use that client to execute the send.

  *

  * @param elem XML to send

  * @throws AxisFault ff something goes wrong trying to send the XML

  * @see #createClient(QName)

  */

  



sendRobust: One-way invocation that possibly receives a fault.
--

- Send message.

- Don't expect a result message from the service.
- Handle service side faults.

- Handle client side faults.



JavaDoc found in ServiceClient:


 /**
  * Directly invoke an anonymous operation with a Robust In-Only MEP. This
  * method just sends your supplied XML and possibly receives a fault. For
  * more control, you can instead create a client for the operation and use
  * that client to execute the send.
  *
  * @param elem XML to send
  * @throws AxisFault if something goes wrong while sending, or if a fault is
  *   received in response (per the Robust In-Only MEP).
  * @see #createClient(QName)
  */






Regards,





Ali Sadik Kumlali



[1] http://tinyurl.com/2ewkyb



- Original Message 

From: falom <[EMAIL PROTECTED]>

To: axis-user@ws.apache.org

Sent: Saturday, January 27, 2007 8:19:38 AM

Subject: [axis2] what is the difference between sendRobust and fireAndForget



Hi,



When should I call sendRobust and alternatively fireAndForget, both are void 
method, any specific differences for them?



falom



抢注雅虎免费邮箱-3.5G容量,20M附件! 









 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Query regarding using XPATH in AXIS2..

2007-01-05 Thread Ali Sadik Kumlali
Hi Yamini,



Would this[1] article be what you are looking for?

Regards,

Ali Sadik Kumlali


[1] How Can I Evaluate an XPath with AXIOM? http://wso2.org/library/265




- Original Message 

From: "Hemanth, Yamini (MSAS Sys Dev IBD)" <[EMAIL PROTECTED]>

To: axis-user@ws.apache.org

Sent: Friday, January 5, 2007 2:31:11 PM

Subject: [Axis2] Query regarding using XPATH in AXIS2..



  Hello Everyone,

  

 I am developing applications in AXIS2 using AXIOM as  the databinding. I have 
a query regarding XPATH in AXIS2. Is it possible to use  XPATH to navigate 
through the elements and attributes in XML messages in  AXIS2.If not  , then do 
I assume that the only alternative to navigate  to the specific element is by 
step by step iteration which is quite tedious for  the developer.

  

  

 Any  inputs on the same would be very helpful.

  

  

  Regards,

  

 Yamini  



  

  

   





   

 NOTICE: If received in error, please destroy and notify sender. Sender does 
not intend to waive confidentiality or privilege. Use of this email is 
prohibited when received in error.

  










__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Soap Over JMS using Embedded Axis2 Engine

2007-01-04 Thread Ali Sadik Kumlali
OK :) Could you please send your client code and the service (as .aar if 
possible)?

- Original Message 
From: Ted Jones <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Thursday, January 4, 2007 5:27:40 PM
Subject: RE: Soap Over JMS using Embedded Axis2 Engine



 
DIV {
MARGIN:0px;}



Hi Ali,

 

Please see responses inline...

 

Thanks very much,

Ted




From: Ali Sadik Kumlali 
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 03, 2007 5:36 
PM
To: axis-user@ws.apache.org
Subject: Re: Soap Over JMS 
using Embedded Axis2 Engine






Hi 
Ted,

I'm needing the following information:
- Do you successfully send 
the message? 

The message is sent by the producer 
in JMSSender. 
- Does the listener get 
the message successfully? 

No. 
- Do you call an in-only service? 

The service is 
in-out (accepts and returns an OMElement). 
- Is it 
possible that you call an in-only service with sendReceive()? 

No. 

Regards,

Ali Sadik 
Kumlali



- 
Original Message 
From: Ted Jones <[EMAIL PROTECTED]>
To: 
axis-user@ws.apache.org; [EMAIL PROTECTED]
Sent: Wednesday, January 3, 
2007 11:14:03 PM
Subject: RE: Soap Over JMS using Embedded Axis2 
Engine


DIV {
MARGIN:0px;}


Thanks again Ali. After applying the changes you 
recommended, I am still getting the same "org.apache.axis2.AxisFault: Incoming 
message input stream is 
null" exception. Stepping through debug, the JMSSender is getting a null reply 
back from the Message reply = 
consumer.receive(timeout) call and the reply 
value is used for the input stream (thus the 
fault).

 

Does that make any sense to 
you?

 

Thanks,

Ted




From: Ali Sadik Kumlali 
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 03, 2007 1:13 
PM
To: axis-user@ws.apache.org
Subject: Re: Soap Over JMS 
using Embedded Axis2 Engine






Hi 
Ted,

It seems that you have problems with MEP (message exchange 
pattern).

According to the "Writing Web Services Using Axis2's Primary 
APIs" tutorial[1], "every operation must map to a corresponding MessageReceiver 
class.". But in JMS tutorial[2], services.xml doesn't map a particular 
operation 
to a corresponding MessageReceiver. I'm not sure whether it works in this way. 
Therefore could you please try the following structure:




My Web 
Service



  
jms


com.test.soap.lds.service.DataServiceWebService

executeDataservice   

QueueConnectionFactory

myservice 





urn:yourInOutMethodName






urn:yourInOnlyMethodName




You should select 
RawXMLINOutMessageReceiver or RawXMLINOnlyMessageReceiver according to your 
operation(method) type. If your operation returns a result, then you should use 
RawXMLINOutMessageReceiver. Otherwise use 
RawXMLINOnlyMessageReceiver.

Please also consider that 
RawXML*MessageReceiver expects your operation accepts OMElement and optionally 
returns and OMElement.

Regards,

Ali Sadik Kumlali

[1] 
http://ws.apache.org/axis2/1_1/xmlbased-server.html
[2] 
http://ws.apache.org/axis2/1_1/jms-transport.html




- 
Original Message 
From: Ted Jones <[EMAIL PROTECTED]>
To: 
axis-user@ws.apache.org; [EMAIL PROTECTED]
Sent: Wednesday, January 3, 
2007 5:22:13 PM
Subject: RE: Soap Over JMS using Embedded Axis2 
Engine


DIV {
MARGIN:0px;}


(email with exception 
included, sorry about that)

 

 Thanks 
very much Ali. That seems to be the issue with the timeout. I started the 
JMSListener from my test client and it is picking up the message now. I am now 
getting the following exception: 

 


org.apache.axis2.AxisFault: Incoming message input 
stream is null

at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)

at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:381)

at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)

at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)

at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)


Any 
thoughts?

 

Thanks,

Ted




From: Ali Sadik Kumlali 
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 02, 2007 4:57 
PM
To: axis-user@ws.apache.org
Subject: Re: Soap Over JMS 
using Embedded Axis2 Engine






Hi 
Ted,

War distribution(AxisServlet actually) doesn't initialize JMS 
listener. Please look at followings:
1) http://www.mail-archive.com/axis-user@ws.apache.org/msg21464.html
2) 
https://issues.apache.org/jira/browse/AXIS2-1488

Regards,

Ali 
Sadik Kumlali


- 
Original Message 
From: Ted Jones <[EMAIL PROTECTED]>
To: 
axis-user@ws.apache.org; [EMAIL PROTECTED]
Sent: Tuesday, January 2, 
2007 9:35:14 PM
Subject: RE: Soap Over JMS using Embedded Axis2 
Engine


UNKNOWN {
FONT-FAMILY:Tahoma;}
UNKNOWN {
MARGIN:1in 1.25in;}
P.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Ro

Re: Soap Over JMS using Embedded Axis2 Engine

2007-01-03 Thread Ali Sadik Kumlali
Hi Ted,

I'm needing the following information:
- Do you successfully send the message?
- Does the listener get the message successfully?
- Do you call an in-only service?
- Is it possible that you call an in-only service with sendReceive()?

Regards,

Ali Sadik Kumlali

- Original Message 
From: Ted Jones <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Sent: Wednesday, January 3, 2007 11:14:03 PM
Subject: RE: Soap Over JMS using Embedded Axis2 Engine



 
DIV {
MARGIN:0px;}



Thanks again Ali. After applying the changes you 
recommended, I am still getting the same "org.apache.axis2.AxisFault: Incoming 
message input stream is 
null" exception. Stepping through debug, the JMSSender is getting a null reply 
back from the Message reply = 
consumer.receive(timeout) call and the reply 
value is used for the input stream (thus the 
fault).

 

Does that make any sense to 
you?

 

Thanks,

Ted




From: Ali Sadik Kumlali 
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 03, 2007 1:13 
PM
To: axis-user@ws.apache.org
Subject: Re: Soap Over JMS 
using Embedded Axis2 Engine






Hi 
Ted,

It seems that you have problems with MEP (message exchange 
pattern).

According to the "Writing Web Services Using Axis2's Primary 
APIs" tutorial[1], "every operation must map to a corresponding MessageReceiver 
class.". But in JMS tutorial[2], services.xml doesn't map a particular 
operation 
to a corresponding MessageReceiver. I'm not sure whether it works in this way. 
Therefore could you please try the following structure:




My Web 
Service



  
jms


com.test.soap.lds.service.DataServiceWebService

executeDataservice   

QueueConnectionFactory

myservice 





urn:yourInOutMethodName






urn:yourInOnlyMethodName




You should select 
RawXMLINOutMessageReceiver or RawXMLINOnlyMessageReceiver according to your 
operation(method) type. If your operation returns a result, then you should use 
RawXMLINOutMessageReceiver. Otherwise use 
RawXMLINOnlyMessageReceiver.

Please also consider that 
RawXML*MessageReceiver expects your operation accepts OMElement and optionally 
returns and OMElement.

Regards,

Ali Sadik Kumlali

[1] 
http://ws.apache.org/axis2/1_1/xmlbased-server.html
[2] 
http://ws.apache.org/axis2/1_1/jms-transport.html




- 
Original Message 
From: Ted Jones <[EMAIL PROTECTED]>
To: 
axis-user@ws.apache.org; [EMAIL PROTECTED]
Sent: Wednesday, January 3, 
2007 5:22:13 PM
Subject: RE: Soap Over JMS using Embedded Axis2 
Engine


DIV {
MARGIN:0px;}


(email with exception 
included, sorry about that)

 

 Thanks 
very much Ali. That seems to be the issue with the timeout. I started the 
JMSListener from my test client and it is picking up the message now. I am now 
getting the following exception: 

 


org.apache.axis2.AxisFault: Incoming message input 
stream is null

at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)

at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:381)

at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)

at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)

at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)


Any 
thoughts?

 

Thanks,

Ted




From: Ali Sadik Kumlali 
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 02, 2007 4:57 
PM
To: axis-user@ws.apache.org
Subject: Re: Soap Over JMS 
using Embedded Axis2 Engine






Hi 
Ted,

War distribution(AxisServlet actually) doesn't initialize JMS 
listener. Please look at followings:
1) http://www.mail-archive.com/axis-user@ws.apache.org/msg21464.html
2) 
https://issues.apache.org/jira/browse/AXIS2-1488

Regards,

Ali 
Sadik Kumlali


- 
Original Message 
From: Ted Jones <[EMAIL PROTECTED]>
To: 
axis-user@ws.apache.org; [EMAIL PROTECTED]
Sent: Tuesday, January 2, 
2007 9:35:14 PM
Subject: RE: Soap Over JMS using Embedded Axis2 
Engine


UNKNOWN {
FONT-FAMILY:Tahoma;}
UNKNOWN {
MARGIN:1in 1.25in;}
P.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";}
LI.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";}
DIV.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";}
A:link {
COLOR:blue;TEXT-DECORATION:underline;}
SPAN.MsoHyperlink {
COLOR:blue;TEXT-DECORATION:underline;}
A:visited {
COLOR:purple;TEXT-DECORATION:underline;}
SPAN.MsoHyperlinkFollowed {
COLOR:purple;TEXT-DECORATION:underline;}
SPAN.EmailStyle17 {
COLOR:navy;FONT-FAMILY:Arial;}
DIV.Section1 {

}


Thanks for the reply Brennan. I believe I have everything 
configured as per the link below, but I keep timing out while "waiting for the 
server to send the response".

 

I am seeing this in my Ac

Re: Soap Over JMS using Embedded Axis2 Engine

2007-01-03 Thread Ali Sadik Kumlali
Hi Ted,

It seems that you have problems with MEP (message exchange pattern).

According to the "Writing Web Services Using Axis2's Primary APIs" tutorial[1], 
"every operation must map to a corresponding MessageReceiver class.". But in 
JMS tutorial[2], services.xml doesn't map a particular operation to a 
corresponding MessageReceiver. I'm not sure whether it works in this way. 
Therefore could you please try the following structure:



My Web Service


  jms

com.test.soap.lds.service.DataServiceWebService
executeDataservice   
QueueConnectionFactory
myservice 


urn:yourInOutMethodName



urn:yourInOnlyMethodName



You should select RawXMLINOutMessageReceiver or RawXMLINOnlyMessageReceiver 
according to your operation(method) type. If your operation returns a result, 
then you should use RawXMLINOutMessageReceiver. Otherwise use 
RawXMLINOnlyMessageReceiver.

Please also consider that RawXML*MessageReceiver expects your operation accepts 
OMElement and optionally returns and OMElement.

Regards,

Ali Sadik Kumlali

[1] http://ws.apache.org/axis2/1_1/xmlbased-server.html
[2] http://ws.apache.org/axis2/1_1/jms-transport.html



- Original Message 
From: Ted Jones <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Sent: Wednesday, January 3, 2007 5:22:13 PM
Subject: RE: Soap Over JMS using Embedded Axis2 Engine



 
DIV {
MARGIN:0px;}



(email with exception 
included, sorry about that)

 

 Thanks 
very much Ali. That seems to be the issue with the timeout. I started the 
JMSListener from my test client and it is picking up the message now. I am now 
getting the following exception: 

 


org.apache.axis2.AxisFault: Incoming message input stream is null

at 
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:64)

at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:381)

at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:295)

at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)

at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)


Any 
thoughts?

 

Thanks,

Ted




From: Ali Sadik Kumlali 
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 02, 2007 4:57 
PM
To: axis-user@ws.apache.org
Subject: Re: Soap Over JMS 
using Embedded Axis2 Engine






Hi 
Ted,

War distribution(AxisServlet actually) doesn't initialize JMS 
listener. Please look at followings:
1) http://www.mail-archive.com/axis-user@ws.apache.org/msg21464.html
2) 
https://issues.apache.org/jira/browse/AXIS2-1488

Regards,

Ali 
Sadik Kumlali


- 
Original Message 
From: Ted Jones <[EMAIL PROTECTED]>
To: 
axis-user@ws.apache.org; [EMAIL PROTECTED]
Sent: Tuesday, January 2, 
2007 9:35:14 PM
Subject: RE: Soap Over JMS using Embedded Axis2 
Engine


UNKNOWN {
FONT-FAMILY:Tahoma;}
UNKNOWN {
MARGIN:1in 1.25in;}
P.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";}
LI.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";}
DIV.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";}
A:link {
COLOR:blue;TEXT-DECORATION:underline;}
SPAN.MsoHyperlink {
COLOR:blue;TEXT-DECORATION:underline;}
A:visited {
COLOR:purple;TEXT-DECORATION:underline;}
SPAN.MsoHyperlinkFollowed {
COLOR:purple;TEXT-DECORATION:underline;}
SPAN.EmailStyle17 {
COLOR:navy;FONT-FAMILY:Arial;}
DIV.Section1 {

}


Thanks for the reply Brennan. I believe I have everything 
configured as per the link below, but I keep timing out while "waiting for the 
server to send the response".

 

I am seeing this in my ActiveMQ 
console: myservice - No subscriptions registered, will not dispatch 
message at this time.

 

"myservice" is the destination I am dynamically adding in 
my client code and that matches with the destination in my 
services.xml.

 

Here is my services.xml:

 




My Web 
Service


 
  
jms


com.test.soap.lds.service.DataServiceWebService
 executeDataservice

 QueueConnectionFactory

myservice 


  http://www.w3.org/2004/08/wsdl/in-only";

class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
  
http://www.w3.org/2004/08/wsdl/in-out";

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




 

Thanks for your help,

Ted




From: Brennan Spies 
[mailto:[EMAIL PROTECTED] 
Sent: Friday, December 29, 2006 
10:19 PM
To: axis-user@ws.apache.org
Subject: RE: Soap Over 
JMS using Embedded Axis2 Engine






Ted,

 

Did you 
uncomment/configure the appropriate entries in your axis2.xml as well as your 
.aar’s service.xml?

 

http://ws.apache.org/axis2/1_1/jms-transport.html

 

 






From: Ted Jones 
[mailto:[E

Re: [Axis2][Rampart] What are the differences between X509KeyIdentifier and SKIKeyIdentifier?

2007-01-03 Thread Ali Sadik Kumlali
Excellent explanations as always! I love this dream :) Thank you Ruchith.

Regards,

Ali Sadik Kumlali

- Original Message 
From: Ruchith Fernando <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Wednesday, January 3, 2007 12:16:11 PM
Subject: Re: [Axis2][Rampart] What are the differences between 
X509KeyIdentifier and SKIKeyIdentifier?

Hi Paul,

On 1/3/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:
> Ruchith
>
> From your description above, it seems like in the case of
> X509KeyIdentifier and DirectReference the actual cert is included in
> the message and in the case of SKIKeyIdentifier, IssuerSerial and
> ThumbPrint, the cert needs to be in the server's keystore or LDAP.
>
> I think I can see that SKIKeyIdentifier, IssuerSerial and ThumbPrint
> are just three different ways of looking up the certificate in the
> store. Am I right?

Yes

>
> However, I don't understand the difference between X509KeyIdentifier
> and DirectReference. Can you explain that please!?

X509KeyIdentifier :

This is the case where a SecurityTokenRefernce uses a
wsse:KeyIdentifier element to refer to a key.

DirectReference :

This is where a SecurityTokenRefernce uses a "wsse:Reference" element
to refer to a security token.

Please see Sections 7.2 and 7.3 of [1]

Thanks,
Ruchith

[1] 
https://svn.apache.org/repos/asf/webservices/wss4j/trunk/specs/wss-v1.1-spec-os-SOAPMessageSecurity.pdf


>
> Paul
>
> On 1/3/07, Ruchith Fernando <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > On 12/21/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> > > Hi folks,
> > >
> > > I have many clients sending messages signed with their own certificates. 
> > > So, I stored their public certificates in a keystore. After;
> > >   - Looking x509-token-profile-1.0 spec[1]
> > >   - Reading the related mail[2]
> > >   - Reading the "Secure Message Exchanges with Multiple Users" article in 
> > > WS20[3]
> > >
> > >
> > > still need to understand what the differences are between 
> > > X509KeyIdentifier and SKIKeyIdentifier?
> >
> > X509KeyIdentifier is used to refer to a cert. And in this case the
> > base64 encoded cert is included directly within the key identifier
> > element. This can be used when the endpoint that processes the message
> > trust a certain CA and the users are expected to use certs that are
> > signed by that trusted CA. Therefore signature with a trusted cert
> > will be accepted. Note that the endpoint will not have to store all
> > client certs in this case since they will be available in the message
> > itself.
> >
> > SKIKeyIdentifier specifies the use of the "Subject Key Identifier"
> > X.509 extension value as the mechanism to refer to the cert used to
> > sign. In this case it should be noted that the endpoint that processes
> > the message should have access to a store that holds the potential
> > certificates so that the matching cert can be fetched (based on the
> > SKI) to carryout signature verification.
> > >
> > > Both of them were accepted by the service without any change at the 
> > > server side. At client side, on the other hand, only change I made was 
> > > setting  in axis2.xml to either of 
> > > X509KeyIdentifier or SKIKeyIdentifier. I examined the SOAP headers for 
> > > both and found a little difference[4].
> > >
> > > In this point some questions come to my mind:
> > > 1) Which one should I use at the client side?
> >
> > This will be specified by the policy of the service or how you manage
> > certs of trusted users at the service. See the explanation above.
> >
> > >
> > > 2) Can we say one is more compatible(or widely used) than the other?
> >
> > Am not sure which one is most used but I think its purely a decision
> > in configuring the service.
> >
> > >
> > > 3) Can we say one is more secure than the other?
> >
> > IMHO both mechanisms are the same, since both of them are different
> > ways of referring to public information (cert).
> >
> > >
> > > 4) Should I consider other signatureKeyIdentifier types (DirectReference, 
> > > IssuerSerial, Thumbprint)?
> >
> > DirectReference is another case where you add the base64 encoded cert
> > into the message. And IssuerSerial and Thumbprint both requires you to
> > make sure the endpoint that processes the message has access to the
> > certs in its store. Also note that thumbprint ref is introduced only
> > in WS-Sec-1.1
> >
> > > 5) Should I just get a sl

Re: Soap Over JMS using Embedded Axis2 Engine

2007-01-02 Thread Ali Sadik Kumlali
Hi Ted,

War distribution(AxisServlet actually) doesn't initialize JMS listener. Please 
look at followings:
1) http://www.mail-archive.com/axis-user@ws.apache.org/msg21464.html
2) https://issues.apache.org/jira/browse/AXIS2-1488

Regards,

Ali Sadik Kumlali

- Original Message 
From: Ted Jones <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Sent: Tuesday, January 2, 2007 9:35:14 PM
Subject: RE: Soap Over JMS using Embedded Axis2 Engine



 

 
 _filtered {
font-family:Tahoma;
}
 _filtered {margin:1.0in 1.25in 1.0in 1.25in;}
P.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";}
LI.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";}
DIV.MsoNormal {
FONT-SIZE:12pt;MARGIN:0in 0in 0pt;FONT-FAMILY:"Times New Roman";}
A:link {
COLOR:blue;TEXT-DECORATION:underline;}
SPAN.MsoHyperlink {
COLOR:blue;TEXT-DECORATION:underline;}
A:visited {
COLOR:purple;TEXT-DECORATION:underline;}
SPAN.MsoHyperlinkFollowed {
COLOR:purple;TEXT-DECORATION:underline;}
SPAN.EmailStyle17 {
COLOR:navy;FONT-FAMILY:Arial;}
DIV.Section1 {
}


Thanks for the reply Brennan. I believe I have everything 
configured as per the link below, but I keep timing out while "waiting for the 
server to send the response".

 

I am seeing this in my ActiveMQ 
console: myservice - No subscriptions registered, will not dispatch 
message at this time.

 

"myservice" is the destination I am dynamically adding in 
my client code and that matches with the destination in my 
services.xml.

 

Here is my services.xml:

 




My Web 
Service


 
  
jms


com.test.soap.lds.service.DataServiceWebService
 executeDataservice

 QueueConnectionFactory

myservice 


  http://www.w3.org/2004/08/wsdl/in-only";

class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
  
http://www.w3.org/2004/08/wsdl/in-out";

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




 

Thanks for your help,

Ted




From: Brennan Spies 
[mailto:[EMAIL PROTECTED] 
Sent: Friday, December 29, 2006 
10:19 PM
To: axis-user@ws.apache.org
Subject: RE: Soap Over 
JMS using Embedded Axis2 Engine






Ted,
 
  
 
Did you 
uncomment/configure the appropriate entries in your axis2.xml as well as your 
.aar’s service.xml?
 
  
 
http://ws.apache.org/axis2/1_1/jms-transport.html
 
  
 
  
 





From: Ted Jones 
[mailto:[EMAIL PROTECTED] 
Sent: Friday, December 29, 2006 3:36 
PM
To:
 axis-user@ws.apache.org
Subject: Soap Over JMS using Embedded Axis2 
Engine

 
  
 

I am attempting to execute a web 
service via ActiveMQ. The web service is deployed to an Axis2 engine that is 
embedded in a web app running on Tomcat 5.5. Are there any known *gotchas* 
here? 
I cannot seem to communicate with the service via JMS as it keeps timing 
out. When I change my endpoint in the client call from the JMS endpoint to the 
web service endpoint, it finds it.

 

 

 

Thanks,

 

Ted







__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Axis2][Rampart] What are the differences between X509KeyIdentifier and SKIKeyIdentifier?

2006-12-21 Thread Ali Sadik Kumlali
Hi folks,

I have many clients sending messages signed with their own certificates. So, I 
stored their public certificates in a keystore. After;
  - Looking x509-token-profile-1.0 spec[1]
  - Reading the related mail[2]
  - Reading the "Secure Message Exchanges with Multiple Users" article in 
WS20[3]


still need to understand what the differences are between X509KeyIdentifier and 
SKIKeyIdentifier?

Both of them were accepted by the service without any change at the server 
side. At client side, on the other hand, only change I made was setting 
 in axis2.xml to either of X509KeyIdentifier or 
SKIKeyIdentifier. I examined the SOAP headers for both and found a little 
difference[4].

In this point some questions come to my mind:
1) Which one should I use at the client side?

2) Can we say one is more compatible(or widely used) than the other?

3) Can we say one is more secure than the other?

4) Should I consider other signatureKeyIdentifier types (DirectReference, 
IssuerSerial, Thumbprint)?
5) Should I just get a sleep and read all the docs again? :)

Regards,

Ali Sadik Kumlali


[1] 
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0.pdf
[2] http://mail-archives.apache.org/mod_mbox/ws-wss4j-dev/200607.mbox/[EMAIL 
PROTECTED]
[3] http://www.wso2.net/tutorials/rampart/java/2006/09/06/sec-msg-exchg
[4]

X509KeyIdentifier:
--

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";;
  
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";;>
  
MIIDCjCCAfKgAwIBAgIQYDju2/6sm77InYfTq65x+DANBgkqhkiG9w0BAQUFADAwMQ4wDAYDVQQKDAVPQVNJUzEeMBwGA1UEAwwVT0FTSVMgSW50ZXJvcCBUZXN0IENBMB4XDTA1MDMxOTAwMDAwMFoXDTE4MDMxOTIzNTk1OVowQDEOMAwGA1UECgwFT0FTSVMxIDAeBgNVBAsMF09BU0lTIEludGVyb3AgVGVzdCBDZXJ0MQwwCgYDVQQDDANCb2IwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMCquMva4lFDrv3fXQnKK8CkSU7HvVZ0USyJtlL/yhmHH/FQXHyYY+fTcSyWYItWJYiTZ99PAbD+6EKBGbdfuJNUJCGaTWc5ZDUISqM/SGtacYe/PD/4+g3swNPzTUQAIBLRY1pkr2cm3s5Ch/f+mYVNBR41HnBeIxybw25kkoM7AgMBAAGjgZMwgZAwCQYDVR0TBAIwADAzBgNVHR8ELDAqMCiiJoYkaHR0cDovL2ludGVyb3AuYmJ0ZXN0Lm5ldC9jcmwvY2EuY3JsMA4GA1UdDwEB/wQEAwIEsDAdBgNVHQ4EFgQUXeg55vRyK3ZhAEhEf+YT0z986L0wHwYDVR0jBBgwFoAUwJ0o/MHrNaEd1qqqoBwaTcJJDw8wDQYJKoZIhvcNAQEFBQADggEBAIiVGv2lGLhRvmMAHSlY7rKLVkv+zEUtSyg08FBT8z/RepUbtUQShcIqwWsemDU8JVtsucQLc+g6GCQXgkCkMiC8qhcLAt3BXzFmLxuCEAQeeFe8IATr4wACmEQE37TEqAuWEIanPYIplbxYgwP0OBWBSjcRpKRAxjEzuwObYjbll6vKdFHYIweWhhWPrefquFp7TefTkF4D3rcctTfWJ76I5NrEVld+7PBnnJNpdDEuGsoaiJrwTW3Ixm40RXvG3fYS4hIAPeTCUk3RkYfUkqlaaLQnUrF2hZSgiBNLPe8gGkYORccRIlZCGQDEpcWl1Uf9OHw6fC+3hkqolFd5CVI=


SKIKeyIdentifier:
-
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";;
  
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier";;>
  Xeg55vRyK3ZhAEhEf+YT0z986L0=




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: module.xml not found on Axis2 / Weblogic 8.1

2006-12-15 Thread Ali Sadik Kumlali
Hi,



In the case of WAR distribution, if you set 

in weblogic.xml to true[1] then you shouldn't need to override default 
CLASSPATH. Otherwise, I could manage to handle it by adding stax-api-1.0.jar 
and xbean-2.1.0.jar to the CLASSPATH[2].

Actually, if you don't use WAR distribution and rather prepare your own EAR 
package by embedding Axis2, then, AFAIK, it's not going to work.

Regards,

Ali Sadik Kumlali


[1] http://www.mail-archive.com/axis-user@ws.apache.org/msg21989.html

[2] http://www.mail-archive.com/axis-user@ws.apache.org/msg13720.html



- Original Message 

From: zze-Basic DRISS S ext RD-MAPS-ISS <[EMAIL PROTECTED]>

To: axis-user@ws.apache.org

Sent: Friday, December 15, 2006 11:16:14 AM

Subject: RE: module.xml not found on Axis2 / Weblogic 8.1



DIV { MARGIN:0px;}Hi,

  

 Could you please specify which Axis2's library should I put  before the 
weblogic8 webservices jar in the classpath?

  

 Thanks,

 Driss



   De : Ali Sadik Kumlali  [mailto:[EMAIL PROTECTED] 

Envoyé : jeudi 14 décembre 2006  19:21

À : axis-user@ws.apache.org

Objet : Re:  module.xml not found on Axis2 / Weblogic 8.1





 

  Hi  Slim,



You should use exploded WAR. Please, look at here[1] for more  information.



Regards,



Ali Sadik Kumlali



[1]  http://www.mail-archive.com/axis-user@ws.apache.org/msg13935.html



 -  Original Message 

From: Slim Driss <[EMAIL PROTECTED]>

To:  axis-user@ws.apache.org

Sent: Thursday, December 14, 2006 4:06:44  PM

Subject: module.xml not found on Axis2 / Weblogic 8.1



Hi,



I'm trying to use Axis2 with Weblogic 8.1  (jrockit 1.4.2_08). After deploying 
the axis2.war and I've got the error listed  below.

I found this link http://ws.apache.org/axis/java/install.html#WebLogic8.1 but 
is  treating Axis1 with Weblogic. So I've tried without succeeding to apply 
those  suggestions on Axis2 with Weblogic8.1.



Could you please point me to a  solution to resolve this issue.  



---

.

CLASSPATH=C:\apps\axis2-  
1.1\lib\wstx-asl-3.0.1.jar;C:\apps\axis2-1.1\lib\stax-api-1.0.1.jar;C:\apps\axis2-1.1\lib\axis2-saaj-1.1.jar;;C:\bea_SIP2.2\JROCKI~1\lib\tools.jar;C:\bea_SIP2.2\wlss220\server\lib\weblogic_sp.jar;C:\bea_SIP2.2\wlss220\telco\lib\wcp_sip_core.jar;C:\bea_SIP2.2\wlss220\telco\auxlib\sipservlet.jar;C:\bea_SIP2.2\wlss220\server\lib\weblogic.jar;C:\bea_SIP2.2\wlss220\server\lib\jsafeFIPS.jar;C:\bea_SIP2.2\wlss220\common\eval\pointbase\lib\pbserver44.jar;C:\bea_SIP2.2\wlss220\com
  

mon\eval\pointbase\lib\pbclient44.jar;C:\bea_SIP2.2\JROCKI~1\jre\lib\rt.jar;C:\bea_SIP2.2\wlss220\server\lib\webservices.jar;C:\apps\axis2-1.1\lib\wstx-asl-3.0.1.jar;C:\apps\axis2-1.1\lib\stax-api-1.0.1.jar;C:\apps\axis2-
  1.1\lib\axis2-saaj-1.1.jar;

.

PATH=C:\bea_SIP2.2\wlss220\server\bin;C:\bea_SIP2.2\JROCKI~1\jre\bin;C:\bea_SIP2.2\JROCKI~1\bin;C:\apps\apache-ant-1.6.5\bin;C:\apps\jdk1.5.0_09\bin;C:\apps\axis2-1.1\bin;C:\oracle\product\10.2.0\client_1\bin;C:\oracle\ora92\bin;C:\Program
  
Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program
  Files\Microsoft SQL  
Server\90\Tools\binn\;C:\bea_SIP2.2\wlss220\server\bin\oci920_8  

.

***

*  To start  WebLogic Server, use a username and   *

*  password assigned  to an admin-level user.  For *

*  server administration, use the  WebLogic Server * 

*  console at  http:\\[hostname]:[port]\console *

***

<14 dÚc. 2006 14  h 45 CET>

<14 dÚc. 2006  14 h 45 CET> 
 

<14  dÚc. 2006 14 h 45 CET> 

<14 dÚc. 2006 14 h  45 CET> 

<14 dÚc.  2006 14 h 45 CET>  

<14 dÚc.  2006 14 h 45 CET> 

<14 dÚc. 2006  14 h 45 CET>   

<14 dÚc. 2006 14 h 46 CET> 

14 dÚc. 2006 14:46:02  org.apache.axis2.deployment.WarBasedAxisConfigurator  
getAxisConfiguration

GRAVE:  org.apache.axis2.deployment.DeploymentException: module.xml not found  
for  the module :
zip:C:/bea_SIP2.2/user_projects/domains/diameter/myserver/upload/axis2.war!/WEB-INF/modules/addressing-
  1.1.mar; nested exception is:

 org.apache.axis2.deployment.DeploymentException: module.xml not found  
for  the module :
zip:C:/bea_SIP2.2/user_projects/domains/diameter/myserver/upload/axis2.war!/WEB-INF/modules/addressing-
  1.1.mar; nested exception is:

 org.apache.axis2.deployment.DeploymentException: module.xml not found  
for  the module :
zip:C:/bea_SIP2.2/user_projects/domains/diameter/myserver/upload/axis2.war!/WEB-INF/modules/addressing-
  1.1.mar; nested exception is:

 org.apache.axis2.deployment.DeploymentException: module.xml not found  
for  the module :
zip:C:/bea_SIP2.2/user_projects/domains/diameter/myserver/upload/axis2.war!/WEB-INF/modules/ad

Re: module.xml not found on Axis2 / Weblogic 8.1

2006-12-14 Thread Ali Sadik Kumlali
Hi Slim,

You should use exploded WAR. Please, look at here[1] for more information.

Regards,

Ali Sadik Kumlali

[1]  http://www.mail-archive.com/axis-user@ws.apache.org/msg13935.html

- Original Message 
From: Slim Driss <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Thursday, December 14, 2006 4:06:44 PM
Subject: module.xml not found on Axis2 / Weblogic 8.1

Hi,

I'm trying to use Axis2 with Weblogic 8.1 (jrockit 1.4.2_08). After deploying 
the axis2.war and I've got the error listed below.
I found this link 

http://ws.apache.org/axis/java/install.html#WebLogic8.1 but is treating Axis1 
with Weblogic. So I've tried without succeeding to apply those suggestions on 
Axis2 with Weblogic8.1.

Could you please point me to a solution to resolve this issue.


---
.
CLASSPATH=C:\apps\axis2-
1.1\lib\wstx-asl-3.0.1.jar;C:\apps\axis2-1.1\lib\stax-api-1.0.1.jar;C:\apps\axis2-1.1\lib\axis2-saaj-1.1.jar;;C:\bea_SIP2.2\JROCKI~1\lib\tools.jar;C:\bea_SIP2.2\wlss220\server\lib\weblogic_sp.jar;C:\bea_SIP2.2\wlss220\telco\lib\wcp_sip_core.jar;C:\bea_SIP2.2\wlss220\telco\auxlib\sipservlet.jar;C:\bea_SIP2.2\wlss220\server\lib\weblogic.jar;C:\bea_SIP2.2\wlss220\server\lib\jsafeFIPS.jar;C:\bea_SIP2.2\wlss220\common\eval\pointbase\lib\pbserver44.jar;C:\bea_SIP2.2\wlss220\com

mon\eval\pointbase\lib\pbclient44.jar;C:\bea_SIP2.2\JROCKI~1\jre\lib\rt.jar;C:\bea_SIP2.2\wlss220\server\lib\webservices.jar;C:\apps\axis2-1.1\lib\wstx-asl-3.0.1.jar;C:\apps\axis2-1.1\lib\stax-api-1.0.1.jar;C:\apps\axis2-
1.1\lib\axis2-saaj-1.1.jar;
.
PATH=C:\bea_SIP2.2\wlss220\server\bin;C:\bea_SIP2.2\JROCKI~1\jre\bin;C:\bea_SIP2.2\JROCKI~1\bin;C:\apps\apache-ant-1.6.5\bin;C:\apps\jdk1.5.0_09\bin;C:\apps\axis2-1.1\bin;C:\oracle\product\10.2.0\client_1\bin;C:\oracle\ora92\bin;C:\Program
 
Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program
 Files\Microsoft SQL 
Server\90\Tools\binn\;C:\bea_SIP2.2\wlss220\server\bin\oci920_8

.
***
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *

*  console at http:\\[hostname]:[port]\console*
***
<14 dÚc. 2006 14 h 45 CET>
<14 dÚc. 2006 14 h 45 CET>

<14 dÚc. 2006 14 h 45 CET>
<14 dÚc. 2006 14 h 45 CET>

<14 dÚc. 2006 14 h 45 CET>

<14 dÚc. 2006 14 h 45 CET>
<14 dÚc. 2006 14 h 45 CET>

<14 dÚc. 2006 14 h 46 CET>
14 dÚc. 2006 14:46:02 
org.apache.axis2.deployment.WarBasedAxisConfigurator getAxisConfiguration
GRAVE: org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   
zip:C:/bea_SIP2.2/user_projects/domains/diameter/myserver/upload/axis2.war!/WEB-INF/modules/addressing-
1.1.mar; nested exception is:
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   
zip:C:/bea_SIP2.2/user_projects/domains/diameter/myserver/upload/axis2.war!/WEB-INF/modules/addressing-
1.1.mar; nested exception is:
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   
zip:C:/bea_SIP2.2/user_projects/domains/diameter/myserver/upload/axis2.war!/WEB-INF/modules/addressing-
1.1.mar; nested exception is:
org.apache.axis2.deployment.DeploymentException: module.xml not found  
for the module :   
zip:C:/bea_SIP2.2/user_projects/domains/diameter/myserver/upload/axis2.war!/WEB-INF/modules/addressing-
1.1.mar: loading repository from classpath
14 dÚc. 2006 14:46:02 org.apache.axis2.deployment.DeploymentEngine 
loadFromClassPath


INFO: Module validation failed  Trying to engage a module which is not 
available : addressing
<14 dÚc. 2006 14 h 46 CET>


<14 dÚc. 2006 14 h 46 CET>
<14 dÚc. 2006 14 h 46 CET>
<14 dÚc. 2006 14 h 46 CET>

<14 dÚc. 2006 14 h 46 CET>
--



Thanks,
Slim



-- 
Cordialement,
Slim DRISS





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [Axis2][1_1] Security validation is made only if security header is found...

2006-12-11 Thread Ali Sadik Kumlali
Just filed a JIRA (AXIS2-1858) for easy tracking.

Regards,

Ali Sadik Kumlali

- Original Message 
From: Ali Sadik Kumlali <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, December 8, 2006 5:14:11 PM
Subject: [Axis2][1_1] Security validation is made only if security header is 
found...

Hi folks,

Is it normal that I don't get any exception if no WS-Security header  added to 
the message while service expecting a signed message?

If not, please let me know so that I can file a JIRA.

Here are the use cases and how Rampart behaves:

Common:
  - Service requires a signed message[1] 
  
Case1: Client adds  but doesn't add  to the axis2.xml
  - Client sends message 
  - Message doesn't have necessary WS-Security headers but only a single one[2]

  Result
  - Rampart doesn't log or throw any exception and the message passes to the 
message receiver (Unexpected(?) behaviour)
  
Case2: Client doesn't add either  or ...
  - Client sends message 
  - Message doesn't have any WS-Security header.

  Result
  - Rampart doesn't log or throw any exception and the message passes to the 
message receiver (Unexpected(?) behaviour)
  

Regards,

Ali Sadik Kumlali
  

[1]




Signature
server_security.properties


  
[2] 
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>





 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][1_1] Security validation is made only if security header is found...

2006-12-08 Thread Ali Sadik Kumlali
Beginning part of the line is *somehow* clipped.

Really sorry for disturbing :(

- Original Message 
From: Ali Sadik Kumlali <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, December 8, 2006 5:22:41 PM
Subject: Re: [Axis2][1_1] Security validation is made only if security header 
is found...

Sorry, [2] should have been as follows:

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>


- Original Message ----
From: Ali Sadik Kumlali <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, December 8, 2006 5:14:11 PM
Subject: [Axis2][1_1] Security validation is made only if security header is 
found...

Hi folks,

Is it normal that I don't get any exception if no WS-Security header  added to 
the message while service expecting a signed message?

If not, please let me know so that I can file a JIRA.

Here are the use cases and how Rampart behaves:

Common:
  - Service requires a signed message[1] 
  
Case1: Client adds  but doesn't add  to the axis2.xml
  - Client sends message 
  - Message doesn't have necessary WS-Security headers but only a single one[2]

  Result
  - Rampart doesn't log or throw any exception and the message passes to the 
message receiver (Unexpected(?) behaviour)
  
Case2: Client doesn't add either  or ...
  - Client sends message 
  - Message doesn't have any WS-Security header.

  Result
  - Rampart doesn't log or throw any exception and the message passes to the 
message receiver (Unexpected(?) behaviour)
  

Regards,

Ali Sadik Kumlali
  

[1]




Signature
server_security.properties


  
[2] 
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][1_1] Security validation is made only if security header is found...

2006-12-08 Thread Ali Sadik Kumlali
Sorry, [2] should have been as follows:

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>


- Original Message ----
From: Ali Sadik Kumlali <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, December 8, 2006 5:14:11 PM
Subject: [Axis2][1_1] Security validation is made only if security header is 
found...

Hi folks,

Is it normal that I don't get any exception if no WS-Security header  added to 
the message while service expecting a signed message?

If not, please let me know so that I can file a JIRA.

Here are the use cases and how Rampart behaves:

Common:
  - Service requires a signed message[1] 
  
Case1: Client adds  but doesn't add  to the axis2.xml
  - Client sends message 
  - Message doesn't have necessary WS-Security headers but only a single one[2]

  Result
  - Rampart doesn't log or throw any exception and the message passes to the 
message receiver (Unexpected(?) behaviour)
  
Case2: Client doesn't add either  or ...
  - Client sends message 
  - Message doesn't have any WS-Security header.

  Result
  - Rampart doesn't log or throw any exception and the message passes to the 
message receiver (Unexpected(?) behaviour)
  

Regards,

Ali Sadik Kumlali
  

[1]




Signature
server_security.properties


  
[2] 
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2][1_1] Security validation is made only if security header is found...

2006-12-08 Thread Ali Sadik Kumlali
Hi folks,

Is it normal that I don't get any exception if no WS-Security header  added to 
the message while service expecting a signed message?

If not, please let me know so that I can file a JIRA.

Here are the use cases and how Rampart behaves:

Common:
  - Service requires a signed message[1] 
  
Case1: Client adds  but doesn't add  to the axis2.xml
  - Client sends message 
  - Message doesn't have necessary WS-Security headers but only a single one[2]

  Result
  - Rampart doesn't log or throw any exception and the message passes to the 
message receiver (Unexpected(?) behaviour)
  
Case2: Client doesn't add either  or ...
  - Client sends message 
  - Message doesn't have any WS-Security header.

  Result
  - Rampart doesn't log or throw any exception and the message passes to the 
message receiver (Unexpected(?) behaviour)
  

Regards,

Ali Sadik Kumlali
  

[1]




Signature
server_security.properties


  
[2] 
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>





 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][1_1] Security exception is swallowed

2006-12-08 Thread Ali Sadik Kumlali
Done: https://issues.apache.org/jira/browse/AXIS2-1849

I just wanted to be make sure that it wasn't a user fault :)

Regards,

Ali Sadik Kumlali

- Original Message 
From: Davanum Srinivas <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, December 8, 2006 4:15:45 PM
Subject: Re: [Axis2][1_1] Security exception is swallowed

Can you please log a JIRA?

thanks,
dims

On 12/8/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> I need to catch the exception occured in securiy phase. But it seems Rampart 
> just logs the exception and  not propagate to the transport receiver. Thus, 
> I'm not able to catch it and notify the sender.
>
> Here is my scenario:
>
> - My WSDL has input only (one-way) operations.
> - Client sends signed messages by invoking appropriate method of generated 
> stub.
> - Service's keystore doesn't have the public certificate of the client
> - Rampart logs the exception[1] BUT doesn't throw it.
>
> Since I wrote my own transport receiver, I'm able to catch any 
> exception(including RuntimeException) thrown through the execution 
> path(transport receiver -> phases/modules -> message receiver).
>
> Any help would be great!
>
>
> Regards,
>
> Ali Sadik Kumlali
>
>
>
>
> [1] [ERROR][2006-12-08 14:40:48,535] org.apache.axis2.transport.jms.AxisMdb - 
> JMS Wo
> rker [JMS Session Delivery Thread] Encountered an Axis Fault : 
> WSDoAllReceiver:
> security processing failed; nested exception is:
> org.apache.ws.security.WSSecurityException: The signature 
> verification f
> ailed
> org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed; 
> nested
> exception is:
> org.apache.ws.security.WSSecurityException: The signature 
> verification f
> ailed
> at 
> org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiv
> er.java:275)
> at 
> org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllRece
> iver.java:98)
> at 
> org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:
> 74)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:381)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:521)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:485)
> at org.apache.axis2.transport.jms.AxisMdb.onMessage(AxisMdb.java:245)
>
>
>
>
>
> 
> Want to start your own business?
> Learn how on Yahoo! Small Business.
> http://smallbusiness.yahoo.com/r-index
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2][1_1] Security exception is swallowed

2006-12-08 Thread Ali Sadik Kumlali
Hi folks,

I need to catch the exception occured in securiy phase. But it seems Rampart 
just logs the exception and  not propagate to the transport receiver. Thus, I'm 
not able to catch it and notify the sender.

Here is my scenario:

- My WSDL has input only (one-way) operations.
- Client sends signed messages by invoking appropriate method of generated stub.
- Service's keystore doesn't have the public certificate of the client
- Rampart logs the exception[1] BUT doesn't throw it.

Since I wrote my own transport receiver, I'm able to catch any 
exception(including RuntimeException) thrown through the execution 
path(transport receiver -> phases/modules -> message receiver).

Any help would be great!


Regards,

Ali Sadik Kumlali




[1] [ERROR][2006-12-08 14:40:48,535] org.apache.axis2.transport.jms.AxisMdb - 
JMS Wo
rker [JMS Session Delivery Thread] Encountered an Axis Fault : WSDoAllReceiver:
security processing failed; nested exception is:
org.apache.ws.security.WSSecurityException: The signature verification f
ailed
org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed; nested
exception is:
org.apache.ws.security.WSSecurityException: The signature verification f
ailed
at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiv
er.java:275)
at org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllRece
iver.java:98)
at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:
74)
at org.apache.axis2.engine.Phase.invoke(Phase.java:381)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:521)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:485)
at org.apache.axis2.transport.jms.AxisMdb.onMessage(AxisMdb.java:245)




 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re[2]: Can't disable the addressing

2006-12-04 Thread Ali Sadik Kumlali
Hi Alex,

In your 2nd case there are two possibilities while creating the stub of another 
svc:

1) Passing the current configuration context[1]
2) Creating a configuration context by yourself[2] and passing it

In the first case, there will be only one configuration both for service and 
client sides. So, both will be affected from the changes in axis2.xml. If this 
is your case, then the hint Paul suggested should work for you, although I 
haven't tried before.

In the second case, your client code is no different than your desktop scenario.

Regards,

Ali Sadik Kumlali


[1] ConfigurationContext configContext = 
MessageContext.getCurrentMessageContext().getConfigurationContext();
[2] ConfigurationContext configContext = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem 
(REPOSITORY, REPOSITORY + "/conf/axis2.xml");

- Original Message 
From: javaDev <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Monday, December 4, 2006 9:52:03 AM
Subject: Re[2]: Can't disable the addressing

Hi, gentlemen
Thanx alot for your fast answer.
I still believe that the problem is a matter of configuration: this client code 
runs in 2 points: 
  1. from the desktop, as a stand alone client, 
and 
  2. whithin the container, called as a part of another svc.
There is no addressing header added in 1st case but it is in 2nd. Since it is 
the same jars set, and the only diff is that in 2nd case the client runs within 
axis2.war, the difference should be present smwhere here..

Sincerely,
Alex

-Original Message-
From: "Paul Fremantle" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Date: Mon, 4 Dec 2006 07:10:18 +
Subject: Re: Can't disable the addressing

> 
> You can also leave Addressing enabled but set this property on
> outgoing stubs/messages:
> 
> stub._getServiceClient().getOptions.setProperty(
> AddressingConstants.DISABLE_ADDRESSING_FOR_OUT_MESSAGES, "true");
> 
> Paul
> 
> On 12/4/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> > Hi Alex,
> >
> >
> >
> > It seems your client code *programmatically* engages the addressing module 
> > before invoking the stub of 'another web svc'. Therefore,
> > your client code should have a line similar to the following:
> >
> >
> >
> > stub._getServiceClient().engageModule(new QName("addressing"));
> >
> >
> > If so, you should comment out this line and give it a try.
> >
> > Regards,
> >
> > Ali Sadik Kumlali
> >
> >
> > - Original Message 
> >
> > From: javaDev <[EMAIL PROTECTED]>
> >
> > To: axis-user@ws.apache.org
> >
> > Sent: Sunday, December 3, 2006 7:09:41 PM
> >
> > Subject: Can't disable the addressing
> >
> >
> >
> > Hi all.
> >
> > A have a service which in turn call to another web svc. It means axis2.1.1 
> > web-app works as a server and client sides simultaneously. I do not success 
> > to disable the WS-Addressing: after I commented
> >
> >
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> >
> >
> > in conf/axis2.xml my service agrees now to receive the request without 
> > addressing header but still sends addressing header when works as a client 
> > side. How can I disable an addressing processing completely?
> >
> >
> >
> > Sincerely,
> >
> > Alex
> >
> >
> >
> > -
> >
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> 
> http://bloglines.com/blog/paulfremantle
> [EMAIL PROTECTED]
> 
> "Oxygenating the Web Service Platform", www.wso2.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can't disable the addressing

2006-12-03 Thread Ali Sadik Kumlali
Hi Alex,



It seems your client code *programmatically* engages the addressing module 
before invoking the stub of 'another web svc'. Therefore,
your client code should have a line similar to the following:



stub._getServiceClient().engageModule(new QName("addressing"));


If so, you should comment out this line and give it a try.

Regards,

Ali Sadik Kumlali


- Original Message 

From: javaDev <[EMAIL PROTECTED]>

To: axis-user@ws.apache.org

Sent: Sunday, December 3, 2006 7:09:41 PM

Subject: Can't disable the addressing



Hi all.

A have a service which in turn call to another web svc. It means axis2.1.1 
web-app works as a server and client sides simultaneously. I do not success to 
disable the WS-Addressing: after I commented 















in conf/axis2.xml my service agrees now to receive the request without 
addressing header but still sends addressing header when works as a client 
side. How can I disable an addressing processing completely?



Sincerely,

Alex



-

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]














__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using asynchronous messaging

2006-11-21 Thread Ali Sadik Kumlali
Hi Dalys,

Please see my comments inline.

Regards,

Ali Sadik Kumlali

> - Original Message 
> From: Dalys Sebastian <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Sent: Wednesday, November 22, 2006 12:47:58 AM
> Subject: Re: Using asynchronous messaging
>
> Hi Ali,
>
> Thanks for the links. I had read through these links, and I still am not able 
> to get the
> complete picture of the service-side processing.  
>
> For e.g.,suppose my service class will look like this:
> public class A
> {
>   public void asyncservice(String data)
>   {
>   //determine the replyTo address
>   //queue data in the server for further processing
>   }
> }
>
> 1) And when I get back response after processing at the server, how will I 
> communicate
> this to the client?
> 
> 2) What must the client set in the replyTo address? It doesnot have any 
> webservice
> running. It's a simple .Net client.

Don't know about .Net. In the case of Axis2 client, 
it will create a separate listener at replyTo address 
for the callback from the service side. When your 
service side completes the process, it will return 
the result back to the replyTo address of the 
incoming message. These are all automatically 
handled by Axis2, if you provide suitable WSDL and 
generate the skeleton(for the service side) and the 
stub(for the client side) from it.

>
> Any answers for this will be very helpful. I apologize if I have overlooked 
> something.
> 
> Thanks,
> Dalys

--- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:

> Hi Dalys,
> 
> If you mean axis2, you might start from: 
> - "Do a Non-Blocking Invocation" title in user guide[1]
> - "Request-Response, Non-Blocking that uses two transport connections" title 
> in this[2]
> page.
> - Similar e-mails in axis-user list[3] 
> 
> Regards,
> 
> Ali Sadik Kumlali
> 
> [1] http://ws.apache.org/axis2/1_1/userguide.html
> [2] http://ws.apache.org/axis2/1_1/dii.html
> [3]
>
http://www.mail-archive.com/search?q=axis2%20asynchronous&[EMAIL 
PROTECTED]&start=10
> 
> - Original Message 
> From: Dalys Sebastian <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Sent: Tuesday, November 21, 2006 11:14:09 PM
> Subject: Using asynchronous messaging
> 
> Hello,
> 
> I am trying to figure out how to configure the service side for solving the 
> following
> problem:
> 
> The server gets a request from a client which cannot be immediately 
> processed. It has
> to
> go to an external program to fetch information which may take a delay. Only 
> after a
> response is obtained from the external program, can a response be sent back 
> to the
> client.
> 
> How do I implement the service-side logic to solve this issue? Till now I 
> have been
> using
> the RPCMessageReceiver and performing only synchronous calls. 
> 
> 1) What's the MessageReceiver that needs to be used in these situations?
> 2) What must the client set in their reply-To address field? Should the 
> client be
> running
> a separate webservice to get back responses?
> 3) And when I need to return back the response to the client, how does the 
> server
> invoke
> it? is it as a webservice call with the To address same as the received 
> replyTo field?
> 4) How must the client-side code be to get back the response? Using
> sendReceiveNonBlocking?
> If there is an example somewhere which can demonstrate these configurations, 
> it would
> help a lot.
> 
> Thank you,
> Dalys
> 
> 
>  
> 
> Sponsored Link
> 
> Mortgage rates near 39yr lows. $510k for $1,698/mo. 
> Calculate new payment! www.LowerMyBills.com/lre
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



 

Sponsored Link

$200,000 mortgage for $660/ mo
30/15 yr fixed, reduce debt
http://yahoo.ratemarketplace.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using asynchronous messaging

2006-11-21 Thread Ali Sadik Kumlali
Hi Dalys,

If you mean axis2, you might start from: 
- "Do a Non-Blocking Invocation" title in user guide[1]
- "Request-Response, Non-Blocking that uses two transport connections" title in 
this[2] page.
- Similar e-mails in axis-user list[3] 

Regards,

Ali Sadik Kumlali

[1] http://ws.apache.org/axis2/1_1/userguide.html
[2] http://ws.apache.org/axis2/1_1/dii.html
[3] http://www.mail-archive.com/search?q=axis2%20asynchronous&[EMAIL 
PROTECTED]&start=10

- Original Message 
From: Dalys Sebastian <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Tuesday, November 21, 2006 11:14:09 PM
Subject: Using asynchronous messaging

Hello,

I am trying to figure out how to configure the service side for solving the 
following
problem:

The server gets a request from a client which cannot be immediately processed. 
It has to
go to an external program to fetch information which may take a delay. Only 
after a
response is obtained from the external program, can a response be sent back to 
the
client.

How do I implement the service-side logic to solve this issue? Till now I have 
been using
the RPCMessageReceiver and performing only synchronous calls. 

1) What's the MessageReceiver that needs to be used in these situations?
2) What must the client set in their reply-To address field? Should the client 
be running
a separate webservice to get back responses?
3) And when I need to return back the response to the client, how does the 
server invoke
it? is it as a webservice call with the To address same as the received replyTo 
field?
4) How must the client-side code be to get back the response? Using
sendReceiveNonBlocking?
If there is an example somewhere which can demonstrate these configurations, it 
would
help a lot.

Thank you,
Dalys


 

Sponsored Link

Mortgage rates near 39yr lows. $510k for $1,698/mo. 
Calculate new payment! www.LowerMyBills.com/lre

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [axis2] Oneway msg/JMS transport

2006-11-21 Thread Ali Sadik Kumlali
Hi Kamal,

Have you set separate listener option to true?

stub._getServiceClient().getOptions().setUseSeparateListener(true);

Regards,

Ali Sadik Kumlali

P.S.: Added [axis2] to the subject.


- Original Message 
From: "Kang, Kamaljeet K." <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Tuesday, November 21, 2006 11:00:58 PM
Subject: Oneway msg/JMS transport

Hi,

I have one way message as defined 


  


  



I am using JMS as transport, auto generated the code, the client seems
to be waiting for the reply.

Nov 21, 2006 3:43:14 PM org.apache.axis2.transport.jms.JMSSender invoke
WARNING: Did not receive a JMS response within 3 ms to destination :
queue://TestTopic

Is it a bug?

Thanks

Kamal


The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: RE: [Axis2] JMS client H ow

2006-11-21 Thread Ali Sadik Kumlali
Hi Falom,



I'm not sure wheter WSDL2Java supports JMS bindings yet. But you may 

- Use HTTP binding in your WSDL

- Generate your stub with WSDL2Java

- In your client code which invokes the stub:
  - Create JMS URL endpoint[1]

  - Create your stub instance by passing JMS URL endpoint[2] to it
  - Set separate listener option to true[3]
  - Invoke your service operation through the stub (as usual)


Regards,

Ali Sadik Kumlali


[1] String jmsEndpointURL = "jms:/"

  + "TARGET_QUEUE" // destination
JNDI name
  + "?"

  + "transport.jms.ConnectionFactoryJNDIName="

  + "QueueConnectionFactory"
  + 
"&java.naming.factory.initial="
  + "com.sonicsw.jndi.mfcontext.MFContextFactory"  // vendor specific factory

  + "&java.naming.provider.url="
  + "tcp://localhost:2506" // 
vendor specific provider URL

  + "&java.naming.security.principal=Administrator"

  + "&java.naming.security.credentials=Administrator";


[2] MyStub stub = new MyStub (jmsEndpointURL);

or

MyStub stub = new MyStub (configContext, jmsEndpointURL);

[3] stub._getServiceClient().getOptions().setUseSeparateListener(true);

- Original Message 

From: falom <[EMAIL PROTECTED]>

To: axis-user@ws.apache.org

Sent: Tuesday, November 21, 2006 3:54:16 AM

Subject: Re: RE: [Axis2] JMS client How



Thanks Brennan. If i got you right, i need to first write WSDL with jms 
bindings, then use WSDL2Java to generate client side code? Do you know where i 
can find or read about a WSDL example for jms?

   

  falom



"Spies, Brennan" <[EMAIL PROTECTED]> 写道:

You can use the generated client that the 
Axis 2.0 code generator supplies. The default endpoint in the generated 
stub/unit test and the generated WSDL won’t be correct, but you can modify them 
to fit pretty easily.

   

   

Brennan Spies

  Sr. Programmer Analyst

  Shared Application Services



   

  -Original Message-

From: falom [mailto:[EMAIL PROTECTED] 

Sent: Sunday, November 19, 2006 11:10 PM

To: axis-user@ws.apache.org

Subject: [Axis2] JMS client How

   

Hi,



  



How to write client call to a JMS service in Axis2. Does ServiceClient 
support this in some way or do i need to implement the axis2 JMSSender or other 
ways to accomplish that?



 



falom





  

  抢注雅虎免费邮箱-3.5G容量,20M附件! 







  Mp3疯狂搜-新歌热歌高速下   










-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Is Axis2 1.1 working for you?

2006-11-15 Thread Ali Sadik Kumlali
Hi Alelikov,Have you by any chance tried it? Does it work for you?Regards,Ali Sadik Kumlali- Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>To: axis-user@ws.apache.orgSent: Wednesday, November 15, 2006 9:59:19 PMSubject: Re: [Axis2] Is Axis2 1.1 working for you?It would be nice to include the patch provided by Ali Sadik Kumlali
to address the following issue: http://issues.apache.org/jira/browse/AXIS2-1488 .

Thanks,
AL

Re: [Axis2][Rampart] How can I get the digital certificate information?

2006-11-15 Thread Ali Sadik Kumlali
Hi Jhan 

You may start from here:

public String getSecurityInfo(MessageContext ctx) {
StringBuffer sb = new StringBuffer ();
Vector results = (Vector) 
ctx.getProperty(WSHandlerConstants.RECV_RESULTS);
if (null != results) {
for (int i = 0; i < results.size(); i++) {
WSHandlerResult hResult = (WSHandlerResult) results.get(i);
Vector hResults = hResult.getResults();
for (int j = 0; j < hResults.size(); j++) {
WSSecurityEngineResult eResult = (WSSecurityEngineResult) 
hResults
.get(j);
if (eResult.getAction() == WSConstants.TS) {
sb.append("Message has timestamp.").append("\n");
if (null != eResult.getPrincipal())
sb.append("\tPrincipal name: 
").append(eResult.getPrincipal().getName()).append("\n");
else
sb.append("\tPrincipal is null\n");
} else if (eResult.getAction() == WSConstants.SIGN) {
sb.append("Message has signature.").append("\n");
if (null != eResult.getPrincipal()) {
sb.append("\tPrincipal name: 
").append(eResult.getPrincipal().getName()).append("\n");
sb.append("\tSubjectDN: 
").append(eResult.getCertificate().getSubjectDN().getName()).append("\n");
sb.append("\tIssuer: 
").append(eResult.getCertificate().getIssuerDN().getName()).append("\n");
} else
sb.append("\tPrincipal is null\n");
} else {
sb.append("eResult.getAction(): 
").append(eResult.getAction()).append("\n");
}
}
}
}
return sb.toString();
}

Regards,

Ali Sadik Kumlali

- Original Message 
From: Jhan Yuler <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Wednesday, November 15, 2006 8:40:49 PM
Subject: [Axis2][Rampart] How can I get the digital certificate information?



Hi everybody

I'm using Axis2 with the Rampart module (WS-Security). The business logic in 
the skeleton class needs to get some information from the client digital 
certificate. Somebody knows how can I do that?

Thanks


Solo conoce el vino bueno, aquel que probó el vino amargo

_
Charla con tus amigos en línea mediante MSN Messenger: 
http://messenger.latam.msn.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to enable JMS transport in WAR distro?

2006-11-13 Thread Ali Sadik Kumlali
Hi Alelikov,AxisServlet sets itself as HTTP transport receiver and does not take the transport receiver definitions in axis2.xml into account. I've simply changed the AxisServlet for enabling it to initialize all the transport receivers defined in axis2.xml, but HTTP. For HTTP, just left it as is. Logs convinced me that it worked :)I've provided this solution as patch to the mentioned issue(AXIS2-1488). Eventhough it would not be part of Axis2 distro, I hope, you may use it as work around for now.Regards,Ali Sadik Kumlali- Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>To:
 axis-user@ws.apache.orgSent: Monday, November 13, 2006 10:03:04 PMSubject: How to enable JMS transport in WAR distro?Hi,

Does anyone know how to work around this "not a blocker"?
http://issues.apache.org/jira/browse/AXIS2-1488

Thanks in advance,
AL



Re: AxisFault and fault definition in the wsdl

2006-11-06 Thread Ali Sadik Kumlali
Gul,

AFAIK, you have nowhere to introduce the possible/optional fault in WSDL 1.1 
for the in-only MEP. And, robust-in-only MEP is applicable only to WSDL 2.0. 
Therefore, AFAIK again :), you cannot let your client expect an exception from 
the service if you use WSDL 1.1.

Instead of , WSDL 2.0 introduces  element that can be used for 
robust-in-only MEP.

Hope this[1] perfect document helps you out.

Regards,

Ali Sadik Kumlali


[1] http://www.pacificspirit.com/Authoring/async/async-scenarios.html

- Original Message 
From: Gul Onural <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Monday, November 6, 2006 7:48:32 PM
Subject: RE: AxisFault and fault definition in the wsdl



Thanks Ali. You mentioned that  cannot be used with in-only
MEP. What is the right thing to do with the in-only MEP to let the
client know about the exception which occurred in the service ? Can
 be used for the robust-in-only MEP?





-Original Message-
From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 06, 2006 10:50 AM
To: axis-user@ws.apache.org
Subject: Re: AxisFault and fault definition in the wsdl

Gul,

Please see my comments inline.

Regards,

Ali Sadik Kumlali


>- Original Message 

>From: Gul Onural <[EMAIL PROTECTED]>

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

>Sent: Monday, November 6, 2006 5:20:37 PM

>Subject: AxisFault and fault definition in the wsdl



>AxisFault and fault definition in the wsdl  

  >- If I want my service implementation methods (operations in wsdl
terms) to throw AxisFault  

>how do I define this in the wsdl ? Do I need to use wsdl:fault ? Is
there such an example ?



   















 

Please note that, this is only applicable to in-out(two way) services.
You cannot use  with in-only MEP. Also, WSDL2Java can
happily handle .


>- If my service methods throw AxisFault, and if my client is not 
>written in Axis2, what needs

>to be done in the client code to catch these exceptions?


If service sends and error back, client will get an SOAPFault not and
AxisFault. So, it doesn't matter whether the service side throws
AxisFault or XYZException. But, SOAP stack used at service side must be
able to create a SOAPFault from the exception thrown by the backend
system.
 

>- What is the relationship between SOAPFault and AxisFault ?  

No direct relation. Axis2 creates SOAPFault when it gets an AxisFault
and sends it to caller.

>Gul

  










-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AxisFault and fault definition in the wsdl

2006-11-06 Thread Ali Sadik Kumlali
Gul,

Please see my comments inline.

Regards,

Ali Sadik Kumlali


>- Original Message 

>From: Gul Onural <[EMAIL PROTECTED]>

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

>Sent: Monday, November 6, 2006 5:20:37 PM

>Subject: AxisFault and fault definition in the wsdl



>AxisFault and fault definition in the wsdl  

  >- If I want my service implementation methods (operations in wsdl terms) to 
throw AxisFault  

>how do I define this in the wsdl ? Do I need to use wsdl:fault ? Is there such 
>an example ?



   















 

Please note that, this is only applicable to in-out(two way) services. You 
cannot use  with in-only
MEP. Also, WSDL2Java can happily handle .


>- If my service methods throw AxisFault, and if my client is not written in 
>Axis2, what needs  

>to be done in the client code to catch these exceptions?


If service sends and error back, client will get
an SOAPFault not and AxisFault. So, it doesn't matter whether the service side 
throws AxisFault or XYZException. But, SOAP stack used at service side must be 
able to create a SOAPFault from the exception thrown by the backend system.
 

>- What is the relationship between SOAPFault and AxisFault ?  

No direct relation. Axis2 creates SOAPFault when it gets an AxisFault and sends 
it to caller.

>Gul 

  










-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SOAP/JMS document

2006-10-13 Thread Ali Sadik Kumlali
Hi Brennan,

Before asking you, I should have tried but just couldn't wait for it :)

As I understand correctly, you are using "jms extentions" of WSIF[1] which are 
not part of WSDL spec[2]. Therefore, neither 
http://schemas.xmlsoap.org/soap/jms namespace nor the jms extentions are 
available for the all platforms. 

Does Axis2 do anyting with jms extentions? For example, does wsdl2java handle 
 and generates a stub which has an jms endpoint[3]? Or do you use 
jms extentions just to clearly say "I'm using JMS, not HTTP"?

Thanks in advance,


Ali Sadik Kumlali


[1] http://ws.apache.org/wsif/providers/wsdl_extensions/jms_extension.html 


[2] http://ws.apache.org/wsif/providers/wsdl_extensions/jms_extension.html 

  "WSIF defines extra WSDL extensions 
that are not part of WSDL4J itself. Amongst others, these WSDL extensions are 
needed for JMS. 
  
...
  
Currently, these WSDL extensions are valid for Soap over Jms, Axis over Jms and 
NativeJms. The jms namespace must be 
xmlns:jms="http://schemas.xmlsoap.org/wsdl/jms/"";




[3] String jmsEndpointURL = "jms:/"
 + "ACTIONQUEUE" // destination
 + "?"
 + "transport.jms.ConnectionFactoryJNDIName="
 + "QueueConnectionFactory"
 + 
"&java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory"
 // vendor specific factory
 + "&java.naming.provider.url=tibjmsnaming://localhost:7222" // 
vendor specific provider URL
 + "&java.naming.security.principal=Administrator"
 + "&java.naming.security.credentials=Administrator";


- Original Message 
From: "Spies, Brennan" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, October 13, 2006 12:37:03 AM
Subject: RE: SOAP/JMS document

Kamal,

If you are designing starting from WSDL, such as (I am using TIBCO EMS)...


http://schemas.xmlsoap.org/soap/jms";; />



























(...where the ns 'jms' is http://schemas.xmlsoap.org/wsdl/jms/)

...the WSDL2Java code generator will handle it fine. I do get the message
"[codegen] INFO: A SOAP port was not found - picking a random port!" in my
Ant build, but the generated code looks pretty close (It's basically the same
as the HTTP transport equivalent, except there is no default URL specified in
the ActionMessageServiceStub constructor. Would be nice if it put some of my
jms:address info into my services.xml, but hey, I'm not going to push it
(grin)).

All you need to do from here is configure your axis2.xml and services.xml
correctly as per the doc below, and it should work for you.


Brennan Spies
Sr. Programmer Analyst
Shared Application Services


-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 12, 2006 1:30 PM
To: axis-user@ws.apache.org
Subject: Re: SOAP/JMS document

http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/1_1
/jms-transport.html



On 10/12/06, Kang, Kamaljeet K. <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Is there a document regarding SOAP over JMS with Axis2?
>
> Thanks
>
> kamal
> 
> The information contained in this message may be privileged
> and confidential and protected from disclosure. If the reader
> of this message is not the intended recipient, or an employee
> or agent responsible for delivering this message to the
> intended recipient, you are hereby notified that any reproduction,
> dissemination or distribution of this communication is strictly
> prohibited. If you have received this communication in error,
> please notify us immediately by replying to the message and
> deleting it from your computer. Thank you. Tellabs
> 
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WS Addressing :: http requests response (ReplyTo) on JMS protocol

2006-10-12 Thread Ali Sadik Kumlali
Hi Vaibhav,

By assuming following;
- You generate the service from WSDL
- Your client uses the generated stub
- Since your MEP is in-out, generated stub should return a value. But by using 
fireAndForget() you say "I don't mind the result over the same 
channel(connection)".

Then, as Brian suggested, you should follow the jms-transport document[1]. So;

At client side you should;
- enable WS-Addressing in axis2.xml

- set ReplyTo field to jms URI. For example:

   String jmsEndpointURL = "jms:/"

 + "QUEUE_JNDI_NAME" // destination

 + "?"

 + "transport.jms.ConnectionFactoryJNDIName="

 + "QUEUE_CONNECTION_FACTORY_JNDI_NAME"

 + 
"&java.naming.factory.initial=com.sonicsw.jndi.mfcontext.MFContextFactory" // 
vendor specific factory

 + "&java.naming.provider.url=tcp://localhost:2506" // vendor 
specific provider URL

 + "&java.naming.security.principal=Administrator"

 + "&java.naming.security.credentials=Administrator";

At service side, you should;
- enable WS-Addressing in axis2.xml

- use HTTP transport receiver and JMS transport sender in axis2.xml (This is 
already done for you:)
- add jms related definitions of your service to services.xml. For example:
  

   ...
  
 jms
  
  QUEUE_CONNECTION_FACTORY_JNDI_NAME
  QUEUE_JNDI_NAME

  

I didn't try in-out MEP with JMS and not sure whether JMS URI in ReplyTo is 
handled properly. Just give it a try, and please let us know the result :)

Regards,

Ali Sadik Kumlali

[1] 
http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/1_1/jms-transport.html


- Original Message 
From: Vaibhav Pandey <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Wednesday, October 11, 2006 5:06:45 PM
Subject: RE: WS Addressing :: http requests response (ReplyTo) on JMS protocol

Hi,
-yaa m using axis2.1.1 (nightly built)
-MEP is INOUT with method call as fireandforget()
-i want my nonblockingclient to send the request to a simple WS whose
response should be forwarded to a different JMS WS hosted on a different
application server


CLIENT Request> WS 1(simple WS) ---Response on a queue after
lookup---> WS 2(JMS WS listening on this queue)


Regards,
Vaibhav


-Original Message-
From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 11, 2006 6:19 PM
To: axis-user@ws.apache.org
Subject: Re: WS Addressing :: http requests response (ReplyTo) on JMS
protocol


Hi Vaibhav,

- Do you use Axis2? If so, please add [Axis2] to the mail subject for easier
follow up. Following questions assume you are using Axis2.
- What kind of MEP do you use? If I understand correctly, you use in-out
MEP.
- Do you expect nonBlockingDualClient to listents to the response over a MDB
instead of creating a listener by itself?

Regards,

Ali Sadik Kumlali

- Original Message 
From: Vaibhav Pandey <[EMAIL PROTECTED]>
To: Axis-User 
Sent: Wednesday, October 11, 2006 8:31:10 AM
Subject: WS Addressing :: http requests response (ReplyTo) on JMS protocol

Hi All,
I am working on a scenario were my nonBlockingDualClient sends a http
request to a WS and the response should go to a JMS listener listening on a
different port. in short i want the response to go via JMS into the
queue on which my listener is listening so that i can do some processing on
it as and when it arrives at MDB's OnMessage().

I have already implemented an HTTP to HTTP scenario and m in need of some
guidance in this HTTP-JMS scenario on the configurations required in my
client to forward the request on JMS.

Any help is highly appreciated !!


Regards,
Vaibhav



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WS Addressing :: http requests response (ReplyTo) on JMS protocol

2006-10-11 Thread Ali Sadik Kumlali
Hi Vaibhav,

- Do you use Axis2? If so, please add [Axis2] to the mail subject for easier 
follow up. Following questions assume you are using Axis2.
- What kind of MEP do you use? If I understand correctly, you use in-out MEP.
- Do you expect nonBlockingDualClient to listents to the response over a MDB 
instead of creating a listener by itself?

Regards,

Ali Sadik Kumlali

- Original Message 
From: Vaibhav Pandey <[EMAIL PROTECTED]>
To: Axis-User 
Sent: Wednesday, October 11, 2006 8:31:10 AM
Subject: WS Addressing :: http requests response (ReplyTo) on JMS protocol 

Hi All,
I am working on a scenario were my nonBlockingDualClient sends a http
request to a WS and the response should go to a JMS listener listening on a
different port. in short i want the response to go via JMS into the
queue on which my listener is listening so that i can do some processing on
it as and when it arrives at MDB's OnMessage().

I have already implemented an HTTP to HTTP scenario and m in need of some
guidance in this HTTP-JMS scenario on the configurations required in my
client to forward the request on JMS.

Any help is highly appreciated !!


Regards,
Vaibhav



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Schema Validation using Axis2

2006-10-07 Thread Ali Sadik Kumlali

Hi John,

You may start from here[1].

Regards,

Ali Sadik Kumlali

[1] http://www.mail-archive.com/axis-user@ws.apache.org/msg11312.html



- Original Message 

From: John Pfeifer <[EMAIL PROTECTED]>

To: axis-user@ws.apache.org

Sent: Thursday, October 5, 2006 4:07:57 PM

Subject: Schema Validation using Axis2



Schema Validation using Axis2  

  I have created a test web service (see below).  This service uses the 
RawXMLINOutMessageReceiver and by default does not have a wsdl.  I created a 
WSDL  (where I defined the schema of the xml document) and placed it in the 
META-INF directory.  When I test the web service with xml that doesn't adhere 
to the schema, the request is still processed.  Does axis2 ignore the WSDL?  If 
so, how can I validate the schema before it is passed to my web service?  I 
would prefer to have all of the field level validations performed before I pass 
the XML off to JiBX.  I understand that schema validation can be expensive, but 
I am dealing with small XML documents and am willing to take the hit for the 
benefit of the field level validations.  I would think that this is a common 
issue that someone else has solved, so any help you can provide would be 
greatly appreciated.

 

 public class TestWebService {



 private MessageContext inMessageContext = null;

 

 public void setOperationContext(OperationContext opContext) throws 
AxisFault {

 this.inMessageContext = 
opContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);

 }

 

 public OMElement SendEmail(OMElement element) throws AxisFault, 
XMLStreamException {

 System.out.println("test start");

 

 JP4 

  










-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Debugging SOAP messages with tcpmon or axis2-soapmonitor

2006-09-30 Thread Ali Sadik Kumlali
Gul,

You should put all the *.class files under webapps\axis2 folder. So, it must 
look like this:

[webapps]
[axis2]
[axis2-web]
[META-INF]
[WEB-INF]
SOAPMonitorApplet$SOAPMonitorData.class
SOAPMonitorApplet$SOAPMonitorFilter.class
SOAPMonitorApplet$SOAPMonitorPage.class
SOAPMonitorApplet$SOAPMonitorTableModel.class
SOAPMonitorApplet$SOAPMonitorTextArea.class
SOAPMonitorApplet$ServiceFilterPanel.class
SOAPMonitorApplet.class
   
Regards,

Ali Sadik Kumlali

- Original Message 
From: Gul Onural <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Sent: Sunday, October 1, 2006 2:31:57 AM
Subject: RE: Debugging SOAP messages with tcpmon or axis2-soapmonitor

Thanks for the explanation, but what is not clear to me is :

Sorry if this is obvious, but when I extract the
axis2-soapmonitor-*.jar,
I get the following files. Now where should I copy these files?

The new document says "place the applet classes as
axis2/SOAPMonitorApplet*.class/WEB-INF"

Can you help me understand exactly where I should copy the class files ?
I don't understand exactly
where WEB-INF comes from in this context.

Thank you.

META-INF
org
SOAPMonitorApplet$ServiceFilterPanel.class
SOAPMonitorApplet$SOAPMonitorData.class
SOAPMonitorApplet$SOAPMonitorFilter.class
SOAPMonitorApplet$SOAPMonitorPage.class
SOAPMonitorApplet$SOAPMonitorTableModel.class
SOAPMonitorApplet$SOAPMonitorTextArea.class
SOAPMonitorApplet.class
 


-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 30, 2006 7:09 PM
To: axis-user@ws.apache.org
Subject: Re: Debugging SOAP messages with tcpmon or axis2-soapmonitor

For the soapmonitor, you need to have the applet classes such as:

 axis2/SOAPMonitorApplet*.class/WEB-INF

The latest docs try to explain this better - try jar -xf on the
soapmonitor jar to get the applet classes, or compile from source.

http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/xdocs/1_1/s
oapmonitor-module.html

Robert


On 9/30/06, Gul Onural <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi,
>
> How do you guys usually debug the Axis2 SOAP messages? I tried tcpmon,

> but it complains that the port axis2/my service runs is in use. For 
> example the axis2 runs at 8080 and this is the port I am trying to 
> monitor using the tcpmon. But tcpmon can not bind to it, because it is

> in use
>
> I have tried to use axis SOAP monitor, configured axis2.xml and 
> web.xml as described in the Axis2 documentation and I was able engage 
> my service with axis soap monitor.
> However, web browser
> cannot initialize the axis soap monitor applet. It cannot find the 
> SoapMonitor applet classes.
> Where is the axis2-soapmonitor-SNAPSHOT.jar supposed to be in order 
> for web browser to initialize the applet properly?
>
> In the standard distribution the  axis2-soapmonitor-SNAPSHOT.jar is 
> under \apache-tomcat-5.5.17\webapps\axis2\WEB-INF\lib
>
> Gul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Installing axis2 into Tomcat

2006-09-29 Thread Ali Sadik Kumlali
Hi Yadav,

Could you please put the war file under 
C:\software\apache-tomcat-5.5.17\webapps instead of 
C:\software\apache-tomcat-5.5.17\server\webapps.

Regards,

Ali Sadik Kumlali

- Original Message 
From: "Yadav, Yogendra (IT)" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, September 29, 2006 11:11:16 PM
Subject: RE: Installing axis2 into Tomcat

I have not changed anything, copied the axis2.war as it is in Tomcat.
The web.xml has what you have mentioned, see attached.

 

-Original Message-
From: Spies, Brennan [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 29, 2006 3:39 PM
To: axis-user@ws.apache.org
Subject: RE: Installing axis2 into Tomcat

Yadav,

The "welcome page" for Axis2 should be on the  in the
web.xml. If you go to http://localhost:8080/axis2/, it should direct you
to the /axis2-web/index.jsp page.


-Original Message-
From: Yadav, Yogendra (IT) [mailto:[EMAIL PROTECTED]
Sent: Friday, September 29, 2006 12:34 PM
To: axis-user@ws.apache.org
Subject: Installing axis2 into Tomcat

I have installed tomcat 5.5.17. I am facing various problems with it:
1. Tomcat Administration link shows Admin Tool login page, but none of
the logins given in
C:\software\apache-tomcat-5.5.17\conf\tomcat-users.xml work.
2. Tomcat Manager link throws a userid/password challenge box what would
be login id and password ?
3. I copied axis2.war in C:\software\apache-tomcat-5.5.17\server\webapps
and restarted Tomcat. When I try to access Axis2 like this
http://localhost:8080/axis2/services/, I get 404 error page.

any help would be appreciated
-yogen


NOTICE: If received in error, please destroy and notify sender. Sender
does not intend to waive confidentiality or privilege. Use of this email
is prohibited when received in error.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.





http://java.sun.com/dtd/web-app_2_3.dtd";;>





Apache-Axis2



AxisServlet

Apache-Axis Servlet



org.apache.axis2.transport.http.AxisServlet



1





AxisRESTServlet

Apache-Axis Servlet (REST)



org.apache.axis2.transport.http.AxisRESTServlet





AxisAdminServlet

Apache-Axis AxisAdmin Servlet (REST)



org.apache.axis2.transport.http.AxisAdminServlet





AxisRESTServlet

/rest/*









AxisServlet

/servlet/AxisServlet







AxisServlet

*.jws







AxisServlet

/services/*







AxisAdminServlet

/axis2-admin/*





   

  /axis2-web/index.jsp







  404

  /axis2-web/Error/error404.jsp







500

/axis2-web/Error/error500.jsp










-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][Post 1.0-20060920] Problem while reaching container's context from within service skeleton

2006-09-22 Thread Ali Sadik Kumlali
OK :) Thanks a ton Dims!

P.S.: Thank you very much Martin. I had seen that article. But there is no 
problem with calling a remote ejb within MDB. It only occures while I call it 
from service skeleton. So, that *should* be a problem/feature with Axis2 side. 
BTW, I'm using WebLogic 8.1 SP3.

Regards,

Ali Sadik Kumlali

- Original Message 
From: Davanum Srinivas <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org; Martin Gainty <[EMAIL PROTECTED]>
Cc: Ali Sadik Kumlali <[EMAIL PROTECTED]>
Sent: Friday, September 22, 2006 8:34:35 PM
Subject: Re: [Axis2][Post 1.0-20060920] Problem while reaching container's 
context from within service skeleton

Guys,

Please stop running around in cricles :) There's a jira. I'm in the
process of evaluting a possible fix. Stay tuned. I'll ask all of you
to test it though :)

-- dims

On 9/22/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
> this article
> http://www.theserverside.com/discussions/thread.tss?thread_id=41709
> suggests
> -one of the properties you are attempting to access are missing (assuming 
> ejb-jar.xml)
> -classes (most probably Remote access to your bean) is missing in local jar
>
> I found this to be a good example to create a remote interface
> http://www.onjava.com/pub/a/onjava/excerpt/ejb4_chap4/index.html?page=1
>
> Then again this error could be specific to the version of AppServer..did you 
> mention which AppServer and version?
> M-
> *
> This email message and any files transmitted with it contain confidential
> information intended only for the person(s) to whom this email message is
> addressed.  If you have received this email message in error, please notify
> the sender immediately by telephone or email and destroy the original
> message without making a copy.  Thank you.
>
>
>
> - Original Message -
> From: "Ali Sadik Kumlali" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, September 22, 2006 9:53 AM
> Subject: Re: [Axis2][Post 1.0-20060920] Problem while reaching container's 
> context from within service skeleton
>
>
> > Hi Robert,
> >
> > Thanks for the reply. Yeah, both seems the same.
> >
> > Sure, I'll try to help. But this could take too long as I need to learn how 
> > to make server context accessable/non-accessable from a class deployed on 
> > it :)
> >
> > BTW, since deployment models are different (WAR and EAR), wouldn't it be 
> > clearer to create a new issue and link them?
> >
> > Regards,
> >
> > Ali Sadik Kumlali
> >
> > - Original Message 
> > From: robert lazarski <[EMAIL PROTECTED]>
> > To: axis-user@ws.apache.org; Ali Sadik Kumlali <[EMAIL PROTECTED]>
> > Sent: Friday, September 22, 2006 3:12:32 PM
> > Subject: Re: [Axis2][Post 1.0-20060920] Problem while reaching container's 
> > context from within service skeleton
> >
> > Looks like the same issue just created:
> >
> > http://issues.apache.org/jira/browse/AXIS2-1214
> >
> > You could help us by trying to figure out the cause of the problem.
> >
> > Robert
> >
> > On 9/22/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> >> Hi all,
> >>
> >> I've embedded Axis2 in an EAR file and implemented a message driven 
> >> bean(MDB) as transport receiver which delegates the incoming message to 
> >> the actual service. When my message passed into Axis2 service skeleton, I 
> >> need to call a remote EJB which is deployed in another EAR file. But, I 
> >> constantly get "java.lang.ClassCastException: Cannot narrow remote object 
> >> to ..." exception while calling remote EJB. It doesn't occur when I call 
> >> it from within MDB.
> >>
> >> To be more clear;
> >> - MDB
> >>   - initializes Axis2
> >>- retrieves incoming message
> >>   - passes the message to the Axis2 service
> >> - Axis2 service skeleton
> >>   - retrieves message sent through MDB
> >>   - calls remote EJB
> >>
> >> I create initial context without passing environment map and hoping it to 
> >> be passed automaticaly by the server. But, I don't understand why this 
> >> solution works in MDB but not in service skeleton.
> >>
> >> I've put remote interfaces' jar;
> >> - under lib folder of service .aar file - didn't work
> >> - under ear file and addressing it in MANIFEST.MF file - didn't work
>

Re: [Axis2][Post 1.0-20060920] Problem while reaching container's context from within service skeleton

2006-09-22 Thread Ali Sadik Kumlali
Hi Robert,

Thanks for the reply. Yeah, both seems the same.

Sure, I'll try to help. But this could take too long as I need to learn how to 
make server context accessable/non-accessable from a class deployed on it :)  

BTW, since deployment models are different (WAR and EAR), wouldn't it be 
clearer to create a new issue and link them?

Regards,

Ali Sadik Kumlali

- Original Message 
From: robert lazarski <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org; Ali Sadik Kumlali <[EMAIL PROTECTED]>
Sent: Friday, September 22, 2006 3:12:32 PM
Subject: Re: [Axis2][Post 1.0-20060920] Problem while reaching container's 
context from within service skeleton

Looks like the same issue just created:

http://issues.apache.org/jira/browse/AXIS2-1214

You could help us by trying to figure out the cause of the problem.

Robert

On 9/22/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I've embedded Axis2 in an EAR file and implemented a message driven bean(MDB) 
> as transport receiver which delegates the incoming message to the actual 
> service. When my message passed into Axis2 service skeleton, I need to call a 
> remote EJB which is deployed in another EAR file. But, I constantly get 
> "java.lang.ClassCastException: Cannot narrow remote object to ..." exception 
> while calling remote EJB. It doesn't occur when I call it from within MDB.
>
> To be more clear;
> - MDB
>   - initializes Axis2
>- retrieves incoming message
>   - passes the message to the Axis2 service
> - Axis2 service skeleton
>   - retrieves message sent through MDB
>   - calls remote EJB
>
> I create initial context without passing environment map and hoping it to be 
> passed automaticaly by the server. But, I don't understand why this solution 
> works in MDB but not in service skeleton.
>
> I've put remote interfaces' jar;
> - under lib folder of service .aar file - didn't work
> - under ear file and addressing it in MANIFEST.MF file - didn't work
> - into system classpath - *worked* but smells like a work around and I don't 
> know how it worked, actually :)
>
> I am using;
> - Windows XP professional
> - Java 1.4.2_12
> - WebLogic 8.1 SP3
> - axis2.ear which comprises axis2 libraries, MDB, definitions for remote EJB
> - myapp.ear which comprises EJB called by service skeleton loaded by axis2.ear
>
> Thanks for any suggestions anyways.
>
> Ali Sadik Kumlali
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2][Post 1.0-20060920] Problem while reaching container's context from within service skeleton

2006-09-22 Thread Ali Sadik Kumlali
Hi all,

I've embedded Axis2 in an EAR file and implemented a message driven bean(MDB) 
as transport receiver which delegates the incoming message to the actual 
service. When my message passed into Axis2 service skeleton, I need to call a 
remote EJB which is deployed in another EAR file. But, I constantly get 
"java.lang.ClassCastException: Cannot narrow remote object to ..." exception 
while calling remote EJB. It doesn't occur when I call it from within MDB. 

To be more clear;
- MDB 
  - initializes Axis2
   - retrieves incoming message
  - passes the message to the Axis2 service
- Axis2 service skeleton
  - retrieves message sent through MDB
  - calls remote EJB

I create initial context without passing environment map and hoping it to be 
passed automaticaly by the server. But, I don't understand why this solution 
works in MDB but not in service skeleton.

I've put remote interfaces' jar;
- under lib folder of service .aar file - didn't work
- under ear file and addressing it in MANIFEST.MF file - didn't work
- into system classpath - *worked* but smells like a work around and I don't 
know how it worked, actually :)

I am using;
- Windows XP professional
- Java 1.4.2_12
- WebLogic 8.1 SP3
- axis2.ear which comprises axis2 libraries, MDB, definitions for remote EJB
- myapp.ear which comprises EJB called by service skeleton loaded by axis2.ear

Thanks for any suggestions anyways.

Ali Sadik Kumlali



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wsdl2java (for some reason) regenerates the wsdl file which doesn't validate

2006-09-20 Thread Ali Sadik Kumlali
Title: wsdl2java (for some reason) regenerates the wsdl file which doesn't validate
Hi Gul,Could you please have a look at this: https://issues.apache.org/jira/browse/AXIS2-680Regards,Ali Sadik Kumlali- Original Message From: Gul Onural <[EMAIL PROTECTED]>To: axis-user@ws.apache.orgSent: Wednesday, September 20, 2006 5:31:34 PMSubject: wsdl2java (for some reason) regenerates the wsdl file which doesn't validate


 
 



For some reason the wsdl2java invocation on a wsdl file regenerates the wsdl along with the source files it generates.


I am not so sure why it bothers to regenerate the wsdl file, rather than simply using the one the 

wsdl2java is invoked for, in the first place.


But the odd thing is the wsdl2java generated wsdl file doesn't correctly validates, while the original one validates

without any problems.


In my case, the validation error from the re-generated wsdl file is :


"Extensibility Object: Namespaceprefix soap12 extensibility item doesn't refer to namespace soap!"


By the way I am using nightly (Sept. 15).


Gul


 


Re: WSDL2Java for a wsdl file with multiple porttypes

2006-09-13 Thread Ali Sadik Kumlali
Title: WSDL2Java for a wsdl file with multiple porttypes
Hi Gul,Please have a look at http://issues.apache.org/jira/browse/AXIS2-965?page=all ?If this change also affects the generator, then, you need to use nightly built of Axis2.Regards,Ali Sadik Kumlali- Original Message From: Gul Onural <[EMAIL PROTECTED]>To: axis-user@ws.apache.orgSent: Thursday, September 14, 2006 3:19:40 AMSubject: RE: WSDL2Java for a wsdl file with multiple porttypes

 
I have also tried invoking the wsdl2java with -pn 
option to see what it does for a wsdl file with multiple 
portTypes.
But got the following exception.
 
Any suggestions ?
 
Gul
 
D:\axis2-std-1.0-bin\bin>WSDL2Java.bat -uri   -o  -p  -ss -sd -g -ssi -pn 
 
 
Using AXIS2_HOME:   D:\axis2-std-1.0-binUsing 
JAVA_HOME:    C:\Program Files\Java\jdk1.5.0_08log4j:WARN No 
appenders could be found for logger 
(org.apache.axis2.i18n.ProjectResourceBundle).log4j:WARN Please initialize 
the log4j system properly.Exception in thread "main" 
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing 
WSDL    at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:94)    
at 
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)    
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)Caused by: 
org.apache.axis2.AxisFault: Cannot Determine the MEP; nested exception 
is:    java.lang.Exception: Cannot 
Determine the MEP    at 
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243)    
at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:87)    
... 2 moreCaused by: java.lang.Exception: Cannot Determine the 
MEP    at 
org.apache.axis2.description.WSDL2AxisServiceBuilder.getMEP(WSDL2AxisServiceBuilder.java:1365)    
at 
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateOperations(WSDL2AxisServiceBuilder.java:389)    
at 
org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType(WSDL2AxisServiceBuilder.java:377)    
at 
org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java:299)    
at 
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:238)    
... 3 more


From: Onural, Gul (CAR:SI12) Sent: 
Wednesday, September 13, 2006 8:07 PMTo: 
axis-user@ws.apache.orgSubject: WSDL2Java for a wsdl file with 
multiple porttypes

How do I use WSDL2Java to generate code for a wsdl 
file with multiple portTypes in it? 
Both eclipse plug-in and command line versions of the 
WSDL2Java tool seem to generate code for only 
one of the port types in my wsdl. I don't see how I generate code 
for all the port types in my wsdl file. 
Thanks, 
Gul 

Re: [axis 2] multiple parameters in a request

2006-09-01 Thread Ali Sadik Kumlali
Hi Brian,
 
AFAIK, Multiple parts in your WSDL violates WS-I Basic Profile [1].
 
Axis2 *might* support only WS-I conformant WSDLs.
 
Regards,
 
Ali Sadik Kumlali
[1] http://www.ws-i.org/Profiles/BasicProfile-1.1.html
 
- Original Message From: Brian Dillon (ext. 944) <[EMAIL PROTECTED]>To: axis-user@ws.apache.orgSent: Friday, September 1, 2006 5:03:06 PMSubject: [axis 2] multiple parameters in a request

Hi,
I am  using the axis 2 wsdl2java generator and have run into a problem. If I have request (e.g. findPerson) which takes multuple parameters (FirstName and LastName) how can this be represented in WSDL.
 
Previoulsy in Axis 1.3 we used;
  
 
  
 


>
 But with Axis 2 I get the following exception
: FINEST, generate, , ->, {http://fineos.com}findPersonResponse: FINEST, getXMLInterface, , ->, {http://fineos.com}findPersonResponseException in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: java.lang.IllegalStateException: The class com.fineos.FindPersonResponse has already been created.    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)    at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
If I instead use


 
 


 
 
 
Where inputElement is a string element I get the following;
 
 : FINEST, getSGFactory, , Created instance of org.apache.ws.jaxme.generator.sg.impl.JAXBSFactory: FINEST, getSGFactory, , <-, [EMAIL PROTECTED]: FINEST, parse, , Parser = [EMAIL PROTECTED], validatin = falseException in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lag.RuntimeException: org.apache.ws.jaxme.xs.parser.impl.LocSAXException: At line 5: The reerenced element {http://fineos.com}inputElement is
 undefined.    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngie.java:185)    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
 
So my question is, is there a way of defining an operation in Axis 2 which takes multiple parameters ?
 
Thanks,
Brian
__
The information contained in this e-mail is confidential, may be privileged and is intended 
only for the user of the recipient named above. If you are not the intended recipient or a 
representative of the intended recipient, you have received this e-mail in error and must 
not copy, use or disclose the contents of this e-mail to anybody else. 

 
If you have received this e-mail in error, please notify the sender immediately by return 
e-mail and permanently delete the copy you received. This e-mail has been swept for 
computer viruses. However, you should carry out your own virus checks. 
Registered in Ireland, No. 205721. http://www.FINEOS.com
__
 


Re: [Axis2] Service packaging how to

2006-08-29 Thread Ali Sadik Kumlali
Hi Michele,

I can use property files found under /WEB-INF/classes without any problem. 
What do you mean with "it does not work properly"? 

Regards,

Ali Sadik Kumlali

- Original Message 
From: Michele Mazzucco <[EMAIL PROTECTED]>
To: Axis user mailing list 
Sent: Tuesday, August 29, 2006 4:04:38 PM
Subject: [Axis2] Service packaging how to

Hi all,

I've got a simple question: which structure should the aar file have if
libraries and property files are included?

Is the default (i.e. classes in / and libraries in /lib) ok? And what
about the property files?
I've tried also to store classes as well as property files (i.e. log4j
configuration )in /WEB-INF/classes, libraries in /WEB-INF/lib, but it
does not work properly.

Any idea?

Thanks in advance,
Michele

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: XFire -vs- Axis?

2006-08-23 Thread Ali Sadik Kumlali
Hi,I haven't used XFire. But, stack comparision might be useful as a starting point: http://xfire.codehaus.org/Stack+ComparisonRegards,Ali Sadik Kumlali- Original Message From: M. Goodell <[EMAIL PROTECTED]>To: Users Axis Sent: Wednesday, August 23, 2006 6:38:56 PMSubject: XFire -vs- Axis?Has anyone had experience with the XFire SOAP solution they would like to share? I would like to examine as many options as I can and make the best choice. Feedback is welcome. 
		Do you Yahoo!? Everyone is raving about the  all-new Yahoo! Mail.

Re: [Axis2] Message Id tracking

2006-08-22 Thread Ali Sadik Kumlali
May following be the answer?

Inflow handler
--
  ctx.setProperty ("INCOMING_UID", incomingId);

Outflow handler
--
 String incomingId = ctx.getProperty ("INCOMING_UID");

Regards,

Ali Sadik Kumlali
 
- Original Message 
From: Michael Erdely <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org; Ali Sadik Kumlali <[EMAIL PROTECTED]>
Sent: Tuesday, August 22, 2006 11:09:22 PM
Subject: Re: [Axis2] Message Id tracking

Ali,

Thank you for the feedback but this is outside of WS-Addressing.

Can I set this String in the inflow handler's MessageContext so it is
available by the module's outflow handler?

-Michael


On 8/22/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> Michael,
>
> Sometime back, I did similar thing. What you need depends on the MEP you've 
> selected. I assume you use:
> - In-out receiver (e.g. RawXMLINOutMessageReceiver)
> - MessageID of WS-Addressing as unique identifier
>
> Could you please try followings?  You may run into problems as I haven't 
> tried these :)
>
> module.xml
> -
> 
> This module is used for passing incoming message id back to 
> the sender.
> 
>  class="com.mycompany.axis2.module.test.MyTestModuleOutHandler">
> 
> 
> 
> 
>
> module handler
> --
> public class MyTestModuleOutHandler extends AbstractRegistererHandler {
> public void invoke(MessageContext msgContext) throws AxisFault {
> // If you use in-only receiver, ctx.getRelatesTo() returns null and 
> the following line causes NPE
> ctx.setMessageID(ctx.getRelatesTo().getValue());
> }
> }
>
> axis2.xml
> --
> 
>  
> ...
> 
>
> 
> 
> 
>
>
> Hope this helps,
>
> Ali Sadik Kumlali
>
> - Original Message 
> From: Michael Erdely <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Sent: Tuesday, August 22, 2006 9:07:03 PM
> Subject: [Axis2] Message Id tracking
>
> We are receiving a unique identifier within the incoming header and we
> want to send that same unique identifier back in the response header.
>
> How can I handle this within a module which is already processing this
> header block?
>
> Thanks in advance!
>
> -Michael
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Message Id tracking

2006-08-22 Thread Ali Sadik Kumlali
Forgot to mention that you don't need any extra work, if you use default flow 
of WS-Addressing. Sender adds their MessageID to the request message and the 
receiver puts incoming MessageID into the RelatesTo field of the response 
message. Thus, each message has its own unique MessageID while response 
messages also have MessageID of the request in their RelatesTo field.

Regards,

Ali Sadik Kumlali

- Original Message 
From: Ali Sadik Kumlali <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Tuesday, August 22, 2006 10:37:27 PM
Subject: Re: [Axis2] Message Id tracking

Michael,

Sometime back, I did similar thing. What you need depends on the MEP you've 
selected. I assume you use:
- In-out receiver (e.g. RawXMLINOutMessageReceiver) 
- MessageID of WS-Addressing as unique identifier

Could you please try followings?  You may run into problems as I haven't tried 
these :)

module.xml
-

This module is used for passing incoming message id back to 
the sender.







module handler
--
public class MyTestModuleOutHandler extends AbstractRegistererHandler {
public void invoke(MessageContext msgContext) throws AxisFault {
// If you use in-only receiver, ctx.getRelatesTo() returns null and the 
following line causes NPE
ctx.setMessageID(ctx.getRelatesTo().getValue());
}
}

axis2.xml
--

 
...







Hope this helps,

Ali Sadik Kumlali

- Original Message 
From: Michael Erdely <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Tuesday, August 22, 2006 9:07:03 PM
Subject: [Axis2] Message Id tracking

We are receiving a unique identifier within the incoming header and we
want to send that same unique identifier back in the response header.

How can I handle this within a module which is already processing this
header block?

Thanks in advance!

-Michael

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Message Id tracking

2006-08-22 Thread Ali Sadik Kumlali
Michael,

Sometime back, I did similar thing. What you need depends on the MEP you've 
selected. I assume you use:
- In-out receiver (e.g. RawXMLINOutMessageReceiver) 
- MessageID of WS-Addressing as unique identifier

Could you please try followings?  You may run into problems as I haven't tried 
these :)

module.xml
-

This module is used for passing incoming message id back to 
the sender.







module handler
--
public class MyTestModuleOutHandler extends AbstractRegistererHandler {
public void invoke(MessageContext msgContext) throws AxisFault {
// If you use in-only receiver, ctx.getRelatesTo() returns null and the 
following line causes NPE
ctx.setMessageID(ctx.getRelatesTo().getValue());
}
}

axis2.xml
--

 
...







Hope this helps,

Ali Sadik Kumlali

- Original Message 
From: Michael Erdely <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Tuesday, August 22, 2006 9:07:03 PM
Subject: [Axis2] Message Id tracking

We are receiving a unique identifier within the incoming header and we
want to send that same unique identifier back in the response header.

How can I handle this within a module which is already processing this
header block?

Thanks in advance!

-Michael

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][Post 1.0 - SVN] JVM crash (XMLBeans - WebLogic 8.1 - Axis2 embedded in EAR)

2006-08-22 Thread Ali Sadik Kumlali
Hi all,

The mystery(!) has been solved at last.

What do you expect if you deploy classes complied with JDK 1.5 into WebLogic 
8.1 which runs against JDK 1.4? :)

In Eclipse, I had mistakenly selected "Separate JRE: JDK 1.5" option of runtime 
JRE that is used by Ant script which I used for compiling the service code.

Another question might arise here: How could the error disappear when I broke 
the single line statement down into several statements? Actually, when I made 
this change, I only copied the class of updated file from build/classes folder 
of Eclipse to the WebLogic. Since the project in Eclipse used JDK 1.4, there 
were no Java version conflict occured.

Sorry for spending your valuable time for this stupid mistake :(

Regards,

Ali Sadik Kumlali

- Original Message ----
From: Ali Sadik Kumlali <[EMAIL PROTECTED]>
To: axis-user 
Sent: Friday, August 18, 2006 5:29:40 PM
Subject: [Axis2][Post 1.0 - SVN] JVM crash (XMLBeans - WebLogic 8.1 - Axis2 
embedded in EAR)

Hi all,

Sorry for the long post. But, as everybody says :), I run into very strange 
problem: When my service is called, JVM that WebLogic runs in crashes. Here is 
the exception:

--
  An unexpected exception has been detected in native code outside the VM.
 Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc005) occurred at 
PC=0x617
 0612F
 Function=[Unknown.]
 Library=(N/A)
 
 NOTE: We are unable to locate the function name symbol for the error
   just occurred. Please refer to release documentation for possible
   reason and solutions.
 
 
 Current Java thread:
 at java.lang.Class.getClassLoader0(Native Method)
 at java.lang.Class.getClassLoader(Class.java:516)
 at 
com.mycompany.ws.schemas.account_1_0.AccountRequestDocument.(Acc
 ountRequestDocument.java:19)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:141)
 at 
com.mycompany.ws.definitions.mycompany.MyCompanyServicesMessageReceiverInOnly.invoke
 BusinessLogic(MkkServicesMessageReceiverInOnly.java:81)
 at 
org.apache.axis2.receivers.AbstractInMessageReceiver.receive(Abstract
 InMessageReceiver.java:34)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:503)
 at org.apache.axis2.transport.njms.AxisMdb.onMessage(AxisMdb.java:246)
 at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
 at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
 at progress.message.jimpl.Session.deliver(Unknown Source)
 at progress.message.jimpl.Session.run(Unknown Source)
 at progress.message.jimpl.Session$SessionThread.run(Unknown Source)
 
 Dynamic libraries:
 0x0040 - 0x0040B000 C:\J2SDK1~1.2_0\bin\java.exe
 0x77F8 - 0x77FFD000 C:\WINNT\system32\ntdll.dll
 ...
 0x38C7 - 0x38C7F000 C:\j2sdk1.4.2_08\jre\bin\net.dll
 0x690A - 0x690AB000 C:\WINNT\system32\PSAPI.DLL
 
 Heap at VM Abort:
 Heap
  def new generation   total 235968K, used 115192K [0x1001, 0x2001, 
0x200
 1)
   eden space 209792K,  44% used [0x1001, 0x15b5f788, 0x1ccf)
   from space 26176K,  82% used [0x1ccf, 0x1e21e930, 0x1e68)
   to   space 26176K,   0% used [0x1e68, 0x1e68, 0x2001)
  tenured generation   total 262144K, used 12912K [0x2001, 0x3001, 
0x3001
 )
the space 262144K,   4% used [0x2001, 0x20cac2f8, 0x20cac400, 
0x3001)
 
  compacting perm gen  total 131072K, used 29432K [0x3001, 0x3801, 
0x3801
 )
the space 131072K,  22% used [0x3001, 0x31cce320, 0x31cce400, 
0x3801)
 
 
 Local Time = Fri Aug 18 13:51:14 2006
 Elapsed Time = 68
 #
 # The exception above was detected in native code outside the VM
 #
 # Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 mixed mode)
 #
 # An error report file has been saved as hs_err_pid3456.log.
 # Please refer to the file for further information.
 #
 
--
 
 
The exception is thrown where static variable of generated interface is set:

 
--
  // Generated. This line causes JVM crash.
  public static final org.apache.xmlbeans.SchemaType type = 
(org.apache.xmlbeans.SchemaType)
 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(AccountRequestDocument.class.getClassLoader(),
 
"schemaorg_apache_xmlbeans.system.s67CA6C5D556F95E00282C4FAF31E3C3B").resolveHandle("accountrequest7895doctype");
  
--
  
 
As you've seen here, there are

Re: Logging, response code 500

2006-08-22 Thread Ali Sadik Kumlali
Hi David,

If you haven't already done, please;
- Uncomment 
"org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger" 
line found in commons-logging.properties which resides under 
axis2\WEB-INF\classes\
- Add "log4j.logger.org.apache.axis2.transport.http=DEBUG" line into 
log4j.properties file resides under axis2\WEB-INF\classes\
- You may also need to add "log4j.logger.org.apache.axis2.receivers=DEBUG" to 
this file.

If none of these works, could you please look at 
https://issues.apache.org/jira/browse/AXIS2-746 ?

Hope this helps,

Ali Sadik Kumlali

- Original Message 
From: David Melgar <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Tuesday, August 22, 2006 7:31:11 AM
Subject: Logging, response code 500

I've had multiple instances where I attempt to invoke a web service on
Axis2 and recieve a fault with response code 500.

No exception is logged on the server, nor any other obvious additional
information.

Is there some way to enable logging on Axis2 so that it can log an
exception or provide more information regarding errors?

Thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2][Post 1.0 - SVN] JVM crash (XMLBeans - WebLogic 8.1 - Axis2 embedded in EAR)

2006-08-18 Thread Ali Sadik Kumlali
.s67CA6C5D556F95E00282C4FAF31E3C3B").resolveHandle("accountrequest7895doctype");
   System.out.println("typeSystemForClassLoader: " + obj);
   org.apache.xmlbeans.SchemaType typ =  
(org.apache.xmlbeans.SchemaType) obj;
   System.out.println("SchemaType: " + typ);
   
System.out.println("");
 } catch (Throwable e) {
 e.printStackTrace();
 }
 }
 }
 
 // Not generated. Added by me.
  public static final Test test = new Test ();
 
 // Generated. This line causes JVM crash.
  public static final org.apache.xmlbeans.SchemaType type = 
(org.apache.xmlbeans.SchemaType)
 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(AccountRequestDocument.class.getClassLoader(),
 
"schemaorg_apache_xmlbeans.system.s67CA6C5D556F95E00282C4FAF31E3C3B").resolveHandle("accountrequest7895doctype");
 
 ...
 }
 
--
   
After this change, I didn't get the exception anymore. Since I was shocked :) 
with the result, rolled back the changes and tried again. And got the exception 
again.

I'm confused and really need help. If you feel there is lack of information 
here, please be kind enough to ask.

Thanks in advance,

Ali Sadik Kumlali



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2][1.0] How to embed Axis2 in an J2EE application? Where to put the JARs?

2006-08-09 Thread Ali Sadik Kumlali
Hi all,

Here are my requirements:
- SOAP comes over JMS 
- I use message-driven-bean(MDB) as delegator
- I need the MDB to invoke Axis2 service directly (not by making call
to a HTTP URL)

You may think it as AxisServlet or JMSListener. Therefore, MDB requires
Axis2's jars. 

To achive this, I tried followings:
- Added all the jars comes with Axis2 to CLASSPATH before starting the
application server(WL81). But, I got "The input line is too long.".
(I'm using Win2K.)
- Just to make sure, I put all the jars under jre\lib\ext\. Application
server(WebLogic 8.1) started with strange errors.
- Unpacked all the jars and repackaged them into a single jar. (I know,
I overrided META-INF, log4j.properties, etc. :)). I added this jar to
the CLASSPATH and successfully started the application server. But when
the first call to the skeleton happened, I got JVM heap error and the
application server crashed. Since unpacking & repacking was very odd
thing, I even didn't try to find what was going on :)
- Added the path and the name of the jars to the Class-Path entry of
MANIFEST.MF in the ear file. When I deploy the ear, I got
NoClassFoundException.

Please let me know your valuable thougths.

Regards,

Ali Sadik Kumlali


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: implement JMS transport

2006-07-30 Thread Ali Sadik Kumlali
Hi Preetha,All of the info I'll give is for Axis2 only not for Axis.AFAIK, currently, there is no a tutorial for the Axis2 JMS.  There are two JMS implementations of Axis2. Current implementation (org.apache.axis2.transport.jms.*) was ported from Axis1 and available with Axis2-1.0. On the other hand, new implementation(org.apache.axis2.transport.njms.*) was written from the ground up after Axis2-1.0 was released. For the new JMS implementation, you'll need to use nightly builds or SVN.Some resources:- There is an integration test based on the current implemenation. But you need to change many thing to be able to run. I posted some mails to the axis-user list regarding this.http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/jms/JMSEchoRawXMLTest.java?view=markup
- I created a fully documented unit test for the new JMS implementation. It also has screenshots that let you configure SonicMQ and Hermes. Please note that there is no feedback from the Axis2 team yet. So, please don't take it as real solution.https://issues.apache.org/jira/browse/AXIS2-868- axis-user archive. You may restrict the query further.
http://www.mail-archive.com/cgi-bin/htsearch?config=axis-user_ws_apache_org&restrict=&exclude=&words=JMS+Axis2


- axis-dev archive. You may restrict the query further.
http://www.mail-archive.com/cgi-bin/htsearch?config=axis-dev_ws_apache_org&restrict=&exclude=&words=JMS+Axis2

Hope this helps,Ali Sadik Kumlali- Original Message From: [EMAIL PROTECTED]To: axis-user@ws.apache.orgSent: Monday, July 31, 2006 8:10:12 AMSubject: implement JMS transport


 
 




Hi, 

   

 I want to implement my web service using JMS transport.  

Please help me on a good link or an example that would guide
me  

In the process. Your help on this will be appreciated. 

   

Regards, 

Preetha V. 

   



  



   



DISCLAIMER:This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. 



Re: please recommend a good wsdl validation tool

2006-07-21 Thread Ali Sadik Kumlali
Hi Xucai,I use EclipseWTP(open-source). It comes with a WSDL editor that lets you validate the WSDL. EclipseWTP can be used for testing WS-I conformance as well.Regards,Ali Sadik Kumlali- Original Message From: xu cai <[EMAIL PROTECTED]>To: axis-user@ws.apache.orgSent: Friday, July 21, 2006 9:33:00 AMSubject: please recommend a good wsdl validation toolthanks in advance.
Could anybody recommend a good wsdl validation tool for me ?-- - xucai 

Re: [Axis2] unable to run security sample.

2006-07-19 Thread Ali Sadik Kumlali
Hi Jan,Both secUtil.jar and SecureService.aar include PWCallback class. secUtil.jar is used by client and -normally- you shouldn't need it at server side. If you put SecureService.aar into axis2/WEB-INF/services/ directory, you should be able to call PWCallback under SecureService.aar.By any chance, might you miss one of the steps found in README.txt?Regards,Ali Sadik Kumlali- Original Message From: Jan Bauer Nielsen <[EMAIL PROTECTED]>To: axis-user@ws.apache.orgSent: Wednesday, July 19, 2006 11:46:19 AMSubject: Re: [Axis2] unable to run security sample.Just to follow up on my own
 question.I can get the sample to work if I copy the secUtil.jar file to the axis2/WEB-INF/lib/ directory. But according to the 4th step in the README.txt this shouldn't be necessary. Can anyone shed some light on this?JanJan Bauer Nielsen wrote:> Hi.> > Using the latest nightly builds and following the steps in the README > file I get the following error from the server. Can anyone please > explain why this is so?> > $ ant securitySample> Buildfile: build.xml> > securitySample:>  [java] Jul 19, 2006 9:34:44 AM > org.apache.axis2.deployment.DeploymentEngine prepareRepository>  [java] INFO: no services directory found , new one created>  [java] Jul 19, 2006 9:34:45 AM > org.apache.axis2.deployment.DeploymentEngine
 doDeploy>  [java] INFO: Deploying module : rampart-1.0>  [java] Jul 19, 2006 9:34:45 AM > org.apache.axis2.deployment.DeploymentEngine doDeploy>  [java] INFO: Deploying module : addressing-1.0>  [java] org.apache.axis2.AxisFault: WSHandler: cannot load password > callback class: sample.security.PWCallback; nested exception is:>  [java] java.lang.ClassNotFoundException: > sample.security.PWCallback>  [java] at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289) > >  [java] at >
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538)>  [java] at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472)>  [java] at sample.security.Client.main(Client.java:58)>  [java] Caused by: java.lang.Exception: org.apache.axis2.AxisFault: > WSHandler: cannot load password callback class: > sample.security.PWCallback; nested exception is:>  [java] java.lang.ClassNotFoundException: > sample.security.PWCallback; nested exception is:>  [java] org.apache.ws.security.WSSecurityException: WSHandler: > cannot load password callback class: sample.security.PWCallback; nested > exception
 is:>  [java] java.lang.ClassNotFoundException: > sample.security.PWCallback>  [java] at > org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336) > >  [java] at > org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82) > >  [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:380)>  [java] at > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523)>  [java] at >
 org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492)>  [java] at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) > >  [java] at > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)>  [java] at > javax.servlet.http.HttpServlet.service(HttpServlet.java:615)>  [java] at > javax.servlet.http.HttpServlet.service(HttpServlet.java:688)>  [java] at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > >  [java] at
 > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > >  [java] at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > >  [java] at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > >  [java] at > org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272) > >  [java] at > org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53) > >  [java] at >
 org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47) > >  [java] at > org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60) > >  [java] at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > >  [java] at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > >  [java] at > org.

Re: [Axis2 v1.0] security sample problem

2006-07-19 Thread Ali Sadik Kumlali
Hi Wan,Since your message doesn't have security headers, your client application seems to load wrong axis2.xml which isn't configured for secure communication. Have you added following VM arguments before running your client application from Eclipse?-Daxis2.repo=client_repo -Daxis2.xml=client_repo/conf/axis2.xmlI know you were able to run it successfully with one of the nightly builds. But just wanted to remind this mostly forgotten part :)Regards,Ali Sadik Kumlali- Original Message From: Wan Kaveevivitchai <[EMAIL PROTECTED]>To: axis-user@ws.apache.orgSent: Wednesday, July 19,
 2006 10:40:40 AMSubject: Re: [Axis2 v1.0] security sample problemRuchith,  now my result from eclipse is equivalent to the one run by ant. However, it looks like thisBuildfile: build.xmlsecuritySample: [java] 19.07.2006 09:08:39 org.apache.axis2.deployment.DeploymentEngine prepareRepository [java] INFO: no services directory found , new one created [java] 19.07.2006 09:08:39 org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : addressing-1.0 [java] 19.07.2006 09:08:40 org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : rampart-1.0 [java] org.apache.axis2.AxisFault: WSDoAllReceiver: Request does not contain required Security
 header [java] at org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:190) [java] at org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82) [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:380) [java] at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523) [java] at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492) [java] at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:362) [java] at
 org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:280) [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538) [java] at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472) [java] at sample.security.Client.main(Client.java:58)BUILD SUCCESSFULTotal time: 7 seconds I have deployed couple different version of Axis2 nightly builds. And i have discover something strange. In which the sample i used came with axis2-std-SNAPSHOT-bin, released on July 18th. I have been successfully run it with ant but with axis2 nightly build 6  June 06 version on the server side.with the following resultBuildfile:
 build.xmlsecuritySample: [java] 19.07.2006 09:13:07 org.apache.axis2.deployment.DeploymentEngine prepareRepository [java] INFO: no services directory found , new one created [java] 19.07.2006 09:13:08 org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : addressing-1.0 [java] 19.07.2006 09:13:08 org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : rampart-1.0 [java] 19.07.2006 09:13:15 org.apache.xml.security.signature.Reference verify [java] INFO: Verification successful for URI "#id-25182688" [java] 19.07.2006 09:13:15 org.apache.xml.security.signature.Reference verify [java] INFO: Verification successful
 for URI "#SigConf-28291271" [java] Response: xmlns:example1="http://example1.org/example1"; xmlns:tns="http://ws.apache.org/axis2"; xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"; xmlns:wsa="http://www.w3.org/2005/08/addressing"; xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">Axis2 Echo String
  [java] SecureService Invocation successful :-)BUILD SUCCESSFULTotal time: 9 seconds  However, when i try to run the same sample with the latest nightly build version on the server side released on 18 July 06. I gotBuildfile: build.xmlsecuritySample: [java] 19.07.2006 09:08:39 org.apache.axis2.deployment.DeploymentEngine prepareRepository [java] INFO: no services directory found , new one created [java] 19.07.2006 09:08:39 org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying module : addressing-1.0 [java] 19.07.2006 09:08:40 org.apache.axis2.deployment.DeploymentEngine doDeploy [java] INFO: Deploying
 module : rampart-1.0 [java] org.apache.axis2.AxisFault: WSDoAllReceiver: Request does not contain required Security header [java] at org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:190) [java] at org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82) [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:380) [java] at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523) 

Re: [Axis2] JMS support improvements

2006-07-06 Thread Ali Sadik Kumlali
Hi Asankha,Sorry for the late response. I was busy with:1) Examining the listener part of the new JMS implementation2) Discovering the security settings of the SonicMQ3) Creating authenticated connections to the SonicMQ from Hermes[1] and Axis24) Preparing unit testsI opened a JIRA issue[2] and attached my work. We may discuss all the topics step by step over this.BTW, it's good to know there is someone else in this space ;PAli Sadik Kumlali[1] www.hermesjms.com[2] http://issues.apache.org/jira/browse/AXIS2-868- Original Message From: Asankha C. Perera <[EMAIL PROTECTED]>To: axis-dev@ws.apache.orgCc: axis-user@ws.apache.orgSent: Tuesday, July 4, 2006 8:57:12 AMSubject: Re: [Axis2] JMS support improvements


  
Hi Ali

I wrote the new JMS implementation, but please note that it has not
been made the default Axis2 JMS implementation yet.. As I come from the
Synapse background, my main concerns were to be able to listen on
multiple JMS destinations (probably using different JMS servers) by
different services. I really appreciate your feedback and apologize for
the delay in replying to this email thread as I was at ApacheCon last
week. 

So.. as I guess you are not alone anymore in the JMS space.. can we
take things one by one and get them resolved? Nothing would make me
happier than to also see you get involved in fixing some of these
issues you have discovered with your suggested resolutions :-) I will
answer the following questions from the new JMS implementation
perspective as I do not have much experience with the current
implementation.

  New JMS Implementation- [New Feature] Handling connections to security enabled brokers [1]  - There is no support for authenticated connections. But in real life;- Each connection may require username and password- Each binding/broker(transport.jms.ConnectionFactoryJNDIName) may   require a different username & password- There is a need for a place to store connection username & password   (probably within axis2.xml [2])  

The new JMS implementation allows you to define one or more connection
factories that you could listen on. You can provide the user name and
password to be used to get the context through the
java.naming.security.principal and java.naming.security.credentials
properties set on the connection factory. I believe that the 
javax.jms.ConnectionFactory.createConnection() now uses the above, as
the default user identity.

    
    
        org.apache.activemq.jndi.ActiveMQInitialContextFactory
        tcp://localhost:61616        
        myuser
        mypassword
        QueueConnectionFactory
    
    


  - [New Feature] ConnectionFactory cache [3]  - In SonicMQ, if ConnectionFactory is retrieved from the JNDI for each connection, very high memory usage which prevents access to admin console occurs during high message traffic. And sometimes the server crashes.  - AFAIK, old JMS implementation uses connectors to achive this.  

The JMS listener focuses on listening for JMS messages - and I believe
that the optimization that one could perform on outgoing JMS is limited
- as different messages may be destined for different JMS destinations.
However, I also think that we could use the "default" connection
factory (if one is defined) for outgoing messages with a minor patch..
Will this be ok?

  - [New Feature] Connection pool [3]  - I'm not 100% sure here. Caching ConnectionFactory would be suffient ifvendor specific ConnectionFactory internally supports connection pool.Or, perhaps, a ConnectionPool which internally holds connectionsand uses ConnectionFactory cache may be written.

The new code does not go into vendor specifics.. hence if a vendor does
have optimizations, they will be used through the standard JMS code we
are using.

  Common for both Implementation  -  - [Bug?] fireAndForget () waits for response when it comes to JMS[5]   - In JMSSender.invoke(), there is waitForResponse variable that is set  according to the separate channel use. Because of this, I need to  pass true to options.setUseSeparateListener() before calling  fireAndForget (). Does it logically correct? I mean, don't we expect  fireAndForget() to be used for one-way messaging? I think fireAndForget()  should be irrelevant to the response message and so the listener.

I think the fireAndForget() should set the appropriate settings. Do you
think so too?

 - [New Feature] Message driven beans  as service endpoints   - That would be a great feature. JBossWS supports MDBs[6].  

I'm sure any help on such features would be very welcome by the
community :-)

   - [Improvement] JMS URL concept/proposal/tutorial should be clarified/updated[7]   - There is one proposal for Axis1[8] and none for Axis2. It seems, some of  the parameters are not used in Axis2.

Agreed.. will need some time thoug

Re: [Axis2] Configuring SOAP over JMS axis2 client

2006-07-03 Thread Ali Sadik Kumlali
Hi Sagar,

If the constant names you mention are URL parameters, the old document 
belongs to Axis1 is here[1]. But it's not up-to-date. Also, you may look at 
to my post[2] to axis-dev list. 

Otherwise, could you please give more details?

Regards,

Ali Sadik Kumlali

[1] http://marc.theaimsgroup.com/?l=axis-dev&m=103617964921940&q=p3
[2] http://www.mail-archive.com/axis-dev@ws.apache.org/msg18547.html

- Original Message 
From: "Kar, Sagar (Genworth, Contractor)" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Monday, July 3, 2006 10:47:13 PM
Subject: RE: [Axis2] Configuring SOAP over JMS axis2 client

Hi Ali,

Thanks a lot. 
I have to dig into the code to figure out the constant names.
Is there any kind of documentation available for SOAP over JMS on the
apache site?

Thanks and regards,
Sagar


-Original Message-
From: Ali Sadik Kumlali [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 03, 2006 3:12 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Configuring SOAP over JMS axis2 client

Hi Sagar,

AFAIK, Axis2 client doesn't load
"transport.jms.ConnectionFactoryJNDIName" and
"transport.jms.Destination" from axis2.xml. You should embed these
values into an URL. 

Have you, by any chance, seen the JMSEchoRawXMLTest.java[1]? Also, last
week I posted a message that mentions about my "Hello Axis2 & JMS!"
application[2] :)

Hope this helps.

Ali Sadik Kumlali

[1]
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/integr
ation/test/org/apache/axis2/jms/
[2] http://www.mail-archive.com/axis-user@ws.apache.org/msg15132.html


- Original Message 
From: "Kar, Sagar (Genworth, Contractor)" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Monday, July 3, 2006 6:25:53 PM
Subject: [Axis2] Configuring SOAP over JMS axis2 client

I can't find much help regarding the configuration of a SOAP over JMS
Axis2 client.
I have created the JMS jndi entries using JMSAdmin and with
com.sun.jndi.fscontext.RefFSContextFactory as the provider.
I have also updated axis2.xml as follows.


SOAPJMSFactory1
SOAPJMSDestQueue1


However I am getting the following exception. I guess this means that
its using ConnectionFactory as the ConnectionFactoryJNDIName instead of
what I have provided 'SOAPJMSFactory1'.
Can someone please point me to some documentation or tell me what am I
doing wrong?

org.apache.axis2.AxisFault: cannotConnect; nested exception is: 
javax.naming.NameNotFoundException: ConnectionFactory
at
org.apache.axis2.transport.jms.JMSConnectorManager.getConnector(JMSConne
ctorManager.java:273)
at
org.apache.axis2.transport.jms.JMSSender.setupTransport(JMSSender.java:3
74)
at
org.apache.axis2.transport.jms.JMSSender.invoke(JMSSender.java:233)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:328)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:279)
at
org.apache.axis2.BankAppInboundServiceJMSStub.getAccountBalance(BankAppI
nboundServiceJMSStub.java:501)
at test.TestJMSClient.main(TestJMSClient.java:38)


Thanks in advance.

Sagar


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Configuring SOAP over JMS axis2 client

2006-07-03 Thread Ali Sadik Kumlali
Hi Sagar,

AFAIK, Axis2 client doesn't load "transport.jms.ConnectionFactoryJNDIName" and 
"transport.jms.Destination" from axis2.xml. You should embed these values into 
an URL. 

Have you, by any chance, seen the JMSEchoRawXMLTest.java[1]? Also, last week I 
posted a message that mentions about my "Hello Axis2 & JMS!" application[2] :)

Hope this helps.

Ali Sadik Kumlali

[1] 
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/jms/
[2] http://www.mail-archive.com/axis-user@ws.apache.org/msg15132.html


- Original Message 
From: "Kar, Sagar (Genworth, Contractor)" <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Monday, July 3, 2006 6:25:53 PM
Subject: [Axis2] Configuring SOAP over JMS axis2 client

I can't find much help regarding the configuration of a SOAP over JMS
Axis2 client.
I have created the JMS jndi entries using JMSAdmin and with
com.sun.jndi.fscontext.RefFSContextFactory as the provider.
I have also updated axis2.xml as follows.


SOAPJMSFactory1
SOAPJMSDestQueue1


However I am getting the following exception. I guess this means that
its using ConnectionFactory as the ConnectionFactoryJNDIName instead of
what I have provided 'SOAPJMSFactory1'.
Can someone please point me to some documentation or tell me what am I
doing wrong?

org.apache.axis2.AxisFault: cannotConnect; nested exception is: 
javax.naming.NameNotFoundException: ConnectionFactory
at
org.apache.axis2.transport.jms.JMSConnectorManager.getConnector(JMSConne
ctorManager.java:273)
at
org.apache.axis2.transport.jms.JMSSender.setupTransport(JMSSender.java:3
74)
at
org.apache.axis2.transport.jms.JMSSender.invoke(JMSSender.java:233)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:328)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:279)
at
org.apache.axis2.BankAppInboundServiceJMSStub.getAccountBalance(BankAppI
nboundServiceJMSStub.java:501)
at test.TestJMSClient.main(TestJMSClient.java:38)


Thanks in advance.

Sagar


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][Post 1.0 SVN] Connection pool for JMS

2006-07-03 Thread Ali Sadik Kumlali
Thanks for the reply Paul.  I'll try to collect all the JMS related messages 
I've posted and will post them to the axis-dev list.

BTW, it's good to know JMS support is being improved. Do you have a schedule?

Regards,

Ali Sadik Kumlali

- Original Message 
From: Paul Fremantle <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org; Ali Sadik Kumlali <[EMAIL PROTECTED]>
Sent: Monday, July 3, 2006 12:37:51 PM
Subject: Re: [Axis2][Post 1.0 SVN] Connection pool for JMS

Ali

We are just in the process of updating and improving our SOAP/JMS support.

So we appreciate any advice you can give us. We will look at the
username/password and connection pooling issues.

If you have specific ideas on how we can implement some of this, we
appreciate that too. Maybe you should join us over on axis-dev as this
is becoming a code-focussed discussion!

Paul

On 7/3/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I haven't seen connection pool in the new JMS implementation. However, the 
> current JMS implementation uses connectors within which vendor-specific pool 
> is checked and created if found none.
>
> Also, as far as I've seen from the new JMS implementation code, each time a 
> request is made
> - Initial context is created
> - Connection factory is retrieved from the JNDI
> - A new connection is created
>
> Are these, somehow, normal/expected behaviour? If yes, shouldn't we expect it 
> become slower than the current implementation?
>
> Could someone please shed some light on JMS implementations?
>
> Regards,
>
> Ali Sadik Kumlali
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2][Post 1.0 SVN] Connection pool for JMS

2006-07-03 Thread Ali Sadik Kumlali
Hi all,

I haven't seen connection pool in the new JMS implementation. However, the 
current JMS implementation uses connectors within which vendor-specific pool is 
checked and created if found none.

Also, as far as I've seen from the new JMS implementation code, each time a 
request is made
- Initial context is created
- Connection factory is retrieved from the JNDI
- A new connection is created

Are these, somehow, normal/expected behaviour? If yes, shouldn't we expect it 
become slower than the current implementation?

Could someone please shed some light on JMS implementations?

Regards,

Ali Sadik Kumlali






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][Post 1.0 SVN] New JMS implementation doesn't support username and password while creating connection

2006-06-30 Thread Ali Sadik Kumlali
Forgot to mention:

1) The current JMS implemantation does have the username and password variables 
although it doesn't set them anywhere in the code. So, you may say it doesn't 
support that feature either :) I reported this before. 

2) The code I addressed is found JMSSender

Regards

Ali Sadik Kumlali

- Original Message ----
From: Ali Sadik Kumlali <[EMAIL PROTECTED]>
To: axis-user 
Sent: Friday, June 30, 2006 9:58:06 AM
Subject: [Axis2][Post 1.0 SVN] New JMS implementation doesn't support username 
and password while creating connection

Hi all,

I'm using SonicMQ and triying Axis2's current and the new JMS implementations 
over it.

When I enable the security of my broker, it requires username and password to 
be passed while creating a connection. The current JMS implementation supports 
this kind of connection. Is there any reason why we don't have this feature 
anymore?

It can easily be achived by replacing the line

  con = connectionFac.createConnection();
 
with following lines

  if (username != null && password != null) {
  con = connectionFac.createConnection(username, password);
  } else {
  con = connectionFac.createConnection();
  }
 
Here, username and password can be loaded from the configuration context as 
follows:

  AxisConfiguration axisConf = context.getAxisService().getAxisConfiguration(); 
   String username = (String) 
axisConf.getParameter(Constants.USER_NAME).getValue();
   String password = (String) 
axisConf.getParameter(Constants.PASSWORD).getValue();
 
Any comments?

Regards,

Ali Sadik Kumlali





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2][Post 1.0 SVN] New JMS implementation doesn't support username and password while creating connection

2006-06-29 Thread Ali Sadik Kumlali
Hi all,

I'm using SonicMQ and triying Axis2's current and the new JMS implementations 
over it.

When I enable the security of my broker, it requires username and password to 
be passed while creating a connection. The current JMS implementation supports 
this kind of connection. Is there any reason why we don't have this feature 
anymore?

It can easily be achived by replacing the line

  con = connectionFac.createConnection();
 
with following lines

  if (username != null && password != null) {
  con = connectionFac.createConnection(username, password);
  } else {
  con = connectionFac.createConnection();
  }
 
Here, username and password can be loaded from the configuration context as 
follows:

  AxisConfiguration axisConf = context.getAxisService().getAxisConfiguration(); 
   String username = (String) 
axisConf.getParameter(Constants.USER_NAME).getValue();
   String password = (String) 
axisConf.getParameter(Constants.PASSWORD).getValue();
 
Any comments?

Regards,

Ali Sadik Kumlali





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2][Post 1.0-SVN ] Is *new* JMS implementation ready to drive?

2006-06-27 Thread Ali Sadik Kumlali
Hi Axis2 team,

With great pleasure, I saw new JMS implementation in SVN yesterday. At first 
look, the ugly code (especially JMSConstants :)) seems to be cleaned up. Thanks 
for the effort. 

At this point I have some questions:
- Is it mature enough to give it a try?
- Do you have any plan to implement MDB based listener (as in JBoss WS)?

Regards,

Ali Sadik Kumlali





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2 tutorial] Nullpointer in Stub

2006-06-26 Thread Ali Sadik Kumlali
Hi Domingos,
 
Dims made some changes[1] on the WSDL of Axis2SampleDocLitService 2 days ago. 
That might fix your issue.  
 
Regards,
 
Ali Sadik Kumlali
 
[1] 
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/samples/wsdl/Axis2SampleDocLit.wsdl?view=log
 ?

- Original Message 
From: Domingos Antonio Pereira Creado Júnior <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Monday, June 26, 2006 10:24:13 PM
Subject: [Axis2 tutorial] Nullpointer in Stub


Hi There,

I´m following the Axis2 user tutorial, and I´m stuck in WS client from the WSDL 
service.
I´m getting the following error:

java.lang.RuntimeException: java.lang.NullPointerException
at 
org.apache.axis2.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:2224)
at 
org.apache.axis2.Axis2SampleDocLitServiceStub.echoString(Axis2SampleDocLitServiceStub.java:489)
at 
userguide.clients.EchoNonBlockingClient.main(EchoNonBlockingClient.java:39)
Caused by: java.lang.NullPointerException
at 
org.apache.axis2.Axis2SampleDocLitServiceStub.fromOM(Axis2SampleDocLitServiceStub.java:2216)
... 2 more

I´ve debugged and found that the method getElement(_returnEnv,"rpc") is 
returning null, at the following method code


public org.apache.axis2.Axis2SampleDocLitServiceStub.EchoStringReturn 
echoString(

org.apache.axis2.Axis2SampleDocLitServiceStub.EchoStringParam param10)
throws java.rmi.RemoteException
{
.
_operationClient.execute(true);
org.apache.axis2.context.MessageContext _returnMessageContext = 
_operationClient.getMessageContext(
   
org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
org.apache.axiom.soap.SOAPEnvelope _returnEnv = 
_returnMessageContext.getEnvelope();
java.lang.Object object = fromOM(getElement(_returnEnv,"rpc"),
 
org.apache.axis2.Axis2SampleDocLitServiceStub.EchoStringReturn.class,
 getEnvelopeNamespaces(_returnEnv));
_messageContext.getTransportOut().getSender().cleanup(_messageContext);
return 
(org.apache.axis2.Axis2SampleDocLitServiceStub.EchoStringReturn)object;


The SOAP message from server is like (_returnEnv value):
http://schemas.xmlsoap.org/soap/envelope/";>http://userguide.axis2.apache.org/xsd";>teste

Thanks in advance


Msc. Domingos Creado 
DSB - Diretoria de Soluções em Billing 
CPqD Telecom & IT Solutions 
Tel.: +55 19 3705-6423 / Fax: +55 19 3705-7268 
Cel.: +55 19 9605-2382 
[EMAIL PROTECTED] 
www.cpqd.com.br 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2][1.0] Why does fireAndForget () wait for response when it comes to JMS?

2006-06-26 Thread Ali Sadik Kumlali
Hi all,

Is there anyone who has used fireAndForget () to send a message over JMS?

In JMSSender.invoke(), there is waitForResponse variable that is set according 
to the separate channel use. Because of this, I need to pass true to  
options.setUseSeparateListener() before calling fireAndForget (). Does it 
logically correct? I mean, don't we expect fireAndForget() to be used for 
one-way messaging? I think fireAndForget() should be irrelevant to the response 
message and so the listener. Am I missing something?

Thanks in advance.

Ali Sadik Kumlali




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][1.0] Getting username and password from context...

2006-06-26 Thread Ali Sadik Kumlali
Hi all,

It seems when the issue is related with "JMS", noone can help?? I feel like I'm 
talking by myself all the time :)

Anyway, this time I've found a solution that needs to be confirmed or rejected 
by an expert. In axis2.xml there are userName and password parameters. 
Should/Can I use them for creating a connection to the JMS provider?

axis2.xml
---
  Administrator
  Administrator

JMSSender.setupTransport ()
---
  AxisConfiguration axisConf = context.getAxisService().getAxisConfiguration(); 
  String username = (String) 
axisConf.getParameter(Constants.USER_NAME).getValue();
  String password = (String) 
axisConf.getParameter(Constants.PASSWORD).getValue();;

Regards,

Ali Sadik Kumlali


- Original Message ----
From: Ali Sadik Kumlali <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Monday, June 26, 2006 2:20:58 PM
Subject: Re: [Axis2][1.0] Getting username and password from context...

I forgot to mention that I use Rampart and X.509 for message security. But 
AFAIK, JMSSender.setupTransport () does not ask for them. It just looks for the 
username and password to be able to connect the JMS provider. I didn't figure 
out where to store username/password of JMS provider. 

Also, should I create different JMS provider connection username/password for 
each client eventhough I force them to sign their messages?

Thanks a lot.

Ali Sadik Kumlali

----- Original Message 
From: Ali Sadik Kumlali <[EMAIL PROTECTED]>
To: axis-user 
Sent: Monday, June 26, 2006 1:58:20 PM
Subject: [Axis2][1.0] Getting username and password from context...

Hi all,

JMSSender.setupTransport () has a line that says: "// TODO: Fill username 
password from context". How/where can I get them?

Regards,

Ali Sadik Kumlali




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][1.0] Getting username and password from context...

2006-06-26 Thread Ali Sadik Kumlali
I forgot to mention that I use Rampart and X.509 for message security. But 
AFAIK, JMSSender.setupTransport () does not ask for them. It just looks for the 
username and password to be able to connect the JMS provider. I didn't figure 
out where to store username/password of JMS provider. 

Also, should I create different JMS provider connection username/password for 
each client eventhough I force them to sign their messages?

Thanks a lot.

Ali Sadik Kumlali

- Original Message 
From: Ali Sadik Kumlali <[EMAIL PROTECTED]>
To: axis-user 
Sent: Monday, June 26, 2006 1:58:20 PM
Subject: [Axis2][1.0] Getting username and password from context...

Hi all,

JMSSender.setupTransport () has a line that says: "// TODO: Fill username 
password from context". How/where can I get them?

Regards,

Ali Sadik Kumlali




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2][1.0] Getting username and password from context...

2006-06-26 Thread Ali Sadik Kumlali
Hi all,

JMSSender.setupTransport () has a line that says: "// TODO: Fill username 
password from context". How/where can I get them?

Regards,

Ali Sadik Kumlali




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [axis2 - v1.0] [please help!] dual blocking client

2006-06-22 Thread Ali Sadik Kumlali
Hi Diego,

In insertMappingAnnotations() you set the action two times and the latter one 
seems like a copy-paste-and-forget issue:

   ...
 _operationClient.getOptions().setAction("insertMappingAnnotations");
   ...
 _operationClient.getOptions().setAction("urn:echo");

Might that be the problem?

Regards,

Ali Sadik Kumlali

- Original Message 
From: Diego <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Friday, June 23, 2006 4:29:49 AM
Subject: [axis2 - v1.0] [please help!] dual blocking client

Hi Everybody,

I really need to get this code working.  I've posted 5 times regarding 
this subject and had no reply at all.  I would like to know if someone 
knows how I could modify the code generated by the wsdl2java in order to 
have a blocking dual client behaviour.

The code and the exception that I get follow.

I'm a bit frustrated about that!

Thanks very much about for any help!

Diego


=
Exception
=

Exception in thread "main" java.lang.NullPointerException
 at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:260)
 at 
org.astrodas.ws.peer.AstrodasPeerStub.insertMappingAnnotations(AstrodasPeerStub.java:128)
 at 
org.astrodas.ws.peer.AstrodasPeerProxy.insertMappingAnnotations(AstrodasPeerProxy.java:36)
 at org.astrodas.test.Populate.populateLocal(Populate.java:239)
 at org.astrodas.test.Populate.main(Populate.java:350)

=
  Code
=

public InsertMappingAnnotationsResponseDocument 
insertMappingAnnotations(InsertMappingAnnotationsDocument requestDoc)
 throws RemoteException {
   try {
 OperationClient _operationClient = 
_serviceClient.createClient(_operations[0].getName());
 _operationClient.getOptions().setAction("insertMappingAnnotations");
 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
 // Dual client
 
_operationClient.getOptions().setTransportInProtocol(Constants.TRANSPORT_HTTP);
 _operationClient.getOptions().setUseSeparateListener(true);
 _operationClient.getOptions().setAction("urn:echo");
 _serviceClient.engageModule(new 
javax.xml.namespace.QName(Constants.MODULE_ADDRESSING));
 // create SOAP envelope with that payload
 SOAPEnvelope env = null;
 //Style is Doc.
 env = 
toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
  requestDoc,
  optimizeContent(new 
QName("","insertMappingAnnotations")));
 // create message context with that soap envelope
 MessageContext _messageContext = new MessageContext();
 _messageContext.setEnvelope(env);
 // add the message contxt to the operation client
 _operationClient.addMessageContext(_messageContext);
 //execute the operation client
 _operationClient.execute(true);
 MessageContext _returnMessageContext = 
_operationClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
 SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
 Object object = fromOM(getElement(_returnEnv, "document"),
InsertMappingAnnotationsResponseDocument.class,
getEnvelopeNamespaces(_returnEnv));
 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
 return (InsertMappingAnnotationsResponseDocument) object;
   } catch (AxisFault f) {...}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2][1.0] Status of JMS URL syntax proposal

2006-06-22 Thread Ali Sadik Kumlali
Hi all,

Does anyone know whether JMS URL syntax 
proposal(http://marc.theaimsgroup.com/?l=axis-dev&m=103617964921940&q=p3) is 
well supported by Axis2? If yes, is that proposal up-to-date and does Axis2 
supports all the properties listed in?

Thanks.

Ali Sadik Kumlali

P.S: I do know that the proposal is for Axis not Axis2. But AFAIK, JMS 
transport of Axis2 was ported from Axis.
 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][1.0] JMS test problems with SonicMQ

2006-06-21 Thread Ali Sadik Kumlali
Hi again,

Finally, I've managed to initilize SimpleJMSListener and retrieved the message 
on it. Although the same manual processes were required to achive this, I would 
like to congratulate Axis2 team as these are not too easy to accomplish tasks 
in a transport-transparent manner.

Some of the missing points I've figured out:
- Modules are loaded three times
- jndiName is lost
- username and password are lost 
- Ambiguity and incompleteness in the code
  - Configuration file are loaded many times
  - There are lots of static definitions for the repository and conf/axis2.xml 
   - Unclearness of the differences between connectorMap and cfMap
  - Many TODO comments  that indicate incomplete features

All problems aside, I could manage to do followings
- Sending and receiving messages over JMS provider (SonicMQ)
- Signing and verifying messages with rampart
- Optionally, adding WSA headers

I still need to know 
- The improvement plans of JMS transport 
- Anyone who has successfully implemented JMS based solution by using Axis2

Thanks,

Ali Sadik Kumlali

- Original Message ----
From: Ali Sadik Kumlali <[EMAIL PROTECTED]>
To: axis-user 
Sent: Tuesday, June 20, 2006 11:42:59 PM
Subject: [Axis2][1.0] JMS test problems with SonicMQ

Hi all,

Is there anyone who has successfully implemented JMS based solution by using 
SonicMQ and Axis2?

I simply tried to use JMSEchoRawXMLTest.java found in integration tests, but 
couldn't get it work without doing changes.

What I saw that there are problems due to missing environment parameters while 
creating InitialContext(). I simply did followings to make it run:
- Manually set username and password fields in JMSSender.setupTransport ()
- Manually set environment parameters in 
JNDIVendorAdapter.getConnectionFactory()
You may find details of the changes I made at the end of the mail

I also noticed that the message in queue is byte array instead of clear text. 

Actually, that part of work just related with sending a message to the queue. I 
didn't try JMS listener implemantation of the Axis2.

Any information regarding Axis2, JMS (especially SonicMQ), setup procedures and 
sample would be greatly appreciated.

Many thanks in advance.

Ali Sadik Kumlali


JMSEchoRawXMLTest

   ...
static String sampleJmsUrl = "jms:/BAR?" +
"ConnectionFactoryJNDIName=AxisTestQueueConnectionFactory" + 

"&java.naming.factory.initial=com.sonicsw.jndi.mfcontext.MFContextFactory" + 
"&java.naming.provider.url=tcp://localhost:2506" +
/*"&vendor=SonicMQ" +*/ 
"&domain=QUEUE" +
/*"&com.sonicsw.jndi.mfcontext.domain=Domain1" + */ 
"&java.naming.security.principal=Administrator" + 
"&java.naming.security.credentials=Administrator";
  ...

JMSSender.setupTransport ()
--
...
String username = "Administrator";
String password = "Administrator";
...

JNDIVendorAdapter.getConnectionFactory()

   ...
environment.put (Context.INITIAL_CONTEXT_FACTORY,
"com.sonicsw.jndi.mfcontext.MFContextFactory");
environment.put (Context.PROVIDER_URL, "tcp://localhost:2506");
environment.put ("com.sonicsw.jndi.mfcontext.domain", "Domain1");
environment.put ("com.sonicsw.jndi.mfcontext.idleTimeout", "6000");
environment.put (Context.SECURITY_PRINCIPAL, "Administrator");
environment.put (Context.SECURITY_CREDENTIALS, "Administrator");

context = new InitialContext(environment);






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2][1.0] JMS test problems with SonicMQ

2006-06-20 Thread Ali Sadik Kumlali
Hi all,

Is there anyone who has successfully implemented JMS based solution by using 
SonicMQ and Axis2?

I simply tried to use JMSEchoRawXMLTest.java found in integration tests, but 
couldn't get it work without doing changes.

What I saw that there are problems due to missing environment parameters while 
creating InitialContext(). I simply did followings to make it run:
- Manually set username and password fields in JMSSender.setupTransport ()
- Manually set environment parameters in 
JNDIVendorAdapter.getConnectionFactory()
You may find details of the changes I made at the end of the mail

I also noticed that the message in queue is byte array instead of clear text. 

Actually, that part of work just related with sending a message to the queue. I 
didn't try JMS listener implemantation of the Axis2.

Any information regarding Axis2, JMS (especially SonicMQ), setup procedures and 
sample would be greatly appreciated.

Many thanks in advance.

Ali Sadik Kumlali


JMSEchoRawXMLTest

   ...
static String sampleJmsUrl = "jms:/BAR?" +
"ConnectionFactoryJNDIName=AxisTestQueueConnectionFactory" + 

"&java.naming.factory.initial=com.sonicsw.jndi.mfcontext.MFContextFactory" + 
"&java.naming.provider.url=tcp://localhost:2506" +
/*"&vendor=SonicMQ" +*/ 
"&domain=QUEUE" +
/*"&com.sonicsw.jndi.mfcontext.domain=Domain1" + */ 
"&java.naming.security.principal=Administrator" + 
"&java.naming.security.credentials=Administrator";
  ...

JMSSender.setupTransport ()
--
...
String username = "Administrator";
String password = "Administrator";
...

JNDIVendorAdapter.getConnectionFactory()

   ...
environment.put (Context.INITIAL_CONTEXT_FACTORY,
"com.sonicsw.jndi.mfcontext.MFContextFactory");
environment.put (Context.PROVIDER_URL, "tcp://localhost:2506");
environment.put ("com.sonicsw.jndi.mfcontext.domain", "Domain1");
environment.put ("com.sonicsw.jndi.mfcontext.idleTimeout", "6000");
environment.put (Context.SECURITY_PRINCIPAL, "Administrator");
environment.put (Context.SECURITY_CREDENTIALS, "Administrator");

context = new InitialContext(environment);






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Hot reloading of classes

2006-06-15 Thread Ali Sadik Kumlali
Hi Michele, 
 
>what are the service handlers shown in fig. 2 [1]? 
- 
http://ws.apache.org/axis2/1_0/Axis2ArchitectureGuide.html#extendingwithhandlers
- http://mail-archive.objectweb.org/jonas-team/2005-04/msg00017.html .
 
>If the service uses any custom module/handler, this should go into a separate 
>.mar archive, 
>am I right? 
AFAIK, yes

Regards,

Ali Sadik Kumlali
 
 
- Original Message  
From: Michele Mazzucco  
To: axis-user@ws.apache.org 
Sent: Thursday, June 15, 2006 11:22:05 AM 
Subject: Re: [Axis2] Hot reloading of classes 
 
Hi Ali, 
 
what are the service handlers shown in fig. 2 [1]? If the service uses 
any custom module/handler, this should go into a separate .mar archive, 
am I right? 
 
Thanks, 
Michele 
 
[1] http://jaxmag.com/itr/online_artikel/psecom,id,757,nodeid,147.html 
 
Ali Sadik Kumlali wrote: 
> Hi Andrew, 
>  
> Could you please check following links out? 
>  
> http://www.mail-archive.com/axis-user@ws.apache.org/msg12077.html 
> http://jaxmag.com/itr/online_artikel/psecom,id,757,nodeid,147.html 
>  
> Regards, 
>  
> Ali Sadik Kumlali 
>  
> - Original Message  
> From: Andrew B  
> To: axis-user@ws.apache.org 
> Sent: Wednesday, June 14, 2006 11:28:17 PM 
> Subject: [Axis2] Hot reloading of classes 
>  
> Hello, 
>  
> Is it possible to hot-reload classes in an Axis2 service? Or do I have 
> to restart the app server every time I make a change? 
>  
> Thanks! 
>  
> __ 
> Do You Yahoo!? 
> Tired of spam? Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>  
>  
 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Hot reloading of classes

2006-06-14 Thread Ali Sadik Kumlali
Hi Andrew,Could you please check following links out?http://www.mail-archive.com/axis-user@ws.apache.org/msg12077.htmlhttp://jaxmag.com/itr/online_artikel/psecom,id,757,nodeid,147.htmlRegards,Ali Sadik Kumlali- Original Message From: Andrew B <[EMAIL PROTECTED]>To: axis-user@ws.apache.orgSent: Wednesday, June 14, 2006 11:28:17 PMSubject: [Axis2] Hot reloading of
 classesHello,Is it possible to hot-reload classes in an Axis2 service? Or do I have to restart the app server every time I make a change?Thanks! __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Re: [axis2] message context question

2006-06-14 Thread Ali Sadik Kumlali
Hi Michele,

AFAIK, it's only created for IN-OUT operations. You may look inside the 
AbstractInOutSyncMessageReceiver and AbstractInOutAsyncMessageReceiver classes.

Regards,

Ali Sadik Kumlali

- Original Message 
From: Michele Mazzucco <[EMAIL PROTECTED]>
To: Axis user mailing list 
Sent: Wednesday, June 14, 2006 2:03:04 PM
Subject: [axis2] message context question

Hi all,

when is the outgoing message context created? Is it always created or
only in certain circumstances, e.g. IN-OUT operation and not OUT-ONLY ones?


Thanks,
Michele

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [axis2] problem with Userexception and AxisFault

2006-06-01 Thread Ali Sadik Kumlali
Hi Billie,

If I do not get wrong, you did not define a fault for your operation in
WSDL and also did not generate the service skeleton from the WSDL by
using WSDL2Java.

For my application, I generate the code from WSDL and the generator
adds exception inner class in stub and skeleton successfully.

You may find excerpt from my codes below.

Hope this helps.

Ali Sadik Kumlali



-
XSD
-
...


  



  

...


-
WSDL
-
  ...
  

  
  ...
  





  ...


-
Skeleton (auto-generated and manually customized)
-
// Not auto-generated. I added this to the skeleton file.
protected BusinessExceptionSoapFaultException createBusinessException
(MyAppException e) {
  BusinessExceptionDocument doc = BusinessExceptionDocument.Factory
.newInstance();
  BusinessExceptionType type = BusinessExceptionType.Factory
.newInstance();
  type.setErrorCode(e.getCode());
  type.setErrorMessage(e.getSimpleMessage());
  type.setStackTrace(Tools.stackTraceToString(e));
  doc.setBusinessException(type);

  BusinessExceptionSoapFaultException ex = new
BusinessExceptionSoapFaultException();
  ex.setFaultMessage(doc);
  return ex;
}

// Auto generated signature. I filled inside.
public acme.schemas.account.OpenAccountResponseDocument OpenAccount(
  acme.account.OpenAccountDocument param4)
throws
acme.definitions.account.AccountServicesSkeleton.BusinessExceptionSoapFaultException
{
  try {
 // make call to the backend application
  } catch (MyAppException e) {
throw createBusinessException (e);
  }
}

// Auto generated. I did nothing here.
public static class BusinessExceptionSoapFaultException extends
  java.rmi.RemoteException {
  private acme.schemas.types.BusinessExceptionDocument faultMessage;
  public void
setFaultMessage(acme.schemas.types.BusinessExceptionDocument msg){
faultMessage = msg;
  }
  public acme.schemas.types.BusinessExceptionDocument getFaultMessage()
{
return faultMessage;
  }
}


-
In-out message receiver (auto-generated)
-
...

public void invokeBusinessLogic(org.apache.axis2.context.MessageContext
msgContext, org.apache.axis2.context.MessageContext newMsgContext)
throws org.apache.axis2.AxisFault {
  try {
...
  } catch
(acme.definitions.account.AccountServicesSkeleton.BusinessExceptionSoapFaultException
e) {
org.apache.axis2.AxisFault f =
new
org.apache.axis2.AxisFault("BusinessExceptionSoapFaultException");
f.setDetail(toOM(e.getFaultMessage(),false));
throw f;
  } catch (Exception e) {
throw org.apache.axis2.AxisFault.makeFault(e);
  }
}


-
Stub (auto-generated)
-
...
// Auto generated. I did nothing here. Please note that
// this exception inner class also reside in skeleton.
public static class BusinessExceptionSoapFaultException extends
  java.rmi.RemoteException {
  private acme.schemas.types.BusinessExceptionDocument faultMessage;
  public void
setFaultMessage(acme.schemas.types.BusinessExceptionDocument msg){
faultMessage = msg;
  }
  public acme.schemas.types.BusinessExceptionDocument getFaultMessage()
{
return faultMessage;
  }
}


-
Client test code (auto-generated and manually customized)
-
public void testOpenAccount() throws java.lang.Exception {
  try {
// make call to the service by using the stub.
...
  } catch
(acme.definitions.account.AccountServicesStub.BusinessExceptionSoapFaultException)
{
   // Auto-generated stub code also includes 
   ...
  } 
}


--- [EMAIL PROTECTED] wrote:

> Hi Ali Sadik Kumlali,
> 
> I use Axis2 1.0, too.
> Do you have any Sample? Did you find any missing thing in my source
> at first glance ?
> 
> Thanks for your help
> 
> Bille
> 
> > -Urspr�ngliche Nachricht-
> > Von: axis-user@ws.apache.org
> > Gesendet: 01.06.06 16:00:14
> > An: axis-user@ws.apache.org
> > Betreff: Re: [axis2] problem with Userexception and AxisFault
> 
> 
> > Hi Bille,
> > 
> > Which Axis2 version do you use? I don't have any problems with 1.0
> when
> > using custom exceptions.
> > 
> > Regards,
> > 
> > Ali Sadik Kumlali
> > 
> > --- [EMAIL PROTECTED] wrote:
> > 
> > > Hi to the list,
> > > 
> > > I have a service implementatio

Re: [axis2] problem with Userexception and AxisFault

2006-06-01 Thread Ali Sadik Kumlali
Hi Bille,

Which Axis2 version do you use? I don't have any problems with 1.0 when
using custom exceptions.

Regards,

Ali Sadik Kumlali

--- [EMAIL PROTECTED] wrote:

> Hi to the list,
> 
> I have a service implementation which throws an UserException
> (MyException extends RemoteException).
> All works fine, but in the response I could not find my individual
> message and details. It just looks like this:
> 
> 
> soapenv:Client
> unknown
> 
>   
>  org.apache.axis2.AxisFault
>  at
>
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:102)
>  at
>
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
>  at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
>  at
>
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
>  at
>
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>  
>   
> 
> 
>
> 
> I debugged the service, and in class
> RawXMLINOutMessageReceiver::invokeBusinessLogic() my service-method
> is called and throws the exception. The exception is of type
> InvocationTargetException and has as a member variable called
> "target" my userdefined excpetion, with all the details and messages
> I defined.
> invokeBusinessLogic() catches this exception and throws an AxisFault
> using my userException, like this:
> throw new AxisFault(e.getMessage());
> The message member of the InvocationTargetException is null !! so all
> my user definitions are gone.
> 
> Could someone please shed some light on this. Is there any other
> setting I missed.
> I nearly grow insane with that.
> 
> By the way, the strange thing is that the faultCode says
> soapenv:Client !!!
> 
> Thanks a lot for any hints.
> I was not able to find any tutorial or HowTo on ErrorHandling in
> Axis...?!
> 
> Bille
> __
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Axis2] Multithreaded client, performance degradation.

2006-06-01 Thread Ali Sadik Kumlali
Please see my comments inline.

Regards,

Ali Sadik Kumlali

--- "Ramanathan, Subramanyam" <[EMAIL PROTECTED]> wrote:

> Hi, 
> 
> These are the test results that I got using jmeter (I will also
> update the issue).
> 
> 
> Axis2Axis1
> 
> 10 threads -  avg 1493.27   avg 664.77
> 20 threads -  avg 1436.67   avg 649.97
> 30 threads -  avg 1334.5avg 639.93
> 40 threads -  avg 1227.9avg 639.57
> 
> Percentage drop for axis2 - 17.8
> Percentage drop for axis1 - 3.7
> 
> The throughput figures are, however, higher than what I got using my
> client. 
> I checked up the mailing list archives of jmeter, and some threads
> there seemed to indicate that they too, use 
> #Responses/Total Test Time as the measure of throughput.. I wonder
> what is the matter with my client, then, as I have used the same
> measure, too. The difference probably is in the way jmeter calculates
> the total test time, I am not sure, I hope someone could give me a
> hint regarding this?
> 
> I have implemented my test service with the XmlBeans data binding.
> Our specific wsdl involves complex extensions and restrictions, so
> adb cannot be used, and jaxme wasnt working, either (code generation
> failed with a CodeGenerationException saying wildcards aren't
> supported). So I had to stick to XmlBeans.
> 
> Could someone please tell me, what is the performance of XmlBeans is
> as against adb and jaxme ?
https://bindmark.dev.java.net/

> Thanks and regards,
> Subramanyam
> 
> 
> -Original Message-
> From: Ramanathan, Subramanyam [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 30, 2006 3:46 PM
> To: axis-user@ws.apache.org; [EMAIL PROTECTED]
> Subject: RE: [Axis2] Multithreaded client, performance degradation.
> 
> 
> Hi,
> 
> I have just created an issue on jira with key AXIS2-780, and I have
> attached the code.
> 
> I did not know about jmeter earlier, so I decided to try testing it
> using jmeter also, using an aggregate reporter.
> However, I don't find a big variance in the throughput figures that
> it gets. These are the values, I repeated the run three times for
> each number of threads.
> 
> loop count 1000
> 10 threads - 241, 243, 259
> 20 threads - 237, 229, 233
> 30 threads - 233, 230, 227
> 40 threads - 227, 231, 226
> 
> I don't know how exactly jmeter runs the test and calculates the
> throughput, and I don't know if the overhead of the framework is
> levelling the figures out, because I got much larger values for
> throughput, particularly for smaller number of threads.
> 
> My client spawns n number of threads, and each of them send r
> requests. 
> My calculation was based on startTime taken before spawning threads,
> endTime taken after all the threads are done, 
> and reqPerSec  = ( n * r )*1000/(time diff in millisec). Is there a
> problem with this ?
> 
> I also did a test by spawning only 10 threads from a client at a
> time, but running the client on multiple machines at once, 
> and that gave me approximately the same figures, too.
> Also I have used exactly the same client to post to axis1.
> 
> 
> Thanks and Regards,
> Subramanyam
> 
> 
> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 29, 2006 10:53 PM
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2] Multithreaded client, performance degradation.
> 
> 
> Subramanyam,
> 
> I am just now running a jmeter based multithreaded test with
> 1,5,50,100,200 threads and i *definitely* don't see what u are
> seeing.
> Could u please create a JIRA issue and upload both your service and
> client code?
> 
> -- dims
> 
> On 5/29/06, Ramanathan, Subramanyam <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I've been running a few performance tests on Axis2 to compare it
> with Axis1.
> > I've found that when I post requests using a multithreaded http
> client [ that spawns multiple threads each sending a certain number
> of requests ] , the performance of Axis2 seems to degrade, whereas
> that of Axis1 seems to be relatively stable when tested using the
> same client.
> >
> > Here are the figures I have got. Each thread sends 1000 requests.
> > I have measured throughput by measuring the time taken for all the
> threads to finish and then calculating requests per sec.
> >
> >
> > Axis2(req/sec)  Axis1(req/sec)
> > --  ---
> > 10 threads  - 1105.530784   545.9761944
> > 20 threads  - 63

Re: [Axis2][Nightly May 30th] XMLBeans databinding still not working -- Classpath problem?

2006-05-30 Thread Ali Sadik Kumlali
Hi Sebastian,

Don't know why but, mystery is changing
elementFormDefault="unqualified" to elementFormDefault="qualified". I
could manage to successfully run the code against the given WSDL with
this change.

I added my comments and test files to the
http://issues.apache.org/jira/browse/AXIS2-720 

Hope this helps.

Ali Sadik Kumlali

--- "Sebastian J. Schultheiss" <[EMAIL PROTECTED]> wrote:

> Hi there,
> 
> Even after *days* of testing and trying different things, we still
> arrive at the
> same error with the current nightly (May 30th).
> We are using Eclipse to build and run our project under Windows XP.
> Did you ever
> try to run a client with xmlbeans under windows? How does the
> classpath have to
> look like? We always get a class not found exception whenever we
> DON'T include
> the xbeans-packaged.jar from the lib directory of the created client.
> We also
> have all the jars from the axis2/lib dir in the classpath. Is there
> anything we
> shouldn't do?
> 
> The problem is logged as a JIRA:
> http://issues.apache.org/jira/browse/AXIS2-720
> 
> This is part of the stack trace:
> 
> org.apache.axis2.AxisFault: Data binding error
> at
>
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
> at
>
org.apache.axis2.TextLocServiceStub.predictLocalization(TextLocServiceStub.java:133)
> at org.apache.axis2.runLoc.main(runLoc.java:26)
> Caused by: java.lang.Exception: org.apache.axis2.AxisFault: Data
> binding
> error; nested exception is:
> java.lang.RuntimeException: Data binding error
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
> at
> ... 21 more
> 
> at org.apache.axis2.AxisFault.(AxisFault.java:159)
> ... 3 more
> 
> Any thoughts or experiences would be greatly appreciated. Out of
> desparation we
> now tried to use ADB instead, but found another bug there, see
> separate email.
> 
> -- Sebastian
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] setOperationContext() question

2006-05-27 Thread Ali Sadik Kumlali
Hi,

As I've seen from Michele's postings, we need to do the same thing. So,
I wanted to share my thoughts and my design.

- At the server side, axis2 is only used as a broker to our backend 
application which is able to process requests asynchronously. Thus,
some operations can take very long time what we called long running
transactions.
- When the backend system is ready to send back the results, axis2
layer should be handle the result and should add necessary outgoing
information to it before sending to the target end point.
- You may say this can be done by using AsyncMessageReceiver. But, it's
not fault tolerant. It only creates a new thread that waits for the
process result from the backend system. What happens if the machine
that runs axis2 layer crashes? My thread and all the necessary outgoing
information is gone. But client will not aware of this and will wait
forever.
- You may also offer me to design my architecture by only using in MEP.
But in this case, there is nothing that I can bind requests and the
result messages. So, I cannot say the clients which result message
should they wait for which request.

Actually, as all enterprise application developers, I (and may be
Michele) need monitorible and fault tolerant asynchronous messaging.
AFAIK, this can only be achived by persisting the information that is
needed for outgoing messages.

I've chosen following design
- My WSDL has input-output-fault(s) operations which let the clients
think it will use an in-out MEP. So, if they use axis2, they will be
able to invoke my services in either blocking or non-blocking fashion,
but without really knowing I will process their requests asynchronously
on my backend application.
- I'll use (and will force my clients to use) seperate channels for
request and the response.
- At my service side, I'll use in-only receiver. Thus, when the
receiver gets the message, by sending appropriate HTTP header back over
the same channel, it will let the client to close request channel and
to create a listener for the response. Please consider this scenario is
done over HTTP. In JMS case, server will not be able to send a message
back to the client to make it close to the request channel.
- Also, receiver persists the information that will later be used to
prepare outgoing message.
- When the one of the operation found in *custom* skeleton is invoked,
it only converts incoming message to the input of backend system then
invokes the backend system's service in fire-and-forget fashion. But,
please consider my axis2 layer has a listener for the results coming
from the backend system. Please also consider that I have only one
listener (say MDB) and this is always up.
- When the process has been finished at backend system, it will let the
axis2 layer's listener to get the message.
- When the listener gets the message, it will create an outgoing
message by blending persistent outgoing info with the message comming
from the backend system. Later, it will send the outgoing message to
the target end point which is our client's listener.
- When the client get the result, it'll accomplish the process.

As you've seen here, client has no knowledge about how I processed it's
request. It only knows it's messaging as in-out mep.

Have I successfully implemented this? No, of course :) But, when I get
answers and the solutions to my problems which I created JIRA logs(
AXIS2-679, AXIS2-725, AXIS2-741) I'll do it.

Hope this extra long :) message clear some points.

Regards,

Ali Sadik Kumlali

--- Michele Mazzucco <[EMAIL PROTECTED]> wrote:

> Hi Chathura,
> 
> please see my comments inline.
> 
> Chathura Herath wrote:
> > Hi Michele ,
> > 
> > 
> > On 5/26/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
> >> Hi Chathura,
> >>
> >> so now my questions are:
> >> 1 - What happens if the response doesn't follow the in-out MEP but
> it is
> >> created from scratch by a new ServiceClient?, I think my
> informations
> >> are lost, am I right (but I could save the message context and
> correlate
> >> the request and reply message through message id)?
> > 
> > Service client has few methods such as sendreceive, fireandforget,
> etc
> > and meps are built into those methods. So if you can say which
> method
> > are you using or paste a piece of code. 
> 
> say you have a service like the one showed by Ali in the "Unexpected
> EOF
> in prolog" thread (13/05/06):
> 
> public class MyService {
> 
>   private MessageContext inMsgCtx;
> 
>   public void setOperationContext(OperationContext opctx)
>throws AxisFault {
> inMsgCtx =
>   opctx.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
>   }
> 
>   public void echo (OMElement incomingPayload)

Re: Axis2[1.0] war in Weblogic 9.1

2006-05-26 Thread Ali Sadik Kumlali
Thanks Rodrigo.

--- Rodrigo Ruiz <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> The behaviour you describe is perfectly normal with regard to the 
> Servlet Specification.
> 
> When deploying Axis 2 as a war, the container is not creating a 
> "read-write" directory structure, and peforms all accesses directly 
> through the war archive, instead of unpacking it. Whether to unpack
> the 
> WAR or not is up to the container implementation, and the
> specification 
> allows both options.
> 
> If you are interested in distributing Axis 2 with a set of fixed 
> pre-deployed services/modules, you can try to put those
> services/modules 
> directly within the war, and deploy the modified war. I am not sure
> at 
> all if this will work in the current version as, AFAIK, Axis 2 uses 
> custom classloaders for isolating services that might not work in
> this 
> "mode". Anyway, I don't see any technical reason why this should not
> be 
> possible.
> 
> In any case, deploying it as an exploded war is the correct way to 
> prevent those errors.
> 
> Hope this helps,
> Rodrigo Ruiz
> 
> Ali Sadik Kumlali wrote:
> > Hi Gopal,
> > 
> > The same problem exists with WL8.1 SP4. What I saw there, when the
> war 
> > is uploaded by using console application, war is not totally
> extracted. 
> > Only some of subfolders and the files are extracted. May be the
> same 
> > extraction problem exists on WL9.1, too.
> > 
> > I don't know why this happens, though.
> > 
> > Regards,
> > 
> > Ali Sadik Kumlali
> > 
> > */Gopal Patwa <[EMAIL PROTECTED]>/* wrote:
> > 
> > 
> > I tried axis2.war deploying on weblogic 9.1 as war, deployment
> was
> > sucessful
> > but unable to load version service.
> > 
> > But if I use exploded war it works..
> > 
> > Any idea why it's happening, did any one had success runing
> > axis2.war under
> > weblogic 9.1
> > 
> > Thanks
> > Gopal
> > --
> > View this message in context:
> >
>
http://www.nabble.com/Axis2-1.0-+war+in+Weblogic+9.1-t1685447.html#a4571990
> > Sent from the Axis - User forum at Nabble.com.
> > 
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> >
>

> > How low will we go? Check out Yahoo! Messenger�s low
PC-to-Phone
> call 
> > rates. 
> >
>
<http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
> > 
> > 
> > 
>
<http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
> >
>

> > 
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.394 / Virus Database: 268.7.1/348 - Release Date:
> 25/05/2006
> > 
>
<http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com>
> 
> -- 
> ---
> GRIDSYSTEMSRodrigo Ruiz Aguayo
> Parc Bit - Son Espanyol
> 07120 Palma de Mallorcamailto:[EMAIL PROTECTED]
> Baleares - España  Tel:+34-971435085 Fax:+34-971435082
> http://www.gridsystems.com
> ---
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.7.1/348 - Release Date:
> 25/05/2006
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis2[1.0] war in Weblogic 9.1

2006-05-26 Thread Ali Sadik Kumlali
Hi Gopal,The same problem exists with WL8.1 SP4. What I saw there, when the war is uploaded by using console application, war is not totally extracted. Only some of subfolders and the files are extracted. May be the same extraction problem exists on WL9.1, too.I don't know why this happens, though.Regards,Ali Sadik KumlaliGopal Patwa <[EMAIL PROTECTED]> wrote: I tried axis2.war deploying on weblogic 9.1 as war, deployment was sucessfulbut unable to load version service.But if I use exploded war it works..Any idea why it's happening, did any one had success runing axis2.war underweblogic 9.1ThanksGopal--View this message in context: http://www.nabble.com/Axis2-1.0-+war+in+Weblogic+9.1-t1685447.html#a4571990Sent from the Axis - User forum at
 Nabble.com.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
		How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

[Axis2][1.0] Resolved WL8.1 SP4 problems, but...

2006-05-23 Thread Ali Sadik Kumlali
Hi all,

Is there anyone who uses WL8.1 with Axis2 1.0? I had some problems
regarding old jars found in WL8.1. By overriding them, I resolved the
problems. But I'm not sure whether it's safe. May be there exists
another solution which is safe.

Could someone please direct me to the right path?

Preferences
---
Platform: Win2K Pro
App Serv: WL8.1 SP4 + JDK 1.4.2_05-b04
Axis2: 1.0

startWebLogic.cmd
-
rem Otherwise WL8.1 doesn't run :)
set JAVA_OPTIONS=-Duser.language=en -Duser.region=US 

rem I needed to add stax-api-1.0.jar and xbean-2.1.0.jar to the 
rem classpath to override WL8.1's old classes. Otherwise, I am
rem getting java.lang.NoSuchMethodError.
set
CLASSPATH=d:\stax-api-1.0.jar;d:\xbean-2.1.0.jar;%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%

Thanks in advance,

Ali Sadik Kumlali

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis 2 V 1.0 Another Problem

2006-05-22 Thread Ali Sadik Kumlali
Hi Christian,

Have you had a look at
http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200605.mbox/[EMAIL 
PROTECTED]

AFAIK, there is an JIRA issue regarding this.

Regards,

Ali Sadik Kumlali

--- Christian Strobel <[EMAIL PROTECTED]> wrote:

> log4j:WARN No appenders could be found for logger
> (org.apache.axiom.om.impl.builder.StAXOMBuilder).
> log4j:WARN Please initialize the log4j system properly.
> 
> I get every time this warning. I found different suggestions to solve
> that
> problem, but nothing realy works.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis2 and WS Security

2006-05-22 Thread Ali Sadik Kumlali
Hi Sagar,

You may start from the security sample that comes with axis2
distribution. Then, you may create the stub of the secure service by
using WSDL2Java. Using client_repo folder as found in security sample
along with your stub will let you do what you want.

Regards,

Ali Sadik Kumlali

--- sagar kar <[EMAIL PROTECTED]> wrote:

> 
> I am doing a proof of concept on WS-Security. We use websphere
> appserver v
> 6.0 to develop our webservices.
> RAD 6.0 supports the WS-Security 1.0.
> I was able to create a secured webservice on RAD 6.0.
> I can also use a RAD web client to send and receive messages from the
> secured webservice.
> Now my task is to create a Axis2 client and send and receive a
> secured
> message to the WAS 6.0 service.
> I am completely new to Axis2.
> 
> 1)Is it possible to create a standalone axis client to test the WAS
> 6.0
> secured web service? 
> 2)Where do I start from?
> 
> Any help is appreciated. Thanks in advance.
> 
> Sagar
> --
> View this message in context:
> http://www.nabble.com/Axis2+and+WS+Security-t1665049.html#a4512228
> Sent from the Axis - User forum at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding Digital Signatures to all outgoing SOAP envelopes

2006-05-22 Thread Ali Sadik Kumlali
Hi Jeffrey,

Followings are the first steps that come to my mind:
1) Find yourself a tool that ease your work. portecle[1] is my
favorite. Other tools such as OpenSSL[2] and keytool[3] are very
popular, though.
2) You need to create a keystore file for both client and the server.
Later you will store private key and public key certificates in it.
3) Format of keystore file can be either JKS or PKCS#12. Let's use JKS.
4) server.jks should contain private key of server and the public key
of the client. 
5) client.jks should contain private key of client and the public key
of the server. 
6) You need to create a keypair which implicitly has your private key.
7) By using portecle, you need to export public key certificate which
will later be imported in other jks.
8) Exported public key certificate should be a "cer" file.
9) Now, you need to import the public key certificate into the other
jks .
10) Consequently, the keystore file should be as follows:

client.jks
   client private
   server public

server.jks
   server private
   client public
 
11) Here are InflowSecurity and OutflowSecurity of each side. Please
note that we use only signing here. There is no encryption.

axis2.xml of client
---

  
Signature
client_user  
   
com.mycompany.service.security.client.PWCallback
client_security.properties
SKIKeyIdentifier
  


  
Signature
client_security.properties
  


axis2.xml of server
---

  
Signature
server_user  
   
com.mycompany.service.security.server.PWCallback
server_security.properties
SKIKeyIdentifier
  


  
Signature
server_security.properties
  


12) Additional resources I've come through
  http://jetty.mortbay.org/jetty/faq?s=400-Security&t=ssl#step3
  http://www.devx.com/Java/Article/28816/0/page/2
  http://www.rsasecurity.com/rsalabs/node.asp?id=2124

Hope this helps.

Regards,

Ali Sadik Kumlali

[1] http://portecle.sourceforge.net/ 
[2] http://www.openssl.org/
[3] http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/keytool.html

--- "Scudder, Jeffrey W" <[EMAIL PROTECTED]> wrote:

> I am trying to configure Axis2 v1.0 to add digital signatures to all
> outgoing soap messages by configuring the rampart module. While
> filling
> in the blanks in the OutflowSecurity parameter I realized I have no
> idea
> how to obtain a signature key or have it signed by a CA.
> 
> The implementation will be used in a closed lab, so there is no need
> to
> use an Internet CA (Verisign etc.)
> 
> How do I create a signature key and import is into the Axis2
> framework?
> I'm new at this.
> 
> Thank you,
> 
> Jeff Scudder
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][1.0] fireAndDontForget ??

2006-05-22 Thread Ali Sadik Kumlali
Hi Deepal,

Thank you for spending your time with my problem. Should I open a JIRA
for this?

Regards,

Ali Sadik Kumlali

--- Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

> Hi Ali
> 
> Ali Sadik Kumlali wrote:
> 
> >Hi all,
> >
> >What I want is:
> >- Make a request to a service which uses
> RawXMLINOnlyMessageReceiver.
> >- If server sends HTTP 200 or 202, don't expect the input stream
> being
> >not null and don't do anything.
> >- If server sends HTTP 500, retrieve the stream (which is a
> SOAPFault)
> >and throw the AxisFault.
> >
> >I tried many things:
> >- fireAndForget(): Doesn't handle HTTP 500
> >  
> >
> hmmm , I am not sure that fireAndForget handle HTTP500 or not.
> 
> >- sendRobust(): Can handle HTTP 500. But it expects a not-null input
> >stream from the server.
> >  
> >
> sendRobuts problem need to be fixed.
> 
> >Is there a way doing this?
> >
> >Any help would be appreciated.
> >
> >Ali Sadik Kumlali
> >
> >__
> >Do You Yahoo!?
> >Tired of spam?  Yahoo! Mail has the best spam protection around 
> >http://mail.yahoo.com 
> >
> >
> >  
> >
> 
> -- 
> Thanks,
> Deepal
> 
> ~Future is Open~ 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][1.0] "Transport error 500" for EchoBlockingDualClient & echoF

2006-05-22 Thread Ali Sadik Kumlali
Hi Deepal,

Thanks for the reply. I had already created a JIRA issue:
http://issues.apache.org/jira/browse/AXIS2-741

Regards,

Ali Sadik Kumlali


--- Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

> create  a JIRA
> 
> Ali Sadik Kumlali wrote:
> 
> >Hi all,
> >
> >When I use EchoBlockingDualClient to invoke echoF service which
> throws
> >AxisFault, I run into a strange(?) situation.
> >
> >Server returnes back an error through the *first* channel. Error
> says
> >"Transport error 500 . Error Message is Apache
> >Tomcat/5.5.14 - Error report...".
> >
> >Then the server sends the actual error over the *second* channel. 
> >
> >When I look at the server logs, AxisFault thrown by echoF is shown.
> >There seems no transport related errors.
> >
> >However, client *only* catches the first error and writes it down to
> >the console. Then, it throws another exception that says
> >"org.apache.axis2.AxisFault: Time out while waiting for the server
> to
> >send the response"
> >
> >I've listed echoF and the client side stack trace below.
> >
> >Is this the expected behaviour or should I create a JIRA log?
> >
> >Thanks in advance,
> >
> >Ali Sadik Kumlali
> >
> >
> >
> >public OMElement echoF(OMElement element) throws AxisFault {
> >  throw new AxisFault("MyFault message", "MyFaultCode");
> >}
> >
> >
> >- Transport error 500 . Error Message is Apache
> >Tomcat/5.5.14 - Error report<!--H1
>
>{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> >H2
>
>{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> >H3
>
>{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> >BODY
>
>{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
> >B
>
>{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> >P
>
>{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
> >{color : black;}A.name {color : black;}HR {color :
> #525D76;}-->
> >HTTP Status 500 -  >noshade="noshade">type Status reportmessage
> >description The server encountered an
> internal
> >error () that prevented it from fulfilling this request. >size="1" noshade="noshade">Apache
> Tomcat/5.5.14;
> >nested exception is: 
> >...
> >
> >
> >org.apache.axis2.AxisFault: Time out while waiting for the server to
> >send the response[SimpleHTTPServer] Stop called
> > at
>
>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:448)
> > at
>
>org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)
> > at
>
>userguide.clients.EchoBlockingDualClient.main(EchoBlockingDualClient.java:54)
> >
> >
> >__
> >Do You Yahoo!?
> >Tired of spam?  Yahoo! Mail has the best spam protection around 
> >http://mail.yahoo.com 
> >
> >
> >  
> >
> 
> -- 
> Thanks,
> Deepal
> 
> ~Future is Open~ 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Securing ServiceClient tutorial class

2006-05-16 Thread Ali Sadik Kumlali
Hi Raghbir,

I hope following steps would help:
- WSDL2Java can also generate test client. You may use them.
- You should create a client_repo folder similar to the security sample
found under ...\axis2\samples\security\
- When running your test client, you need to pass
"-Daxis2.repo=client_repo" parameter.

Regards,

Ali Sadik Kumlali

--- Raghbir Singh <[EMAIL PROTECTED]> wrote:

> Hello,
> >I was trying to find ways I could secure the Code Generated Stub
> 
> > classes. I search through all Rampart tutorials but could not find
> any 
> > information how I can sign the outgoing message programmatically.
> >I shall be thankful for any information on using Rampart 
> > programmatically with Code Generated (WSDL2Java generated) Axis2 
> > Client Stubs.
> >Thanks a lot,
> > Raghbir Singh
> >
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: [Axis2][1.0] "Transport error 500" for EchoBlockingDualClient & echoF

2006-05-16 Thread Ali Sadik Kumlali
Hi,

Since I beleive this is a bug, to enable easier following, I created a
JIRA log: http://issues.apache.org/jira/browse/AXIS2-741

Since separate listener case is very important, I beleive this is
actually a blocker issue. (If I'm not missing something ;-)

Regards,

Ali Sadik Kumlali

--- Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> When I use EchoBlockingDualClient to invoke echoF service which
> throws
> AxisFault, I run into a strange(?) situation.
> 
> Server returnes back an error through the *first* channel. Error says
> "Transport error 500 . Error Message is Apache
> Tomcat/5.5.14 - Error report...".
> 
> Then the server sends the actual error over the *second* channel. 
> 
> When I look at the server logs, AxisFault thrown by echoF is shown.
> There seems no transport related errors.
> 
> However, client *only* catches the first error and writes it down to
> the console. Then, it throws another exception that says
> "org.apache.axis2.AxisFault: Time out while waiting for the server to
> send the response"
> 
> I've listed echoF and the client side stack trace below.
> 
> Is this the expected behaviour or should I create a JIRA log?
> 
> Thanks in advance,
> 
> Ali Sadik Kumlali
> 
> 
> 
> public OMElement echoF(OMElement element) throws AxisFault {
>   throw new AxisFault("MyFault message", "MyFaultCode");
> }
> 
> 
> - Transport error 500 . Error Message is Apache
> Tomcat/5.5.14 - Error report<!--H1
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> H2
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> H3
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> BODY
>
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
> B
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> P
>
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
> {color : black;}A.name {color : black;}HR {color :
> #525D76;}-->
> HTTP Status 500 -  noshade="noshade">type Status reportmessage
> description The server encountered an
> internal
> error () that prevented it from fulfilling this request. size="1" noshade="noshade">Apache
> Tomcat/5.5.14;
> nested exception is: 
> ...
> 
> 
> org.apache.axis2.AxisFault: Time out while waiting for the server to
> send the response[SimpleHTTPServer] Stop called
>   at
>
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:448)
>   at
>
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)
>   at
>
userguide.clients.EchoBlockingDualClient.main(EchoBlockingDualClient.java:54)
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Axis2][1.0] "Transport error 500" for EchoBlockingDualClient & echoF

2006-05-16 Thread Ali Sadik Kumlali
Hi all,

When I use EchoBlockingDualClient to invoke echoF service which throws
AxisFault, I run into a strange(?) situation.

Server returnes back an error through the *first* channel. Error says
"Transport error 500 . Error Message is Apache
Tomcat/5.5.14 - Error report...".

Then the server sends the actual error over the *second* channel. 

When I look at the server logs, AxisFault thrown by echoF is shown.
There seems no transport related errors.

However, client *only* catches the first error and writes it down to
the console. Then, it throws another exception that says
"org.apache.axis2.AxisFault: Time out while waiting for the server to
send the response"

I've listed echoF and the client side stack trace below.

Is this the expected behaviour or should I create a JIRA log?

Thanks in advance,

Ali Sadik Kumlali



public OMElement echoF(OMElement element) throws AxisFault {
  throw new AxisFault("MyFault message", "MyFaultCode");
}


- Transport error 500 . Error Message is Apache
Tomcat/5.5.14 - Error report<!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}-->
HTTP Status 500 - type Status reportmessage
description The server encountered an internal
error () that prevented it from fulfilling this request.Apache Tomcat/5.5.14;
nested exception is: 
...


org.apache.axis2.AxisFault: Time out while waiting for the server to
send the response[SimpleHTTPServer] Stop called
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:448)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)
at
userguide.clients.EchoBlockingDualClient.main(EchoBlockingDualClient.java:54)


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Axis2][1.0] fireAndDontForget ??

2006-05-15 Thread Ali Sadik Kumlali
Hi all,

What I want is:
- Make a request to a service which uses RawXMLINOnlyMessageReceiver.
- If server sends HTTP 200 or 202, don't expect the input stream being
not null and don't do anything.
- If server sends HTTP 500, retrieve the stream (which is a SOAPFault)
and throw the AxisFault.

I tried many things:
- fireAndForget(): Doesn't handle HTTP 500
- sendRobust(): Can handle HTTP 500. But it expects a not-null input
stream from the server.

Is there a way doing this?

Any help would be appreciated.

Ali Sadik Kumlali

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: [Axis2][1.0] Unexpected EOF in prolog

2006-05-14 Thread Ali Sadik Kumlali
Hi Chamikara,

Thank you very much for the valuable comments. With your help, I've
discovered that my assumption was wrong. In sendResult(), I must have
call fireAndForget() instead of sendReceive(), since I didn't expect a
response from the client. By using fireAndForget() the code runs as
expected.

Now, only thing remained is to make my custom fireAndForget() that let
me handle HTTP 500 situations ;-)

Regards,

Ali Sadik Kumlali


--- Chamikara Jayalath <[EMAIL PROTECTED]> wrote:

> Hi Ali,
> 
> Even though you have done changes to your service code you are still
> using
> the serviceClient.sendReceive() method in the client side which uses
> the
> OutInAxisOperationClient.
> 
> When useSeperateListner=false, OutInAxisOperationClient expects a
> same-channel response message and that should be the reason for this
> exception. When it is true what is expected is a asnyc response which
> you
> send within your service code.
> 
> Chamikara
> 
> 
> On 5/14/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > Has anyone ran into this exception? I could manage :) to get it
> with
> > following steps:
> >
> > - Used EchoBlockingDualClient sample. Didn't change client code.
> > - Changed message receiver of MyService to
> RawXMLINOnlyMessageReceiver
> > - Changed MyService.java as following:
> >
> >
>
--
> > public class MyService {
> >
> >   private MessageContext inMsgCtx;
> >
> >   public void setOperationContext(OperationContext opctx)
> >throws AxisFault {
> > inMsgCtx =
> >  
> opctx.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
> >   }
> >
> >   public void echo (OMElement incomingPayload)
> >
> > throws XMLStreamException {
> > incomingPayload.build();
> > incomingPayload.detach();
> >
> > OMElement outgoingPayload = incomingPayload;
> >
> > oldOptions = inMsgCtx.getOptions();
> > String messageID = inMsgCtx.getMessageID();
> > EndpointReference targetEPR = oldOptions.getReplyTo();
> > String action = oldOptions.getAction();
> > sendResult(messageID, targetEPR, action, outgoingPayload);
> >   }
> >
> >   public void sendResult(String messageId, EndpointReference
> targetEPR,
> > String action, OMElement payload) {
> > ServiceClient sender = null;
> > try {
> >   Options options = new Options();
> >   options.setTo(targetEPR);
> >   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> >   options.setUseSeparateListener(false);
> >   options.setAction(action);
> >   options.setMessageId(UUIDGenerator.getUUID());
> >   options.setRelationships(new RelatesTo[] {
> >   new RelatesTo(messageId,
> >   AddressingConstants.Submission.
> >   WSA_RELATES_TO_RELATIONSHIP_TYPE_DEFAULT_VALUE)});
> >
> >   ConfigurationContext confCtx =
> >   ListenerManager.defaultConfigurationContext;
> >   sender = new ServiceClient(confCtx, null);
> >   sender.setOptions(options);
> >
> >   // Blocking Invocation
> >   sender.sendReceive(payload);
> > } catch (AxisFault axisFault) {
> >   axisFault.printStackTrace();
> > } catch (Exception ex) {
> >   ex.printStackTrace();
> > } finally {
> >   try {
> >   sender.finalizeInvoke();
> >   } catch (AxisFault axisFault) {
> >   // have to ignore this
> >   axisFault.printStackTrace();
> >   }
> > }
> >   }
> > }
> >
>
--
> >
> > When I pass "true" to setUseSeparateListener(), there is no
> problem.
> > Otherwise I get following exception:
> >
> >
>
--
> > [DEBUG][2006-05-13 23:15:08,046] org.apache.axis2.engine.Phase -
> > Checking post-conditions for phase "MessageOut"
> > postMethod.getStatusCode(): 200
> > contentEncoding: null
> > org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException:
> > Unexpected EOF in prolog
> > at [row,col {unknown-source}]: [1,0]; nested exception is:
> > org.apache.axiom.om.OMException:
> com.ctc.wstx.exc.WstxEOFException
> > :
> > Unexpected EOF in prolog
> > at [row,col {unknown-source}]: [1,0]
> > at
> > org.

[Axis2][1.0] Unexpected EOF in prolog

2006-05-13 Thread Ali Sadik Kumlali
Hi all,

Has anyone ran into this exception? I could manage :) to get it with
following steps:

- Used EchoBlockingDualClient sample. Didn't change client code.
- Changed message receiver of MyService to RawXMLINOnlyMessageReceiver
- Changed MyService.java as following:

--
public class MyService {

  private MessageContext inMsgCtx;

  public void setOperationContext(OperationContext opctx) 
   throws AxisFault {
inMsgCtx = 
  opctx.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
  }

  public void echo (OMElement incomingPayload) 
  
throws XMLStreamException {
incomingPayload.build();
incomingPayload.detach();   

OMElement outgoingPayload = incomingPayload;

oldOptions = inMsgCtx.getOptions();
String messageID = inMsgCtx.getMessageID();
EndpointReference targetEPR = oldOptions.getReplyTo();
String action = oldOptions.getAction();
sendResult(messageID, targetEPR, action, outgoingPayload);
  }

  public void sendResult(String messageId, EndpointReference targetEPR,
String action, OMElement payload) {
ServiceClient sender = null;
try {
  Options options = new Options();
  options.setTo(targetEPR);
  options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
  options.setUseSeparateListener(false);
  options.setAction(action);
  options.setMessageId(UUIDGenerator.getUUID());
  options.setRelationships(new RelatesTo[] { 
  new RelatesTo(messageId,
  AddressingConstants.Submission.
  WSA_RELATES_TO_RELATIONSHIP_TYPE_DEFAULT_VALUE)});

  ConfigurationContext confCtx = 
  ListenerManager.defaultConfigurationContext;
  sender = new ServiceClient(confCtx, null);
  sender.setOptions(options);

  // Blocking Invocation
  sender.sendReceive(payload);
} catch (AxisFault axisFault) {
  axisFault.printStackTrace();
} catch (Exception ex) {
  ex.printStackTrace();
} finally {
  try {
  sender.finalizeInvoke();
  } catch (AxisFault axisFault) {
  // have to ignore this
  axisFault.printStackTrace();
  }
}
  }
}
--

When I pass "true" to setUseSeparateListener(), there is no problem.
Otherwise I get following exception:

--
[DEBUG][2006-05-13 23:15:08,046] org.apache.axis2.engine.Phase -
Checking post-conditions for phase "MessageOut"
postMethod.getStatusCode(): 200
contentEncoding: null
org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException:
Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]; nested exception is: 
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException:
Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:126)
at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:349)
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:513)
...
--

Is it normal behavior due to a missing point in my code, or is it a
bug?

Any help would be appreciated.

Regards,

Ali Sadik Kumlali

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Axis2][1.0] No HTTP packets for some interactions of EchoBlockingDualClient sample

2006-05-13 Thread Ali Sadik Kumlali
Hi all,

I run EchoBlockingDualClient and watch the message traffic with a
sniffer program. 

When server sends back the response to the port 6060 of the client,
HTTP header and body of the message seems as TCP packet(with data
length 208) instead of HTTP packet. There is no such situation for the
client's request and the server's HTTP 200 OK response to that.

Does anyone know that this is the expected behaviour?

Thanks a lot.

Ali Sadik Kumlali

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: Possible to configure a module using services.xml for a client stub

2006-05-13 Thread Ali Sadik Kumlali
Hi Kent,

You seem correct to me. Also, if you look inside the generated test
client jar (-test-client.jar), you won't see services.xml
file.

Anyway, I forgot to mention that what I said was *my own* experience
not how Axis2 really did :) And there should(!) be a way to use
separate configurations for different stubs.

Regards,

Ali Sadik Kumlali

--- Kent Tong <[EMAIL PROTECTED]> wrote:

> Ali Sadik Kumlali  yahoo.com> writes:
> 
> > Service client which invokes stub of the service, needs to
> configure
> > axis2.xml instead of services.xml. Although there is no stub use,
> you
> > may see an example of using axis2.xml in
> ...\axis2\samples\security\
> > sample. You'll see a client_repo folder that has conf\axis2.xml
> inside.
> 
> Hi Ali,
> 
> Thanks for the reply. So, it means it's got to be a global thing? For
> example, one can't encrypt the out message of an operation while just
> sign the out message of another operation?
> 
> 
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: Possible to configure a module using services.xml for a client stub

2006-05-13 Thread Ali Sadik Kumlali
Hi Kent,

Service client which invokes stub of the service, needs to configure
axis2.xml instead of services.xml. Although there is no stub use, you
may see an example of using axis2.xml in ...\axis2\samples\security\
sample. You'll see a client_repo folder that has conf\axis2.xml inside.

Regards,

Ali Sadik Kumlali

--- Kent Tong <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I've been looking up and down to find a way to engage and configure a
> module for a client stub. Yes, I can do it in Java code, but I don't
> know how to do that using a services.xml. I know how to setup a
> repository
> on the client side. But the generated stub client creates its
> AxisService
> and AxisOperation objects in code and won't use those in the
> services.xml 
> file.
> 
> Any idea? Thanks!
> 
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: EchoNonBlockingDualClient --> JVM_Bind

2006-05-12 Thread Ali Sadik Kumlali
Dims,

Created a JIRA entry: http://issues.apache.org/jira/browse/AXIS2-725

I'll provide you with all the information I can gather and add to the
JIRA. Thanks for the encouragement :)

Regards,

Ali Sadik Kumlali

--- Davanum Srinivas <[EMAIL PROTECTED]> wrote:

> or better yet, help with a patch :) :)
> 
> -- dims
> 
> On 5/12/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> > Ali,
> >
> > could u please drive this (create a jira and pester till someone
> fixes) ? :)
> >
> > thanks,
> > dims
> >
> > On 5/12/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
> > > Hi Eran,
> > >
> > > I also reported -but didn't create a jira log :)- related with
> this
> > > problem. So, if you want, you may also add information found in
> > > postings with "Re: [Axis2] SimpleHTTPServer port conflict for
> multiple
> > > EchoNonBlockingDualClient threads" subject.
> > >
> > > Regards,
> > >
> > > Ali Sadik Kumlali
> > >
> > > --- Eran Chinthaka <[EMAIL PROTECTED]> wrote:
> > >
> > > > I sitll consider this as a bug, as if IIRC, we implemented to
> switch
> > > > to
> > > > the next port if one port is not available.
> > > >
> > > > Will create a JIRA out of this.
> > > >
> > > >
> > > >
> > > > Roman Weidlich wrote:
> > > > > It seems port 6060 was occupied by something, thx.
> > > > >
> > > > >
> > > > > Eran Chinthaka wrote:
> > > > >> Roman Weidlich wrote:
> > > > >>> Trying the EchoNonBlockingDualClient (addressing module is
> found)
> > > > >>> getting:
> > > > >>>
> > > > >>> org.apache.axis2.AxisFault: Address already in use:
> JVM_Bind
> > > > >>>
> > > > >> Do u have any listener opened in port 6060 ?
> > > > >>
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > __
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > >
> >
> >
> > --
> > Davanum Srinivas : http://wso2.com/blogs/
> >
> 
> 
> -- 
> Davanum Srinivas : http://wso2.com/blogs/
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Axis2][1.0] Storing required data found in inMsgCtx to create outMsgCtx from it later

2006-05-12 Thread Ali Sadik Kumlali
Hi all,

I want to store the data found input message context into database and
later, create output context by using the stored data. Similar
operation is done in "Utils.createOutMessageContext(inMsgContext)". 

May be if I can use the generated stub, I only need to store the data
sent by the client.

Could someone please tell me what to do?

Thanks a lot.

Ali Sadik Kumlali

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: Axis 2 v1.0 security sample

2006-05-12 Thread Ali Sadik Kumlali
rg.apache.axis2.AxisFault: Transport error 500 . Error Message is
> Apache Tomcat/5.5.12 - Error
> report<!--H1
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> H2
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> H3
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> BODY
>
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
> B
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> P
>
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
> {color : black;}A.name {color : black;}HR {color :
> #525D76;}--> HTTP Status 500 -  size="1" noshade="noshade">type Exception
> reportmessage description The
> server encountered an internal error () that prevented it from
> fulfilling this request.exception
> javax.servlet.ServletException: Servlet execution threw an
> exception
> root cause java.lang.NoClassDefFoundError:
> org/apache/xml/utils/URI$MalformedURIException
> 
>
org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:391)
> 
>
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> 
>
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> 
>
org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> 
>
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> 
>
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> 
>
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> 
>
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
>   org.apache.axis2.engine.Phase.invoke(Phase.java:381)
>   org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
>   org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
> 
>
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
> 
>
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> note The full stack trace of the root cause is
> available in the Apache Tomcat/5.5.12 logs. noshade="noshade">Apache Tomcat/5.5.12
>   at
>
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305)
>   at
>
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:207)
>   ... 6 more
> Caused by: org.apache.axis2.AxisFault: Transport error 500 . Error
> Message is Apache Tomcat/5.5.12 - Error
> report<!--H1
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
> H2
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
> H3
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
> BODY
>
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
> B
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
> P
>
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
> {color : black;}A.name {color : black;}HR {color :
> #525D76;}--> HTTP Status 500 -  size="1" noshade="noshade">type Exception
> reportmessage description The
> server encountered an internal error () that prevented it from
> fulfilling this request.exception
> javax.servlet.ServletException: Servlet execution threw an
> exception
> root cause java.lang.NoClassDefFoundError:
> org/apache/xml/utils/URI$MalformedURIException
> 
>
org.apache.ws.security.processor.EncryptedKeyProcessor.decryptDataRef(EncryptedKeyProcessor.java:391)
> 
>
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:328)
> 
>
org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:84)
> 
>
org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:76)
> 
>
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
> 
>
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
> 
>
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
> 
>
org.apache.axis2.securi

  1   2   3   >