Apache module

2008-05-29 Thread Michael Sutter

Hello list,

I have upgraded my axis2 version from 1.2 to 1.4 and configured the
apache module. After that I found out, that it was not possible to start
the apache daemon. So I searched through my config file and found the
error - it is the Axis2GlobalPoolSize parameter.
If it is used, I'm not able to start the daemon. Is there any problem 
with this

parameter? As I thought it is only optional and if I understand right it is
for a shared memory of the log implementation. Am I right?

If have attached my config file belowl

Kind regards
Michael

LoadModule axis2_module /usr/lib/apache2-prefork/mod_axis2.so
Axis2RepoPath /usr/loal/axis2c-1.4.0/
Axis2LogFile /var/log/axis2.log
Axis2LogLevel trace
Location /axis2
   SetHandler axis2_module
/Location
#Axis2GlobalPoolSize 10
Axis2MaxLogFileSize 10

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



Re: Apache module

2008-05-29 Thread Samisa Abeysinghe

Do you have any older Axis2/C libs on your LD_LIBRARY_PATH?

What is the exact error you get when you try to start httpd?

And yes, Axis2GlobalPoolSize  is optional.

Samisa...

Michael Sutter wrote:

Hello list,

I have upgraded my axis2 version from 1.2 to 1.4 and configured the
apache module. After that I found out, that it was not possible to start
the apache daemon. So I searched through my config file and found the
error - it is the Axis2GlobalPoolSize parameter.
If it is used, I'm not able to start the daemon. Is there any problem 
with this
parameter? As I thought it is only optional and if I understand right 
it is

for a shared memory of the log implementation. Am I right?

If have attached my config file belowl

Kind regards
Michael

LoadModule axis2_module /usr/lib/apache2-prefork/mod_axis2.so
Axis2RepoPath /usr/loal/axis2c-1.4.0/
Axis2LogFile /var/log/axis2.log
Axis2LogLevel trace
Location /axis2
   SetHandler axis2_module
/Location
#Axis2GlobalPoolSize 10
Axis2MaxLogFileSize 10

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



No virus found in this incoming message.
Checked by AVG. 
Version: 8.0.100 / Virus Database: 269.24.3/1472 - Release Date: 5/29/2008 7:27 AM
  



--
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.


http://www.wso2.com/ - The Open Source SOA Company


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



Re: Apache module

2008-05-29 Thread Michael Sutter

Hello Samisa,

I have not really much in the log files
error_log:
[Thu May 29 12:32:10 2008] [warn] Init: Session Cache is not configured 
[hint: SSLSessionCache]
[Thu May 29 12:32:10 2008] [notice] suEXEC mechanism enabled (wrapper: 
/usr/sbin/suexec2)


axis2.log:
[Thu May 29 12:32:10 2008] [info]  Apache Axis2/C version in use : 1.4.0
[Thu May 29 12:32:10 2008] [info]  Starting log with log level 6 and max 
log file size 10485760

[Thu May 29 12:32:10 2008] [info]  [Axis2] Axis2 worker created
[Thu May 29 12:32:10 2008] [debug] phase.c(121) axis2_handler_t 
*request_uri_based_dispatcher added to the index 0 of the phase Transport
[Thu May 29 12:32:10 2008] [debug] phase.c(121) axis2_handler_t 
*addressing_based_dispatcher added to the index 1 of the phase Transport


And I checked and have no older versions in my LD_LIBRARY_PATH.
Nevertheless, if I run it without the parameter everything works fine.
Maybe it belongs to my old apache version (2.0.49).

Maybe you can give me a short description about this parameter?
Or is it not really different without?

Kind regards
Michael

Samisa Abeysinghe wrote:

Do you have any older Axis2/C libs on your LD_LIBRARY_PATH?

What is the exact error you get when you try to start httpd?

And yes, Axis2GlobalPoolSize  is optional.

Samisa...

Michael Sutter wrote:

Hello list,

I have upgraded my axis2 version from 1.2 to 1.4 and configured the
apache module. After that I found out, that it was not possible to start
the apache daemon. So I searched through my config file and found the
error - it is the Axis2GlobalPoolSize parameter.
If it is used, I'm not able to start the daemon. Is there any problem 
with this
parameter? As I thought it is only optional and if I understand right 
it is

for a shared memory of the log implementation. Am I right?

If have attached my config file belowl

Kind regards
Michael

LoadModule axis2_module /usr/lib/apache2-prefork/mod_axis2.so
Axis2RepoPath /usr/loal/axis2c-1.4.0/
Axis2LogFile /var/log/axis2.log
Axis2LogLevel trace
Location /axis2
   SetHandler axis2_module
/Location
#Axis2GlobalPoolSize 10
Axis2MaxLogFileSize 10

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



No virus found in this incoming message.
Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.3/1472 - 
Release Date: 5/29/2008 7:27 AM
  





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



Reload mod_axis2

2008-05-29 Thread Subra A Narayanan
Hello all,

I was wondering if there was a way to reload the apache axis2 module (so
that it picks up config file changes like loglevel) without having to
restart apache? The reason I ask this is I have other modules loaded in to
apache and I want those modules to continue serving incoming requests when
axis2 module is unloaded and reloaded.

Thanks!

Subra


Re: Reload mod_axis2

2008-05-29 Thread Manjula Peiris
On Thu, 2008-05-29 at 15:12 -0400, Subra A Narayanan wrote:
 Hello all,
 
 I was wondering if there was a way to reload the apache axis2 module
 (so that it picks up config file changes like loglevel) without having
 to restart apache? The reason I ask this is I have other modules
 loaded in to apache and I want those modules to continue serving
 incoming requests when axis2 module is unloaded and reloaded.

HTTPD has an option call grceful restart. I think you can achieve this
using that. See [1] for more details.

[1] http://httpd.apache.org/docs/trunk/stopping.html


 
 Thanks!
 
 Subra


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



Re: Reload mod_axis2

2008-05-29 Thread Samisa Abeysinghe

Manjula Peiris wrote:

On Thu, 2008-05-29 at 15:12 -0400, Subra A Narayanan wrote:
  

Hello all,

I was wondering if there was a way to reload the apache axis2 module
(so that it picks up config file changes like loglevel) without having
to restart apache? The reason I ask this is I have other modules
loaded in to apache and I want those modules to continue serving
incoming requests when axis2 module is unloaded and reloaded.



HTTPD has an option call grceful restart. I think you can achieve this
using that. See [1] for more details.

[1] http://httpd.apache.org/docs/trunk/stopping.html
  


But that still reloads all modules. It is a restart, except that it is 
graceful, meaning the request already being served will be completed, 
but the new requests will have to be dropped during the restart anyway.


Samisa...



  

Thanks!

Subra




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




No virus found in this incoming message.
Checked by AVG. 
Version: 8.0.100 / Virus Database: 269.24.4/1473 - Release Date: 5/29/2008 7:53 PM
  



--
Samisa Abeysinghe 
Director, Engineering; WSO2 Inc.


http://www.wso2.com/ - The Open Source SOA Company


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



RE: Axis2 with JMS Transport

2008-05-29 Thread adisesha

