Groovy Documentation

org.jdesktop.ws
[Java] Class WebService

java.lang.Object
  org.jdesktop.beans.AbstractBean
      org.jdesktop.ws.WebService

public class WebService
extends org.jdesktop.beans.AbstractBean

Represents a SOAP web service client. This client is useful for working with SOAP at a lower level, simply packaging the XML body and sending it, and receiving another XML body. No implicit or explicit binding occurs.

This class relies on the availability of the WSDL file. The wsdl property must be set prior to executing an operation. When an operation is executed, the WSDL is parsed and values for port, service, and targetNamespace are determined from the WSDL file if not explicitly specified on the WebService. In practice many WSDL files have only one service and port, so there is little to be gained by specifying them manually since they may be inferred. In the case of a WSDL with multiple ports / services, if not declared, then the first service in the file is used.

Authors:
Richard


Nested Class Summary
static class WebService.Operation

Represents an operation that can be performed

 
Field Summary
private Map operations

A map of all the operations that are supported by this webservice.

private String port

The WebService port to use.

private String service

The service description within the WSDL file to use with this WebService instance.

private String targetNamespace

The namespace to use with the requests

private String wsdl

The URL for the WSDL file to use.

 
Constructor Summary
WebService()

 
Method Summary
void addOperation(WebService.Operation op)

WebService.Operation getOperation(String name)

int getOperationCount()

WebService.Operation[] getOperations()

String getPort()

String getService()

String getTargetNamespace()

String getWsdl()

void setPort(String port)

void setService(String service)

void setTargetNamespace(String ns)

void setWsdl(String wsdl)

 
Methods inherited from class org.jdesktop.beans.AbstractBean
org.jdesktop.beans.AbstractBean#clone(), org.jdesktop.beans.AbstractBean#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#addPropertyChangeListener(java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#removePropertyChangeListener(java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener), org.jdesktop.beans.AbstractBean#getPropertyChangeListeners(java.lang.String), org.jdesktop.beans.AbstractBean#getPropertyChangeListeners(), org.jdesktop.beans.AbstractBean#addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#addVetoableChangeListener(java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#removeVetoableChangeListener(java.beans.VetoableChangeListener), org.jdesktop.beans.AbstractBean#getVetoableChangeListeners(java.lang.String), org.jdesktop.beans.AbstractBean#getVetoableChangeListeners(), org.jdesktop.beans.AbstractBean#wait(), org.jdesktop.beans.AbstractBean#wait(long), org.jdesktop.beans.AbstractBean#wait(long, int), org.jdesktop.beans.AbstractBean#equals(java.lang.Object), org.jdesktop.beans.AbstractBean#toString(), org.jdesktop.beans.AbstractBean#hashCode(), org.jdesktop.beans.AbstractBean#getClass(), org.jdesktop.beans.AbstractBean#notify(), org.jdesktop.beans.AbstractBean#notifyAll()
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

operations

private Map operations
A map of all the operations that are supported by this webservice. These could be inferred...


port

private String port
The WebService port to use. This is not the same as a TCP/IP port. See the WSDL spec for details.


service

private String service
The service description within the WSDL file to use with this WebService instance.


targetNamespace

private String targetNamespace
The namespace to use with the requests


wsdl

private String wsdl
The URL for the WSDL file to use.


 
Constructor Detail

WebService

WebService()


 
Method Detail

addOperation

public void addOperation(WebService.Operation op)


getOperation

public final WebService.Operation getOperation(String name)


getOperationCount

public final int getOperationCount()


getOperations

public final WebService.Operation[] getOperations()


getPort

public final String getPort()


getService

public final String getService()


getTargetNamespace

public final String getTargetNamespace()


getWsdl

public final String getWsdl()


setPort

public void setPort(String port)


setService

public void setService(String service)


setTargetNamespace

public void setTargetNamespace(String ns)


setWsdl

public void setWsdl(String wsdl)


 

Groovy Documentation