Re: How java.lang.Object is handled in Axis2 1.4.1?

2010-02-13 Thread Chinmoy Chakraborty
Hello All, I am using using Axis2 1.4.1. I found if I have argument of a service of type "*java.lang.Object*", Axis2 internally converts it into "* javax.activation.DataHandler*". So Axis2 does support "java.lang.Object" as argument of a service method? Could any one please give me pointer on thi

How java.lang.Object is handled in Axis2 1.4.1?

2010-02-11 Thread Chinmoy Chakraborty
I am using using Axis2 1.4.1. I found if I have argument of a service of type "*java.lang.Object*", Axis2 internally converts it into "* javax.activation.DataHandler*". So Axis2 does support "java.lang.Object" as argument of a service method? Chinmoy

Error while updating from 1.4 to 1.5.1

2010-01-08 Thread Chinmoy Chakraborty
I am getting following error while updating from axis2 1.4 to 1.5.1 (I am using tomcat 6.0.20 and jdk 1.5): org.apache.axis2.deployment.DeploymentEngine: org.apache.axis2.deployment.DeploymentException: java.util.zip.ZipException: invalid entry size (expected 71 but got 72 bytes) WARN 01/08/2010

Re: Need to get rid of .aar file

2009-12-17 Thread Chinmoy Chakraborty
You can deploy programatically without creating .aar file...just create services.xml inside META-INF and corresponding class file...and deploy programatically.. e.g. lets say we have a service called ABS 1. Create a folder ABS 2. Create META-INF folder inside ABS and place services.xml inside ABS

Re: Does Axis2 support PUT method for RESTful webservices?

2009-12-17 Thread Chinmoy Chakraborty
thanks Deepal... On Wed, Dec 16, 2009 at 8:30 PM, Deepal jayasinghe wrote: > Yes I am 100% sure about GET and POST. According to my understanding it > also support both PUT and DELETE too . > > Thanks, > Deepal > > Hi All, > > > > Does Axis2 1.5.1 support GET, POST and PUT all three methods for

Does Axis2 support PUT method for RESTful webservices?

2009-12-16 Thread Chinmoy Chakraborty
Hi All, Does Axis2 1.5.1 support GET, POST and PUT all three methods for RESTful webservices? Chinmoy

How to configure SOAP impl class in SAP Netweaver?

2009-12-11 Thread Chinmoy Chakraborty
Hi All, I want to use Axis2 SOAP implementation in SAP Netweaver app server (like weblogic, there we set the param "set JAVA_OPTIONS=-Djavax.xml.soap.MessageFactory=org.apache.axis2.saaj.MessageFactoryImpl"). Could please anybody suggest me how to do that? Chinmoy

Re: [axis2:UTF-8]

2009-12-02 Thread Chinmoy Chakraborty
I found the same problem with Axis 1.4 but not sure about Axis2. In my case the incoming SOAP included some CYRILIC characters which Axis 1.4 did not recognise. So I had to write a filter, modify the SOAP (replace chanracter greater than 146 by "&#" + c + ";") and pass the modified request to the

Re: Help! A problem occured when running test Axis-1.4

2009-11-30 Thread Chinmoy Chakraborty
ous email. > I have listed the packages that have been put both in the two library paths > in the previous email. > > > Would you please give me some advice about solving this problem? > > Sincerely yours, > Liu > > > 2009/11/30 Chinmoy Chakrabort

Re: Help! A problem occured when running test Axis-1.4

2009-11-30 Thread Chinmoy Chakraborty
where and how did you deploy your sample in tomcat? where is your wsdd file? You may find this link useful [1]. [1]. http://ws.apache.org/axis/java/user-guide.html#InstallingAxisAndUsingThisGuide Here I want to make o

Re: Error while trying to deploy in weblogic 10.3

2009-11-25 Thread Chinmoy Chakraborty
ith web > logic with the web logic stax implementation. > > thanks, > Amila. > > > On Fri, Nov 20, 2009 at 8:51 PM, Chinmoy Chakraborty wrote: > >> Could you tell me what is the implementation class >> for javax.xml.stream.XMLStreamReader that AXIS2 uses? I got some

Error while trying to deploy in weblogic 10.3