No, output can be sent to other queue also. For now the problem I have is
w.r.to reading queue is guess. We can think of sending o/p to same/other
queue later.

1. java.lang.NullPointerException at
org.apache.axis2.transport.jms.JMSMessageReceiver.createMessageContext(JMSMe
ssageReceiver.java:190)

May be the settings I used are wrong? Can you cross check the axis2.xml 
services.xml I have sent?

 

  _  

From: Anthony Bull [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 29, 2008 11:19 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 with JMS Transport

 

MQ 6.0.2.3 is good as the JNDI provider.  It sounds like you want your web
service to respond to the same queue?  I've only done asynchronous web
services over JMS, for synchronous I use HTTP, so can't help on responding
to the same queue - i.e. all my JMS web services are one way traffic from MQ
to Axis2/Tomcat.  If you have addressing information in the SOAP header in
your message envelope, then it should resolve your issue where it can't find
the correct operation to invoke on your web service.  Certainly, if you can
configure axis2 to suit all your needs then go with that - I tend to keep
environment specific JMS stuff out of my axis2.xml files because I have to
deploy to the customer development, testing and production environments and
don't like constantly changing axis2.xml files with every deployment.

adisesha wrote: 

We want to work on existing settings, with out need of code. i.e create WS
with one method,  set connection details in axis2.xml  then create JNDI
either in tomcat or in websphereMQ. Now when user puts info in MQ
automatically WS should be called  then return xxx to o/p Queue. 

For this sequence I don't see the need of code if axis2 works correctly.
What is your opinion on this?

 

  _  

From: Anthony Bull [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 29, 2008 3:43 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 with JMS Transport

 

1. Add the ws-addressing support to your service and your client.  (go to
the axis 2 site to see how to do this). This may/should help in getting your
web service to be able work out what method needs to be invoked.
2. When you are configuring the JMS sender - your connection details
(provider factory class, URL etc) can be configured in the code instead of
in the axis2.xml.




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


Disclaimer

The information contained in this communication is intended solely for the use 
of the individual or entity to whom it is addressed and others authorized to 
receive it.   It may contain confidential or legally privileged information.   
If you are not the intended recipient you are hereby notified that any 
disclosure, copying, distribution or taking any action in reliance on the 
contents of this information is strictly prohibited and may be unlawful. If you 
have received this communication in error, please notify us immediately by 
forwarding this email to [EMAIL PROTECTED] and then delete it from your system. 
Ness technologies is neither liable for the proper and complete transmission of 
the information contained in this communication nor for any delay in its 
receipt.

FW: Axis2 with JMS Transport

2008-05-29 Thread adisesha
More info:  SOAP i/p looks like this

 

soap:Envelope xmlns:soap=http://www.w3.org/2003/05/soap-envelope;
xmlns:axis=http://ws.apache.org/axis2;soap:Header/soap:Bodyaxis:echoS
tring!--Optional:--axis:param0test/axis:param0/axis:echoString/soa
p:Body/soap:Envelope

 

  _  

From: adisesha [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 29, 2008 11:44 AM
To: axis-user@ws.apache.org
Subject: RE: Axis2 with JMS Transport

 

No, output can be sent to other queue also. For now the problem I have is
w.r.to reading queue is guess. We can think of sending o/p to same/other
queue later.

1. java.lang.NullPointerException at
org.apache.axis2.transport.jms.JMSMessageReceiver.createMessageContext(JMSMe
ssageReceiver.java:190)

May be the settings I used are wrong? Can you cross check the axis2.xml 
services.xml I have sent?

 

  _  

From: Anthony Bull [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 29, 2008 11:19 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 with JMS Transport

 

MQ 6.0.2.3 is good as the JNDI provider.  It sounds like you want your web
service to respond to the same queue?  I've only done asynchronous web
services over JMS, for synchronous I use HTTP, so can't help on responding
to the same queue - i.e. all my JMS web services are one way traffic from MQ
to Axis2/Tomcat.  If you have addressing information in the SOAP header in
your message envelope, then it should resolve your issue where it can't find
the correct operation to invoke on your web service.  Certainly, if you can
configure axis2 to suit all your needs then go with that - I tend to keep
environment specific JMS stuff out of my axis2.xml files because I have to
deploy to the customer development, testing and production environments and
don't like constantly changing axis2.xml files with every deployment.

adisesha wrote: 

We want to work on existing settings, with out need of code. i.e create WS
with one method,  set connection details in axis2.xml  then create JNDI
either in tomcat or in websphereMQ. Now when user puts info in MQ
automatically WS should be called  then return xxx to o/p Queue. 

For this sequence I don't see the need of code if axis2 works correctly.
What is your opinion on this?

 

  _  

From: Anthony Bull [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 29, 2008 3:43 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2 with JMS Transport

 

1. Add the ws-addressing support to your service and your client.  (go to
the axis 2 site to see how to do this). This may/should help in getting your
web service to be able work out what method needs to be invoked.
2. When you are configuring the JMS sender - your connection details
(provider factory class, URL etc) can be configured in the code instead of
in the axis2.xml.



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

The information contained in this communication is intended solely for the
use of the individual or entity to whom it is addressed and others
authorized to receive it. It may contain confidential or legally privileged
information. If you are not the intended recipient you are hereby notified
that any disclosure, copying, distribution or taking any action in reliance
on the contents of this information is strictly prohibited and may be
unlawful. If you have received this communication in error, please notify us
immediately by forwarding this email to [EMAIL PROTECTED] and then delete
it from your system. Ness technologies is neither liable for the proper and
complete transmission of the information contained in this communication nor
for any delay in its receipt.



Arguments of class Object in POJOs

2008-05-29 Thread Niklas Wirstrom

Hi,
I have a POJO service that I have decided to move from Axis1 to Axis2. I 
have, however run in to some problems: Methods taking arguments of class 
java.lang.Object (and arrays of that class), receive a 
javax.activation.DataHandler object instead of the real object. Other 
methods that takes other kinds of arguments work fine.


Is there a way to fix this problem without changing the code on the server?

This is how I have done:
I deploy the service. I generate client the stub using Axis2's 
wsdl2java, and the wsdl file created by Axis2. I call the method (that 
takes an Object argument) with an argument of class java.lang.String. 
The service receives the DataHandler object.


Please help
/Niklas

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



Re: Arguments of class Object in POJOs

2008-05-29 Thread Paul Fremantle
Niklas

The DataHandler type is used for binary data (it efficiently supports
large data), so I'm surprised that the data is being bound to that.

There must be more to what you are telling us :) The reason I say this
is because if you take a simple POJO:

class Pojo {
  public Object hello(Object o) {
return o;
  }
}

and deploy in Axis2, and then run WSDL2Java against the generated
WSDL, you get this client stub:

public  java.lang.Object hello(java.lang.Object param01)

Which I think is the behaviour you want.

Paul


On Thu, May 29, 2008 at 8:19 AM, Niklas Wirstrom [EMAIL PROTECTED] wrote:
 Hi,
 I have a POJO service that I have decided to move from Axis1 to Axis2. I
 have, however run in to some problems: Methods taking arguments of class
 java.lang.Object (and arrays of that class), receive a
 javax.activation.DataHandler object instead of the real object. Other
 methods that takes other kinds of arguments work fine.

 Is there a way to fix this problem without changing the code on the server?

 This is how I have done:
 I deploy the service. I generate client the stub using Axis2's wsdl2java,
 and the wsdl file created by Axis2. I call the method (that takes an Object
 argument) with an argument of class java.lang.String. The service receives
 the DataHandler object.

 Please help
 /Niklas

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





-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com

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



Re: Arguments of class Object in POJOs

2008-05-29 Thread Niklas Wirstrom
Yes, the client stub takes the correct parameters, but the object 
received on the server is a DataHandler. If you call your service (e.g. 
with a String) what class does the object o have?


( I am familiar with the use of DataHandlers for binary data, and that 
works fine for me)


/Niklas

Paul Fremantle wrote:

Niklas

The DataHandler type is used for binary data (it efficiently supports
large data), so I'm surprised that the data is being bound to that.

There must be more to what you are telling us :) The reason I say this
is because if you take a simple POJO:

class Pojo {
  public Object hello(Object o) {
return o;
  }
}

and deploy in Axis2, and then run WSDL2Java against the generated
WSDL, you get this client stub:

public  java.lang.Object hello(java.lang.Object param01)

Which I think is the behaviour you want.

Paul


On Thu, May 29, 2008 at 8:19 AM, Niklas Wirstrom [EMAIL PROTECTED] wrote:
  

Hi,
I have a POJO service that I have decided to move from Axis1 to Axis2. I
have, however run in to some problems: Methods taking arguments of class
java.lang.Object (and arrays of that class), receive a
javax.activation.DataHandler object instead of the real object. Other
methods that takes other kinds of arguments work fine.

Is there a way to fix this problem without changing the code on the server?

This is how I have done:
I deploy the service. I generate client the stub using Axis2's wsdl2java,
and the wsdl file created by Axis2. I call the method (that takes an Object
argument) with an argument of class java.lang.String. The service receives
the DataHandler object.

Please help
/Niklas

-
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 (ADB) : Problem with empty RequestBody

2008-05-29 Thread Aljen7

Hello I am new to axis2 (and to WS at all) and I have following problem.

Using wsdl2java I create stub and skeleton classes. 
This is my client class which is calling the service GetCustomerFolder :

NPVRServiceStub.GetCustomerFolder req2 = new
NPVRServiceStub.GetCustomerFolder();
NPVRServiceStub.GetCustomerFolderInputType input2 = new
NPVRServiceStub.GetCustomerFolderInputType();
NPVRServiceStub.GetCustomerFolderInputSingleType inputs2 = new
NPVRServiceStub.GetCustomerFolderInputSingleType();
NPVRServiceStub.GetCustomerFolderInputTypeSequence sequence = new
NPVRServiceStub.GetCustomerFolderInputTypeSequence();

inputs2.setFolderName(s);
inputs2.setCustomerSmartvisionID(1);
sequence.setGetCustomerFolderInput(inputs2);
NPVRServiceStub.GetCustomerFolderInputTypeSequence[] pole = {sequence};
input2.setGetCustomerFolderInputTypeSequence(pole); 

req2.setGetCustomerFolderRequestBody(input2);
NPVRServiceStub.GetCustomerFolderResponse res2 =
stub.getCustomerFolder(req2);


corresponding part of wsdl:
   
wsdl:operation name=getCustomerFolder
   http:operation location=nPVRService/getCustomerFolder/
  wsdl:input
mime:mimeXml part=getCustomerFolderRequestBody/
  /wsdl:input
  wsdl:output
mime:mimeXml part=getCustomerFolderResponseBody/
  /wsdl:output
/wsdl:operation


xsd:

 complexType name=getCustomerFolderInputSingleType
sequence
element name=customerSmartvisionID type=int/
element minOccurs=0 name=folderName type=string/
/sequence
/complexType
complexType name=getCustomerFolderInputType
sequence maxOccurs=unbounded
element name=getCustomerFolderInput
type=tns:getCustomerFolderInputSingleType/
/sequence
/complexType

Soap Monitor shows this:

?xml version='1.0' encoding='utf-8'?
soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope;
  soapenv:Body
axis2ns2:getCustomerFolder
xmlns:axis2ns2=http://www.example.org/nPVR/;
  getCustomerFolderRequestBody
  /getCustomerFolderRequestBody
/axis2ns2:getCustomerFolder
  /soapenv:Body
/soapenv:Envelope


the problem is that although this code will call the service and I will
receive response with data which I fill in appropriate method in skeleton
class, but in the request there are no parameters. Variable array is null.
   public org.example.www.npvr.GetCustomerFolderResponse
getCustomerFolder (org.example.www.npvr.GetCustomerFolder
getCustomerFolder16)
{
GetCustomerFolderInputTypeSequence[] array =
getCustomerFolder16.getGetCustomerFolderRequestBody().getGetCustomerFolderInputTypeSequence();


TCPMon shows this request:

POST /ws/services/nPVRService/nPVRService/getCustomerFolder HTTP/1.1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
SOAPAction: 
User-Agent: Axis2
Host: 192.168.122.116:8181
Transfer-Encoding: chunked

1d
getCustomerFolderRequestBody=
0

So what am I doing wrong?

-- 
View this message in context: 
http://www.nabble.com/Axis2-%28ADB%29-%3A-Problem-with-empty-RequestBody-tp17532435p17532435.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Array Of ComplexTypes - Missing item tag

2008-05-29 Thread Karthik R




Hello Anne
THanks for your reply, But i still get the same thing in 1.4 too. What
could be the issue now?

Anne Thomas Manes wrote:

  That's a bug in Axis 1.2. Please upgrade to Axis 1.4.

On Wed, May 28, 2008 at 4:52 AM, Karthik R [EMAIL PROTECTED] wrote:
  
  
Hello Friends,


Hello Friends,

While Accessing a webservice using axis 1.2, we are sending the input as
arrayofComplex Data Type.

ComplexData Type - a Class KeyValuePair.
public class KeyValuePair  implements java.io.Serializable {
private java.lang.String key;
private java.lang.String value;
public KeyValuePair() {}

public KeyValuePair(java.lang.String key, java.lang.String value) {
   this.key = key;
   this.value = value;
}
 }

Input to the webservice is array of the above mentioned data Type.

We are expecting the following request.

?xml version="1.0" encoding="UTF-8"?soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"soapenv:Bodyns1:ProcessEvent
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://www.epiphany.com/RP"
package xsi:type="xsd:string"THREE/package
event xsi:type="xsd:string"OfferRequest/event
fields soapenc:arrayType="ns1:ArrayOfKeyValuePair[10]"
xsi:type="soapenc:Array"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  item href=""/
  item href=""/
 /fields
/ns1:ProcessEvent

 multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  xsi:type="ns7:KeyValuePair"
xmlns:ns7="http://www.epiphany.com/RP"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  key xsi:type="xsd:string"
   SessionId
  /key
  value xsi:type="xsd:string"
   1234567890
  /value
 /multiRef

 multiRef id="id1" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:KeyValuePair"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://www.epiphany.com/RP"
  key xsi:type="xsd:string"
   Customer_ID
  /key
  value xsi:type="xsd:string"
  /value
 /multiRef
  /soapenv:Body
 /soapenv:Envelope

Instead we are getting the following

?xml version="1.0" encoding="UTF-8"?soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"soapenv:Bodyns1:ProcessEvent
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://www.epiphany.com/RP"
package xsi:type="xsd:string"THREE/package
event xsi:type="xsd:string"OfferRequest/event
fields soapenc:arrayType="ns1:ArrayOfKeyValuePair[10]"
xsi:type="soapenc:Array"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  fields href=""/
  fields href=""/
 /fields
/ns1:ProcessEvent

 multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"  xsi:type="ns7:KeyValuePair"
xmlns:ns7="http://www.epiphany.com/RP"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
  key xsi:type="xsd:string"
   SessionId
  /key
  value xsi:type="xsd:string"
   1234567890
  /value
 /multiRef

 multiRef id="id1" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:KeyValuePair"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://www.epiphany.com/RP"
  key xsi:type="xsd:string"
   Customer_ID
  /key
  value xsi:type="xsd:string"
  /value
 /multiRef
  /soapenv:Body
 /soapenv:Envelope

Note the ArrayOfKeyValuePair should have tag named item as per soap
standards, but we get the parent array tag name in its
element name too. i.e fields tag is replaced for item tag

HOw to solve this issue and get expected response.

Fyi
We have given the Serializer and Deserializer as below
QName arrayOfKeyValuePairQname = new
javax.xml.namespace.QName("http://www.epiphany.com/RP",
"ArrayOfKeyValuePair");
QName arrayOfReturnedOffersQname = new
javax.xml.namespace.QName("http://www.epiphany.com/RP",
"ArrayOfReturnedOffer");
QName keyValuePairQName = new
javax.xml.namespace.QName("http://www.epiphany.com/RP", "KeyValuePair");
QName returnedOfferQName = new
javax.xml.namespace.QName("http://www.epiphany.com/RP", "ReturnedOffer");


TypeMappingRegistry typeMappingRegistry =
service.getTypeMappingRegistry();
TypeMapping map = typeMappingRegistry.getDefaultTypeMapping();

map.register(KeyValuePair[].class, arrayOfKeyValuePairQname,
  new ArraySerializerFactory(KeyValuePair[].class,
arrayOfKeyValuePairQname),
  new ArrayDeserializerFactory());

map.register(KeyValuePair.class, keyValuePairQName,
  new BeanSerializerFactory(KeyValuePair.class,
keyValuePairQName), new BeanDeserializerFactory(
  KeyValuePair.class, 

axis2-1.3 xmlbeans parser error

2008-05-29 Thread Karunanidhi, Meena
 

Hi

 

I created a web service using Axis2-1.3, xmlbeans on weblogic 8.1. The
same code worked fine with ADB, but when I tried to do the same with
xmlbeans throws the following exception:

 

I am NOT using any authentication for my web service, it is simple
enough to send and receive an order. 

Any suggestions,pls

Thanks - Meena

 

Exception org.apache.axis2.AxisFault: problem accessing the parser.
Parser already accessed!

org.apache.axis2.AxisFault: problem accessing the parser. Parser already
accessed!

at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)

at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessage
Formatter.java:72)

at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisReque
stEntity.java:84)

at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequest
Body(EntityEnclosingMethod.java:495)

at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase
.java:1973)

at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
:993)

at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMe
thodDirector.java:397)

