Re: Setting properties in apache module

2009-04-09 Thread Sam Carleton
On Thu, Apr 9, 2009 at 12:55 AM, Supun Kamburugamuva supu...@gmail.comwrote:

 You need to retrieve the property, not the parameter :)


Thank you!  I am in business now!

Sam


Re: RV: problems with Axis2

2009-04-09 Thread Andreas Veithen
According to the stacktrace this problem occurs when your code sends
the request. Does your request contain a DataHandler and if so, how is
it constructed?

Andreas

2009/4/6 Alcaraz Galofre, Joan Eugeni joaneugeni.alca...@t-systems.es:
 Hi Andreas!

 The complete stacktrace (as attach file)

 Thanks for your answer

 Joan

 -Mensaje original-
 De: Andreas Veithen [mailto:andreas.veit...@gmail.com]
 Enviado el: sábado, 04 de abril de 2009 15:06
 Para: axis-user@ws.apache.org
 Asunto: Re: RV: problems with Axis2

 Can you post the complete stacktrace of the UnsupportedDataTypeException?

 Andreas

 On Fri, Apr 3, 2009 at 15:32, Alcaraz Galofre, Joan Eugeni 
 joaneugeni.alca...@t-systems.es wrote:

 Sr Developers of Axis2:

 I have a problem with Axis2 after a couple of days  working without
 success

 I develop a axis2 webservice client embeded into a web application.
 The objective is download a binary file using MTOM technology

 The webservice client generate the following exception

 Caused by: javax.activation.UnsupportedDataTypeException:
 no object DCH for MIME type text/xml; charset=UTF-8
  at
 javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851
 )

 The code of the web service client is like this:

 EndpointReference targetEPR = new EndpointReference(URLConnexion);
 Options options = new Options(); options.setTo(targetEPR);
 options.setAction(urn:+functionName);
 options.setProperty(Constants.Configuration.ENABLE_MTOM,
 Constants.VALUE_TRUE); //configure MTOM at client side
 options.setTransportInfo(Constants.TRANSPORT_HTTP,Constants.TRANSPORT_
 HTTP, false); //optimize MTOM at client side
 options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI)
 ; options.setProperty(Constants.Configuration.MIME_BOUNDARY,
 Axis2_MIME_Boundary); //force Axis2 MIME head
 options.setProperty(HTTPConstants.CHUNKED,Constants.VALUE_TRUE);

 options.setTimeOutInMilliSeconds(1); //delay a maximum of 10
 seconds ServiceClient sender = new ServiceClient();
 sender.setOptions(options); OperationClient mepClient =
 sender.createClient(ServiceClient.ANON_OUT_IN_OP); //use the
 OperationClient method MessageContext mc = new MessageContext();
 SOAPEnvelope env = createEnvelope(XML,functionName);
 mc.setEnvelope(env);

 mepClient.addMessageContext(mc);
 mepClient.execute(true); == GENERATE THE EXCEPTION AT THIS POINT

 What's it happend? Have anyone any idea?

 I work with axis2 1.3.jar
 for MIME support I use activation.jar (1.1v) and mail.jar (1.4v).

 Both (client and server) uses the same version of activation.jar and
 mail.jar

 Compiled with WSAD 5.1.1 (WebSphere v5 JRE)

 The web application is deployed into a WAS 6.1 Both SO are Windows
 2000 SP4

 I hope your answers and thanks in advance!

 Sincerely

 Joan Alcaraz

 PD: sorry my poor english

 This e-mail and any attachments may contain confidential or privileged
 information. Any unauthorised copying, use or distribution of this
 information is strictly prohibited.



 This e-mail and any attachments may contain confidential or
 privileged information. Any unauthorised copying, use or distribution of
 this information is strictly prohibited.


RE: NTLM IISS

2009-04-09 Thread Robbe Fabrice
Hello.

I don't think that my problem is in the namespace as if I configure IIS with 
anonymous connection everything is OK and I can access to all function in 
Report Services. Anyway the namespace is define by my SQL server installation 
so it's not possible to change it. 
I get the WSDL directly with the URL supplied in my post with the ?WSDL option. 
Axis 2 generate stub to call it without problem.
But with IIS using windows authentication I get the 401 error. So I really 
think that the problem is the NTLM authentication.