2009-11-20 Thread Chinmoy Chakraborty
Could you tell me what is the implementation class for javax.xml.stream.XMLStreamReader that AXIS2 uses? I got some error when I try to deploy axis2 app in weblogic 10.3. Below is the error: 11...@09:48:17151336 ERROR [[ACTIVE] ExecuteThread: '53' for queue: 'weblogic.kernel.Default (self-tuning)'

Re: Cannot run axis2 client (error 501)

2009-11-20 Thread Chinmoy Chakraborty
I guess you need to upgrade server side implementation to axis2 also. On Fri, Nov 20, 2009 at 4:17 PM, P.N. wrote: > > Hello! > > When trying to connect to an axis-service (old axis version!) from an > axis2-client I'm always getting the following error: > > > org.apache.axis2.AxisFault: Tran

Axiom exception in weblogic 10.3

2009-11-19 Thread Chinmoy Chakraborty
Hi All, I am running axis2 1.4 webservices in weblogic 10.3. I am getting following error: *org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: Error at Line:12, token:[OPENTAGBEGIN]Unbalanced ELEMENT got:args expected:return* Any idea what is going wrong here? Same app works f

Which jar contains org.apache.axis2.transport.http.AxisAdminServlet in axis2 1.5.1?

2009-11-18 Thread Chinmoy Chakraborty
Hi All, I am using Axis 1.5.1 but could not find org.apache.axis2.transport.http.AxisAdminServlet. Could you tell me which jar to look into for the said class? Chinmoy

Re: Any way to configure a write timeout as an Axis2 client?

2009-11-17 Thread Chinmoy Chakraborty
>From client side you can try this: Options options = new Options(); options.setTimeOutInMilliSeconds(60); HTH, Chinmoy On Tue, Nov 17, 2009 at 5:47 PM, Andy Dysart wrote: > Hello all, > > > > We are having a problem with some Axis2 client code that is making a web > serv

Re: Error page returned instead of Soap Exception when WS-Security Authentication fails in Rampart

2009-10-22 Thread Chinmoy Chakraborty
r we have incorrect config instructions - > http://ws.apache.org/axis2/modules/rampart/1_0/security-module.html > says to put the rampart module entry in axis2.xml - OR there is a bug > in the way that Rampart is interacting with errors that are thrown by > services in Axis, even services t

Re: Error page returned instead of Soap Exception when WS-Security Authentication fails in Rampart

2009-10-21 Thread Chinmoy Chakraborty
I saw this error and I suppose this is fixed in 1.5..you can look at [1]. [1]. [ https://issues.apache.org/jira/browse/RAMPART-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739525#action_12739525] HTH, Chinmoy On Wed, Oct 21, 2009 at 12:17 PM, Ell

Re: Need Startup links on SOAP with attachments in AXIS2

2009-10-15 Thread Chinmoy Chakraborty
Try links [1] & [2]. [1] https://svn.apache.org/repos/asf/webservices/axis2/site/1_2/mtom-guide.html [2] http://wso2.org/library/1148 Chinmoy On Thu, Oct 15, 2009 at 12:13 PM, Appasamy Thirugnana < athirugn...@sapient.com> wrote: > Hi, > > Can somebody provide startup links/tutorial to start w

Re: Axis + SOAP message + How to expose services

2009-09-22 Thread Chinmoy Chakraborty
By looking at the SOAP header, it seems that it is WS-Security enabled SOAP... for this you may find [1] useful.. [1] http://ws.apache.org/axis2/modules/rampart/1_0/security-module.html If you have WSDL then you can use WSDL2Java tool. Chinmoy On Tue, Sep 22, 2009 at 10:38 PM, sh_santosh wrote:

Re: Axis2 timeouts configuration

2009-09-16 Thread Chinmoy Chakraborty
configure the timeout in the server side using the > axsi2.xml paremeter "ConfigContextTimeoutInterval"? > > The default value for Axis2 web services timeout is 60 seconds, isn't it? > > thank you, > > Mh > > 2009/9/16 Chinmoy Chakraborty > > what ex

Re: Axis2 timeouts configuration

2009-09-16 Thread Chinmoy Chakraborty
what exception you are getting? can you share your log? yes you can configure timeout in the client side..like options.setTimeOutInMilliSeconds(60); On Wed, Sep 16, 2009 at 2:12 PM, Moley Harey wrote: > Hi folks! > > I have implemented an Axis2 web service to retrieve some publication data

Re: sending binary file by a web service using mtom

2009-09-09 Thread Chinmoy Chakraborty
Try this link [1]. [1] http://ws.apache.org/axis2/1_0/mtom-guide.html Chinmoy 2009/9/9 Håkon Sagehaug > hi > > I'm my mtom service i've got a schema element thta looks like this > > > > type="xsd:string" /> > type="xmime:b

Re: MTOM support causing problem

2009-09-03 Thread Chinmoy Chakraborty
at return an objects array. I did putting debugging > messages to make sure that service method worked fine. > > Thanks > > Sanjay > > > > *From:* Chinmoy Chakraborty [mailto:cch...@gmail.com] > *Sent:* Wednesday, September 02, 2009 10:45 PM > *To:* axis-user@ws.apa

Re: MTOM support causing problem

2009-09-02 Thread Chinmoy Chakraborty
Are you sure that your service method is working fine? are you sending attachemnt or receiving attachment or both? On Thu, Sep 3, 2009 at 11:01 AM, Sanjay Gupta wrote: > Hi, > I enabled mtom support in axis2.xml and it's causing some problem in an > already working application. I am using axis2

Re: How to enable MTOM support

2009-09-01 Thread Chinmoy Chakraborty
e to download > attachments, as I do not have experience in Axis2. > > > > Thanks, > > Partha > > > > > > *From:* Chinmoy Chakraborty [mailto:cch...@gmail.com] > *Sent:* Wednesday, September 02, 2009 11:16 AM > *To:* axis-user@ws.apache.org > *Subjec

Re: How to enable MTOM support

2009-09-01 Thread Chinmoy Chakraborty
which version of JDK you are using? Axis2 1.5 requires JDK 1.5 onwards. Chinmoy On Wed, Sep 2, 2009 at 10:16 AM, Partha Pal wrote: > Hi, > > > > I am writing an axis2 client to get attachment from hosted .NET service. I > am a newbie so using the example from > http://ws.apache.org/axis2/1_0/

Re: send soap attachment via AXIS2

2009-08-27 Thread Chinmoy Chakraborty
you can try this, MessageContext mc = new MessageContext(); FileDataSource dataSource = new FileDataSource("c:\\myImageAttachment.jpg"); DataHandler dataHandler = new DataHandler(dataSource); mc.addAttachment(dataHandler .getName(), dataHandler); then add this message context t

Re: Newbie question

2009-08-26 Thread Chinmoy Chakraborty
Instead of using ArrayList, use complex type array as return type e.g instead of using public ArrayList listFunctions(), use public Function[] listFunction() Chinmoy On Thu, Aug 27, 2009 at 4:12 AM, Arvind Narayan wrote: > Hello: > > I am facing a strange problem where I see SOAP data comin

Re: imcompatible issue between axis2 and weblogic 10

2009-08-24 Thread Chinmoy Chakraborty
Open 'startWebLogic.cmd' in edit mode and replace line 95 to 97 with the following text: set SAVE_JAVA_OPTIONS=-Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl set JAVA_OPTIONS=%SAVE_JAVA_OPTIONS% and see if this wsorks. Chinmoy On Tue, Aug 25, 2009 at 3:02 AM, Hu, Mary -

Re: Adding WSS Headers to the WSDL

2009-08-18 Thread Chinmoy Chakraborty
Are you using policy based WS-Security? You may look at [1].. [1] - https://www.wso2.org/library/3190 Chinmoy On Tue, Aug 18, 2009 at 7:50 PM, Steve Karlovitz < steve.karlov...@synegen.com> wrote: > I was wondering if somebody could help, I have written a web-service that > is to be consumed by

Question about WSDL

2009-08-18 Thread Chinmoy Chakraborty
Hi All, I have a service called ABS and the operation name is 'invoke'. The operation has two parameters, one is String another one is a Float. These are basic data type but why In the WSDL these data types show as complex type? We have customers and they are having problems for the complex types

Re: axis2 and rampart embedded into a fully POJO environment

2009-08-13 Thread Chinmoy Chakraborty
What version of Rampart are you using? I guess your point (2) is something related to JIRA *RAMPART-236*. Please look at link [1]. [1]. https://issues.apache.org/jira/browse/RAMPART-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-

Re: Web Service to send XML document

2009-08-12 Thread Chinmoy Chakraborty
You might find following link useful: [1]. http://www.keith-chapman.org/search/label/MTOM On Wed, Aug 12, 2009 at 8:01 PM, Ashish Kulkarni < ashish.kulkarn...@gmail.com> wrote: > Hi > I have an requirement to develop a web service which will send data from > files, i was thinking of creating a w

Re: Fw: WSDD missing and error generating

2009-08-11 Thread Chinmoy Chakraborty
t Engineer > > NIL Data Communications, Tivolska cesta 48, 1000 Ljubljana, Slovenia > Phone +386 1 4746 500 Fax +386 1 4746 501 > http://www.NIL.si<http://www.nil.si/> > > > From: Chinmoy Chakraborty > To: axis-user@ws.apache.org > Date: 11.0

Re: Fw: WSDD missing and error generating

2009-08-11 Thread Chinmoy Chakraborty
it. > > Thanks and best regards, > --- > Miha Vitorovic > Inženir v tehničnem področju > Customer Support Engineer > > NIL Data Communications, Tivolska cesta 48, 1000 Ljubljana, Slovenia > Phone +386 1 4746 500 Fax +386 1 4746 501 > http://www.NIL.si<htt

Re: Fw: WSDD missing and error generating

2009-08-11 Thread Chinmoy Chakraborty
are you using Axis 1.x or Axis2 1.x.x? 2009/8/11 Miha Vitorovic > > Anyone please? > > Best regards, > --- > Miha Vitorovic > Inženir v tehničnem področju > Customer Support Engineer > > NIL Data Communications, Tivolska cesta 48, 1000 Ljubljana, Slovenia > Phone +386 1 4746 500

Re: DB storage intercepted response-time values

2009-08-07 Thread Chinmoy Chakraborty
Follow the link, you may find it useful... http://www.packtpub.com/article/handler-and-phase-in-apache-axis Chinmoy On Fri, Aug 7, 2009 at 6:59 PM, Asma Maalej wrote: > Hello > > i'm working on the monitoring web services, using axis2-1.4.1 and tomcat > 6.0.18. > I have to intercept QoS parame

Re: Writing a service with multiple operations

2009-08-07 Thread Chinmoy Chakraborty
.AuthenticateService .. Chinmoy On Fri, Aug 7, 2009 at 7:03 PM, Chris Mannion wrote: > That would be using a client to invoke a service with mutliple > operations though, right? I'm talking about actually building the > Java class that implements the service. > > 2009/8/7

Re: Writing a service with multiple operations

2009-08-07 Thread Chinmoy Chakraborty
You can have multiple operations for a single service name. You just need to set the action (operation name) of a service you want to invoke. Options options = new Options(); RPCServiceClient client = new RPCServiceClient(); options.setTo(targetEPR); options

Understanding Handlers

2009-08-05 Thread Chinmoy Chakraborty
Hi, I have a custom handler (extends AbstractHandler) and I place the handler inside phase 'Transport' in axis2.xml. * * ...

Re: Please help me to debug RAMPART issue

2009-07-31 Thread Chinmoy Chakraborty
- XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader 194422 INFO [http8080-Processor21] org.apache.axis2.builder.BuilderUtil - OMException in getSOAPBuilder Chinmoy On Fri, Jul 31, 2009 at 2:59 PM, Chinmoy Chakraborty wrote: > Hi, > > I turned on DEBUG and please

Rampart 1.4 OutFaultFlow entry in the module.xml

2009-07-30 Thread Chinmoy Chakraborty
Hi Rampart Guys, I noticed there is no entry for paramter based WS-Security in 'OutFaultFlow' phase order in the module.xml for 'rampart-1.4.mar' file. Could this be a reason for not sending the SOAP fault to the client when error occurs while invoking the service method? By the way I am having pa

Re: Error handling for WS-Security enabled services

2009-07-30 Thread Chinmoy Chakraborty
moy, > > When an exception occurs on the server end...and if you know the kind of > exception...try wrapping it as a fault. In most cases it has worked for me > as expected. > > Preetham > > > On Wed, Jul 29, 2009 at 9:14 AM, Chinmoy Chakraborty wrote: > >> Hi All, >

Error handling for WS-Security enabled services

2009-07-29 Thread Chinmoy Chakraborty
Hi All, I am using rampart 1.4 and Axis2 1.4. I have parameterbased ws-security enabled services. In normal cases when there is no error at the time of invocation (invocation of business logic) of the service, it works fine. Following is the SOAP is returned by axis2 (captured in TCPMon): *Good O

Re: Error handling in rampart 1.4

2009-07-27 Thread Chinmoy Chakraborty
(non ws-security) service invocation it works fine i.e. the SOAP fault propagates to the client. Chinmoy On Tue, Jul 28, 2009 at 12:12 PM, Chinmoy Chakraborty wrote: > Hi, > > I am using rampart 1.4 for WS-Security enbaled services. I am sending > username and plain text pas

Error handling in rampart 1.4

2009-07-27 Thread Chinmoy Chakraborty
Hi, I am using rampart 1.4 for WS-Security enbaled services. I am sending username and plain text password in the SOAP header. Now if any error occurs while invoking the service, it does not propagate to the client. Is it a bug or I am missing something? Chinmoy

About org.apache.axis2.deployment.ServiceDeployer#deploy()

2009-07-27 Thread Chinmoy Chakraborty
Hi, *Does org.apache.axis2.deployment.ServiceDeployer#deploy() first undeploy service (if exists) and deploys the new one?* ** *Is it throw exception if the service exists when it tries to deploy a service with same name?* ** ** *Chinmoy*

How many instances of PWCBHandler are maintained by AXIS2?

2009-07-18 Thread Chinmoy Chakraborty
Hi, I have configured same PWCBHandler class for multiple services. How many instances of PWCBHandler are maintained by axis2? By design is it OK if I keep multiple static variables in my PWCBHadler? Chinmoy

Re: Rampart : How I can configure client axis2.xml/services.xml to accept custom token?

2009-07-18 Thread Chinmoy Chakraborty
WCBHandler. Please comment. Chinmoy On Sat, Jul 18, 2009 at 8:10 PM, Nandana Mihindukulasooriya < nandana@gmail.com> wrote: > Hi Chinmoy, > What is your scenario ? What security requirements do you want > to fulfill ? > > regards, > Nandana > > &g

rampart: How I can get request url in PassWordCallBackHandler when PassWordCallBackHandler#getUsage == 5

2009-07-18 Thread Chinmoy Chakraborty
Hi All, How I can get request url in PassWordCallBackHandler when PassWordCallBackHandler#getUsage == 5. Is it possible to access messagecontext in the handler? Chinmoy

Rampart : How I can configure client axis2.xml/services.xml to accept custom token?

2009-07-18 Thread Chinmoy Chakraborty
Hi, How I can configure client axis2.xml/services.xml to accept custom token? What is this custom token and how I can use this? I am following parameter based approach. My client axis2.xml is attached. Chinmoy UsernameToken system labware.web.ws.control.PW

Re: Rampart error (Incoming message does not contain required Security header)

2009-07-17 Thread Chinmoy Chakraborty
. Chinmoy On Thu, Jul 16, 2009 at 7:06 PM, Chinmoy Chakraborty wrote: > Hi Nandana, > > Now it works. The problem was the param 'InFlow' and some others are case > sensitive. I edited them and it worked. > > Thanks. > > Chinmoy > > On Thu, Jul 16, 2009

Remote host closed connection during handshake

2009-07-17 Thread Chinmoy Chakraborty
Hi, I got the error while invoking a call with policy based WS-Security enabled call. Following is my client side code: System.setProperty("javax.net.ssl.trustStore", "D:/wskey.jks"); System.setProperty("javax.net.ssl.trustStorePassword", "password"); ConfigurationContext ctx = null;

Re: Rampart error (Incoming message does not contain required Security header)

2009-07-16 Thread Chinmoy Chakraborty
Hi Nandana, Now it works. The problem was the param 'InFlow' and some others are case sensitive. I edited them and it worked. Thanks. Chinmoy On Thu, Jul 16, 2009 at 5:19 PM, Chinmoy Chakraborty wrote: > Hi Nandana, > > Thanks a lot for the reply. Now I am gett

Re: Rampart error (Incoming message does not contain required Security header)

2009-07-16 Thread Chinmoy Chakraborty
rampart-samples/basic/sample01/src/org/apache/rampart/samples/sample01/Client.java > [3] - https://www.wso2.org/library/3190 > > > On Wed, Jul 15, 2009 at 5:45 PM, Chinmoy Chakraborty wrote: > >> Hi, >> >> I am getting following error while trying to invoke a W

Rampart error (Incoming message does not contain required Security header)

2009-07-15 Thread Chinmoy Chakraborty
Hi, I am getting following error while trying to invoke a WS-Security enabled client request: org.apache.axis2.AxisFault: WSDoAllReceiver: Incoming message does not contain required Security header at org.apache.rampart.handler.WSDoAllReceiver.processBasic(WSDoAllReceiver.java:221) at org.apach

Re: Is it possible to invoke multiple services in a single transaction?

2009-07-13 Thread Chinmoy Chakraborty
transaction? > > > > What are you meaning with multiple services? > There is just one respons for one request.. > and authentication hasn't to do with transaction. > Do you know how you can and why you should, use the webservice!? > > > --

Re: Is it possible to invoke multiple services in a single transaction?

2009-07-13 Thread Chinmoy Chakraborty
ndreas Veithen wrote: > It depends on what you mean by "single transaction" or "single SOAP". > > Andreas > > On Mon, Jul 13, 2009 at 07:37, Chinmoy Chakraborty > wrote: > > Hi All, > > > > I didn't get any response for my previous q

Re: Is it possible to invoke multiple services in a single transaction?

2009-07-12 Thread Chinmoy Chakraborty
Hi All, I didn't get any response for my previous query so I am sending again. Could you please tell me, "Is it possible to invoke multiple services in a single transaction?". How I can do this? Any idea?? Chinmoy On Thu, Jul 9, 2009 at 12:27 PM, Chinmoy Chakraborty wrote: &

Is it possible to invoke multiple services in a single transaction?

2009-07-08 Thread Chinmoy Chakraborty
Hi, I want invoke autenticate service by passing username and password in SOAP header and in the SOAP body I want to add multiple services. In short in a single SOAP i want to invoke multiple services along with authentication by sending username and password in the SOAP header. How I can do that

is there any Cloud computing project?

2009-07-02 Thread Chinmoy Chakraborty
Hi, Is there any 'cloud computing' project going on in apache? Please tell me some good resources to learn 'cloud computing'. Chinmoy

Re: Error while uploading File using DataHandler

2009-06-25 Thread Chinmoy Chakraborty
Andreas, I noticed the content-type info is preserved for SwA but MTOM does not preserve the info you mentioned. I guess the file can be sent as an attachment? Whats your opinion on this? Chinmoy On Thu, Jun 25, 2009 at 2:28 PM, Chinmoy Chakraborty wrote: > Could you share your code-snip

Re: Error while uploading File using DataHandler

2009-06-25 Thread Chinmoy Chakraborty
Could you share your code-snippet? Chinmoy On Thu, Jun 25, 2009 at 12:45 PM, Moritz Maedler wrote: > Good morning, > > the Problem is, that i need to get the content-type from the > DataHandler-Object, as > the method should be an image-upload that should support various > image-types > like g

Re: Error while uploading File using DataHandler

2009-06-24 Thread Chinmoy Chakraborty
You can try setting the content-type in the service class and getting the same in the client side using SwA. Enabling MTOM and SwA means MTOM is getting preference over SwA. Chinmoy On Wed, Jun 24, 2009 at 11:18 PM, Moritz Mädler wrote: > Ok, i found the bug: just forgot to set one argument - da

Re: Problem serializing array of complex types

2009-06-23 Thread Chinmoy Chakraborty
Are you using Object array and putting your custom objects there? I tried with custom object array and it worked. e.g Suppose you have objects of class A. Just use A[] and it will work. Chinmoy On Wed, Jun 24, 2009 at 1:04 AM, Besecker, Kyle wrote: > I created a web-service and it works great

Re: Attaching XML to response

2009-06-10 Thread Chinmoy Chakraborty
You can try MTOM attachment strategy and attach your xml in the server side before it returns to the client...to do that you need to enable MTOM..in the server side create a datahandler form file-datasource and return it... DataHandler dh = new DataHandler(new FileDataSource(String path)); HTH, C

Re: [IDE:deployment error]

2009-06-09 Thread Chinmoy Chakraborty
I realised you are trying to deploy your service programatically...if so, try to deploy in the directory format...don't make aar just provide the directory path where your class and sercices.xml files are present..it should work.. Chinmoy On Tue, Jun 9, 2009 at 11:31 AM, Vaibhav Arya wrote: >

Re: How to increase heap space for axis2server?

2009-06-06 Thread Chinmoy Chakraborty
Hi, I guess you can try increasing the heap-size of your server (e.g tomcat..) on which axis2 is running. Chinmoy On Sat, Jun 6, 2009 at 11:17 AM, Jun Dai wrote: > Hi All, > > I'm using axis2server v1.4.1 and I got a soap fault "Java Heap Space" which > seemed increasing java heap size. > How

Re: Problem with SOAP Serialization of non-ASCII characters

2009-05-27 Thread Chinmoy Chakraborty
Hi, It can be characterset issue. Try to figure out, what data is being saved in both application? are you sure that in app A and app B you are trying to save same non-ascii characters? if you are reading the inputstream before creating the SOAP, please use a characterset to read the inputstream (

Re: Axis 2.0 support for Restful services

2009-05-27 Thread Chinmoy Chakraborty
try this: http://ws.apache.org/axis2/0_94/rest-ws.html Chinmoy On Thu, May 28, 2009 at 3:39 AM, Suchitha Koneru (sukoneru) < sukon...@cisco.com> wrote: > Hello all , > Does Axis 2.0 support JAX-RS and JSR 331 ? Could you please > provide information in regard to the support provid

Re: what is the best way to generate java code when the wsdl is changed?

2009-05-26 Thread Chinmoy Chakraborty
Just an idea!! may be there is a better idea but you can try this if it suits in your case: create a batch file. execute the necessary commands sequentially: . delete the java source files already exits - run the command to create the java sources from wsdl just run the batch file everytime

Re: Problem with MTOM

2009-05-21 Thread Chinmoy Chakraborty
Hi, Just curious..is there anything to do with 'FILE_SIZE_THRESHOLD'? Chinmoy On Thu, May 21, 2009 at 3:01 PM, Massimiliano Ziccardi < massimiliano.zicca...@gmail.com> wrote: > TO Andreas: I tried with the latest snapshot, but even after replacing both > axis and axiom, I always get: > > The ty

Re: from axis1 to axis2

2009-05-18 Thread Chinmoy Chakraborty
You can try this: http://ws.apache.org/axis2/1_2/migration.html Chinmoy On Mon, May 18, 2009 at 2:41 PM, maalej wrote: > Hi All, > > I am newby to AXIS web service development. > > Can you please let me know how to change the handler's code application and > upgrade it from *axis1*.3 to *axis2*

Re: Webservice designing considerations

2009-05-18 Thread Chinmoy Chakraborty
Tom, I am thinking of considering MVC design pattern for your app. Chinmoy On Mon, May 18, 2009 at 2:19 PM, J. Hondius wrote: > > We are doing something like that. > > The complete backend > > Multiple frontends > > Not 100 classes yet, but we will end up with that number. > Our approach was t

Re: [web service client]

2009-05-13 Thread Chinmoy Chakraborty
You can try following url: http://ws.apache.org/axis2/1_4_1/userguide-buildingservices.html#createscratch You can try following code to call your service: Options options = new Options(); Object[] invokedArgs = new Object[0]; Class[] returnType = new Class[]{Boolean

Re: Receiving swa attachments

2009-05-13 Thread Chinmoy Chakraborty
Hi Matthias, You need to set 'enableSwA' property to true in client and server side in order to work with SwA. I am assuming that you have done this. I tried with Axis2 1.4 and it works fine. You can try following code sample while receving the SwA attachment in the client side: ...

Re: Axis2: Returning an Object as AnyType - get error

2009-05-11 Thread Chinmoy Chakraborty
Hello, I had the same problem when I tried to migrate Axis 1.4 to Axis2 1.4. Only difference was in my case I was returning Object array (Object[] which was 2D array, array of arrays). The developers said it works but it didn't work for me. the solution was to use ComplexTypeArray. If you want to

Re: DataHandler.getName() always returns 'MyByteArrayDataSource' if the ds is ByteArrayDataSource

2009-03-30 Thread Chinmoy Chakraborty
and SAAJ jars. Chinmoy On Sat, Mar 28, 2009 at 4:56 PM, Andreas Veithen wrote: > What is the exact version of Axis2 that you are using? > > Andreas > > On Fri, Mar 27, 2009 at 13:43, Chinmoy Chakraborty > wrote: > > Andreas, > > > > Thanks for the expla

Re: DataHandler.getName() always returns 'MyByteArrayDataSource' if the ds is ByteArrayDataSource

2009-03-27 Thread Chinmoy Chakraborty
ypes. I guess that if the people who developed the MTOM specs had > decided not to use MIME, they would not have introduced the concept of > content types. > > Andreas > > On Thu, Mar 26, 2009 at 14:13, Chinmoy Chakraborty > wrote: > > Andreas, > > > > Thanks for y

Re: DataHandler.getName() always returns 'MyByteArrayDataSource' if the ds is ByteArrayDataSource

2009-03-26 Thread Chinmoy Chakraborty
get a .doc or other file type? Chinmoy On Wed, Mar 25, 2009 at 1:29 PM, Chinmoy Chakraborty wrote: > Hi All, > > I noticed DataHandler.getName() always returns 'MyByteArrayDataSource' if > the data source is ByteArrayDataSource from which the DataHan

"Content id is null" for MTOM attachment

2009-03-25 Thread Chinmoy Chakraborty
Hi, I am returning a .doc file as an MTOM attachment for a service. When I do OMElement ele = retVal.getFirstElement(); OMText binaryNode = (OMText) ele.getFirstOMChild(); DataHandler dh = (DataHandler)binaryNode.getDataHandler(); it gives error "content id is null"..

DataHandler.getName() always returns 'MyByteArrayDataSource' if the ds is ByteArrayDataSource

2009-03-25 Thread Chinmoy Chakraborty
Hi All, I noticed DataHandler.getName() always returns 'MyByteArrayDataSource' if the data source is ByteArrayDataSource from which the DataHandler has been created. Please look at the code below: FileItem file = (FileItem) value; ByteArrayDataSource bads = new ByteArrayDataSource(file.getInputSt

Re: Does Axis2-1.5-beta-2 resolves JIRA AXIS2-4189?

2009-01-30 Thread Chinmoy Chakraborty
es in the release. > > Andreas > > On Wed, Jan 14, 2009 at 06:24, Chinmoy Chakraborty > wrote: > > Hi All, > > > > I have downloaded 1.5 beta-2 from this link > > http://people.apache.org/~gdaniels/axis2/dist/1.5-beta-2/. I noticed > this > > build d

Does Axis2-1.5-beta-2 resolves JIRA AXIS2-4189?

2009-01-13 Thread Chinmoy Chakraborty
Hi All, I have downloaded 1.5 beta-2 from this link http://people.apache.org/~gdaniels/axis2/dist/1.5-beta-2/. I noticed this build does not address JIRA AXIS2-4189/AXIS2-3777. Is there any possibility that AXIS2-4189 will be addressed in the final release of 1.5? Chinmoy

Re: getTextContent() and setTextContent(String arg0) are not implemented in org.apache.axiom.om.impl.dom.NodeImpl

2009-01-07 Thread Chinmoy Chakraborty
day. > > Andreas > > On Wed, Jan 7, 2009 at 11:09, Chinmoy Chakraborty > wrote: > > Hello, > > > > I found that org.apache.axiom.om.impl.dom.NodeImpl#getTextContent() and > > org.apache.axiom.om.impl.dom.NodeImpl#setTextContent(String arg0) these > >

getTextContent() and setTextContent(String arg0) are not implemented in org.apache.axiom.om.impl.dom.NodeImpl

2009-01-07 Thread Chinmoy Chakraborty
Hello, I found that org.apache.axiom.om.impl.dom.NodeImpl#getTextContent() and org.apache.axiom.om.impl.dom.NodeImpl#setTextContent(String arg0) these methods rae not implemented yet. Could you please tell me when these methods will be implemented? May be I can try the SNAPSHOT jars? Chinmoy

Re: Error getting attachments from SOAPMessage

2009-01-01 Thread Chinmoy Chakraborty
ere a particular reason > for this? > > Andreas > > On Wed, Dec 31, 2008 at 14:59, Chinmoy Chakraborty > wrote: > > Hi Andreas, > > > > I walked through the code (org.apache.axis2.saaj.SOAPMessageImpl) and > fixed > > the attachment issue. I have added so

Re: Error getting attachments from SOAPMessage

2008-12-23 Thread Chinmoy Chakraborty
; enough with the code to be able to fix this myself. > > Maybe somebody else can help here? > > Andreas > > On Thu, Dec 18, 2008 at 13:05, Chinmoy Chakraborty > wrote: > > Andreas, > > > > Please find attached attachment.xml which I am using as inputstream to &g

Developers need to confirm -- SOAPMessage with attachment from InputStream does not implemented

2008-12-22 Thread Chinmoy Chakraborty
Hi All, I am having an problem while trying to create SOAPMessage with attachment from InputStream. My content-type is, contentType = multipart/related; boundary=MIMEBoundaryurn_uuid_1BA988C6ECD59BA27B1229936876924; type="text/xml"; start="<0.urn:uuid:1ba988c6ecd59ba27b1229936876...@apache.or

Issue with creating SOAPMessage with attachment from inputstream

2008-12-19 Thread Chinmoy Chakraborty
Hi All, Andreas replied in one my mail to axis forum ( http://www.nabble.com/Error-getting-attachments-from-SOAPMessage-td21052450.html) and said, he walked through the axis2-saaj code and indeed when creating a message from an input stream using MessageFactory, axis2-saaj doesn't even request the

Re: Error getting attachments from SOAPMessage

2008-12-18 Thread Chinmoy Chakraborty
nding the soap " + e, e); } finally { // if (out == null) out.close(); } Chinmoy On Thu, Dec 18, 2008 at 5:21 PM, Andreas Veithen wrote: > Chinmoy, > > Can you also attach a sample message that you try to read with this code? > > Andreas > > On Thu, Dec

Re: Error getting attachments from SOAPMessage

2008-12-17 Thread Chinmoy Chakraborty
ndreas Veithen wrote: > Chinmoy, > > Can you post the code that demonstrates the problem? > > Andreas > > On Wed, Dec 17, 2008 at 13:40, Chinmoy Chakraborty > wrote: > > Hi All, > > > > I am creating SOAPMessage from inputstream. The inputstream

Error getting attachments from SOAPMessage

2008-12-17 Thread Chinmoy Chakraborty
Hi All, I am creating SOAPMessage from inputstream. The inputstream is SOAP with attachments. But the attachmentParts becomes zero in the newly created SOAPMessage though the content type is "multipart/related". Why it is not created attachments when I am creating SOAP from inputstream (with atta

Error creating SOAP with attachment from inputstream

2008-12-16 Thread Chinmoy Chakraborty
Hi All, I am getting following exception while creating SOAP with attachment from inputstream. org.apache.axiom.om.OMException: Part content ID cannot be blank for non root MIME parts My content-type is, contentType = multipart/related; boundary=MIMEBoundaryurn_uuid_6FD2F9D57FDEDE63A7122932135

What will be content-type for multipart SOAP message?

2008-12-15 Thread Chinmoy Chakraborty
Hello, I am getting an error when I am trying to create SOAP message fro input stream. The error is following: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog This is my code: String contentType = "multipart/related; \r\n\tboundary=" + "MIMEBou

MTOM issue when MTOM_THRESHOLD property is set

2008-12-05 Thread Chinmoy Chakraborty
Hi All, I am facing a problem regarding MTOM. If I do not set MTOM_THRESHOLD property, everything works fine (MTOM stuffs) for small text file (2 kb) but little bigger file (around 35kb .doc) file gets truncated. If I do set MTOM_THRESHOLD property, entire file content appears in SOAP node. I gue

MTOM SOAP message issue

2008-12-04 Thread Chinmoy Chakraborty
Hi All, I am facing a problem with MTOM. If I do not set Constants.Configuration.MTOM_THRESHOLD property MIME message, does not include whole file content and it does not finish MIME boundary. It chops off file content. But I can see 'cid' part. If I set Constants.Configuration.MTOM_THRESHOLD pro

Re: SOAPMessage with attachment problem

2008-12-04 Thread Chinmoy Chakraborty
t-repository/org/apache/ws/commons/axiom/ > [2] http://retrotranslator.sourceforge.net/ > > On Tue, Dec 2, 2008 at 06:34, Chinmoy Chakraborty <[EMAIL PROTECTED]> > wrote: > > Andreas, > > > > I have downloaded the axis2-saaj-SNAPSHOT.jar from the [2] l

Re: SOAPMessage with attachment problem

2008-12-01 Thread Chinmoy Chakraborty
apache.org/repos/asf/webservices/axis2/trunk/java/ > [2] > http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-saaj/SNAPSHOT/ > > > On Mon, Dec 1, 2008 at 12:48, Chinmoy Chakraborty <[EMAIL PROTECTED]> > wrote: > > Hi Andreas, > > > > T

  1   2   >