axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Possible bug on Client Stubs and LocalSender
Date Thu, 06 May 2004 14:17:04 GMT

I am trying to use the axis generated client stubs and work with a local
transport. I do not want to modify the stubs because the same stubs will
potentially be used as http and MQ stubs also. But the way I need to set up
Local Transport on the Call object makes it difficult.

LocalTransport needs to be initialized with and AxisServer pointing to my
wsdd file to work correctly. But the default implementation of it just does
new AxisServer() without a parameter. And if I don't set the transport on
the Call object I will get a NoService axis fault.

When Call.invoke(..) is called it clears the messageContext with the call
object and also when setTargetEndpointAddress(URL) is called it registers
the default LocalTransport with the service using
service.registerTransportForURL(address, transport);

I don't mind calling registerTransportForURL on the service(impl class is
ServiceLocator) but this method is package protected.

Is there a way to setup the localTransport with the correct AxisServer on
the call object without using Call.setTransport(..) before the invoke.
I could do it on service.registerTransportForURL(address, transport) method
but this method is package protected and I cannot access it from my code.
Is this a bug?

Any help appreciated.

Thank you
Hemanth Setty

The information contained in this communication is confidential, private,
proprietary, or otherwise privileged and is intended only for the use of the
addressee.  Unauthorized use, disclosure, distribution or copying is strictly
prohibited and may be unlawful.  If you have received this communication in
error, please notify the sender immediately at (312)653-6000 in Illinois;
(972)766-6900 in Texas; or (800)835-8699 in New Mexico.

View raw message