The soap_wsdl_import() function is used to import operations and types definitions from an WSDL file on a remote server. The retrieved file will be parsed and PL (procedure language) wrappers will be generated for each SOAP operation that is described. The SOAP service will be represented by a PL module which will be the overall container the generated PL wrappers. Once the WSDL file has been imported the PL wrappers are autmatically generated and available for use.
soap_wsdl_import() returns an array that consists of the name of module, the name of PL wrapper, and a vector of parameter name/type pairs. An example of the result is: vector ([module name], [wrapper1], vector ([param1], [type1], [param2], [tyep2] ...), [wrapper2] vector (...))
SQL> soap_wsdl_import('http://[host:port]/chemistry.wsdl');
Done. -- 1286 msec.
SQL> select xml_tree_doc (Chemistry.getElementBySymbol('Ni'));
callret
VARCHAR
_______________________________________________________________________________
<getElementBySymbolResponse>
<return>
<atomicnumber>28</atomicnumber>
<symbol>Ni</symbol>
<name>Nickel</name>
<mass>58.69</mass>
<meltingPoint>1726.0</meltingPoint>
<boilingPoint>3005.0</boilingPoint>
<found>1751</found>
</return>
</getElementBySymbolResponse>
Note: the namespaces from response are ommited for better reading.