Difference between revisions of "Using SOAP"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 3: Line 3:
 
==Basic Macro==
 
==Basic Macro==
  
−
<pre>
+
<syntachighlight lang="oobas">>
 
REM  *****  BASIC  *****
 
REM  *****  BASIC  *****
  
Line 27: Line 27:
  
 
End Sub
 
End Sub
−
</pre>
+
</<syntachighlight>
 
[[Category:StarBasic]]
 
[[Category:StarBasic]]

Revision as of 16:31, 24 August 2022

on [1] there is a component available how to use SOAP within OpenOffice.org

Basic Macro

<syntachighlight lang="oobas">> 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 </<syntachighlight>

Personal tools