You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Wolfram Ditzer <di...@optel-informatik.de> on 2003/10/07 14:22:50 UTC

WSDL generated client: change Transport method

Hello,

I use classes created by WSDL2Java an d wsdl file.  My aim is to build a 
client for a web service.

  String serviceName = ...
  Url myAppUrl = ...

  Service service = new Service();
  MyAppServerStub myAppServer = new MyAppServerStub(myAppUrl, service);
  myAppServer.setPortName(serviceName);

  DataType1 dat1 ...
  DataType2 dat2 ...
  DataType3 dat3 ...
 
  dat3 = myAppServer.requestFoo(dat1, dat2)
   
This seems to run. But I still have some questions:

1) How to change the Transport classes. I have to use a connection pool, 
when createing and removing TCP connections.
     
     I could change with

       Call call = ... ????
       call.addTransportPackage(..)
       call.addTransportForProtocoll(..)

   But how to get the Call object?

2) What could I do with a client wsdd-file? I didn“t understand this?

Thank you in advance Wolfram