<?xml version="1.0" encoding="ISO-8859-1"?>
<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://localhost/BUSINESS/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://localhost/BUSINESS/wsdl/">
<types>
<xsd:schema targetNamespace="http://localhost/BUSINESS/wsdl/"
>
 <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
 <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
 <xsd:complexType name="company">
  <xsd:all>
   <xsd:element name="type_company" type="xsd:string"/>
   <xsd:element name="age" type="xsd:string"/>
   <xsd:element name="nation" type="xsd:string"/>
  </xsd:all>
 </xsd:complexType>
 <xsd:complexType name="search_lead">
  <xsd:all>
   <xsd:element name="type_lead" type="xsd:string"/>
   <xsd:element name="age" type="xsd:string"/>
   <xsd:element name="number" type="xsd:int"/>
   <xsd:element name="nation" type="xsd:string"/>
   <xsd:element name="key" type="xsd:string"/>
  </xsd:all>
 </xsd:complexType>
 <xsd:complexType name="lead">
  <xsd:all>
   <xsd:element name="title" type="xsd:string"/>
   <xsd:element name="description" type="xsd:string"/>
  </xsd:all>
 </xsd:complexType>
 <xsd:complexType name="leads">
  <xsd:complexContent>
   <xsd:restriction base="SOAP-ENC:Array">
    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:lead[]"/>
   </xsd:restriction>
  </xsd:complexContent>
 </xsd:complexType>
 <xsd:complexType name="lead_data">
  <xsd:all>
   <xsd:element name="session" type="xsd:string"/>
   <xsd:element name="lead_id" type="xsd:int"/>
   <xsd:element name="azienda" type="xsd:string"/>
   <xsd:element name="type" type="xsd:string"/>
   <xsd:element name="title" type="xsd:string"/>
   <xsd:element name="details" type="xsd:string"/>
   <xsd:element name="expiry_date" type="xsd:string"/>
   <xsd:element name="person" type="xsd:string"/>
   <xsd:element name="tel" type="xsd:string"/>
   <xsd:element name="fax" type="xsd:string"/>
   <xsd:element name="email" type="xsd:string"/>
   <xsd:element name="address" type="xsd:string"/>
   <xsd:element name="country_code" type="xsd:string"/>
   <xsd:element name="website" type="xsd:string"/>
   <xsd:element name="catalog" type="xsd:string"/>
  </xsd:all>
 </xsd:complexType>
 <xsd:complexType name="leads_data">
  <xsd:complexContent>
   <xsd:restriction base="SOAP-ENC:Array">
    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:lead_data[]"/>
   </xsd:restriction>
  </xsd:complexContent>
 </xsd:complexType>
 <xsd:complexType name="login_struct">
  <xsd:all>
   <xsd:element name="user" type="xsd:string"/>
   <xsd:element name="pwd" type="xsd:string"/>
  </xsd:all>
 </xsd:complexType>
 <xsd:complexType name="info_company">
  <xsd:all>
   <xsd:element name="title" type="xsd:string"/>
   <xsd:element name="description" type="xsd:string"/>
  </xsd:all>
 </xsd:complexType>
 <xsd:complexType name="companies">
  <xsd:complexContent>
   <xsd:restriction base="SOAP-ENC:Array">
    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:info_company[]"/>
   </xsd:restriction>
  </xsd:complexContent>
 </xsd:complexType>
</xsd:schema>
</types>
<message name="getCompanyRequest">
  <part name="company" type="tns:company" /></message>
<message name="getCompanyResponse">
  <part name="return" type="tns:companies" /></message>
<message name="getLeadsRequest">
  <part name="search_lead" type="tns:search_lead" /></message>
<message name="getLeadsResponse">
  <part name="return" type="tns:leads" /></message>
<message name="getLeadsNewsRequest">
  <part name="search_lead" type="tns:search_lead" /></message>
<message name="getLeadsNewsResponse">
  <part name="return" type="tns:leads" /></message>
<message name="loginRequest">
  <part name="login_struct" type="tns:login_struct" /></message>
<message name="loginResponse">
  <part name="return" type="xsd:string" /></message>
<message name="postLeadRequest">
  <part name="lead_data" type="tns:lead_data" /></message>
<message name="postLeadResponse">
  <part name="return" type="xsd:boolean" /></message>
<portType name="businessradarwsdlPortType">
  <operation name="getCompany">
    <documentation>By using this function and indicating the nazionality  you will obtain the last 40 companies from that nation(only title and description)</documentation>
    <input message="tns:getCompanyRequest"/>
    <output message="tns:getCompanyResponse"/>
  </operation>
  <operation name="getLeads">
    <documentation>By using this function and indicating a key word, lead tipology (buy, sell or cooperate) --&gt; optional, you will obtain tha last 40 leads related to the key word you have indicated (only title and description)</documentation>
    <input message="tns:getLeadsRequest"/>
    <output message="tns:getLeadsResponse"/>
  </operation>
  <operation name="getLeadsNews">
    <documentation>By using this function and indicating a key word, date (format:  YYYY-MM-DD), and number max of leads --&gt; optional, you will obtain tha last number max companies related to the key word you have indicated they are more recent than the indicated date (only title and description)</documentation>
    <input message="tns:getLeadsNewsRequest"/>
    <output message="tns:getLeadsNewsResponse"/>
  </operation>
  <operation name="login">
    <documentation>provide login for webservices access </documentation>
    <input message="tns:loginRequest"/>
    <output message="tns:loginResponse"/>
  </operation>
  <operation name="postLead">
    <documentation>insert leads into businessradar indicating user name and password, and parameter requested in the catalog page info(only with login successfully.)</documentation>
    <input message="tns:postLeadRequest"/>
    <output message="tns:postLeadResponse"/>
  </operation>
</portType>
<binding name="businessradarwsdlBinding" type="tns:businessradarwsdlPortType">
  <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
  <operation name="getCompany">
    <soap:operation soapAction="urn:businessradarwsdl#getCompany" style="rpc"/>
    <input><soap:body use="encoded" namespace="urn:businessradarwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="urn:businessradarwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="getLeads">
    <soap:operation soapAction="urn:businessradarwsdl#getLeads" style="rpc"/>
    <input><soap:body use="encoded" namespace="urn:businessradarwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="urn:businessradarwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="getLeadsNews">
    <soap:operation soapAction="urn:businessradarwsdl#getLeadsNews" style="rpc"/>
    <input><soap:body use="encoded" namespace="urn:businessradarwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="urn:businessradarwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="login">
    <soap:operation soapAction="urn:businessradarwsdl#login" style="rpc"/>
    <input><soap:body use="encoded" namespace="urn:businessradarwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="urn:businessradarwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
  <operation name="postLead">
    <soap:operation soapAction="urn:businessradarwsdl#postLead" style="rpc"/>
    <input><soap:body use="encoded" namespace="urn:businessradarwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
    <output><soap:body use="encoded" namespace="urn:businessradarwsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  </operation>
</binding>
<service name="businessradarwsdl">
  <port name="businessradarwsdlPort" binding="tns:businessradarwsdlBinding">
    <soap:address location="http://www.businessradar.it/wsdl.php"/>
  </port>
</service>
</definitions>