我是wsdl文件的新手。我不知道要解决此消息标签中的错误。
<?xml version = '1.0' encoding = 'UTF-8'?>
<definitions
name="ApplicationService"
targetNamespace="http://com/regulusgroup/t2/application/service/ApplicationService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://com/regulusgroup/t2/application/service/ApplicationService"
xmlns:app="http://com/regulusgroup/t2/ApplicationInfo">
<import namespace="http://com/regulusgroup/t2/ApplicationInfo" location="@config.protocol@@config.server@@config.port@@config.root@/xsd/Application.xsd" />
<message name="getSubAppsRequest">
<part name="getSubAppsRequest" element="app:getSubAppsRequest"/>
</message>
<message name="getSubAppsResponse">
<part name="return" element="app:getSubAppsResponse"/>
</message>
....
<binding name="ApplicationServiceBinding" type="tns:ApplicationServicePort">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
...
</binding>
<service name="ApplicationService">
<port name="ApplicationServicePort" binding="tns:ApplicationServiceBinding">
<soap:address location="@config.protocol@@config.server@@config.port@@config.root@/ApplicationService"/>
</port>
</service>
</definitions>
我得到“部分'getSubAppsRequest'具有为其元素定义的无效值'getSubAppsRequest'。元素声明必须引用架构中定义的有效值。”邮件标签中出现错误。
getSubAppsRequest是一个类
@XmlRootElement(name = "getSubAppsRequest")
public class GetSubAppsRequest {
}