|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.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.
| 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 |
|---|
private Map operations
private String port
private String service
private String targetNamespace
private String wsdl
| Constructor Detail |
|---|
WebService()
| Method Detail |
|---|
public void addOperation(WebService.Operation op)
public final WebService.Operation getOperation(String name)
public final int getOperationCount()
public final WebService.Operation[] getOperations()
public final String getPort()
public final String getService()
public final String getTargetNamespace()
public final String getWsdl()
public void setPort(String port)
public void setService(String service)
public void setTargetNamespace(String ns)
public void setWsdl(String wsdl)
Groovy Documentation