Hi Wolfram,

It's ok to change the stub as long as you know what you are doing. Looks
like you have to access the call object to access the connection pool.
In the stub there is a method named "createCall(...) ". You can manually
change the code inside the - createCall method to create a call object
that you desire.

Regards,
Dimuthu.



> -----Original Message-----
> From: Wolfram Ditzer [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 10, 2003 11:17 PM
> To: [EMAIL PROTECTED]
> Subject: RE: WSDL2Java Stub and Call objects
>
> Hello,
>
> my WSDL file does not contain a <service> ... </service> part. So I
> don�t get a MayAppServiceLocator.java which I can use to create
> an object which implements the MyApp interface.
>
> I can�t change the wsdl file, and I don�t want to recompile may client
> when location of service changes. I decided to use the Stub class
> directly. So I do following:
>
>  Service service = new Service();
>  MyAppStub myApp = new MyAppStub(url, service);
>  myApp.setPortName(serviceName);
>
> myApp.foo(...)
>
> This runs!
>
> But the MayAppStub provides only little access to internal used Call
> objects. I�m affraid that I must access them, because I want
>
> 1) to change the transport mechanism, it should use a connection pool
>
> By Wolfram



Reply via email to