Wsdl11DestinationProvider extends AbstractCachingDestinationProvider { public void setWsdl(Resource wsdlResource) { Assert.notNull(wsdlResource, "'wsdl' must not be null"); Assert.isTrue(wsdlResource.exists(), wsdlResource + " does not exist"); this.wsdlResource = wsdlResource; } Wsdl11DestinationProvider(); void setWsdl(Resource wsdlResource); void setLocationExpression(String expression); static final String DEFAULT_WSDL_LOCATION_EXPRESSION; }
@Test public void testSimple() throws URISyntaxException { Resource wsdl = new ClassPathResource("simple.wsdl", getClass()); provider.setWsdl(wsdl); URI result = provider.getDestination(); Assert.assertEquals("Invalid URI returned", new URI("http: }
@Test public void testComplex() throws URISyntaxException { Resource wsdl = new ClassPathResource("complex.wsdl", getClass()); provider.setWsdl(wsdl); URI result = provider.getDestination(); Assert.assertEquals("Invalid URI returned", new URI("http: }