De : Martin Gainty [mailto:mgai...@hotmail.com] 
Envoyé : mercredi 8 avril 2009 20:35
À : axis-user@ws.apache.org
Objet : RE: NTLM IISS

http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices. is 
a 404 
you'll need to use a different schema (which is accessible)

and let us know when MS provides a wsdl for that web-service

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





From: fabrice.ro...@devoteam.com
To: axis-user@ws.apache.org
Date: Wed, 8 Apr 2009 17:34:48 +0200
Subject: RE: RE: NTLM IISS
I have the WSDL provided by reportServer  
(http://localhost/reportserver/ReportService.asmx?WSDL)
and the namespace use by ADB generated bean is 
http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices.
 
But every time I try to call the ReportServer Ws, I get the 401.2 error sent by 
IIS, so there is no possible call to the server as IIS act as a filter. I'm not 
the only  user of the server so changing the IIS configuration to Anonymous may 
not be possible.
It's difficult to find information as NTLM as sample don't refer to the right 
version.

 
De : Martin Gainty [mailto:mgai...@hotmail.com] 
Envoyé : mercredi 8 avril 2009 16:46
À : axis-user@ws.apache.org
Objet : RE:
 
I took a brief look at 
http://msdn.microsoft.com/en-us/library/reportserviceauthentication.authenticationmode.aspx

which states I would need to
determine Namespace which will be used (this MUST BE accessible by server and 
client)
e.g.
http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices
then you'll need to determine the Authentication provider you will be using
-Forms
-None
-Passport
-Windows

has the WebService Provider provided you a WSDL?

Martin 
__ 
Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.





 From: fabrice.ro...@devoteam.com
 To: axis-user@ws.apache.org
 Date: Wed, 8 Apr 2009 16:16:07 +0200
 Subject: 
 
 Hi,
 I'am trying to use Axis 2 to call MSSQL Report Server Web Services. 
 Authentication is done with IIS and NTLM.
 I found a lot of code sample but nothing work, I always have a 401 : Acces 
 Denied. 
 Does anyone succed using NTLM with Axis 2 ? 
 I also tried to use a proxy parameter in struts2.xml but it doesn't work.
 Here is my code: 
 
 ReportingServiceStub stub = new 
 ReportingServiceStub(http://127.0.0.1/ReportServer/ReportService.asmx;);
     
 
 HttpTransportProperties.Authenticator auth = new 
 

Unicode support in Axis 1.4

2009-04-09 Thread Suresh Metla
Hi All,
Can anyone please let us whether Axis 1.4 supports Unicode charecters?
For example i am exposing a interface with following signature

public void AcceptData(String caseID, String data);

where caseID is english-String
and data could be multilingual Data.

Does Axis 1.4 supports these requirements? Could you please point me to the
documentation on what needs to be done to support this requirement?

Thanks,
Suresh Metla.


Re: Unicode support in Axis 1.4

2009-04-09 Thread Ognjen Blagojevic

Yes it does. I think that it works normally with all standard encodings,
including UTF-8.

-Ognjen

Suresh Metla wrote:

Hi All,
Can anyone please let us whether Axis 1.4 supports Unicode charecters?
For example i am exposing a interface with following signature
 
public void AcceptData(String caseID, String data);
 
where caseID is english-String

and data could be multilingual Data.
 
Does Axis 1.4 supports these requirements? Could you please point me to 
the documentation on what needs to be done to support this requirement?
 
Thanks,

Suresh Metla.




RE: NTLM IISS

2009-04-09 Thread Martin Gainty

you will need to acquire the WSDL in order to create the Client Stub 

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






 From: fabrice.ro...@devoteam.com
 To: axis-user@ws.apache.org
 Date: Thu, 9 Apr 2009 11:21:46 +0200
 Subject: RE: NTLM IISS
 
 Hello.
 
 I don't think that my problem is in the namespace as if I configure IIS with 
 anonymous connection everything is OK and I can access to all function in 
 Report Services. Anyway the namespace is define by my SQL server installation 
 so it's not possible to change it. 
 I get the WSDL directly with the URL supplied in my post with the ?WSDL 
 option. Axis 2 generate stub to call it without problem.
 But with IIS using windows authentication I get the 401 error. So I really 
 think that the problem is the NTLM authentication.
 
 
 De : Martin Gainty [mailto:mgai...@hotmail.com] 
 Envoyé : mercredi 8 avril 2009 20:35
 À : axis-user@ws.apache.org
 Objet : RE: NTLM IISS
 
 http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices. 
 is a 404 
 you'll need to use a different schema (which is accessible)
 
 and let us know when MS provides a wsdl for that web-service
 
 Martin 
 __ 
 Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité 
 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
 sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
 oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich 
 dem Austausch von Informationen und entfaltet keine rechtliche 
 Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen 
 wir keine Haftung fuer den Inhalt uebernehmen.
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
 destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
 l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
 est interdite. Ce message sert à l'information seulement et n'aura pas 
 n'importe quel effet légalement obligatoire. Étant donné que les email 
 peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
 aucune responsabilité pour le contenu fourni.
 
 
 
 
 
 From: fabrice.ro...@devoteam.com
 To: axis-user@ws.apache.org
 Date: Wed, 8 Apr 2009 17:34:48 +0200
 Subject: RE: RE: NTLM IISS
 I have the WSDL provided by reportServer  
 (http://localhost/reportserver/ReportService.asmx?WSDL)
 and the namespace use by ADB generated bean is 
 http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices.
  
 But every time I try to call the ReportServer Ws, I get the 401.2 error sent 
 by IIS, so there is no possible call to the server as IIS act as a filter. 
 I'm not the only  user of the server so changing the IIS configuration to 
 Anonymous may not be possible.
 It's difficult to find information as NTLM as sample don't refer to the right 
 version.
 
  
 De : Martin Gainty [mailto:mgai...@hotmail.com] 
 Envoyé : mercredi 8 avril 2009 16:46
 À : axis-user@ws.apache.org
 Objet : RE:
  
 I took a brief look at 
 http://msdn.microsoft.com/en-us/library/reportserviceauthentication.authenticationmode.aspx
 
 which states I would need to
 determine Namespace which will be used (this MUST BE accessible by server and 
 client)
 e.g.
 http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices
 then you'll need to determine the Authentication provider you will be using
 -Forms
 -None
 -Passport
 -Windows
 
 has the WebService Provider provided you a WSDL?
 
 Martin 
 __ 
 Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité 
 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
 sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
 oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient 

Validating incoming XML messages

2009-04-09 Thread Sebastiaan Samyn
Hi all,

I have a soap webservice powered by axis2 and I would like to validate the
incoming XML messages based on the wsdl of the service.

How do I do this? Is this included somewhere in the framework, or do I have
to write a new handler for this?

Thanks,
Sebastiaan.


RE: [Axis2] Setting hostname in axis2.xml ???? - NOT WORKING

2009-04-09 Thread Raghu Upadhyayula
Hi Sagara,

I have a skeleton class generated from WSDL2Java.  I've changed that 
skeleton class to implement the ServiceLifeCycle interface  implemented the 
startup method.

Looks like that startup method is never called, because after that 
change also I'm getting a private IP address in the soap:address location in 
WSDL.  I've put a debug point in the startup method  the control never stopped 
at the debug point.

Thanks
Raghu

-Original Message-
From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] 
Sent: Tuesday, April 07, 2009 2:36 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Setting hostname in axis2.xml 

Hi Raghu ,
You can use same hostname parameter  programatically either  in
service level or module level . one possible approach is given below .

1. Implement the  ServiceLifeCycle interface within your service
class or as a separate class .

2. set the  value to hostname parameter within the startUp ( ...) method.

axisService.getAxisConfiguration().addParameter(hostname,
myhost.com);

3. add your LifeCycle class to service.xml file.

service name=SimpleService class=LifeCycleClassName


Thanks


On Tue, Apr 7, 2009 at 9:39 PM, Raghu Upadhyayula
rupadhyay...@responsys.com wrote:
 Hi,



 I’m using Axis2 1.4 version.  I have to set the hostname in axis2.xml so
 that the soap:address location in the WSDL (when user types ?wsdl) uses that
 hostname instead of showing a IP address.



 The problem I have is that my webservices war file is deployed on multiple
 servers and I can’t manually edit each axis2.xml file for each server.



 Is there any option to read the server name from some properties file  set
 it to the hostname in axis2.xml programmatically?



 Thanks

 Raghu



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


Re: [Axis2] Setting hostname in axis2.xml ???? - NOT WORKING

2009-04-09 Thread Sagara Gunathunga
Hi Raghu,
Can you post your skeleton class along with service.xml file?

Thanks,

On Thu, Apr 9, 2009 at 11:59 PM, Raghu Upadhyayula
rupadhyay...@responsys.com wrote:
 Hi Sagara,

        I have a skeleton class generated from WSDL2Java.  I've changed that 
 skeleton class to implement the ServiceLifeCycle interface  implemented the 
 startup method.

        Looks like that startup method is never called, because after that 
 change also I'm getting a private IP address in the soap:address location in 
 WSDL.  I've put a debug point in the startup method  the control never 
 stopped at the debug point.

 Thanks
 Raghu

 -Original Message-
 From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com]
 Sent: Tuesday, April 07, 2009 2:36 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Setting hostname in axis2.xml 

 Hi Raghu ,
 You can use same hostname parameter  programatically either  in
 service level or module level . one possible approach is given below .

 1. Implement the  ServiceLifeCycle interface within your service
 class or as a separate class .

 2. set the  value to hostname parameter within the startUp ( ...) method.

        axisService.getAxisConfiguration().addParameter(hostname,
 myhost.com);

 3. add your LifeCycle class to service.xml file.

    service name=SimpleService class=LifeCycleClassName


 Thanks


 On Tue, Apr 7, 2009 at 9:39 PM, Raghu Upadhyayula
 rupadhyay...@responsys.com wrote:
 Hi,



 I’m using Axis2 1.4 version.  I have to set the hostname in axis2.xml so
 that the soap:address location in the WSDL (when user types ?wsdl) uses that
 hostname instead of showing a IP address.



 The problem I have is that my webservices war file is deployed on multiple
 servers and I can’t manually edit each axis2.xml file for each server.



 Is there any option to read the server name from some properties file  set
 it to the hostname in axis2.xml programmatically?



 Thanks

 Raghu



 --
 Sagara Gunathunga

 Blog - http://ssagara.blogspot.com
 Web - http://sagaras.awardspace.com/




-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


RE: [Axis2] Setting hostname in axis2.xml ???? - NOT WORKING

2009-04-09 Thread Raghu Upadhyayula
Hi Sagara,

Attached is my skeleton class  service.xml files.

Thanks
Raghu

-Original Message-
From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com] 
Sent: Thursday, April 09, 2009 1:37 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Setting hostname in axis2.xml  - NOT WORKING