at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
dDirector.java:170)

at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
96)

at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
46)

at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abstrac
tHTTPSender.java:520)

at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
91)

at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:327)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:206)

at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:374)

at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)

at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)


=

 

 


--

This is a confidential communication and is intended only for the addressee 
indicated in the message (or duly authorised to be responsible for the delivery 
of the message to such  person). You are specifically prohibited from copying 
this message or delivering the same, or any part thereof, to any other person, 
whomsoever or howsoever, unless you receive written authorisation from us to 
do. 

If you are anyone other than the intended addressee, or person duly authorised 
and responsible for the delivery of this message to the intended addressee, you 
should destroy this message and notify us immediately. 

Please note that we accept no responsibility whatsoever in the event that this 
message or any other email message or any part thereof becomes known or is 
communicated to anyone other than the intended recipient or other person 
authorised in writing by us to receive it, howsoever arising and disclaim all 
liability for any losses or damage which may be sustained by any person as a 
result thereof.

permanent tsb is a trading name of Irish Life  Permanent plc which is 
regulated by the Financial Regulator and is a tied insurance agent for Irish 
Life Assurance plc.

Irish Life  Permanent plc is a limited liability company registered in Dublin 
under No. 222332. The company's registered office is: Irish Life Centre, Lower 
Abbey Street, Dublin 1.


