alibaba82
15 years agoSuper Contributor
Update wsdl definition via groovy
Hello,
I have the following code in my load script
def ifaceList = project.getInterfaceList()
for(int i = 0; i < project.getInterfaceCount() ; i++)
{
def iface = project.getInterfaceAt(i);
def url = iface.definition;
iface.updateDefinition( url, true);
}
I thought that this would update the WSDL definition in the interface by obtaining the latest wsdl. However, even after this code is executed, I have to manually do 'update definition' to see the new elements that were added to the WSDL.
What am I doing wrong in code above.
I have the following code in my load script
def ifaceList = project.getInterfaceList()
for(int i = 0; i < project.getInterfaceCount() ; i++)
{
def iface = project.getInterfaceAt(i);
def url = iface.definition;
iface.updateDefinition( url, true);
}
I thought that this would update the WSDL definition in the interface by obtaining the latest wsdl. However, even after this code is executed, I have to manually do 'update definition' to see the new elements that were added to the WSDL.
What am I doing wrong in code above.