All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.hsac.fitnesse.sample.GetWeatherFixture Maven / Gradle / Ivy

There is a newer version: 5.3.17
Show newest version
package nl.hsac.fitnesse.sample;

import nl.hsac.fitnesse.fixture.fit.SoapCallMapColumnFixture;
import nl.hsac.fitnesse.fixture.util.XmlHttpResponse;

public class GetWeatherFixture extends SoapCallMapColumnFixture {
    static {
        registerNs("wsX", "http://www.webserviceX.NET");
    }

    /**
     * Creates new.
     */
    public GetWeatherFixture() {
        super(XmlHttpResponse.class);
        setTemplateName("samplePost.ftl.xml");
    }

    @Override
    protected XmlHttpResponse callService() {
        return callServiceImpl("weatherUrl", "http://www.webserviceX.NET/GetWeather");
    }

    public String weatherResult() {
        String result = getRawResponse().getXPath("//wsX:GetWeatherResult/text()");
        return xmlAsHtml(result);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy