Difference between revisions of "Using SOAP"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
on [http://udk.openoffice.org/java/examples/wsproxy/component_description.html] there is a component available how to use SOAP within OpenOffice.org
+
On [https://udk.openoffice.org/java/examples/wsproxy/component_description.html https://udk.openoffice.org/java/examples/wsproxy/component_description.html] there is a component available how to use SOAP within OpenOffice
  
 
==Basic Macro==
 
==Basic Macro==
  
−
<pre>
+
<syntaxhighlight lang="oobas">
 
REM  *****  BASIC  *****
 
REM  *****  BASIC  *****
  
Line 27: Line 27:
  
 
End Sub
 
End Sub
−
</pre>
+
</syntaxhighlight>
 
[[Category:StarBasic]]
 
[[Category:StarBasic]]

Latest revision as of 16:33, 24 August 2022

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