2012-12-10 37 views

回答

1

是否定义在[servlet的名称]除外XSD文件-servlet.xml后缀

这样的 -

<sws:dynamic-wsdl id="user" portTypeName="User" 
     locationUri="/userService/" targetNamespace="http://test.nl/wsdls/userservice/2011/04"> 
     <sws:xsd location="classpath:/exception.xsd" /> 
     <sws:xsd location="classpath:/base.xsd" /> 
     <sws:xsd location="classpath:/user.xsd" /> 
     <sws:xsd location="classpath:/userservice.xsd" /> 
    </sws:dynamic-wsdl> 

您看到异常XSD是那里的标签。所以你必须定义它。

看看这个tutorial

看看在上面的链接在主题XSD的第一部分的链接。

问候

Anshul凯塔

相关问题