Posts

Showing posts with the label jaxb2

Spring WS is generating empty SOAP Envelop

Spring WS is generating empty SOAP Envelop I want do call a SOAP service with Spring WS WebServiceTemplate. I have used this very often and it always worked so far. But now I just get an soap envelope with empty body: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body/></SOAP-ENV:Envelope> I have created the request and response classes with the JAXB Maven Plugin. And the generated source code looks exactly like the services which are working. Example: @XmlAccessorType(XmlAccessType.FIELD) @XmlType( name = "startRequest_RequestParameters", propOrder = {"url"} ) @XmlRootElement( name = "startRequest" ) public class StartRequest { @XmlElement( required = true ) @XmlSchemaType( name = "anyURI" ) protected String url; public StartRequest() { } public String getUrl() { return this.url; } public void setUrl(String valu...