Hi Raghu,
Can you post your skeleton class along with service.xml file?

Thanks,

On Thu, Apr 9, 2009 at 11:59 PM, Raghu Upadhyayula
rupadhyay...@responsys.com wrote:
 Hi Sagara,

        I have a skeleton class generated from WSDL2Java.  I've changed that 
 skeleton class to implement the ServiceLifeCycle interface  implemented the 
 startup method.

        Looks like that startup method is never called, because after that 
 change also I'm getting a private IP address in the soap:address location in 
 WSDL.  I've put a debug point in the startup method  the control never 
 stopped at the debug point.

 Thanks
 Raghu

 -Original Message-
 From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com]
 Sent: Tuesday, April 07, 2009 2:36 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Setting hostname in axis2.xml 

 Hi Raghu ,
 You can use same hostname parameter  programatically either  in
 service level or module level . one possible approach is given below .

 1. Implement the  ServiceLifeCycle interface within your service
 class or as a separate class .

 2. set the  value to hostname parameter within the startUp ( ...) method.

        axisService.getAxisConfiguration().addParameter(hostname,
 myhost.com);

 3. add your LifeCycle class to service.xml file.

    service name=SimpleService class=LifeCycleClassName


 Thanks


 On Tue, Apr 7, 2009 at 9:39 PM, Raghu Upadhyayula
 rupadhyay...@responsys.com wrote:
 Hi,



 I’m using Axis2 1.4 version.  I have to set the hostname in axis2.xml so
 that the soap:address location in the WSDL (when user types ?wsdl) uses that
 hostname instead of showing a IP address.



 The problem I have is that my webservices war file is deployed on multiple
 servers and I can’t manually edit each axis2.xml file for each server.



 Is there any option to read the server name from some properties file  set
 it to the hostname in axis2.xml programmatically?



 Thanks

 Raghu



 --
 Sagara Gunathunga

 Blog - http://ssagara.blogspot.com
 Web - http://sagaras.awardspace.com/




