<wsdl:definitions xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"  xmlns:wsu = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns = "https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerList" xmlns:wsa = "http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsp = "http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap = "http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:xsd = "http://www.w3.org/2001/XMLSchema" xmlns:msc = "http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsaw = "http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12 = "http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa10 = "http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" targetNamespace="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerList" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

	 <wsdl:types>
	 <xsd:schema targetNamespace="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerList" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="SalesCustomerListRequestContainer">
	 <xsd:complexType>
	  <xsd:sequence>
		<xsd:element name="company_id" minOccurs="1" type="xsd:string" />
		<xsd:element name="customer_id" minOccurs="0" type="xsd:string" />
		<xsd:element name="class_1id" minOccurs="0" type="xsd:string" />
		<xsd:element name="class_2id" minOccurs="0" type="xsd:string" />
		<xsd:element name="class_3id" minOccurs="0" type="xsd:string" />
		<xsd:element name="class_4id" minOccurs="0" type="xsd:string" />
		<xsd:element name="class_5id" minOccurs="0" type="xsd:string" />
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	  </xsd:sequence>
	</xsd:complexType>
	 </xsd:element>
	<xsd:element name="SalesCustomerListResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="SalesCustomerListResponseContainerItems" nillable="true" type="tns:SalesCustomerListResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="SalesCustomerListResponseContainer" >
	    <xsd:sequence maxOccurs="unbounded">
<xsd:element name="customer_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="company_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="taxable_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="credit_limit" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="credit_limit_used" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ar_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="revenue_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="cos_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="allowed_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="delete_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="date_created" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="date_last_modified" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="last_maintained_by" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="freight_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="brokerage_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="class_1id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="class_2id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="class_3id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="class_4id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="class_5id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="credit_card_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="credit_card_type" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="credit_card_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="credit_card_expiration_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="last_check_number" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="last_check_amount" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="last_check_date" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="credit_limit_per_order" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="order_acknowledgments" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="accept_interchangeable_items" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="generate_finance_charges" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="credit_limit_check_at_shipment" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="generate_customer_statements" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="sic_code" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="minimum_order_dollar_amount" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="federal_exemption_number" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="other_exemption_number" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="default_disposition" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="fc_percentage" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="fc_grace_days" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="minimum_finance_charge" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="fc_cycle" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="last_fc_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="statement_frequency_id" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="highest_credit_limit_used" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="state_excise_tax_exemption_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="credit_status" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="deferred_revenue_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="override_revenue_by_item" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="finance_chg_revenue_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="finance_charge_ship_to_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="use_consolidated_invoicing" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ci_for_complete_orders_only" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ci_print_detail" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_print_qty" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="fob_required_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="cod_required_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="pricing_method_cd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="source_price_cd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="multiplier" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_no_required" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="consolidated_ship_to_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_statement_history_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_batch_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="lot_bill_summary_on_invoices" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="trading_partner_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="print_zero_dollar_customers" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="generate_statements_by" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="default_rebate_location_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="pending_payment_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="print_prices_on_packinglist" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="job_pricing" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="statement_batch_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="currency_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="override_profit_limit" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="minimum_order_line_profit" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="maximum_order_line_profit" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="minimum_order_profit" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="maximum_order_profit" nillable="true" minOccurs="0" type="xsd:string"/>		 <xsd:element name = "NoRecords"  nillable="true" minOccurs="0" type="xsd:string"/>		 <xsd:element name = "_errorMsg"  nillable="true" minOccurs="0" type="xsd:string"/>		 <xsd:element name = "_errorNum"  nillable="true" minOccurs="0" type="xsd:string"/>	    </xsd:sequence>
	   </xsd:complexType>
	<xsd:element name="FaultContainer">
	 <xsd:complexType>
	 <xsd:sequence>
	<xsd:element name="fault" type="xsd:string"/>
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   </xsd:schema>
	 </wsdl:types>


		<wsdl:message name="SalesCustomerListRequest" > 
			<wsdl:part name="parameters" element="tns:SalesCustomerListRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="SalesCustomerListResponse" >
			<wsdl:part name="parameters" element="tns:SalesCustomerListResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="SalesCustomerList">
			<wsdl:operation name="SalesCustomerList">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerList" message="tns:SalesCustomerListRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerList" message="tns:SalesCustomerListResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_SalesCustomerList" type="tns:SalesCustomerList">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="SalesCustomerList">
		  <soap:operation soapAction="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerList" style="document" />
		  <wsdl:input>
		   <soap:body use="literal" />
		  </wsdl:input>
		  <wsdl:output>
		    <soap:body use="literal" />
		  </wsdl:output>
		<wsdl:fault name="fault"><soap:fault use="literal" name="fault"/></wsdl:fault>
		 </wsdl:operation>
		 </wsdl:binding>

		 <wsdl:service name="SalesCustomerListService">
			    <wsdl:port name="SalesCustomerList" binding="tns:DefaultBinding_SalesCustomerList">
			       <soap:address location="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerList" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
