RE: [Axis2] Question about Handlers

2005-07-27 Thread Shahi, Ashutosh

Yeah, Just got that working in the morning and evening someone asks the
same :)
-Ashu 
-Original Message-
From: Eran Chinthaka [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 28, 2005 6:55 PM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] Question about Handlers

Ashu,

I think this answers your earlier question on client side handlers, as
well.
Self actualization !!! ;) ;).



> 
> 
> Hi Suvanam,
> The way to do it is: use the call() constructor which takes the client
> repository as parameter and then call, call.engageModule(moduleName).
The
> client repository should contain the archive file(.mar) containing
module
> and handlers.
> 
> Thanks,
> Ashutosh
> 
> -Original Message-
> From: SUVANAN DUTTA [mailto:[EMAIL PROTECTED]
> Sent: Wed 7/27/2005 11:13 PM
> To:   axis-user@ws.apache.org
> Cc:
> Subject:   [Axis2] Question about Handlers
> Hi,
> I was looking at the AXIS2 samples and found out the
> LoggingModule sample which illustrates the way to
> write a custom handler. The samples tells me how to
> deploy the module on AXIS2.
> 
> Now, how do I point to and use the same Logging Module
> from client side?
> 
> Can someone pl. let me know.
> 
> Thanks,
> - Suvanan.
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> 






RE: [Axis2] Question about Handlers

2005-07-27 Thread Shahi, Ashutosh

Hi Suvanam,
The way to do it is: use the call() constructor which takes the client 
repository as parameter and then call, call.engageModule(moduleName). The 
client repository should contain the archive file(.mar) containing module and 
handlers.

Thanks,
Ashutosh

-Original Message-
From:   SUVANAN DUTTA [mailto:[EMAIL PROTECTED]
Sent:   Wed 7/27/2005 11:13 PM
To: axis-user@ws.apache.org
Cc: 
Subject: [Axis2] Question about Handlers
Hi,
I was looking at the AXIS2 samples and found out the
LoggingModule sample which illustrates the way to
write a custom handler. The samples tells me how to
deploy the module on AXIS2.

Now, how do I point to and use the same Logging Module
from client side?

Can someone pl. let me know.

Thanks,
- Suvanan.

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




<>

RE: Pre-configure web services in axis?

2005-07-25 Thread Shahi, Ashutosh








If what u mean is to preconfigure server-config.wsdd
before starting the server, it can be achieved through

Org.apache.axis.utils.Admin

 

Ashutosh



 







From: Guy Pardon
[mailto:[EMAIL PROTECTED] 
Sent: Monday, July 25, 2005 3:54
PM
To: axis-user@ws.apache.org
Subject: Pre-configure web
services in axis?



 



Hi, 



 



We would like to preconfigure axis with some of our web services (for
embedded distribution). 



 



More precisely: we don't want users to have to use the AdminClient (and
the deploy.wsdd files) to initialize our web services. 



 



Any ideas on how to do this? 





Many thanks! 



 



Kind regards, 





Guy 



 



Dr. Guy Pardon ( [EMAIL PROTECTED] ) 





Atomikos: The Transaction Processing
Company 





http://www.atomikos.com/ 



 



The information in this email is
confidential and only meant for the addressee(s). The content of this email is
informal and will not be legally binding for Atomikos. 










RE: communication between the Handler and the Service

2005-04-25 Thread Shahi, Ashutosh
Jeff,
 I haven't gone through the entire discussion, but the problem might
be linked to http://issues.apache.org/jira/browse/AXIS-1469
See if it helps.

Thanks,
Ashutosh

-Original Message-
From: Jeff Saremi [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 25, 2005 8:47 PM
To: axis-user@ws.apache.org
Subject: Re: communication between the Handler and the Service

It did not make any difference. or I don't how when
and  where to call it. I called saveChanges() after
the modifications to the body but the Service still
printed the old body xml.
jeff



 --- Jeff Saremi <[EMAIL PROTECTED]> wrote: 
> I think I used that one too. But let me give it
> another  try and get back to you.
> jeff
> 
> 
> 
> 
>  --- Jeff Greif <[EMAIL PROTECTED]> wrote:
> 
> > Have you noticed the method saveChanges on
> > SOAPMessage?
> > Jeff
> > 
> > Jeff Saremi wrote:
> > 
> > >So i played more with this and here's what i
> found
> > >out:
> > >- In the handler, the changes to the message,
> > envelope
> > >and body will all get saved and passed to the
> > Service
> > >afterwards
> > >- Any chnages to the nodes inside the body are
> > allowed
> > >to be made and displayed while in the handler but
> > >beyond that none of those changes make it!
> > >
> > >** some where in the handler **
> > >public void invoke(MessageContext context) {
> > >  ...
> > >  Node someNode =  
> > >body.getElementsByTagName("MyNodeName").item(0);   
> 
> > >someNode.appendChild(
> >
>
>body.getOwnerDocument().createTextNode("someTextForMyNode"));
> > >  // print the body now
> > >  // the oputput will include the new text node
> > > 
> >
> System.out.println(XMLUtils.ElementToString(body));
> > >
> > >  // out of desperation you can do the following
> > >  // which should not be needed
> > >  // but they won't help you with the new Node
> > >  // being added to the body and hence being
> passed
> > >  // to your Service down the chain
> > >  envelope.removeBody();
> > >  envelope.setBody(body);
> > >  Message newMessage = new Message(envelope);
> > >  messageContext.setRequestMessage(newMessage);
> > >
> > >}
> > >
> > >** some time later inside the Service  **
> > >public Element[] service(Element[] elements) {
> > >  for (int i = 0; i < elements.length; i++) { 
> > >// print the elements to your hearts content
> > >// you will not see any traces of the
> textnode
> > >// you added in your handler
> > >// all you see is the original elements 
> > >System.out.println(
> > >  XMLUtils.ElementToString(elements[i]));
> > >  }
> > >  return elements;
> > >}
> > >
> > >jeff
> > >
> > > --- Jeff Saremi <[EMAIL PROTECTED]> wrote: 
> > >  
> > >
> > >>I should have explained more about what i'm
> doing.
> > I
> > >>don't know where this processRequest() method
> is.
> > It
> > >>looks like there are two or more Handler
> concepts
> > >>within Axis. The Handler that i'm talking about
> > are
> > >>the ones you specify in the "requestFlow" or
> > >>"responseFlow" chains:
> > >>
> > >>  
> > >> value="MyService"
> > />
> > >> > value="service"
> > >>/>
> > >>
> > >>  
> > >> 
> > >>  
> > >>
> > >>Here's the method that MyHandler overrides. The
> > code
> > >>below is just to point out the problem -- this
> is
> > >>not
> > >>how i'm planning on writing my final code:
> > >>
> > >>public class WARPHandler extends BasicHandler {
> > >>public void invoke(MessageContext context)
> throws
> > >>AxisFault {
> > >>  try {
> > >>  Message message = context.getRequestMessage();
> > >>  SOAPEnvelope envelope =
> > message.getSOAPEnvelope();
> > >>  SOAPBody body = envelope.getBody();
> > >>  // do some modification to the elements in the
> > >>body
> > >>  // ...
> > >>  System.out.println(
> > >>"Is Body referenced? " + 
> > >>(body ==
> context.getMessage().getSOAPBody()));
> > >>  MyService.bodyElementInHandler =
> > >>body.getFirstChild();
> > >>  } catch (Exception e) {
> > >>e.printStackTrace();
> > >>AxisFault.makeFault(e);
> > >>  }
> > >>}
> > >>}
> > >>
> > >>And the Service gets the Body document or
> elements
> > >>or
> > >>the SOAPEnvelope after the Handler is done with
> > it:
> > >>
> > >>public class MyService {
> > >>  public static Object bodyElementInHandler;
> > >>  public Document service(Document bodyElement)
> {
> > >>// the bodyElement here has none of the
> > changes
> > >>// that were made to it in the Handler!
> > >>System.out.println(
> > >>  "bodies are not the same: " + 
> > >>  (bodyElementInHandler == bodyElement));
> > >>return bodyElement;
> > >>  }
> > >>}
> > >>
> > >>In the invoke() method of the Handler i tried to
> > >>show
> > >>that the Body that I got is not a copy of what
> is
> > in
> > >>the Message and ultimately in the
> MessageContext.
> > It
> > >>is just a refernce to it. Therefore
> modifications
> > to
> > >>this Body or its subelements need not be set
> again
> > >>in
> > >>the Message. However, regardless of it being a
> > copy
>

RE: ws-addressing support

2005-03-16 Thread Shahi, Ashutosh

Check http://ws.apache.org/ws-fx/addressing/ for the Apache implementation of 
ws-addressing.

Ashutosh

-Original Message-
From: Küst Heiko [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 16, 2005 2:11 PM
To: axis-user@ws.apache.org
Subject: ws-addressing support

hi,

i have a question about ws-addressing: does axis support it? if not, are
there other projects that implement ws-addressing?

thanks for your help

heiko



RE: Need help for java.lang.IncompatibleClassChangeError

2005-03-15 Thread Shahi, Ashutosh

I think there were some discussions on this previously ... and it was
occurring because of out of date saaj.jar being used by the application
server. Try adding the saaj.jar of Axis to your classpath and see if it
helps.

Ashutosh

-Original Message-
From: Jogesh Kanojia [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 15, 2005 5:36 PM
To: axis-user@ws.apache.org
Subject: Need help for java.lang.IncompatibleClassChangeError
Importance: Low

Hi 

I am using Sun One Application server 7.

I have webservice client build on Axis 1.2 RC2.

When I run my client from Java console ,its works fine , but when I use 
the same code in my Web application its throws
java.lang.IncompatibleClassChangeError.

I am not able to figure out the exact problem.

If any one knows the solutions , please let me know.

I have attached the details of exception in the mail.

Waiting for reply.
 

Regards, 
Jogesh Kanojia, 
Sr. Software Engineer. 
Patni Computer Systems Limited 
Mobile:- +91 9820275701 
Tel:+91-22-27611090 Ext.1117 



RE: Bug fix info

2005-03-09 Thread Shahi, Ashutosh








 



Check out:

http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10460

 

Ashutosh











From: MS
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005
3:55 PM
To: axis-user@ws.apache.org
Subject: Bug fix info



 



Hello group,





is there any link when i can find the list of bug fixes to axis across
various releases??





 





Thanks





Ms



Yahoo! India Matrimony: Find your life partner online.








RE: WSS4J for download in apache

2005-03-06 Thread Shahi, Ashutosh

http://ws.apache.org/ws-fx/wss4j/cvs-usage.html

You can get the latest source from the above cvs link and build it using
maven. I don't think WSS4J provides the binaries.

Ashutosh

-Original Message-
From: Krthekeyan Suriyanarayanan [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 12:05 PM
To: axis-user@ws.apache.org
Subject: WSS4J for download in apache 

HI all,
Could not find WSS4J  for download in apache . can any one give me the 
url for download.
thanks,
krthekeyan.s



RE: stub and skelton

2005-03-01 Thread Shahi, Ashutosh
Pavan,
The skeleton code is used at the server for delegating the work
to the actual java class. The stubs are used at the client end if u r
using static invocation, which I think you r not using, so u can do
without them at client.

Ashutosh

-Original Message-
From: Pavan Kumar Choukhada [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 02, 2005 9:59 AM
To: axis-user@ws.apache.org
Subject: stub and skelton

hi

where do axis use generated stub and skelton.
since we just send soap message and it call respective handler and
invoke method using reflection.

thanks

with regards
pavan



--
Netcore Solutions Pvt. Ltd.
Website:  http://www.netcore.co.in
Spamtraps: http://cleanmail.netcore.co.in/directory.html
--