==


Axis2-1.3, xmlbeans error

2008-05-29 Thread Karunanidhi, Meena
Hi

 

I created a web service using Axis2-1.3, xmlbeans on weblogic 8.1. The
same code worked fine with ADB, but when I tried to do the same with
xmlbeans throws the following exception:

 

I am NOT using any authentication for my web service, it is simple
enough to send and receive an order. 

Any suggestions,pls

Thanks - Meena

 

Exception org.apache.axis2.AxisFault: problem accessing the parser.
Parser already accessed!

org.apache.axis2.AxisFault: problem accessing the parser. Parser already
accessed!

at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)

at
org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessage
Formatter.java:72)

at
org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisReque
stEntity.java:84)

at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequest
Body(EntityEnclosingMethod.java:495)

at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase
.java:1973)

at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
:993)

at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMe
thodDirector.java:397)

at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMetho
dDirector.java:170)

at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
96)

at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:3
46)

at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abstrac
tHTTPSender.java:520)

at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
91)

at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:327)

at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:206)

at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)

at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:374)

at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)

at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)


=

 

 


--

This is a confidential communication and is intended only for the addressee 
indicated in the message (or duly authorised to be responsible for the delivery 
of the message to such  person). You are specifically prohibited from copying 
this message or delivering the same, or any part thereof, to any other person, 
whomsoever or howsoever, unless you receive written authorisation from us to 
do. 

If you are anyone other than the intended addressee, or person duly authorised 
and responsible for the delivery of this message to the intended addressee, you 
should destroy this message and notify us immediately. 

Please note that we accept no responsibility whatsoever in the event that this 
message or any other email message or any part thereof becomes known or is 
communicated to anyone other than the intended recipient or other person 
authorised in writing by us to receive it, howsoever arising and disclaim all 
liability for any losses or damage which may be sustained by any person as a 
result thereof.

permanent tsb is a trading name of Irish Life  Permanent plc which is 
regulated by the Financial Regulator and is a tied insurance agent for Irish 
Life Assurance plc.

Irish Life  Permanent plc is a limited liability company registered in Dublin 
under No. 222332. The company's registered office is: Irish Life Centre, Lower 
Abbey Street, Dublin 1.


==


Re: SOAP xml logging axis2

