I have a wsdl that I am generating classes from using wsimport.
I have a need for some of the classes to implement an interface that is defined in another framework.
I was told by a Java developer that this was possible using a wsimport option. I assume that option is -b.
Could not find documentation on how to create a binding file to do what I need. All examples show how to change the packagename.
Below is an example of what I need
Example WSDL
<xsd:complexType name="GetAandBRequest">
<xsd:sequence>
<xsd:element name="A" type="xsd:int" />
<xsd:element name="B" type="xsd:int" />
</xsd:sequence>
</xsd:complexType>
WSImport generates
public class GetAandBRequest {
protected int a;
protected int b;
public int getA() {
return a;
}
public void setA(int value) {
this.a = value;
}
public int getB() {
return storeNum;
}
public void setB(int value) {
this.b = value;
}
}
What I need from wsimport is:
public class GetAandBRequest implements IMessage {
protected int a;
protected int b;
public int getA() {
return a;
}
public void setA(int value) {
this.a = value;
}
public int getB() {
return storeNum;
}
public void setB(int value) {
this.b = value;
}
}
Notice the implements IMessage.
Is this possible with wsimport? If not possible how do you get around something like this. There are many messages. I don't want to have to manually add an implements IMessage everytime I need to regenerate the wsdl and schemas.
Much thanks in advance...