6.94 SDO_NET.POST_XML
構文
SDO_NET.POST_XML( url IN VARCHAR2, request IN XMLTYPE ) RETURN XMLTYPE;
説明
XMLリクエストをURLに送信し、XMLレスポンスを戻します。
使用上のノート
ネットワーク・データ・モデルに対するXML APIの詳細は、「ネットワーク・データ・モデルのXMLインタフェース」を参照してください。
例
次の例では、XMLリクエストを指定してURLに送信し、XMLレスポンスを戻して表示します。
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; /
親トピック: SDO_NETパッケージ・サブプログラム