Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring CXF Webservice不会为所有类生成复杂类型_Spring_Soap_Cxf - Fatal编程技术网

Spring CXF Webservice不会为所有类生成复杂类型

Spring CXF Webservice不会为所有类生成复杂类型,spring,soap,cxf,Spring,Soap,Cxf,我已经使用运行在Tomcat7上的Eclipse构建了一个CXF+SpringWeb服务。web服务可以工作,只是它不会从我的一个类创建复杂类型 我的Eclipse项目称为:“ws-server”。在构建路径中,我添加了API-A、API-A-Impl和API-B 构建路径是正确的。所有库都在按应有的方式部署。创建了wsdl,但API-B中没有复杂的类型(API-B中只有一个类,页面) 在wsdl中,页面类的定义与其他复杂类型类似 <xs:complexType name="getAllM

我已经使用运行在Tomcat7上的Eclipse构建了一个CXF+SpringWeb服务。web服务可以工作,只是它不会从我的一个类创建复杂类型

我的Eclipse项目称为:“ws-server”。在构建路径中,我添加了API-A、API-A-Impl和API-B

构建路径是正确的。所有库都在按应有的方式部署。创建了wsdl,但API-B中没有复杂的类型(API-B中只有一个类,页面)

在wsdl中,页面类的定义与其他复杂类型类似

<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>

我不知道从哪里开始找。感觉CXF有些东西。我认为Eclipse项目配置没有任何问题。web服务中没有“page”参数的所有其他方法都有效

解决方案

CXF不会从没有无参数构造函数的java对象生成复杂类型。

解决方案

CXF不会从没有无参数构造函数的java对象生成复杂类型