내가 가지고있는 다음과 같은 인터페이스 :CXF @XmlElement가 작동하지 (= TRUE 필수)
@WebMethod(action = "create")
VoidResponse create(
@WebParam(name="description") @XmlElement(required=true) String description,
@WebParam(name="userId") @XmlElement(required=true) String userId,
@WebParam(name="accountImage") String accountImage...);
이것은 생성 된 WSDL 복잡한 유형 :
<xs:complexType name="create">
<xs:sequence>
<xs:element name="description" type="xs:string"/>
<xs:element name="userId" type="xs:string"/>
<xs:element minOccurs="0" name="accountImage" type="xs:string"/>
</xs:sequence>
</xs:complexType>
우리가 볼 수 있듯이, 설명 및 userId는 필수 입력란입니다. 올바른 것 같지만 요청을하거나 설명 필드를 생략하거나 비어있는 등을 보내면 CXF는 soapFault를 throw하지 않습니다.
내가 뭘 잘못하고 있니?
@XmlElement에 대한 import 문을 추가 할 수 있습니까? 어쩌면 이것은 잘못된 것일 수 있습니다. – heaphach