@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;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
@XmlRootElement(name = "SOF_GetQRCodeBySysResponse", namespace = "http://webservice.qrcode.pki.jhsec.com.cn/")
|
||||
@XmlRootElement(name = "SOF_GetQRCodeBySysResponse")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
public class GetComplaintListExResponse {
|
||||
|
||||
@XmlElement(name = "return")
|
||||
private String result;
|
||||
@XmlAnyElement
|
||||
public List<Object> results;
|
||||
|
||||
public String getResult() {
|
||||
return result;
|
||||
|
||||
public List<Object> getResults() {
|
||||
return results;
|
||||
}
|
||||
|
||||
public void setResult(String result) {
|
||||
this.result = result;
|
||||
public void setResults(List<Object> results) {
|
||||
this.results = results;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue