congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
javax.xml.ws
Code IndexAdd Tabnine to your IDE (free)

How to use javax.xml.ws

Best Java code snippets using javax.xml.ws (Showing top 20 results out of 2,898)

origin: spring-projects/spring-framework

/**
 * Stops all published endpoints, taking the web services offline.
 */
@Override
public void destroy() {
  for (Endpoint endpoint : this.publishedEndpoints) {
    endpoint.stop();
  }
}
origin: spring-projects/spring-framework

/**
 * Create the actual Endpoint instance.
 * @param bean the service object to wrap
 * @return the Endpoint instance
 * @see Endpoint#create(Object)
 * @see Endpoint#create(String, Object)
 */
protected Endpoint createEndpoint(Object bean) {
  return (this.endpointFeatures != null ?
      Endpoint.create(this.bindingType, bean, this.endpointFeatures) :
      Endpoint.create(this.bindingType, bean));
}
origin: spring-projects/spring-framework

@Override
protected void publishEndpoint(Endpoint endpoint, WebServiceProvider annotation) {
  endpoint.publish(buildHttpContext(endpoint, annotation.serviceName()));
}
origin: citerus/dddsample-core

/**
 * 
 * @return
 *     returns HandlingReportService
 */
@WebEndpoint(name = "HandlingReportServicePort")
public HandlingReportService getHandlingReportServicePort() {
  return (HandlingReportService)super.getPort(new QName("http://ws.handling.interfaces.dddsample.citerus.se/", "HandlingReportServicePort"), HandlingReportService.class);
}
origin: spring-projects/spring-framework

/**
 * Obtain the port stub from the given JAX-WS Service.
 * @param service the Service object to obtain the port from
 * @param portQName the name of the desired port, if specified
 * @return the corresponding port object as returned from
 * {@code Service.getPort(...)}
 */
protected Object getPortStub(Service service, @Nullable QName portQName) {
  if (this.portFeatures != null) {
    return (portQName != null ? service.getPort(portQName, getServiceInterface(), this.portFeatures) :
        service.getPort(getServiceInterface(), this.portFeatures));
  }
  else {
    return (portQName != null ? service.getPort(portQName, getServiceInterface()) :
        service.getPort(getServiceInterface()));
  }
}
origin: spring-projects/spring-framework

@WebServiceClient(targetNamespace = "http://jaxws.remoting.springframework.org/", name="OrderService")
public static class OrderServiceService extends Service {
  public OrderServiceService() throws MalformedURLException {
    super(new URL("http://localhost:9999/OrderService?wsdl"),
        new QName("http://jaxws.remoting.springframework.org/", "OrderService"));
  }
  public OrderServiceService(URL wsdlDocumentLocation, QName serviceName) {
    super(wsdlDocumentLocation, serviceName);
  }
}
origin: stackoverflow.com

 service = getWebServicePort(getWSDLLocation());
BindingProvider bindingProvider = (BindingProvider) service; 
bindingProvider.getRequestContext().put("com.sun.xml.internal.ws.transport.https.client.SSLSocketFactory", getCustomSocketFactory());
origin: spring-projects/spring-framework

/**
 * @author Juergen Hoeller
 */
@WebFault
@SuppressWarnings("serial")
public class OrderNotFoundException extends Exception {

  private String faultInfo;

  public OrderNotFoundException(String message) {
    super(message);
  }

  public OrderNotFoundException(String message, String faultInfo) {
    super(message);
    this.faultInfo = faultInfo;
  }

  public String getFaultInfo() {
    return this.faultInfo;
  }

}

origin: spring-projects/spring-framework

@Override
protected void publishEndpoint(Endpoint endpoint, WebService annotation) {
  endpoint.publish(buildHttpContext(endpoint, annotation.serviceName()));
}
origin: spring-projects/spring-framework

  @WebServiceRef(value = OrderServiceService.class, wsdlLocation = "http://localhost:9999/OrderService?wsdl")
  public void setMyService(OrderService myService) {
    this.myService = myService;
  }
}
origin: citerus/dddsample-core

/**
 * 
 * @param features
 *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
 * @return
 *     returns HandlingReportService
 */
@WebEndpoint(name = "HandlingReportServicePort")
public HandlingReportService getHandlingReportServicePort(WebServiceFeature... features) {
  return (HandlingReportService)super.getPort(new QName("http://ws.handling.interfaces.dddsample.citerus.se/", "HandlingReportServicePort"), HandlingReportService.class, features);
}
origin: stackoverflow.com

 MyWebServicesSoap port = service.getMyWebServicesSoap12();
BindingProvider provider = (BindingProvider) port;
provider.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpoint);
origin: spring-projects/spring-framework

@Override
protected void publishEndpoint(Endpoint endpoint, WebServiceProvider annotation) {
  endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName()));
}
origin: spring-projects/spring-framework

@Override
protected void publishEndpoint(Endpoint endpoint, WebService annotation) {
  endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName()));
}
origin: org.springframework/spring-web

/**
 * Stops all published endpoints, taking the web services offline.
 */
@Override
public void destroy() {
  for (Endpoint endpoint : this.publishedEndpoints) {
    endpoint.stop();
  }
}
origin: org.springframework/spring-web

/**
 * Create the actual Endpoint instance.
 * @param bean the service object to wrap
 * @return the Endpoint instance
 * @see Endpoint#create(Object)
 * @see Endpoint#create(String, Object)
 */
protected Endpoint createEndpoint(Object bean) {
  return (this.endpointFeatures != null ?
      Endpoint.create(this.bindingType, bean, this.endpointFeatures) :
      Endpoint.create(this.bindingType, bean));
}
origin: spring-projects/spring-framework

public static class ServiceAccessor {
  @WebServiceRef
  public OrderService orderService;
  public OrderService myService;
  @WebServiceRef(value = OrderServiceService.class, wsdlLocation = "http://localhost:9999/OrderService?wsdl")
  public void setMyService(OrderService myService) {
    this.myService = myService;
  }
}
origin: stackoverflow.com

 HelloService service = new HelloService();
Hello port = service.getHelloPort();
BindingProvider bindingProvider = (BindingProvider) port;
bindingProvider.getRequestContext().put(
   BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
   "http://foo:8086/HelloWhatever");
String response = port.sayHello(name);
origin: org.springframework/spring-web

@Override
protected void publishEndpoint(Endpoint endpoint, WebServiceProvider annotation) {
  endpoint.publish(calculateEndpointAddress(endpoint, annotation.serviceName()));
}
origin: org.springframework/spring-web

@Override
protected void publishEndpoint(Endpoint endpoint, WebServiceProvider annotation) {
  endpoint.publish(buildHttpContext(endpoint, annotation.serviceName()));
}
javax.xml.ws

Most used classes

  • Service
    Service objects provide the client view of a Web service.Service acts as a factory of the following:
  • WebServiceClient
  • WebEndpoint
  • RequestWrapper
  • ResponseWrapper
  • BindingProvider,
  • WebServiceException,
  • Endpoint,
  • SOAPMessageContext,
  • WebServiceContext,
  • MessageContext,
  • SOAPFaultException,
  • Binding,
  • Holder,
  • WebServiceRef,
  • WebServiceProvider,
  • BindingType,
  • Action,
  • ServiceMode
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now