Help for this page

Select Code to Download


  1. or download this
    ]#!/usr/bin/perl 
    
    ...
    => ($header, $body) 
    ); 
    print $Response->result();
    
  2. or download this
    SOAP::Transport::HTTP::Client::send_receive: POST https://10.0.111.1:8
    +080/FortiAnalyserWS HTTP/1.1 
    Accept: text/xml 
    ...
    
    <?xml version="1.0" encoding="UTF-8"?> 
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/env
    +elope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xm
    +lns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http:/
    +/www.w3.org/2001/XMLSchema" xmlns:ns1="http://localhost:8080/FortiAna
    +lyzerWS.wsdl" xmlns:ns2="urn:FortiAnalyzerWS"><SOAP-ENV:Body><SOAP-EN
    +V:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring xsi:type="
    +xsd:string">Fatal error</faultstring><faultactor xsi:type="xsd:string
    +"/><detail/><SOAP-ENV:Code/><SOAP-ENV:Reason/><SOAP-ENV:Node/><SOAP-E
    +NV:Role/><SOAP-ENV:Detail/></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-EN
    +V:Envelope>
    
  3. or download this
    type="xsd:string"/><element name="service" minOccurs="0" type="xsd:str
    +ing"/><element name="status" minOccurs="0" type="xsd:string"/><elemen
    +t name="hostname" minOccurs="0" type="xsd:string"/><element name="url
    +" minOccurs="0" type="xsd:string"/><element name="from" minOccurs="0"
    + type="xsd:string"/><element name="to" minOccurs="0" type="xsd:string
    +"/><element name="rulename" minOccurs="0" type="xsd:string"/><element
    + name="action" minOccurs="0" type="xsd:string"/><element name="msg" m
    +inOccurs="0" type="xsd:string"/><element name="NonDefFields" minOccur
    +s="0" maxOccurs="unbounded" type="ns:LogFields"/><!-- any new fields 
    +not defined yet, In XML format string --></sequence></complexType><co
    +mplexType name="AppCtrlLogsType"><sequence><element name="itime" minO
    +ccurs="0" type="xsd:int"/><element name="date" minOccurs="0" type="xs
    +d:date"/><element name="time" minOccurs="0" type="xsd:time"/><element
    + name="device_id" minOccurs="0" type="xsd:string"/><element name="clu
    +ster_id" minOccurs="0" type="xsd:string"/><element name="devname" min
    +Occurs="0" type="xsd:string"/><element name="log_id" minOccurs="0" ty
    +pe="xsd:string"/><element name="type" minOccurs="0" type="xsd:string"
    +/><element name="subtype" minOccurs="0" type="xsd:string"/><element n
    +ame="pri" minOccurs="0" type="xsd:string"/><element name="vd" minOccu
    +rs="0" type="xsd:string"/><element name="policyid" minOccurs="0" type
    +="xsd:string"/><element name="user" minOccurs="0" type="xsd:string"/>
    +<element name="group" minOccurs="0" type="xsd:string"/><element name=
    +"src" minOccurs="0" type="xsd:string"/><element name="src_port" minOc
    +curs="0" type="xsd:int"/><element name="src_int" minOccurs="0" type="
    +xsd:string"/><element name="dst" minOccurs="0" type="xsd:string"/><el
    +ement name="dst_port" minOccurs="0" type="xsd:int"/><element name="ds
    +t_int" minOccurs="0" type="xsd:string"/><element name="service" minOc
    +curs="0" type="xsd:string"/><element name="status" minOccurs="0" type
    +="xsd:string"/><element name="from" minOccurs="0" type="xsd:string"/>
    +<element name="to" minOccurs="0" type="xsd:string"/><element name="ac
    +tion" minOccurs="0" type="xsd:string"/><element name="msg" minOccurs=
    +"0" type="xsd:string"/><element name="app" minOccurs="0" type="xsd:st
    +ring"/><element name="app_type" minOccurs="0" type="xsd:string"/><ele
    +ment name="app_list" minOccurs="0" type="xsd:string"/><element name="
    +reason" minOccurs="0" type="xsd:string"/><element name="kind" minOccu
    +rs="0" type="xsd:string"/><element name="carrier_ep" minOccurs="0" ty
    +pe="xsd:string"/><element name="content" minOccurs="0" type="xsd:stri
    +ng"/><element name="count" minOccurs="0" type="xsd:int"/><element nam
    +e="dir" minOccurs="0" type="xsd:string"/><element name="dst_name" min
    +Occurs="0" type="xsd:string"/><element name="src_name" minOccurs="0" 
    +type="xsd:string"/><element name="duration" minOccurs="0" type="xsd:i
    +nt"/><element name="filename" minOccurs="0" type="xsd:string"/><eleme
    +nt name="filesize" minOccurs="0" type="xsd:int"/><element name="fwver
    +" minOccurs="0" type="xsd:string"/><element name="message" minOccurs=
    +"0" type="xsd:string"/><element name="phone" minOccurs="0" type="xsd:
    +string"/><element name="profile" minOccurs="0" type="xsd:string"/><el
    +ement name="req" minOccurs="0" type="xsd:string"/><element name="NonD
    +efFields" minOccurs="0" maxOccurs="unbounded" type="ns:LogFields"/><!
    +-- any new fields not defined yet, In XML format string --></sequence
    +></complexType><complexType name="NetScanLogsType"><sequence><element
    + name="itime" minOccurs="0" type="xsd:int"/><element name="date" minO
    +ccurs="0" type="xsd:date"/><element name="time" minOccurs="0" type="x
    +sd:time"/><element name="device_id" minOccurs="0" type="xsd:string"/>
    +<element name="cluster_id" minOccurs="0" type="xsd:string"/><element 
    +name="devname" minOccurs="0" type="xsd:string"/><element name="log_id
    +" minOccurs="0" type="xsd:string"/><element name="type" minOccurs="0"
    + type="xsd:string"/><element name="subtype" minOccurs="0" type="xsd:s
    +tring"/><element name="pri" minOccurs="0" type="xsd:string"/><element
    + name="vd" minOccurs="0" type="xsd:string"/><element name="ip" minOcc
    +urs="0" type="xsd:string"/><element name="action" minOccurs="0" type=
    +"xsd:string"/><element name="service" minOccurs="0" type="xsd:string"
    +/><element name="proto" minOccurs="0" type="xsd:string"/><element nam
    +e="severity" minOccurs="0" type="xsd:string"/><element name="os" minO
    +ccurs="0" type="xsd:string"/><element name="os_family" minOccurs="0" 
    +type="xsd:string"/><element name="os_gen" minOccurs="0" type="xsd:str
    +ing"/><element name="os_vendor" minOccurs="0" type="xsd:string"/><ele
    +ment name="port" minOccurs="0" type="xsd:int"/><element name="vuln" m
    +inOccurs="0" type="xsd:string"/><element name="vuln_cat" minOccurs="0
    +" type="xsd:string"/><element name="vuln_id" minOccurs="0" type="xsd:
    +string"/><element name="start" minOccurs="0" type="xsd:int"/><element
    + name="end" minOccurs="0" type="xsd:int"/><element name="engine" minO
    +ccurs="0" type="xsd:string"/><element name="plugin" minOccurs="0" typ
    +e="xsd:string"/><element name="asset" minOccurs="0" type="xsd:string"
    +/><element name="NonDefFields" minOccurs="0" maxOccurs="unbounded" ty
    +pe="ns:LogFields"/><!-- any new fields not defined yet, In XML format
    + string --></sequence></complexType><!-- System Status --><complexTyp
    +e name="FortiAnalyzerSystemStatusResults"><annotation><documentation>
                The System Status
    ...
             </documentation></annotation><all><element name="Configuratio
    +ns" type="xsd:string"/></all></complexType><complexType name="FortiSe
    +tConfigurationsResults"><annotation><documentation>
                Set configurations in CLI syntax
             </documentation></annotation><all minOccurs="0"><element name
    +="Status" type="ns:SuccessFailed"/><element name="CLIError" type="xsd
    +:string"/><element name="ErrorLineNumber" type="xsd:int"/></all></com
    +plexType></schema></types><message name="FortiRequest"><part name="re
    +q" element="ns:FortiRequestEl"/></message><message name="FortiRespons
    +e"><part name="res" element="ns:FortiResponseEl"/></message><portType
    + name="FortiAnalyzerWSPortType"><operation name="FortiRequest"><docum
    +entation>Service definition of function ns__FortiRequest</documentati
    +on><input message="tns:FortiRequest"/><output message="tns:FortiRespo
    +nse"/></operation></portType><binding name="FortiAnalyzerWS" type="tn
    +s:FortiAnalyzerWSPortType"><SOAP:binding style="document" transport="
    +http://schemas.xmlsoap.org/soap/http"/><operation name="FortiRequest"
    +><SOAP:operation soapAction=""/><input><SOAP:body use="literal"/></in
    +put><output><SOAP:body use="literal"/></output></operation></binding>
    +<service name="FortiAnalyzerWS"><documentation>gSOAP 2.7.7 generated 
    +service definition</documentation><port name="FortiAnalyzerWS" bindin
    +g="tns:FortiAnalyzerWS"><SOAP:address location="https://localhost:808
    +0/FortiAnalyzerWS"/></port></service></definitions>