我使用在Tomcat7上运行的Eclipse构建了一个CXF + Spring Web服务.Web服务工作,但它不会从我的一个类创建复杂类型.
我的Eclipse项目叫做:"ws-server".在构建路径中,我添加了API-A,API-A-Impl和API-B.
构建路径是正确的.所有库都按照应有的方式进行部署.wsdl已创建,但API-B中没有复杂类型(API-B中只有一个类,Page).
在wsdl中,Page类在其他复杂类型中定义如下.
<xs:complexType name="getAllMeasuremenetObjectsByPage">
<xs:sequence>
<xs:element minOccurs="0" name="page"/>
<xs:element minOccurs="0" name="orderBy" type="xs:string"/>
<xs:element minOccurs="0" name="orderDirection" type="tns:orderDirection"/>
</xs:sequence>
</xs:complexType>
Run Code Online (Sandbox Code Playgroud)
我不知道从哪里开始寻找.感觉CXF有什么东西.我认为Eclipse项目配置没有任何问题.Web服务中没有"page"参数的所有其他方法都有效.
| 归档时间: |
|
| 查看次数: |
1705 次 |
| 最近记录: |