|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smartgwt.client.core.JsObject
com.smartgwt.client.data.WebService
public class WebService
Field Summary |
---|
Fields inherited from class com.smartgwt.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
WebService(com.google.gwt.core.client.JavaScriptObject jsObj)
|
Method Summary | |
---|---|
void |
callOperation(java.lang.String operationName,
java.util.Map paramData,
java.lang.String resultType,
WebServiceCallback callback)
|
static WebService |
get(java.lang.String serviceNamespace)
Retrieve a WebService object by the targetNamespace declared on the |
DataSource |
getFetchDS(java.lang.String operationName,
java.lang.String resultType)
Retrieve a DataSource that provides read-only access to records returned by a web service operation. |
DataSource |
getFetchDS(java.lang.String operationName,
java.lang.String resultType,
OperationBinding operationBindingProperties)
Retrieve a DataSource that provides read-only access to records returned by a web service operation. |
DataSource |
getInputDS(java.lang.String operationName)
Get a DataSource representing the input message to a web service operation. |
DataSource |
getSchema(java.lang.String schemaName)
Get the schema definition of any complexType or element of complexType defined in any |
DataSource |
getSchema(java.lang.String schemaName,
java.lang.String schemaType)
Get the schema definition of any complexType or element of complexType defined in any |
void |
setLocation(java.lang.String url)
Set location can be used when the actual URL where a service will be accessible isn't known until runtime, or changes at runtime, hence can't be embedded in the service definition. |
void |
setLocation(java.lang.String url,
java.lang.String operation)
Set location can be used when the actual URL where a service will be accessible isn't known until runtime, or changes at runtime, hence can't be embedded in the service definition. |
Methods inherited from class com.smartgwt.client.core.JsObject |
---|
getJsObj, isCreated, setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebService(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
public void callOperation(java.lang.String operationName, java.util.Map paramData, java.lang.String resultType, WebServiceCallback callback)
public void setLocation(java.lang.String url)
url
- the URL where web service can be contactedpublic void setLocation(java.lang.String url, java.lang.String operation)
url
- the URL where web service can be contactedoperation
- optional operation name to set the location for, for debugging onlypublic DataSource getInputDS(java.lang.String operationName)
operationName
- name of the web service operation whose inputs the returned DataSource will represent
public DataSource getFetchDS(java.lang.String operationName, java.lang.String resultType)
operationName
- name of the web service operation to invoke to fetch recordsresultType
- tag or type name of the XML element to be returned as DataSource records
public DataSource getFetchDS(java.lang.String operationName, java.lang.String resultType, OperationBinding operationBindingProperties)
operationName
- name of the web service operation to invoke to fetch recordsresultType
- tag or type name of the XML element to be returned as DataSource recordsoperationBindingProperties
- additional properties for the operationType:"fetch" operationBinding which this method automatically creates.
This can be used to set properties such as OperationBinding.setUseFlatFields(Boolean)
or OperationBinding.setRecordXPath(String)
public DataSource getSchema(java.lang.String schemaName)
schemaName
- name of type or element
public DataSource getSchema(java.lang.String schemaName, java.lang.String schemaType)
schemaName
- name of type or elementschemaType
- optional type of schema to return, either "element" for xs:element definitions only or "type" for xs:complexType definitions.
If unspecified, either will be returned, with types preferred if names collide
public static WebService get(java.lang.String serviceNamespace)
serviceNamespace
- uri from the "targetNamespace" attribute of the
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |