@EnableSoapAPIClient
parent
ec2f2fa26d
commit
c799fe152b
@ -0,0 +1,14 @@
|
|||||||
|
package com.docus.soap.api;
|
||||||
|
|
||||||
|
import org.springframework.context.annotation.AdviceMode;
|
||||||
|
import org.springframework.context.annotation.Import;
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
@Target({ElementType.TYPE})
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
@Import(EnableSoapAPIClientSelector.class)
|
||||||
|
@Inherited
|
||||||
|
public @interface EnableSoapAPIClient {
|
||||||
|
AdviceMode mode() default AdviceMode.PROXY;
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
package com.docus.soap.api;
|
||||||
|
|
||||||
|
import org.springframework.context.annotation.AdviceMode;
|
||||||
|
import org.springframework.context.annotation.AdviceModeImportSelector;
|
||||||
|
|
||||||
|
public class EnableSoapAPIClientSelector extends AdviceModeImportSelector<EnableSoapAPIClient> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String[] selectImports(AdviceMode adviceMode) {
|
||||||
|
if (adviceMode != AdviceMode.PROXY)
|
||||||
|
throw new IllegalStateException("@EnableSoapAPIClient only support PROXY advice mode.");
|
||||||
|
return new String[]{SoapAPIConfig.class.getName()};
|
||||||
|
}
|
||||||
|
}
|
@ -1,22 +1,21 @@
|
|||||||
package com.docus.soap.api.response.complain;
|
package com.docus.soap.api.response.complain;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
import javax.xml.bind.annotation.*;
|
||||||
import javax.xml.bind.annotation.XmlAccessorType;
|
import java.util.List;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
@XmlRootElement(name = "SOF_GetQRCodeBySysResponse", namespace = "http://webservice.qrcode.pki.jhsec.com.cn/")
|
@XmlRootElement(name = "SOF_GetQRCodeBySysResponse")
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
public class GetComplaintListExResponse {
|
public class GetComplaintListExResponse {
|
||||||
|
|
||||||
@XmlElement(name = "return")
|
@XmlAnyElement
|
||||||
private String result;
|
public List<Object> results;
|
||||||
|
|
||||||
public String getResult() {
|
|
||||||
return result;
|
public List<Object> getResults() {
|
||||||
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setResult(String result) {
|
public void setResults(List<Object> results) {
|
||||||
this.result = result;
|
this.results = results;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue