Lets say that I have json text files (e.g. customer.json) that reside on a filesystem...
Is it possible to process that json file from a Restful method which implements @GET?
Would I need to upload the file using Java's File I/O inside the @GET method?
Meghana Reddy wrote:
baseUrl = com.order.process.gen.OrderService_Service.class.getResource(".");
//Here is where the CONNECT_TIMEOUT comes into picture
//since metro uses JDK's URLConnection class to obtain the WSDL.
//Since this is a generated class, we don't want to modify this and set a CONNECT_TIMEOUT here
url = new URL(baseUrl, "http://r8kmrzv:8080/orderweb/orderservice?wsdl");
Meghana Reddy wrote:
Are you sure? I think when the web service client sends requests , the "com.sun.xml.internal.ws.request.timeout" (which is the BindingProvider.REQUEST_TIMEOUT) setting controls this.
Meghana Reddy wrote:
public static void main(String a[]) {
orderService = new OrderProcess(); //Service sub-class is instantiated which immediately tries to connect to the WSDL URL.
// We don't have the opportunity to let the JAX-WS RI to use the connection timeout.
since the Service class which opens the java.net.URLConnection to fetch the WSDL from the remote host, had already done so?
What I want to do is set a connection time out when the Service class attempts to get the WSDL.
Meghana Reddy wrote:
Now my question is - what is the point of setting, CONNECT_TIMEOUT in the above code,