axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordan Lee <jorda...@shaw.ca>
Subject Re: Writing SOAP messages to disk
Date Fri, 17 Mar 2006 20:50:33 GMT
Hi Robert,

Thanks for the response. You are correct on 1) and I have this working. You are correct on
2). But I think you may have an assumption as to the implementation of my client.

Or it may be that I'm not implementing the client in the correct way.

The code snippet that I provided, is the sole link between my application code and where it
calls another web service. The HTTPBindingStub is generated from the WSDL2Java, and it is
through this object that I bind to the target web service and call a method on it.

Jordan.

----- Original Message -----
From: robert <robertlazarski@gmail.com>
Date: Friday, March 17, 2006 12:16 pm
Subject: Re: Writing SOAP messages to disk

> Perhaps I misunderstand what you are trying to do. 
> 
> 1) You have a handler on the service side that gets the 
> SOAPMessage as a 
> Document and writes it to disk on the service side. 
> 
> 2) You want to do the same thing on the client side, with the out 
> going 
> message. 
> 
> What I recommended was to put another separate though similar 
> Handler on the 
> client side. Or to add to my first post call MessageContext in a 
> static way 
> from your client - the FAQ explains how. 
> 
> If that's wrong try to clarify and maybe I can help. 
> 
> Robert
> http://www.braziloutsource.com/
> 
> Em Sexta 17 Março 2006 17:02, o Jordan Lee escreveu:
> > Hi Robert,
> >
> > I'm not too sure what you mean by this. My 'client' does the 
> following:>
> > MyServiceSoapHTTPBindingStub binding = 
> (MyServiceSoapHTTPBindingStub) new
> > MyServiceServiceLocator() .getMyService("target web service url");
> >
> > binding.someMethod(axisMessage);
> >
> > i'm trying to get the underlying XML representation of the 
> 'axisMessage'> object.
> >
> > ----- Original Message -----
> > From: robert <robertlazarski@gmail.com>
> > Date: Friday, March 17, 2006 11:47 am
> > Subject: Re: Writing SOAP messages to disk
> >
> > > Have you considered a client side handler ? Same concept, but you
> > > use:
> > >
> > > Service.getHandlerRegistry().getHandlerChain(portQN)
> > >
> > > instead of WSDD to configure it.
> > >
> > > This would allow you to write the file on the client side, if I
> > > understand you
> > > right.
> > >
> > > HTH,
> > > Robert
> > > http://www.braziloutsource.com/
> > >
> > > Em Sexta 17 Março 2006 16:35, o Jordan Lee escreveu:
> > > > Hi all,
> > > >
> > > > I've figured out how to get my web service to write incoming
> > >
> > > SOAP xml to
> > >
> > > > disk (using the response\request flows of the wsdd and Handler
> > >
> > > classes).>
> > >
> > > > However - if I'm accessing an Axis web service as a client -
> > >
> > > creating a
> > >
> > > > binding, calling the method with a n Axis defined class as a
> > >
> > > parameter, etc
> > >
> > > > - how abouts would I write the outgoing XML to disk?
> > > >
> > > > thanks,
> > > > Jordan.
> > >
> > > --
> 
> -- 
> 

Mime
View raw message