-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/
?xml version=1.0 encoding=UTF-8?
!-- This file was auto-generated from WSDL --
!-- by the Apache Axis2 version: 1.4  Built on : Apr 26, 2008 (06:24:30 EDT) --
serviceGroup
service name=ResponsysWSService
messageReceivers
messageReceiver mep=http://www.w3.org/ns/wsdl/in-out; class=com.rsys.ws.ResponsysWSServiceMessageReceiverInOut/
/messageReceivers
parameter name=ServiceClasscom.rsys.ws.ResponsysWSServiceSkeleton/parameter
parameter name=useOriginalwsdltrue/parameter
parameter name=modifyUserWSDLPortAddresstrue/parameter
operation name=login mep=http://www.w3.org/ns/wsdl/in-out; namespace=urn:ws.rsys.com
actionMapping\\/actionMapping
outputActionMappingurn:ws.rsys.com:ResponsysWS:loginResponse/outputActionMapping
faultActionMapping faultName=AccountFaulturn:ws.rsys.com:ResponsysWS:login:Fault:AccountFault/faultActionMapping
faultActionMapping faultName=UnexpectedErrorFaulturn:ws.rsys.com:ResponsysWS:login:Fault:UnexpectedErrorFault/faultActionMapping
/operation
operation name=logout mep=http://www.w3.org/ns/wsdl/in-out; namespace=urn:ws.rsys.com
actionMapping\\/actionMapping
outputActionMappingurn:ws.rsys.com:ResponsysWS:logoutResponse/outputActionMapping
faultActionMapping faultName=UnexpectedErrorFaulturn:ws.rsys.com:ResponsysWS:logout:Fault:UnexpectedErrorFault/faultActionMapping
/operation
operation name=createFolder mep=http://www.w3.org/ns/wsdl/in-out; namespace=urn:ws.rsys.com
actionMapping\\/actionMapping
outputActionMappingurn:ws.rsys.com:ResponsysWS:createFolderResponse/outputActionMapping
faultActionMapping faultName=UnexpectedErrorFaulturn:ws.rsys.com:ResponsysWS:createFolder:Fault:UnexpectedErrorFault/faultActionMapping
faultActionMapping faultName=FolderFaulturn:ws.rsys.com:ResponsysWS:createFolder:Fault:FolderFault/faultActionMapping
/operation
operation name=listFolders mep=http://www.w3.org/ns/wsdl/in-out; namespace=urn:ws.rsys.com
actionMapping\\/actionMapping
outputActionMappingurn:ws.rsys.com:ResponsysWS:listFoldersResponse/outputActionMapping
faultActionMapping faultName=UnexpectedErrorFaulturn:ws.rsys.com:ResponsysWS:listFolders:Fault:UnexpectedErrorFault/faultActionMapping
/operation
operation name=deleteFolder mep=http://www.w3.org/ns/wsdl/in-out; 

