Java Reference
In-Depth Information
annotationWsdlLocation=null
wsdlLocationOverride=null
mtomEnabled=false
Developing a web service consumer
The web service consumer of the TicketWebService class will be coded using the
standard Java SE classes. We want to show here how to use these standard APIs. For this
reason, you can just add a class named TicketWebServiceTestApplication to
your current or a separate project in the package
com.packtpub.wflydevelopment.chapter7.webservice :
package com.packtpub.wflydevelopment.chapter7.webservice;
import
com.packtpub.wflydevelopment.chapter7.boundary.SeatDto;
import
com.packtpub.wflydevelopment.chapter7.boundary.TicketWebService;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Collection;
import java.util.List;
import java.util.logging.Logger;
public class TicketWebServiceTestApplication {
private static final Logger logger =
Logger.getLogger(TicketWebServiceTestApplication.class.getName());
public static void main(String[] args) throws
MalformedURLException {
final int seatId = 1;
logger.info("TEST SOAP WS Service");
final URL wsdlURL = new URL("http://localhost:8080/
ticket-agency-ws/TicketWebService?wsdl");
final QName SERVICE_NAME = new
Search WWH ::




Custom Search