Difference between revisions of "Using SOAP"
From Apache OpenOffice Wiki
B michaelsen (talk | contribs) |
|||
| Line 28: | Line 28: | ||
End Sub | End Sub | ||
</pre> | </pre> | ||
| + | [[Category:StarBasic]] | ||
Revision as of 10:03, 28 March 2010
on [1] there is a component available how to use SOAP within OpenOffice.org
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