spring-projects / spring-ws

Spring Web Services
https://spring.io/projects/spring-ws
Apache License 2.0
319 stars 311 forks source link

Generify marshalling WebServiceTemplate operations [SWS-623] #734

Open gregturn opened 14 years ago

gregturn commented 14 years ago

Lukas Krecan opened SWS-623 and commented

It would be sometimes useful to have generic access to marshalling operations of WebService template. In some cases it would spare us of manual type casting. Something like

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"marshalling-test-config.xml"})
public class MarshallingWebServiceOperationsTest {
    @Autowired
    private MarshallingWebServiceOperations<Integer, String> webServiceTemplate;

    @Test
    public void testInjected() throws IOException
    {
        assertNotNull(webServiceTemplate);
        String result = webServiceTemplate.marshalSendAndReceive(1);
    }
}

In fact I am not sure if it's going to be useful. If not, it would be at least nice to split WebServiceOperations interface.


Affects: 2.0 M2

Attachments:

gregturn commented 14 years ago

Lukas Krecan commented

Patch that implements the feature