deploy both client and server in tomcat

2009-04-09 Thread jason zhang

Hi, All
I am using axis2-1.4. I had the service deployed to tomcat and it is 
tested. I also developed client using the AXIOM.

The client is initialized like this
ConfigurationContext ctx = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(TestConfig.repo_dir, 
null);

sc = new ServiceClient(ctx, null);
sc.engageModule(rampart);


Right now, I need to move the client code to tomcat and use  it as a 
library. How can I obtain a ConfigurationContext in server? I know the 
axis2 definitely creates configurationContext for its services. I just 
do not know how to obtain the configuration for my client.


Help is appreciated.

thanks

-jason



Problem in using Axis2 with Tomcat 6.0.18 in Linux

2009-04-09 Thread AXIS 2 - User

Hello,

I am using AXIS 2 with Tomcat 6.0.18, Java 1.5 and Linux environment.
I have already deployed the axis2.war file on tomcat.
I am also able to see welcome axis2 page displayed by
http://localhost:8080/axis2;.

However, when I click on links Services, Validate, I am getting
Internal Server Error message. 

I have already tried it in Windows and it worked correctly.
I was also able to see WSDL for my own service.
I am unable to figure out, which configuration parameter is missing while
deploying it in Linux environment.

Can anybody help me in this regard?

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Problem-in-using-Axis2-with-Tomcat-6.0.18-in-Linux-tp22981130p22981130.html
Sent from the Axis - User mailing list archive at Nabble.com.


