6.94 SDO_NET.POST_XML
Format
SDO_NET.POST_XML( url IN VARCHAR2, request IN XMLTYPE ) RETURN XMLTYPE;
Description
Sends an XML request to a URL, and returns the XML response.
Usage Notes
For information about the XML API to the Network Data Model, see Network Data Model XML Interface.
Examples
The following example specifies an XML request, and sends it to a URL and returns the XML response, which it then displays.
DECLARE xml_request varchar2(4000); ndmws_url varchar2(4000); xml_response xmltype; BEGIN xml_request := '<?xml version="1.0" ?> <networkAnalysisRequest xmlns="http://xmlns.oracle.com/spatial/network" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml"> <networkName>HILLSBOROUGH_NETWORK2</networkName> <shortestPath> <startPoint> <nodeID>1533</nodeID> </startPoint> <endPoint> <nodeID>10043</nodeID> </endPoint> <subPathRequestParameter> <cost> true </cost> <isFullPath> true </isFullPath> <startLinkIndex> true </startLinkIndex> <startPercentage> true </startPercentage> <endLinkIndex> true </endLinkIndex> <endPercentage> true </endPercentage> <pathRequestParameter> <cost> true </cost> <isSimple> true </isSimple> <startNodeID>true</startNodeID> <endNodeID>true</endNodeID> <noOfLinks>true</noOfLinks> <linksRequestParameter> <onlyLinkID>true</onlyLinkID> </linksRequestParameter> <nodesRequestParameter> <onlyNodeID>true</onlyNodeID> </nodesRequestParameter> </pathRequestParameter> </subPathRequestParameter> </shortestPath> </networkAnalysisRequest>'; ndmws_url := 'http://localhost:7001/SpatialWS-SpatialWS-context-root/SpatialWSXmlServlet'; xml_response := sdo_net.POST_XML(ndmws_url, XMLTYPE(xml_request)); dbms_output.put_line(xml_response.getStringVal()); END; /
Parent topic: SDO_NET Package Subprograms