Using SOAP

From Apache OpenOffice Wiki
Jump to: navigation, search

On https://udk.openoffice.org/java/examples/wsproxy/component_description.html there is a component available how to use SOAP within OpenOffice

Basic Macro

REM  *****  BASIC  *****
 
Sub Main
'Getting the UNO service
proxyFac = createUNOService("com.sun.star.webservices.proxy.ProxyFactory")
 
' Initializing of the ProxyFactory by providing the WSDL:
'proxyFac.initialize(Array("http://api.google.com/GoogleSearch.wsdl "))
'proxyFac.initialize(Array("https://eis.services.openoffice.org/soap/servlet/rpcrouter"))
proxyFac.initialize(Array("http://alaska:9090/EIS2/EIS.wsdl"))
 
'Getting the proxy for the Web service by providing the
'serviceNamespace, serviceName, portNamespace and the portName respectively.
'All parameters, except the namespaces which is the targetNamespace of the WSDL,
'are specified in the service description part of the WSDL.
'proxy = proxyFac.getProxy("urn:xxxGoogleSearch", "GoogleSearchService", "urn:GoogleSearch", "GoogleSearchPort")
proxy = proxyFac.getProxy("urn:ChildWorkspaceDataService", "EISService","urn:ChildWorkspaceDataService", "EISPort")
 
id = proxy.getChildWorkspaceId("SRC680", "ause040")
rem propertySet = proxy.
pint id
 
End Sub
Personal tools