|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WSResource
A WSResource is a web service available to the current session.
The Session web service provides a list to Web Services available to the user, for example
BICatalog and ReportEngine. When a user logs in, an array of WSResource is accessible in the SessionInfo
object.
Use the URL stored in the WSResource object to initialize instances of the named web service.
Example:List the web services available to the user.
String endPointURL = "http://localhost:8080/dswsbobje/services/Session";
com.businessobjects.dsws.Connection con = new Connection(new URL(endPointURL));
Session objSession = new Session(con);
EnterpriseCredential ec = EnterpriseCredential.Factory.newInstance();
ec.setLogin("Administrator");
ec.setPassword("");
ec.setAuthType("secEnterprise");
SessionInfo sessionInfo = objSession.login(ec);
WSResource[] objWSResources = sessionInfo.getWSResourceList();
for(int i=0; i< objWSResources.length; i++)
{
WSResource objWSResource = objWSResources[i];
String strWSResourceDesc = objWSResource.getDescription();
String strWSResourceURL = objWSResource.getURL();
out.print(strWSResourceDesc);
out.print(strWSResourceURL);
}
com.businessobjects.dsws.session.SessionInfo
| Nested Class Summary | |
|---|---|
static class |
WSResource.Factory
A class with methods for creating instances of the WSResource type. |
| Field Summary | |
|---|---|
static org.apache.xmlbeans.SchemaType |
type
Internal Use Only. |
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Returns a description of this web service. |
java.lang.String |
getURL()
Returns the URL necessary to access the web service. |
java.lang.String |
getWSType()
Returns the web service type. |
boolean |
isNilDescription()
Checks if the Description element is nil. |
boolean |
isSetDescription()
Checks if the Description element has been set. |
void |
setDescription(java.lang.String description)
Sets a description of this web service. |
void |
setNilDescription()
Nils the Description element. |
void |
setURL(java.lang.String url)
Set the URL necessary to access the web service. |
void |
setWSType(java.lang.String wsType)
Sets the web service type. |
void |
unsetDescription()
Deletes or unsets the Description element. |
org.apache.xmlbeans.XmlString |
xgetDescription()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetURL()
Internal Use Only. |
org.apache.xmlbeans.XmlString |
xgetWSType()
Internal Use Only. |
void |
xsetDescription(org.apache.xmlbeans.XmlString description)
Internal Use Only. |
void |
xsetURL(org.apache.xmlbeans.XmlString url)
Internal Use Only. |
void |
xsetWSType(org.apache.xmlbeans.XmlString wsType)
Internal Use Only. |
| Field Detail |
|---|
static final org.apache.xmlbeans.SchemaType type
| Method Detail |
|---|
java.lang.String getDescription()
String containing the web service description.org.apache.xmlbeans.XmlString xgetDescription()
boolean isNilDescription()
Description element is nil.
true if the Description element has been set to nil,otherwise false.boolean isSetDescription()
Description element has been set.
true if the Description element has been set,otherwise false.void setDescription(java.lang.String description)
description - a string containing the web service description.void xsetDescription(org.apache.xmlbeans.XmlString description)
void setNilDescription()
void unsetDescription()
java.lang.String getURL()
String containing the web service URL.org.apache.xmlbeans.XmlString xgetURL()
void setURL(java.lang.String url)
url - a string containing the web service URL.void xsetURL(org.apache.xmlbeans.XmlString url)
java.lang.String getWSType()
String containing the web service type.org.apache.xmlbeans.XmlString xgetWSType()
void setWSType(java.lang.String wsType)
wsType - a string containing the web service type.void xsetWSType(org.apache.xmlbeans.XmlString wsType)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||