2008-05-29 Thread sultanat

I have modified the SOAPMonitor jar to log response and request XMLs, let me
know if you need it.

Nadir Amra wrote:
 
 Never mind, found it at:
 
 http://ws.apache.org/axis2/1_4/modules.html
 
 Nadir Amra
 
 
 Nadir Amra/Rochester/[EMAIL PROTECTED] wrote on 05/28/2008 09:40:50 AM:
 
 Samisa,
 
 Where is the logging module located?  I cannot seem to find it in the 
 samples directory...
 
 Nadir Amra
 
 
 Samisa Abeysinghe [EMAIL PROTECTED] wrote on 05/27/2008 
 09:04:54 PM:
 
  You can try the logging module that comes with the samples.
  
  Samisa...
  
  sultanat wrote:
   How can I log the SOAP xmls requests and responses.
  
   In the log4j.properties, I have 
   log4j.logger.httpclient.wire.header=DEBUG,LOGFILE
   log4j.logger.org.apache.commons.httpclient=DEBUG,LOGFILE
  
   but nothing is being wrriten to the file.
  
   Any suggestions please.
   
  
  
  -- 
  Samisa Abeysinghe
  
  http://people.apache.org/~samisa/
  
  
  -
  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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/SOAP-xml-logging-axis2-tp17501869p17536490.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



[Axis2] endpoint domain

2008-05-29 Thread Jack Sprat
The domain of my WSDL endpoint location is being overlaid with an IP address 
when retrieving the WSDL using the ?wsdl parameter.  The location looks like 
this in the WSDL:

soap:address location=https://www.mydomain.com/mycontext/services/MyService; 
/

but appears like this when accessing with the ?wsdl parameter:

soap:address location=http://4.4.4.63:80/mycontext/services/MyService/

I have the useOriginalWSDL parameter set to true in the services.xml file.
Will setting the modifyUserWSDLPortAddress parameter to false prevent this?

Thanks,
T.


   

Re: Another one for org.apache.axis2.databinding.ADBException: Unexpected subelement

2008-05-29 Thread Carsten Sierks
Hi Ajith,

 
 
 Well not really - in doc/lit you can have a schema that defines the
 message
 with different namespaces (and in fact the concept of parameters is not
 really there most of the time - its an xml document that's being exchanged
 and as long as it does not violate the SOAP rules, its fine). We
 definitely
 want to make the error message more verbose but the code is generated in
 the
 most generic fashion and as I mentioned in my earlier mail ,a different
 QName denotes a different element to the parser!
 
that different namespaces mean different objects, is clear. That is the idea of 
a namespace.

What made it difficult for me, is that most namespaces resemble an URL. As 
being a newbie to XML namespaces, I was not aware, that comparisons of 
namespaces are done on a per string base, and not - as the resemblance tricks 
an unexperienced user into - on a per URL base.
So for beginners with XML and Axis and such, a more descriptive error message 
would be greatly appreciated, since the resemblence of a namespace with a URL 
makes the beginner look there later than last. ;) (Like I had to debug the code 
completely, before I found out what was going on)

I think I will file a CR / BugReport with the Axis team.


Carsten
-- 
Super-Aktion nur in der GMX Spieleflat: 10 Tage für 1 Euro.
Über 180 Spiele downloaden: http://flat.games.gmx.de

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



Re: SOAP xml logging axis2

2008-05-29 Thread Lorenzo Bigagli
Hi Nadir,

I would like to try it.
Thank you for this,

  L

On Thu, May 29, 2008 at 5:24 PM, sultanat [EMAIL PROTECTED] wrote:


 I have modified the SOAPMonitor jar to log response and request XMLs, let
 me
 know if you need it.

 Nadir Amra wrote:
 
  Never mind, found it at:
 
  http://ws.apache.org/axis2/1_4/modules.html
 
  Nadir Amra
 
 
  Nadir Amra/Rochester/[EMAIL PROTECTED] wrote on 05/28/2008 09:40:50 AM:
 
  Samisa,
 
  Where is the logging module located?  I cannot seem to find it in the
  samples directory...
 
  Nadir Amra
 
 
  Samisa Abeysinghe [EMAIL PROTECTED] wrote on 05/27/2008
  09:04:54 PM:
 
   You can try the logging module that comes with the samples.
  
   Samisa...
  
   sultanat wrote:
How can I log the SOAP xmls requests and responses.
   
In the log4j.properties, I have
log4j.logger.httpclient.wire.header=DEBUG,LOGFILE
log4j.logger.org.apache.commons.httpclient=DEBUG,LOGFILE
   
but nothing is being wrriten to the file.
   
Any suggestions please.
   
  
  
   --
   Samisa Abeysinghe
  
   http://people.apache.org/~samisa/http://people.apache.org/%7Esamisa/
  
  
   -
   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]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/SOAP-xml-logging-axis2-tp17501869p17536490.html
 Sent from the Axis - User mailing list archive at Nabble.com.


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




[Axis2] scope documentation error?

2008-05-29 Thread Lorenzo Bigagli
Hi,

