2
我想使用groovy ws来调用web服务。生成的类的其中一个属性是它自己是一个枚举类型的类。尽管调试消息表明com.test.FinalActionType在运行时创建的时候WSDL读我不能像使用groovy ws与枚举类型?
proxy.create("com.test.FinalActionType")
创建使用代码它的实例当我尝试和一个字符串分配给我的课在FinalActionType groovy的实例中无法进行转换。我怎样才能得到这个类的实例在web服务调用中使用?我在下面粘贴了WSDL的重要部分。
<xsd:simpleType name="FinalActionType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="stop"/>
<xsd:enumeration value="quit"/>
<xsd:enumeration value="continue"/>
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>