Question about Mock test 4 question 37
Posted: Tue Jul 28, 2015 4:59 pm
We are creating a dispatch client against the following Web Service implementation. The Web Service's endpoint is published at the address "http://localhost:9999/math". Assume that the namespace string is correctly escaped in the client code. What is the correct client code?
package ws.math;
@WebService public interface MathTableService { public SimpleMathTable getTable(Integer number);
}
package ws.math; @WebService (endpointInterface = "MathTableService") public class MathTableImpl { public SimpleMathTable getTable(Integer number) { return new SimpleMathTable(number); } }
How come we use the dispatcher for Jax ws webservice . We use Invoke method at client side but at service side we do not have any Invoke method as it do not implement provide interface. So it confuse me how it will call the getTable method through Dispatcher.
package ws.math;
@WebService public interface MathTableService { public SimpleMathTable getTable(Integer number);
}
package ws.math; @WebService (endpointInterface = "MathTableService") public class MathTableImpl { public SimpleMathTable getTable(Integer number) { return new SimpleMathTable(number); } }
How come we use the dispatcher for Jax ws webservice . We use Invoke method at client side but at service side we do not have any Invoke method as it do not implement provide interface. So it confuse me how it will call the getTable method through Dispatcher.