我刚刚测试了soapUI的通信-一切正常:)
但是从Java代码来看,我有一个问题:
Java代码:
Service service = Service.create(new QName("XXX"));
IXService xxx = service.getPort(XXX.class);
例外:
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 24 counts of IllegalAnnotationExceptions
There's no ObjectFactory with an @XmlElementDecl for the element {http://tempuri.org/}request.
this problem is related to the following location:
at protected javax.xml.bind.JAXBElement org.tempuri.Authenticate.request
at org.tempuri.Authenticate
我认为这与wsdl /代码生成有关。
您有什么想法要改变这种实施方式吗?