hi, as u advice me, i wrote a client spring-ws
Code:
package client;
import java.io.IOException;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.ws.client.core.WebServiceTemplate;
public class WebServiceClient {
Resource resource = new ClassPathResource("/client/RechercheRequest.xml");
private final WebServiceTemplate webServiceTemplate = new WebServiceTemplate();
// StreamSource source = new StreamSource(resource.getInputStream());
// StreamResult result = new StreamResult(System.out);
public void simpleSendAndReceive() throws IOException {
StreamSource source = new StreamSource(resource.getInputStream());
StreamResult result = new StreamResult(System.out);
webServiceTemplate.sendSourceAndReceiveToResult("http://localhost:8080/spring-wsTest/rechercherLangueService/",source, result);
System.out.println(result.toString());
}
public static void main(String[] args) throws IOException {
WebServiceClient webServiceClient =new WebServiceClient();
webServiceClient.simpleSendAndReceive();
}
}
i think that's ok, i make some test in my endpoint with System.out.println() and i got the result, but the problem is that in the console, it doesn't display it.
Could u help me?