Answer the question
In order to leave comments, you need to log in
How to get rid of throwing an instance in SOAP UI?
While working with SOAP, I encountered the following problem. Spring-ws independently generates wsdl for me according to the available classes. everything was fine and peaceful, until the moment when the scheme needed to be expanded and implemented tokens and authorization. now Soap UI throws an Execution when trying to update the schema. through trial and error, the source of the troubles was found.
Soap ui crits after I add a String token to one of the requests, the request takes the following form.
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {})
@XmlRootElement(namespace = "http://www.kickidler.com/soap")
public class OrderFinishedRequest {
private String token;
private List<FinishedOrderEvent> orderList;
public List<FinishedOrderEvent> getOrderList() {
return orderList;
}
public void setOrderList(List<FinishedOrderEvent> orderList) {
this.orderList = orderList;
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
}
<xs:element name="orderFinishedRequest">
<xs:complexType>
<xs:all>
<xs:element form="qualified" minOccurs="0" name="token" type="xs:string"/>
<xs:element form="qualified" maxOccurs="unbounded" minOccurs="0" name="orderList" type="tns:finishedOrderEvent"/>
</xs:all>
</xs:complexType>
</xs:element>
Answer the question
In order to leave comments, you need to log in
found a way out - Soap UI does not like <xs:all>
it, and spring, in the absence of an explicitly specified propOrder, generates exactly <xs:all>
. by explicitly specifying the order <xs:all>
was replaced by sequence, after which the scheme was successfully eaten by SOAP ui
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question