|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.upv.dsic.gti_ia.organization.ServiceTools
public class ServiceTools
This class provides tools in order to facilitate the execution of the services.
| Nested Class Summary | |
|---|---|
class |
ServiceTools.OntologicalTypesConstants
Constants defining the ontological types of XMLSchema |
| Constructor Summary | |
|---|---|
ServiceTools()
|
|
| Method Summary | |
|---|---|
String |
buildServiceContent(String serviceName,
HashMap<String,String> inputs)
Builds a new string with a XML format. |
HashMap<String,Object> |
executeWebService(String serviceWSDLURL,
HashMap<String,String> inputs)
Executes the Web Service of the given WSDL URL with the provided inputs. |
HashMap<String,Object> |
executeWebService(String serviceWSDLURL,
String xmlInputs)
Executes the Web Service of the given WSDL URL with the provided inputs. |
String |
extractServiceContent(String xml,
HashMap<String,String> inOutputs)
Parses a XML in order to extract the service name and fill the HashMap with the service inputs or outputs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceTools()
| Method Detail |
|---|
public String buildServiceContent(String serviceName,
HashMap<String,String> inputs)
serviceName - The name of the serviceinputs - is a HashMap formed by keys and values
public String extractServiceContent(String xml,
HashMap<String,String> inOutputs)
HashMap with the service inputs or outputs
string - with a XML format, in this XML will be contained the service
name and service input or outputsinOutputs - is a new HashMap. In this HashMap the service
inputs or outputs are added
public HashMap<String,Object> executeWebService(String serviceWSDLURL,
String xmlInputs)
serviceWSDLURL - to executexmlInputs - inputs in a XML structure with name of the input and its value
ex. HashMap with the output results with name of the output
and its value
public HashMap<String,Object> executeWebService(String serviceWSDLURL,
HashMap<String,String> inputs)
serviceWSDLURL - to executeinputs - HashMap with name of the input and its value
HashMap with the output results with name of the output
and its value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||