extranet/includes/giant/wsdl/search-1.0.wsdl

321 lines
19 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Web Services Definition for International Company Search
Document Version: 0.2
Author: Giant Project
Changes:
v01 - RS 10-11-2008 Initial version
v02 - RS 08-12-2008 Added BrancheAddressType, relaxed required fields in address
v03 - MK 06-01-2009 Removed PartnerType, Conformed to new namespace definitions
-->
<definitions name="search" targetNamespace="http://services.giant-net.com/wsdl/search/1.0"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:shared="http://services.giant-net.com/schema/services/shared/1.0"
xmlns:search="http://services.giant-net.com/schema/services/search/1.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://services.giant-net.com/wsdl/search/1.0">
<types>
<xsd:schema targetNamespace="http://services.giant-net.com/schema/services/search/1.0">
<xsd:import namespace="http://services.giant-net.com/schema/services/shared/1.0" schemaLocation="http://services.giant-net.com/schema/services/shared-1.0.xsd"/>
<xsd:simpleType name="QueryType">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[^~!\*\?][^~!]*"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="BrancheAddressType">
<xsd:restriction base="xsd:token">
<xsd:enumeration value="R" />
<xsd:enumeration value="T" />
<xsd:enumeration value="B" />
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="AddressType">
<xsd:sequence>
<xsd:element name="Building" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Street" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="HouseNumber" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="HouseNumberAdd" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="PostCode" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="State" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="City" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Country" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="EntireAddress" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="AddressType" type="search:BrancheAddressType" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="TelephoneNumbersType">
<xsd:sequence>
<xsd:element name="TelephoneNumber" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AdvancedQueryType">
<xsd:sequence>
<xsd:element name="CompanyId" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="RegisteredName" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="LegalForm" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Building" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Street" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="HouseNumber" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="HouseNumberAdd" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="PostCode" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="City" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="State" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Country" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="AddressType" type="search:BrancheAddressType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="VatNumber" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="CompanyRegisterNumber" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="CompanyWebSite" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="CompanyEmail" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="NaceCodes" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="ParentCompanyId" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="TradingName" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Tier2SearchMethodsType">
<xsd:sequence>
<xsd:element name="CountryCode" type="shared:CountryCodeType" minOccurs="1" maxOccurs="1"/>
<xsd:element name="SearchMethod" type="search:SearchMethodType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="SearchMethodType">
<xsd:sequence>
<xsd:element name="CompanyId" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<xsd:element name="RegisteredName" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<xsd:element name="PostCode" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<xsd:element name="City" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<xsd:element name="Keyword" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Tier2QueryType">
<xsd:sequence>
<xsd:element name="CompanyId" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="RegisteredName" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="PostCode" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="City" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Keyword" type="search:QueryType" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="SearchRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Query" type="search:QueryType" minOccurs="1" maxOccurs="1"/>
<xsd:element name="IncludePhoneticMatches" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<xsd:element name="IncludeSuggestions" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<xsd:element name="StartRow" type="xsd:long" minOccurs="0" maxOccurs="1"/>
<xsd:element name="NumRows" type="xsd:long" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:decimal" default="1.0"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="AdvancedSearchRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Query" type="search:AdvancedQueryType" minOccurs="1" maxOccurs="1"/>
<xsd:element name="IncludePhoneticMatches" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<xsd:element name="IncludeSuggestions" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<xsd:element name="StartRow" type="xsd:long" minOccurs="0" maxOccurs="1"/>
<xsd:element name="NumRows" type="xsd:long" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:decimal" default="1.0"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="Tier2SearchMethodsRequest">
<xsd:complexType>
<xsd:sequence/>
<xsd:attribute name="version" type="xsd:decimal" default="1.0"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="Tier2SearchMethodsResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Tier2SearchMethod" type="search:Tier2SearchMethodsType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:decimal" default="1.0"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="Tier2SearchRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Query" type="search:Tier2QueryType" minOccurs="1" maxOccurs="1"/>
<xsd:element name="StartRow" type="xsd:long" minOccurs="0" maxOccurs="1"/>
<xsd:element name="NumRows" type="xsd:long" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:decimal" default="1.0"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="SearchResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="NumberOfHits" type="xsd:long" minOccurs="1" maxOccurs="1"/>
<xsd:element name="QueryTime" type="xsd:long" minOccurs="1" maxOccurs="1"/>
<xsd:element name="StartRow" type="xsd:long" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Results" type="search:ResultsType" minOccurs="1" maxOccurs="1"/>
<xsd:element name="SpellingSuggestion" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:decimal" default="1.0" />
</xsd:complexType>
</xsd:element>
<xsd:complexType name="ResultsType">
<xsd:sequence>
<xsd:element name="Company" type="search:CompanyResultType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CompanyResultType">
<xsd:sequence>
<xsd:element name="SearchScore" type="xsd:float" minOccurs="1" maxOccurs="1"/>
<xsd:element name="ProviderId" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="CompanyId" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="RegisteredName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="LegalForm" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Address" type="search:AddressType" minOccurs="1" maxOccurs="1"/>
<xsd:element name="TelephoneNumbers" type="search:TelephoneNumbersType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="CompanyRegisterNumber" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="VatNumber" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="CompanyWebSite" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="CompanyEmail" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="NaceCodes" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="ParentCompanyId" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="PreviousRegisteredName" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</types>
<message name="SearchRequest">
<part name="ServiceHeader" element="shared:ServiceHeader"/>
<part name="SearchRequest" element="search:SearchRequest"/>
</message>
<message name="SearchResponse">
<part name="SearchResponse" element="search:SearchResponse"/>
</message>
<message name="AdvancedSearchRequest">
<part name="ServiceHeader" element="shared:ServiceHeader"/>
<part name="AdvancedSearchRequest" element="search:AdvancedSearchRequest"/>
</message>
<message name="AdvancedSearchResponse">
<part name="AdvancedSearchResponse" element="search:SearchResponse"/>
</message>
<message name="Tier2SearchRequest">
<part name="ServiceHeader" element="shared:ServiceHeader"/>
<part name="Tier2SearchRequest" element="search:Tier2SearchRequest"/>
</message>
<message name="Tier2SearchResponse">
<part name="Tier2SearchResponse" element="search:SearchResponse"/>
</message>
<message name="Tier2SearchMethodsRequest">
<part name="ServiceHeader" element="shared:ServiceHeader"/>
<part name="Tier2SearchMethodsRequest" element="search:Tier2SearchMethodsRequest"/>
</message>
<message name="Tier2SearchMethodsResponse">
<part name="Tier2SearchMethodsResponse" element="search:Tier2SearchMethodsResponse"/>
</message>
<message name="TechnicalException">
<part name="TechnicalException" element="shared:TechnicalException"/>
</message>
<message name="FunctionalException">
<part name="FunctionalException" element="shared:FunctionalException"/>
</message>
<portType name="SearchPortType">
<operation name="Search">
<input name="SearchRequest" message="tns:SearchRequest"/>
<output name="SearchResponse" message="tns:SearchResponse"/>
<fault name="FunctionalException" message="tns:FunctionalException"/>
<fault name="TechnicalException" message="tns:TechnicalException"/>
</operation>
<operation name="AdvancedSearch">
<input name="AdvancedSearchRequest" message="tns:AdvancedSearchRequest"/>
<output name="AdvancedSearchResponse" message="tns:AdvancedSearchResponse"/>
<fault name="FunctionalException" message="tns:FunctionalException"/>
<fault name="TechnicalException" message="tns:TechnicalException"/>
</operation>
<operation name="Tier2Search">
<input name="Tier2SearchRequest" message="tns:Tier2SearchRequest"/>
<output name="Tier2SearchResponse" message="tns:Tier2SearchResponse"/>
<fault name="TechnicalException" message="tns:TechnicalException"/>
<fault name="FunctionalException" message="tns:FunctionalException"/>
</operation>
<operation name="Tier2SearchMethods">
<input name="Tier2SearchMethodsRequest" message="tns:Tier2SearchMethodsRequest"/>
<output name="Tier2SearchMethodsResponse" message="tns:Tier2SearchMethodsResponse"/>
<fault name="TechnicalException" message="tns:TechnicalException"/>
<fault name="FunctionalException" message="tns:FunctionalException"/>
</operation>
</portType>
<binding name="InternationalCompanySearchBinding" type="tns:SearchPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="Search">
<soap:operation soapAction="Search"/>
<input name="SearchRequest">
<documentation/>
<soap:header message="tns:SearchRequest" use="literal" part="ServiceHeader"/>
<soap:body parts="SearchRequest" use="literal"/>
</input>
<output name="SearchResponse">
<soap:body use="literal"/>
</output>
<fault name="FunctionalException">
<soap:fault name="FunctionalException" use="literal"/>
</fault>
<fault name="TechnicalException">
<soap:fault name="TechnicalException" use="literal"/>
</fault>
</operation>
<operation name="AdvancedSearch">
<soap:operation soapAction="AdvancedSearch"/>
<input name="AdvancedSearchRequest">
<soap:header message="tns:AdvancedSearchRequest" use="literal" part="ServiceHeader"/>
<soap:body parts="AdvancedSearchRequest" use="literal"/>
</input>
<output name="AdvancedSearchResponse">
<soap:body use="literal"/>
</output>
<fault name="FunctionalException">
<soap:fault name="FunctionalException" use="literal"/>
</fault>
<fault name="TechnicalException">
<soap:fault name="TechnicalException" use="literal"/>
</fault>
</operation>
<operation name="Tier2Search">
<soap:operation soapAction="Tier2Search" />
<input name="Tier2SearchRequest">
<soap:header message="tns:Tier2SearchRequest" use="literal" part="ServiceHeader"/>
<soap:body parts="Tier2SearchRequest" use="literal"/>
</input>
<output name="Tier2SearchResponse">
<soap:body use="literal"/>
</output>
<fault name="TechnicalException">
<soap:fault name="TechnicalException" use="literal"/>
</fault>
<fault name="FunctionalException">
<soap:fault name="FunctionalException" use="literal"/>
</fault>
</operation>
<operation name="Tier2SearchMethods">
<soap:operation soapAction="Tier2SearchMethods"/>
<input name="Tier2SearchMethodsRequest">
<soap:header message="tns:Tier2SearchMethodsRequest" use="literal" part="ServiceHeader"/>
<soap:body parts="Tier2SearchMethodsRequest" use="literal"/>
</input>
<output name="Tier2SearchMethodsResponse">
<soap:body use="literal"/>
</output>
<fault name="TechnicalException">
<soap:fault name="TechnicalException" use="literal"/>
</fault>
<fault name="FunctionalException">
<soap:fault name="FunctionalException" use="literal"/>
</fault>
</operation>
</binding>
<service name="internationalCompanySearch">
<port name="Search" binding="tns:InternationalCompanySearchBinding">
<soap:address location="http://services.giant-net.com/search/v1/"/>
</port>
</service>
</definitions>