Hi everybody,
I'm a newbie in Axis and hope this question wasn't posted already - at
least I didn't find it in the archives.
My problem is that axis redefines the VO-Objects which should be
delivered through the service everytime I run the Webservice-generation.
Why is Axis doing this? The VOs are properly defined - as far as I
understand, it's not necessary to redefine all the VOs.
I'm generating the webservice-classes an WSDL like this:
<java classname="org.apache.axis.wsdl.Java2WSDL" fork="true"
classpathref="axis.classpath" failonerror="true">
<arg line="-o WebContent/wsdl/ModuleWS.wsdl" />
<arg line="-l http://localhost:8080/modulverwaltung/services/ModuleWS"
/>
<arg line="-n urn:ModuleWS" />
<arg line="modulverwaltung.service.ModuleWSImpl" />
</java>
<java classname="org.apache.axis.wsdl.WSDL2Java" fork="true"
classpathref="axis.classpath">
<arg line="-s WebContent/wsdl/ModuleWS.wsdl" />
<arg line="-o src" />
<arg line="-p modulverwaltung.service.ws" />
</java>
Example of an VO to be delivered:
package modulverwaltung.service.beans;
import modulverwaltung.beans.Lecturer_2;
public class LecturerVO {
private Integer id;
private String firstName;
private String lastName;
public LecturerVO() {
}
public LecturerVO(Lecturer_2 lecturer) {
this.id = lecturer.getId();
this.firstName = lecturer.getFirstName();
this.lastName = lecturer.getLastName();
}
//...Getters/Setters
}
Here is what Axis makes of it:
package modulverwaltung.service.ws;
public class LecturerVO implements java.io.Serializable {
private java.lang.String firstName;
private java.lang.Integer id;
private java.lang.String lastName;
public LecturerVO() {
}
public LecturerVO(java.lang.String firstName, java.lang.Integer id,
java.lang.String lastName) {
this.firstName = firstName;
this.id = id;
this.lastName = lastName;
}
// Getters/Setters...
}
Would be happy if someone can help me about this.
Regards,
Abid Hussain
--
Abid Hussain
Mail: [EMAIL PROTECTED]
Web: http://www.abid76.de
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]