RE: [Axis2] Memory leaks with 1.4.1

2009-04-09 Thread Pantvaidya, Vishwajit
Verified that #3 is indeed fixed. Thanks Amila.


From: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com]
Sent: Wednesday, April 08, 2009 1:50 AM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Memory leaks with 1.4.1


On Wed, Apr 8, 2009 at 2:11 PM, Pantvaidya, Vishwajit 
vpant...@selectica.commailto:vpant...@selectica.com wrote:

Ok thanks.

Are the points I mentioned below accurate, i.e.

-  #1 and #2 have been resolved after Axis2 1.4.1

-  for #3, there does not seem to be any fix yet
No every thing should be fixed. If #3 is not fixed please give the exact 
details to reproduce it. Then we can look into it.

thanks,
Amila.







From: Amila Suriarachchi 
[mailto:amilasuriarach...@gmail.commailto:amilasuriarach...@gmail.com]
Sent: Wednesday, April 08, 2009 1:35 AM

To: axis-user@ws.apache.orgmailto:axis-user@ws.apache.org
Subject: Re: [Axis2] Memory leaks with 1.4.1



hi,

you may get a snapshot build from the 1.5 branch here[1]. we are hoping to 
release an RC soon.
thanks,
Amila.


[1]http://people.apache.org/~amilas/1.5-SNAPSHOT/http://people.apache.org/%7Eamilas/1.5-SNAPSHOT/

On Tue, Apr 7, 2009 at 10:53 PM, Pantvaidya, Vishwajit 
vpant...@selectica.commailto:vpant...@selectica.com wrote:

From where can I take a stable niightly build for verifying #1 and #2?





From: Pantvaidya, Vishwajit 
[mailto:vpant...@selectica.commailto:vpant...@selectica.com]
Sent: Tuesday, April 07, 2009 12:54 AM
To: axis-user@ws.apache.orgmailto:axis-user@ws.apache.org
Subject: [Axis2] Memory leaks with 1.4.1



Hello,



We are using Axis1.4.1 Java for our webservice deployment as well as client 
calling - and are finding significant memory leaks in Axis2 related objects. 
Most of the leaks are already mentioned in the following:

 1.  
https://issues.apache.org/jira/browse/AXIS2-3870?page=com.atlassian.jira.plugin.syst
 2.  https://issues.apache.org/jira/browse/AXIS2-4007
 3.  
http://www.nabble.com/Axis-2-Memory-Leak-when-Client-is-instantiated-within-Service---pertains-to-edu.emory...ConcurrentHashMap--%3E-WAS%3A-Re%3A-When-do-cleanup-functions-need-to-be-called--td19631299.html#a19631370



#1 and #2 seem to have been resolved after Axis2 1.4.1 - is there a stable 
build that we can use for getting these fixes? Or is a Axis2 release with these 
fixes upcoming?

For #3, there does not seem to be any fix yet. Is that accurate? If yes, is a 
fix proposed to reduce the number of edu.emory... instances?





Thanks,



Vish.



--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/



--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: [Axis2] Setting hostname in axis2.xml ???? - NOT WORKING

2009-04-09 Thread Sagara Gunathunga
Hi Raghu,
You have missed 3rd step that i mentioned, you should add class
parameter to your service.xml file as follows.

 service name=ResponsysWSService
class=com.rsys.ws.ResponsysWSServiceSkeleton

Hope this will resolve your problem.

Thanks ,



