CXF编组错误

时间:2016-01-12 03:22:56

标签: cxf

我收到“编组错误:类tavant.twms.integration.layer.component.hsmComponent.HSMAddressResponse,其任何超类都不为此上下文所知”。我也添加了注释,但仍未解决。下面是我的文件,

cxf-servlet.xml
<bean id="integrationServiceImpl" class="tavant.twms.integration.layer.IntegrationServiceImpl"/>
<jaxws:endpoint id="integrationService" implementor="#integrationServiceImpl" address="/IntegrationService">
        <jaxws:dataBinding>
            <bean class="org.apache.cxf.jaxb.JAXBDataBinding"/>
        </jaxws:dataBinding>
    </jaxws:endpoint>

@webmethod
public Object fetchHSMAddressDetails(String addressxml){
        securityHelper.populateIntegrationUser();
        HSMAddressRequestDocumentDTO requestDTO = null;
        HSMAddressRequest request = null;

        try {
            requestDTO = HSMAddressRequestDocumentDTO.Factory.parse((String) addressxml);
        } catch (XmlException e) {
            throw new RuntimeException(e);
        }

        if(requestDTO == null)
            return null;

        request = requestDTO.getHSMAddressRequest();
        return hsmAddressFetch.fetchMelissaData(request);/* return type is HSMAddressResponse*/
    }

0 个答案:

没有答案