the documentation of service configuration (
http://ws.apache.org/axis2/1_4/axis2config.html#Service_Configuration)
specifies:

*scope*: (Optional Attribute) The time period during which runtime
information of the deployed services will be available. Scope is of several
types- Application, SOAPSession, TransportSession, Request. The
default value (if you don't enter any value) will be Request

However, it seems that setting the scope to Application doesn't work.
Instead, application works as expected.

I don't know about the other scopes: maybe someone can clarify?
  L


Module Engagement and ClassLoading issue?

2008-05-29 Thread Sun Yang
Hi,
I am new to Axis2. I have some problem when I want to engage rampart. Please
give me a hand to look at it.

Steps I take:
I.  Modify the axis2.xml file to add a module ref to rampart;
2. Copy rahas-1.3.mar, rampart-1.3.mar to the repository-path/modules
directory;
3. Write a very simple program to test it. Eg:
/--
public class MyTest {
private static EndpointReference targetEPR = new EndpointReference(
http://localhost:8080/axis2/services/MyService;);

public static void main(String[] args) throws AxisFault {
ServiceClient sender = new ServiceClient();
sender.engageModule(rampart);
}
}
/
4. When run, I use jvm parameter(-Daxis2.xml=...) to transfer the right
axis2.xml and axis2.repo parameters to the make them point to the right
location.
5. When run, it always complain that some class cannot be loaded.

I make some debugging and find the reason is the lack of class definition.
But the class is obviously resides in the jars listed in the classpath. I
guess there are some classloading issues there. So I copy all the jars in
the lib to the jre's lib/ext folder. That works fine and no error occur.

But I am not sure whether it is the right way to solve this problem? Do I
make something wrong here? Please help me to give me some advices.

Best Regards,
Yang Sun


Re: [Axis2] valid SOAP operations

2008-05-29 Thread Jack Sprat
Where/how do I get the AxisService object in the code sample below?
 The code will be in the invoke method of my handler class that is invoked in 
the InFlow phase.
 
 Thanks.
 T


Eran Chinthaka [EMAIL PROTECTED] wrote: 


AxisService service; // your axis service
String action = messageContext.getSoapAction();

AxisOperation op = service.getOperationBySOAPAction(action);

if (op == null) {
   op = service.getOperationByAction(action);
}



Please see [1] for more details. 

HTH,
Chinthaka
 
[1] : 
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/dispatchers/ActionBasedOperationDispatcher.java?view=markup
 
On Tue, May 27, 2008 at 10:58 AM, Jack Sprat [EMAIL PROTECTED] wrote:
 I think I've made the question more complicated than it needed to be.
All I really need to know is whether the valid SOAP operations for a service 
are available in an Axis2 class somewhere?
Something like getValidSOAPOpeations() that returns a list would be ideal.  
Otherwise I'll need to hard-code constants for each operation in the WSDL and 
compare the results of getSOAPAction to each one. 


Thanks,
T


keith chapman [EMAIL PROTECTED] wrote:  Why not write a custom dispatcher 
that does this. After all this is what your trying to do (Dispatch to an 
operation using some custom information).  You can have a look at the inbuilt 
dispatchers tp get an idea. Its pretty simple to write a new one.
  
Thanks, 
Keith.

On Tue, May 27, 2008 at 8:33 PM, Jack Sprat [EMAIL PROTECTED] wrote:
  What I am trying to do is validate the SOAP operation invoked in the handler 
class so I can take the appropriate action.
I've found that many clients trying to consume the service don't know much 
about web services so they may send a request with no SOAPAction header or an 
invalid one.
  For example, my valid operations may be echo and calculate.  Can these 2 
operations be determined programatically somehow?  I'd like to get the valid 
operations this way and compare what I got from the getSOAPAction() method to 
see if I got a valid operation.  Basically, I'm trying to avoid hard-coding the 
operations in my Java code.
  
Thanks,
T



keith chapman [EMAIL PROTECTED] wrote:   Hi Jack,

Can you state your requirement more clearly, that should help us provide you 
with a clear answer too. I couldn't  understand what you are intending to do

Thanks,
Keith.

  On Tue, May 27, 2008 at 7:50 PM, Jack Sprat [EMAIL PROTECTED] wrote:
   I have a service that invokes a handler at the InFlow phase. Is there a way 
to programatically determine the valid SOAP operations at this point? I'd like 
to compare the value from getSOAPAction() to ensure a valid operation was 
requested.
   I'm open to a better way of doing this.

Thanks,
T.

  
 
 



   



 

   

Re: Module Engagement and ClassLoading issue?

2008-05-29 Thread SGruverman
Did you copy all the JARs in rampart-1,3/lib into webapps/axis2/WEB-INF/lib
?

- Steve

Sun Yang [EMAIL PROTECTED] wrote on 05/29/2008 01:05:12 PM:

 Hi,
 I am new to Axis2. I have some problem when I want to engage
 rampart. Please give me a hand to look at it.

 Steps I take:
 I.  Modify the axis2.xml file to add a module ref to rampart;
 2. Copy rahas-1.3.mar, rampart-1.3.mar to the repository-
 path/modules directory;
 3. Write a very simple program to test it. Eg:
 /--
 public class MyTest {
 private static EndpointReference targetEPR = new EndpointReference(
 http://localhost:8080/axis2/services/MyService;);

 public static void main(String[] args) throws AxisFault {
 ServiceClient sender = new ServiceClient();
 sender.engageModule(rampart);
 }
 }
 /
 4. When run, I use jvm parameter(-Daxis2.xml=...) to transfer the
 right axis2.xml and axis2.repo parameters to the make them point to
 the right location.
 5. When run, it always complain that some class cannot be loaded.

 I make some debugging and find the reason is the lack of class
 definition. But the class is obviously resides in the jars listed in
 the classpath. I guess there are some classloading issues there. So
 I copy all the jars in the lib to the jre's lib/ext folder. That
 works fine and no error occur.

 But I am not sure whether it is the right way to solve this problem?
 Do I make something wrong here? Please help me to give me some advices.

 Best Regards,
 Yang Sun


__
Steve Gruverman
IntelliCare, Inc. | A Medco Health Solutions Company

500 Southborough Drive | South Portland ME 04106





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



Re: Module Engagement and ClassLoading issue?

2008-05-29 Thread Yang Sun
I am using Axis2+rampart at client side. The server side is apache 
tuscany with web-services based services.

Do I still need to do that?

Regards,
Yang Sun

[EMAIL PROTECTED] wrote:

Did you copy all the JARs in rampart-1,3/lib into webapps/axis2/WEB-INF/lib
?

- Steve

Sun Yang [EMAIL PROTECTED] wrote on 05/29/2008 01:05:12 PM:

  

Hi,
I am new to Axis2. I have some problem when I want to engage
rampart. Please give me a hand to look at it.

Steps I take:
I.  Modify the axis2.xml file to add a module ref to rampart;
2. Copy rahas-1.3.mar, rampart-1.3.mar to the repository-
path/modules directory;
3. Write a very simple program to test it. Eg:
/--
public class MyTest {
private static EndpointReference targetEPR = new EndpointReference(
http://localhost:8080/axis2/services/MyService;);

public static void main(String[] args) throws AxisFault {
ServiceClient sender = new ServiceClient();
sender.engageModule(rampart);
}
}
/
4. When run, I use jvm parameter(-Daxis2.xml=...) to transfer the
right axis2.xml and axis2.repo parameters to the make them point to
the right location.
5. When run, it always complain that some class cannot be loaded.

I make some debugging and find the reason is the lack of class
definition. But the class is obviously resides in the jars listed in
the classpath. I guess there are some classloading issues there. So
I copy all the jars in the lib to the jre's lib/ext folder. That
works fine and no error occur.

But I am not sure whether it is the right way to solve this problem?
Do I make something wrong here? Please help me to give me some advices.

Best Regards,
Yang Sun




__
Steve Gruverman
IntelliCare, Inc. | A Medco Health Solutions Company

500 Southborough Drive | South Portland ME 04106





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

  




Re: Axis2 with JMS Transport

2008-05-29 Thread Anthony Bull




Your axis2.xml looks correct - as long as your MQ is setup as a JNDI
provider. Note that you can setup all your JMS stuff in MQ explorer
visually if you have the correct support packs installed - you don't
need to use the JMS admin tool.

I just tried your approach with publishing a message via MQ explorer
and got the same error:

Exception in thread "JMSWorker-1"
java.lang.NullPointerException
 at
org.apache.axis2.transport.jms.JMSMessageReceiver.createMessageContext(JMSMessageReceiver.java:190)
 at
org.apache.axis2.transport.jms.JMSMessageReceiver.access$000(JMSMessageReceiver.java:50)
 at
org.apache.axis2.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:246)
 at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
 at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
 at java.lang.Thread.run(Thread.java:595)

This looks like an error in Axis 2 - so it looks like you'll have to
publish via an actual Axis 2 client. I had a look at the Axis 2 code
and its something around the reply-to code - including a reply-to SOAP
addressing header didn't resolve it.

adisesha wrote:

  
  


  
  
  
  No, output
can be sent to other queue
also. For now the problem I have is w.r.to reading queue is guess. We
can think
of sending o/p to same/other queue later.
  1.
java.lang.NullPointerException
at
org.apache.axis2.transport.jms.JMSMessageReceiver.createMessageContext(JMSMessageReceiver.java:190)
  May be
the settings I used are wrong? Can you cross check the axis2.xml 
services.xml I have sent?
  
  
  
  
  From:
Anthony Bull [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, May
29, 2008 11:19
AM
  To: axis-user@ws.apache.org
  Subject: Re: Axis2
with JMS
Transport
  
  
  MQ 6.0.2.3 is good as the JNDI
provider. It
sounds like you want your web service to respond to the same queue?
I've
only done asynchronous web services over JMS, for synchronous I use
HTTP, so
can't help on responding to the same queue - i.e. all my JMS web
services are
one way traffic from MQ to Axis2/Tomcat. If you have addressing
information in the SOAP header in your message envelope, then it should
resolve
your issue where it can't find the correct operation to invoke on your
web
service. Certainly, if you can configure axis2 to suit all your needs
then go with that - I tend to keep environment specific JMS stuff out
of my
axis2.xml files because I have to deploy to the customer development,
testing
and production environments and don't like constantly changing
axis2.xml files
with every deployment.
  
adisesha wrote: 
  We
want to work on existing settings, with
out need of code. i.e create WS with one method,  set connection
details
in axis2.xml  then create JNDI either in tomcat or in websphereMQ.
Now
when user puts info in MQ automatically WS should be called  then
return
xxx to o/p Queue. 
  For this
sequence I dont see the
need of code if axis2 works correctly. What is your opinion on this?
  
  
  
  
  From:
Anthony Bull [mailto:[EMAIL PROTECTED]]
  
  Sent: Thursday, May
29, 2008 3:43
AM
  To: axis-user@ws.apache.org
  Subject: Re: Axis2
with JMS
Transport
  
  
  
  1. Add the ws-addressing
support to your service and
your client. (go to the axis 2 site to see how to do this). This
may/should help in getting your web service to be able work out what
method
needs to be invoked.
2. When you are configuring the JMS sender - your connection details
(provider
factory class, URL etc) can be configured in the code instead of in the
axis2.xml.
  
  
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  

  
Disclaimer

The information contained in this communication is intended solely for
the use of the individual or entity to whom it is addressed and others
authorized to receive it. It may contain confidential or legally
privileged information. If you are not the intended recipient you are
hereby notified that any disclosure, copying, distribution or taking
any action in reliance on the contents of this information is strictly
prohibited and may be unlawful. If you have received this communication
in error, please notify us immediately by forwarding this email to
[EMAIL PROTECTED] and then delete it from your system. Ness
technologies is neither liable for the proper and complete transmission
of the information contained in this communication nor for any delay in
its receipt.

  

  



-- 

Anthony
- 
Anthony Bull
Senior Developer
Black Coffee Software Ltd
PO Box 10-192 The Terrace
Wellington, New Zealand
 
[EMAIL PROTECTED]
Ph  +64 4 472 8818
Fax +64 4 472 8811
- 
www.bcsoft.co.nz
--- 
This email may contain confidential or 

Re: SOAP xml logging axis2

2008-05-29 Thread sultanat

Give me you email address, I will send the source code, you can jar is,
repalce soapmonitor.jar with soapmonitorlog.jar, thats it

Lorenzo Bigagli-2 wrote:
 
 Hi Nadir,
 
 I would like to try it.
 Thank you for this,
 
   L
 
 On Thu, May 29, 2008 at 5:24 PM, sultanat [EMAIL PROTECTED] wrote:
 

 I have modified the SOAPMonitor jar to log response and request XMLs, let
 me
 know if you need it.

 Nadir Amra wrote:
 
  Never mind, found it at:
 
  http://ws.apache.org/axis2/1_4/modules.html
 
  Nadir Amra
 
 
  Nadir Amra/Rochester/[EMAIL PROTECTED] wrote on 05/28/2008 09:40:50 AM:
 
  Samisa,
 
  Where is the logging module located?  I cannot seem to find it in the
  samples directory...
 
  Nadir Amra
 
 
  Samisa Abeysinghe [EMAIL PROTECTED] wrote on 05/27/2008
  09:04:54 PM:
 
   You can try the logging module that comes with the samples.
  
   Samisa...
  
   sultanat wrote:
How can I log the SOAP xmls requests and responses.
   
In the log4j.properties, I have
log4j.logger.httpclient.wire.header=DEBUG,LOGFILE
log4j.logger.org.apache.commons.httpclient=DEBUG,LOGFILE
   
but nothing is being wrriten to the file.
   
Any suggestions please.
   
  
  
   --
   Samisa Abeysinghe
  
  
 http://people.apache.org/~samisa/http://people.apache.org/%7Esamisa/
  
  
  
 -
   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]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/SOAP-xml-logging-axis2-tp17501869p17536490.html
 Sent from the Axis - User mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/SOAP-xml-logging-axis2-tp17501869p17548687.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Axis2 1.4 not Thread safe (possible bug)

2008-05-29 Thread sultanat

Is someone working to fix this bug?

asankha wrote:
 
 Chuck Brinkman wrote:
 We are seeing responses of one type that have the body of another type. 
 For example say we have serviceA that returns a serviceAresponse and
 serviceB that returns a serviceBresponse.  We have captured the network
 packet and see things like serviceAresponse that has the data from a
 serviceBresponse.  It appears to be related to a flash client we have. 
 The flash client will open a connection and can send a second request
 using the original connection before it gets a response or a timeout from
 the first request.  I'm still working on the issue but it is in some way
 good to know that I'm not the only one thinking Axis2 has a thread safety 
 issue.
   
 Your flash client is using HTTP pipelining 
 http://en.wikipedia.org/wiki/HTTP_pipelining and this seems like a 
 limitation/bug on the http/s transport, and not necessarily an Axis2 
 thread safety issue. Can you post the tcpdump traces you have?
 
 asankha
 
 

-- 
View this message in context: 
http://www.nabble.com/Axis2-1.4-not-Thread-safe-%28possible-bug%29-tp17414803p17548699.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: Error merging include schema

2008-05-29 Thread Anne Thomas Manes
Muralidaran,

Please ask these types of questions on the axis-user list rather than
the axis-dev list.

I suspect your problem is caused by the fact that you have a number of
schemas that do not specify targetNamespaces, and that you import
these schemas without specifying a namespace. I believe that the
namespace attribute is required on an import.

You could try adding namespace= to the import declaration, or change
the import to include.

My guess is that the testing tools you use can't handle this situation.

Anne

On Thu, May 29, 2008 at 1:58 PM, cmurali [EMAIL PROTECTED] wrote:

  Hi,

 Our Axis2 1.3 based web service is in IVV (independent Validation and
 verification) and hence would appreciate your quick help.

 When I query my web service wsdl using SOAPUI, it queries fine and generates
 a sample request fine. But when I used another client tool called soapSonar,
 I received the subject error and it is shown in the attached word document.
 I also attached all my schemas and wsdl.

 Another issue is that when IVV ran the WS-I compliance check by downloading
 the web service interoperability tool from
 http://www.ws-i.org/deliverables/, it failed in many aspects, they reported.
 I am yet to receive the report from them.

 Any quick help will be much appreciated.

 Thanks,
 Muralidaran Chakravarthy

 http://www.nabble.com/file/p17542178/AllXSDandWsdl.zip AllXSDandWsdl.zip
 http://www.nabble.com/file/p17542178/soapsonarUI.doc soapsonarUI.doc

 --
 View this message in context: 
 http://www.nabble.com/Error-merging-include-schema-tp17542178p17542178.html
 Sent from the Axis - Dev mailing list archive at Nabble.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] scope documentation error?

2008-05-29 Thread Charitha Kankanamge

Hi Lorenzo,
Service scope should be application, soapsession, transportsession 
and request. I changed axis2Config.html document with correct names 
and committed.


thanks
Charitha

Lorenzo Bigagli wrote:


Hi,

the documentation of service configuration 
(http://ws.apache.org/axis2/1_4/axis2config.html#Service_Configuration) 
specifies:


*scope*: (Optional Attribute) The time period during which runtime 
information of the deployed services will be available. Scope is of 
several types- Application, SOAPSession, TransportSession, 
Request. The default value (if you don't enter any value) will be 
Request


However, it seems that setting the scope to Application doesn't work.
Instead, application works as expected.

I don't know about the other scopes: maybe someone can clarify?
  L



No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.24.2/1471 - Release Date: 5/28/2008 5:33 PM
 




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



Re: how to turn off schema/soap validation

2008-05-29 Thread Eran Chinthaka
Which validation you are talking about? Validation against SOAP schema or
validating the content of the SOAP body?

You can not turn off SOAP schema validation. That is burnt in to our
builders. Axis2 is a SOAP engine, so its the best decision.

If you code generate, using our code generation tool with databinding,
validation code also will be burnt in to the generated code. But if you turn
off databinding while generating code, then the body content will not be
validated and be presented as XML content (using OMElements)

On Wed, May 28, 2008 at 10:05 AM, [EMAIL PROTECTED] wrote:

  Hi Folks..

 Just a basic question..how do I turn off the validation or somehow catch
 the Soap Exception in my impl class?



 Thanks in advance..



 Thanks..



 *Ehlan A. Siddiqi*

 Business Direct Systems

 Wells Fargo Bank

 Phone: 415-371-3730 | Cell: 510-393-8595 | Fax: 415-371-2700 |MAC A0109-040



 *This message may contain confidential and/or privileged information. If
 you are not the addressee or authorized to receive this for the addressee,
 you must not use, copy, disclose, or take any action based on this message
 or any information herein. If you have received this message in error,
 please advise the sender immediately by reply e-mail and delete this
 message. Thank you for your cooperation.*






-- 
With Mettha,
Eran Chinthaka


Health is the greatest gift; contentment is the greatest wealth; trusting is
the best relationship; nirvana is the highest joy. - Dhammapada


Re: [Axis2] endpoint domain

2008-05-29 Thread Sanka Samaranayake
On Thu, May 29, 2008 at 9:58 PM, Jack Sprat [EMAIL PROTECTED] wrote:

 The domain of my WSDL endpoint location is being overlaid with an IP
 address when retrieving the WSDL using the ?wsdl parameter.  The location
 looks like this in the WSDL:

 soap:address location=
 https://www.mydomain.com/mycontext/services/MyService; /

 but appears like this when accessing with the ?wsdl parameter:

 soap:address location=http://4.4.4.63:80/mycontext/services/MyService/

 I have the useOriginalWSDL parameter set to true in the services.xml file.
 Will setting the modifyUserWSDLPortAddress parameter to false prevent this?



Yes, If you set that parameter to false, it will not modify the port
addresses of the provided WSDL

Sanka




 Thanks,
 T.




-- 
Sanka Samaranayake
WSO2 Inc.

http://sankas.blogspot.com/
http://www.wso2.org/


Re: [Axis2] valid SOAP operations

2008-05-29 Thread Jack Sprat
It is the last handler listed in the Dispatch phase of the InFlow phase order.

Thanks,
T


Eran Chinthaka [EMAIL PROTECTED] wrote: Where in InFlow will be your handler? 
Tell me its location relative to dispatch phase, and don't tell me its before 
the dispatch phase ;)

On Thu, May 29, 2008 at 10:25 AM, Jack Sprat [EMAIL PROTECTED] wrote:
 Where/how do I get the AxisService object in the code sample below?
 The code will be in the invoke method of my handler class that is invoked in 
the InFlow phase.
  
 Thanks.
 T



Eran Chinthaka [EMAIL PROTECTED] wrote:  


AxisService service; // your axis service
String action = messageContext.getSoapAction();

AxisOperation op = service.getOperationBySOAPAction(action);


if (op == null) {
   op = service.getOperationByAction(action);
}



Please see [1] for more details. 

HTH,
 Chinthaka
 
[1] : 
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/dispatchers/ActionBasedOperationDispatcher.java?view=markup
  
On Tue, May 27, 2008 at 10:58 AM, Jack Sprat [EMAIL PROTECTED] wrote:
  I think I've made the question more complicated than it needed to be.
All I really need to know is whether the valid SOAP operations for a service 
are available in an Axis2 class somewhere?
Something like getValidSOAPOpeations() that returns a list would be ideal.  
Otherwise I'll need to hard-code constants for each operation in the WSDL and 
compare the results of  getSOAPAction to each one. 


Thanks,
T


keith chapman [EMAIL PROTECTED] wrote:   Why not write a custom dispatcher 
that does this. After all this is what your trying to do (Dispatch to an 
operation using some custom information).  You can have a look at the inbuilt 
dispatchers tp get an idea. Its pretty simple to write a new one.
   
Thanks, 
Keith.

On Tue, May 27, 2008 at 8:33 PM, Jack Sprat [EMAIL PROTECTED] wrote:
   What I am trying to do is validate the SOAP operation invoked in the  
handler class so I can take the appropriate action.
I've found that many clients trying to consume the service don't know much 
about web services so they may send a request with no SOAPAction header or an 
invalid one.
   For example, my valid operations may be echo and calculate.  Can these 2 
operations be determined programatically somehow?  I'd like to get the valid 
operations this way and compare what I got from the getSOAPAction() method to 
see if I got a valid operation.  Basically, I'm trying to avoid hard-coding the 
operations in my Java code.
   
Thanks,
T



keith chapman [EMAIL PROTECTED] wrote:Hi Jack,

Can you state your requirement more clearly, that should help us provide you 
with a clear answer too. I couldn't   understand what you are intending to do

Thanks,
Keith.

  On Tue, May 27, 2008 at 7:50 PM, Jack Sprat [EMAIL PROTECTED] wrote:
I have a service that invokes a handler at the InFlow phase. Is there a way 
to programatically determine the valid SOAP operations at this point? I'd like 
to compare the value from getSOAPAction() to ensure a valid operation was 
requested.
I'm open to a better way of doing this.

Thanks,
T.