camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Bryan <n...@unit3d.tv>
Subject spring-ws component 2.15.2
Date Thu, 14 May 2015 14:34:34 GMT
Hi,
Trying to use spring-ws as a web service client and set up the following very simple route
based on the component doc

public void configure() {

    String dataRequest = "<ns1:GetWeather xmlns:ns1='http://www.webservicex.com'>" +
            "  <ns1:CityName>London</ns1:CityName>" +
            "  <ns1:CountryName>England</ns1:CountryName>" +
            "</ns1:GetWeather>";

    ProducerTemplate template = getContext().createProducerTemplate();

    from("direct:example")
            .to("spring-ws:http://www.webservicex.com/globalweather.asmx");

    template.requestBody("direct:example", dataRequest);
}

When I run it I'm getting the error -  No consumers available on endpoint: Endpoint[direct://example]

Any pointers as to what I'm doing wrong?
Thanks
Nick

Mime
View raw message