Hi,

I'm trying to use the Java2Wsdl tool in Axis to generate a WSDL file for a 
service I have written in Apache SOAP. I need to have complex types in my 
WSDL since the SOAP service returns a user-defined class. This is the 
declaration of the class I have ...

public class HostInfo{

     String ip_address;
     int    port;
     String format;

     ....
     // And all the required get and set methods

}

With this the WSDL does not have any element entries for the complex type. 
But, if I change all the declarations in the class to public, all of them 
appear in the WSDL. Is it neccessary to have all the properties as public ? 
Or is there any option I can set so that Java2Wsdl can recognize private 
members also ?

Thanks,
Abhijit

Reply via email to