<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=SalesCustomerInvoiceSelect" 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=SalesCustomerInvoiceSelect" 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=SalesCustomerInvoiceSelect" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="SalesCustomerInvoiceSelectRequestContainer">
	 <xsd:complexType>
	  <xsd:sequence>
		<xsd:element name="company_no" minOccurs="0" type="xsd:string" />
		<xsd:element name="invoice_no" minOccurs="0" type="xsd:string" />
		<xsd:element name="po_no" minOccurs="0" type="xsd:string" />
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	  </xsd:sequence>
	</xsd:complexType>
	 </xsd:element>
	<xsd:element name="SalesCustomerInvoiceSelectResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="SalesCustomerInvoiceSelectResponseContainerItems" nillable="true" type="tns:SalesCustomerInvoiceSelectResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="SalesCustomerInvoiceSelectResponseContainer" >
	    <xsd:sequence maxOccurs="unbounded">
<xsd:element name="order_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="order_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill2_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill2_contact" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill2_address1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill2_address2" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill2_city" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill2_state" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill2_postal_code" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_contact" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_address1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_address2" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_city" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_state" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_postal_code" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="carrier_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="fob" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_desc" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="salesrep_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="salesrep_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="brokerage" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="freight" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ar_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="gl_freight_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="gl_brokerage_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="brokerage_amt" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="period" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="year_for_period" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="store_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_type" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship_to_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="total_amount" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="amount_paid" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="terms_taken" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="allowed" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="paid_in_full_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="paid_by_check_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="date_paid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="print_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="print_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="company_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_id_number" nillable="true" minOccurs="0" type="xsd:decimal"/><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="printed" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="printed_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="corp_address_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="shipping_cost" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill2_country" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_country" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_reference_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_adjustment_type" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_desc" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="memo_amount" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bad_debt_amount" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_class" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="period_fully_paid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="year_fully_paid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="approved" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="fc_thru_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="cumulative_fc" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="net_due_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_due_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="branch_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="disputed_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="statement_period" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="statement_year" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="other_charge_amount" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="tax_amount" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="original_document_type" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="consolidated" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="sold_to_ah_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="sold_to_customer_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship_to_phone" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_batch_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="freight_code_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="shipping_route_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="transmission_method" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_amount" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="sales_location_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="source_type_cd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_email_address" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="currency_line_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="created_by" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="tax_terms_taken" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="carrier_insurance_amt" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="inv_no_display" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="iva_exemption_number" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="iva_taxable_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="job_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_paid_period" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_period" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="credit_memo_for_terms_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="record_type_cd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="commission_cost" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="carton_count" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="strategic_freight_in" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="strategic_freight_out" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="affiliated_training_center" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="external_reference_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="total_freightcharge_weight" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="receiver_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="cardlock_cons_invoice_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="record_type_reference_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="rebill_invoice_reason_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="remove_from_open_def_rev_window" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="edi_order_printed_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="downpayment_applied" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="reverse_redemption_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="sent_to_carrier_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="tax_terms_amt" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="tax_amount_paid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="reason_credit_memo_code_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="source_credit_memo_code_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="external_claim_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill2_address3" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_address3" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="eft_exported_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="courtesy_invoice_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="iva_withheld_amount" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="carrier_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="free_out_freight_min_met_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="reg_num_of_packages" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_latitude" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_longitude" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="delivery_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="allowed_amt_reason_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="total_service_amount_redeemed" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_claim_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="claim_type" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="claim_coop_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill_to_supplier_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="cust_price_prot_var_acct_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="consolidated_type_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="merchandise_invoice_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="sales_market_group_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="actual_freight_cost" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="eco_fee_amt" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="frght_disc_taken" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="rental_invoice_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="currency_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="home_currency_amt" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="brokerage_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="freight_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="brokerage_amt_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="total_amount_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="amount_paid_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_taken_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="allowed_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="memo_amount_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bad_debt_amount_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="cumulative_fc_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="other_charge_amount_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="tax_amount_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_amount_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="shipping_cost_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="tax_terms_amt_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="tax_terms_taken_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="tax_amount_paid_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="downpayment_applied_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="iva_withheld_amount_home" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_status" 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="SalesCustomerInvoiceSelectRequest" > 
			<wsdl:part name="parameters" element="tns:SalesCustomerInvoiceSelectRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="SalesCustomerInvoiceSelectResponse" >
			<wsdl:part name="parameters" element="tns:SalesCustomerInvoiceSelectResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="SalesCustomerInvoiceSelect">
			<wsdl:operation name="SalesCustomerInvoiceSelect">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerInvoiceSelect" message="tns:SalesCustomerInvoiceSelectRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerInvoiceSelect" message="tns:SalesCustomerInvoiceSelectResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_SalesCustomerInvoiceSelect" type="tns:SalesCustomerInvoiceSelect">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="SalesCustomerInvoiceSelect">
		  <soap:operation soapAction="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerInvoiceSelect" 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="SalesCustomerInvoiceSelectService">
			    <wsdl:port name="SalesCustomerInvoiceSelect" binding="tns:DefaultBinding_SalesCustomerInvoiceSelect">
			       <soap:address location="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerInvoiceSelect" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