On Fri, Apr 10, 2009 at 1:56 AM, Raghu Upadhyayula
rupadhyay...@responsys.com wrote:
 Hi Sagara,

        Attached is my skeleton class  service.xml files.

 Thanks
 Raghu

 -Original Message-
 From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com]
 Sent: Thursday, April 09, 2009 1:37 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Setting hostname in axis2.xml  - NOT WORKING

 Hi Raghu,
 Can you post your skeleton class along with service.xml file?

 Thanks,

 On Thu, Apr 9, 2009 at 11:59 PM, Raghu Upadhyayula
 rupadhyay...@responsys.com wrote:
 Hi Sagara,

        I have a skeleton class generated from WSDL2Java.  I've changed that 
 skeleton class to implement the ServiceLifeCycle interface  implemented the 
 startup method.

        Looks like that startup method is never called, because after that 
 change also I'm getting a private IP address in the soap:address location in 
 WSDL.  I've put a debug point in the startup method  the control never 
 stopped at the debug point.

 Thanks
 Raghu

 -Original Message-
 From: Sagara Gunathunga [mailto:sagara.gunathu...@gmail.com]
 Sent: Tuesday, April 07, 2009 2:36 PM
 To: axis-user@ws.apache.org
 Subject: Re: [Axis2] Setting hostname in axis2.xml 

 Hi Raghu ,
 You can use same hostname parameter  programatically either  in
 service level or module level . one possible approach is given below .

 1. Implement the  ServiceLifeCycle interface within your service
 class or as a separate class .

 2. set the  value to hostname parameter within the startUp ( ...) method.

        axisService.getAxisConfiguration().addParameter(hostname,
 myhost.com);

 3. add your LifeCycle class to service.xml file.

    service name=SimpleService class=LifeCycleClassName


 Thanks


 On Tue, Apr 7, 2009 at 9:39 PM, Raghu Upadhyayula
 rupadhyay...@responsys.com wrote:
 Hi,



 I’m using Axis2 1.4 version.  I have to set the hostname in axis2.xml so
 that the soap:address location in the WSDL (when user types ?wsdl) uses that
 hostname instead of showing a IP address.



 The problem I have is that my webservices war file is deployed on multiple
 servers and I can’t manually edit each axis2.xml file for each server.



 Is there any option to read the server name from some properties file  set
 it to the hostname in axis2.xml programmatically?



 Thanks

 Raghu



 --
 Sagara Gunathunga

 Blog - http://ssagara.blogspot.com
 Web - http://sagaras.awardspace.com/




 --
 Sagara Gunathunga

 Blog - http://ssagara.blogspot.com
 Web - http://sagaras.awardspace.com/




-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


Re: Problem in using Axis2 with Tomcat 6.0.18 in Linux

2009-04-09 Thread Sagara Gunathunga
Hi,
I have seen some other people also facing similar problem on Linux
with latest Tomcat distros, but most of the time those problems are
not directly related to Axis2 , I guess you may have a such problem,
it can be related to  file permissions or java security manager.
please refer following links for similar threads , hope you can find
any clue .

Also look at your server console for error trace and identify exact
exception , then search on Google may help you too.



[1] - 
http://www.nabble.com/Error-in-installation-of-axis-1.4:-Cannot-instantiate-ModelMBean-td22502994.html

[2] 
-http://aleph-null.tv/article/20080327-0118-335.xml/Tomcat-5.5-On-Debian:-AccessControlException-for-logging.properties

Thanks,




On Fri, Apr 10, 2009 at 5:25 AM, AXIS 2 - User ketya2...@yahoo.com wrote:
 Hello, I am using AXIS 2 with Tomcat 6.0.18, Java 1.5 and Linux environment.
 I have already deployed the axis2.war file on tomcat. I am also able to
 see welcome axis2 page displayed by http://localhost:8080/axis2;. However,
 when I click on links Services, Validate, I am getting Internal Server
 Error message. I have already tried it in Windows and it worked correctly.
 I was also able to see WSDL for my own service. I am unable to figure out,
 which configuration parameter is missing while deploying it in Linux
 environment. Can anybody help me in this regard? Thanks in advance.
 
 View this message in context: Problem in using Axis2 with Tomcat 6.0.18 in
 Linux
 Sent from the Axis - User mailing list archive at Nabble.com.




-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/