<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/p21/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingVendorInvoiceInsertUpdate" 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/p21/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingVendorInvoiceInsertUpdate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

	 <wsdl:types>
	 <xsd:schema targetNamespace="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingVendorInvoiceInsertUpdate" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="PurchasingVendorInvoiceInsertUpdateRequestContainer">
	 <xsd:complexType>
	  <xsd:sequence>
		<xsd:element name="company_no" minOccurs="1" type="xsd:string"/>
		<xsd:element name="vendor_id" minOccurs="1" type="xsd:decimal"/>
		<xsd:element name="invoice_no" minOccurs="0" type="xsd:string"/>
		<xsd:element name="invoice_date" minOccurs="0" type="xsd:string"/>
		<xsd:element name="invoice_amount" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="net_due_date" minOccurs="0" type="xsd:string"/>
		<xsd:element name="terms_due_date" minOccurs="0" type="xsd:string"/>
		<xsd:element name="terms_amount" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="check_no" minOccurs="0" type="xsd:string"/>
		<xsd:element name="check_date" minOccurs="0" type="xsd:string"/>
		<xsd:element name="voucher_no" minOccurs="0" type="xsd:string"/>
		<xsd:element name="ap_account_no" minOccurs="0" type="xsd:string"/>
		<xsd:element name="cash_account_no" minOccurs="0" type="xsd:string"/>
		<xsd:element name="description" minOccurs="0" type="xsd:string"/>
		<xsd:element name="amount_paid" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="terms_amount_taken" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="paid_in_full" minOccurs="0" type="xsd:string"/>
		<xsd:element name="date_created" minOccurs="0" type="xsd:string"/>
		<xsd:element name="date_last_modified" minOccurs="0" type="xsd:string"/>
		<xsd:element name="last_maintained_by" minOccurs="0" type="xsd:string"/>
		<xsd:element name="po_no" minOccurs="0" type="xsd:string"/>
		<xsd:element name="period" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="year_for_period" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="currency_id" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="home_currency_amt" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="reverse_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="voucher_type" minOccurs="0" type="xsd:string"/>
		<xsd:element name="voucher_description" minOccurs="0" type="xsd:string"/>
		<xsd:element name="memo_amount" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="voucher_class" minOccurs="0" type="xsd:string"/>
		<xsd:element name="voucher_reference_number" minOccurs="0" type="xsd:string"/>
		<xsd:element name="period_fully_paid" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="year_fully_paid" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="approved" minOccurs="0" type="xsd:string"/>
		<xsd:element name="branch_id" minOccurs="0" type="xsd:string"/>
		<xsd:element name="terms_taken_account" minOccurs="0" type="xsd:string"/>
		<xsd:element name="invoice_amount_display" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="terms_amount_display" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="terms_amount_taken_display" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="amount_paid_display" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="memo_amount_display" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="payable_source_cd" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="terms_id" minOccurs="0" type="xsd:string"/>
		<xsd:element name="source_type_cd" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="always_take_terms" minOccurs="0" type="xsd:string"/>
		<xsd:element name="voucher_reversal_reason" minOccurs="0" type="xsd:string"/>
		<xsd:element name="created_by" minOccurs="0" type="xsd:string"/>
		<xsd:element name="disputed_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="previously_disputed_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="job_id_set_by_conversion_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="vendor_edited_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="handling_fee" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="exported_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="freight_voucher_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="freight_amount" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="freight_amount_display" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="exchange_rate" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="freight_dispute_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="iva_withheld_amount" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="iva_withheld_amount_display" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="iva_terms_amount_taken" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="iva_terms_amount_taken_display" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="external_claim_id" minOccurs="0" type="xsd:string"/>
		<xsd:element name="voucher_reason_code_uid" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="payable_source_uid" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="payment_approved_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="terms_discount_pct" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="notes" minOccurs="0" type="xsd:string"/>
		<xsd:element name="print_notes" minOccurs="0" type="xsd:string"/>
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	<xsd:element name="PurchasingVendorInvoiceLinesInsertUpdateRequestContainer" minOccurs="0" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="voucher_no" minOccurs="0" type="xsd:string"/>
		<xsd:element name="quantity" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="item_id" minOccurs="1" type="xsd:string"/>
		<xsd:element name="unit_price" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="purchase_amount" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="purchase_account" minOccurs="0" type="xsd:string"/>
		<xsd:element name="description" minOccurs="0" type="xsd:string"/>
		<xsd:element name="type_id" minOccurs="0" type="xsd:string"/>
		<xsd:element name="ten99_type" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="date_created" minOccurs="0" type="xsd:string"/>
		<xsd:element name="date_last_modified" minOccurs="0" type="xsd:string"/>
		<xsd:element name="last_maintained_by" minOccurs="0" type="xsd:string"/>
		<xsd:element name="company_no" minOccurs="0" type="xsd:string"/>
		<xsd:element name="home_currency_amt" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="project_id" minOccurs="0" type="xsd:string"/>
		<xsd:element name="job_id" minOccurs="0" type="xsd:string"/>
		<xsd:element name="branch_id" minOccurs="0" type="xsd:string"/>
		<xsd:element name="unit_price_display" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="purchase_amount_display" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="apinv_line_uid" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="inv_mast_uid" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="created_by" minOccurs="0" type="xsd:string"/>
		<xsd:element name="disputed_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="disputed_amt" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="original_disputed_amt" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="apinv_line_type_cd" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="parent_apinv_line_uid" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="po_line_uid" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="source_no" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="sequence_number" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="payable_source_uid" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="freight_amount" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="freight_amount_display" minOccurs="0" type="xsd:decimal"/>
	  </xsd:sequence><xsd:attribute name="id" type="xsd:string" />
	</xsd:complexType> 
	 </xsd:element>
	  </xsd:sequence>
	</xsd:complexType>
	 </xsd:element>
	<xsd:element name="PurchasingVendorInvoiceInsertUpdateResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="PurchasingVendorInvoiceInsertUpdateResponseContainerItems" nillable="true" type="tns:PurchasingVendorInvoiceInsertUpdateResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="PurchasingVendorInvoiceInsertUpdateResponseContainer" >
	    <xsd:sequence maxOccurs="unbounded">
<xsd:element name="company_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="vendor_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_amount" 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_amount" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="check_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="check_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="voucher_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ap_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="cash_account_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="description" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="amount_paid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_amount_taken" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="paid_in_full" 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="po_no" nillable="true" minOccurs="0" type="xsd:string"/><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="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="reverse_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="voucher_type" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="voucher_description" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="memo_amount" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="voucher_class" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="voucher_reference_number" 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="branch_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_taken_account" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_amount_display" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_amount_display" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_amount_taken_display" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="amount_paid_display" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="memo_amount_display" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="payable_source_cd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="source_type_cd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="always_take_terms" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="voucher_reversal_reason" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="created_by" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="disputed_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="previously_disputed_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="job_id_set_by_conversion_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="vendor_edited_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="handling_fee" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="exported_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="freight_voucher_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="freight_amount" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="freight_amount_display" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="exchange_rate" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="freight_dispute_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="iva_withheld_amount" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="iva_withheld_amount_display" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="iva_terms_amount_taken" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="iva_terms_amount_taken_display" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="external_claim_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="voucher_reason_code_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="payable_source_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="payment_approved_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_discount_pct" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="notes" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="print_notes" 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="PurchasingVendorInvoiceInsertUpdateRequest" > 
			<wsdl:part name="parameters" element="tns:PurchasingVendorInvoiceInsertUpdateRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="PurchasingVendorInvoiceInsertUpdateResponse" >
			<wsdl:part name="parameters" element="tns:PurchasingVendorInvoiceInsertUpdateResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="PurchasingVendorInvoiceInsertUpdate">
			<wsdl:operation name="PurchasingVendorInvoiceInsertUpdate">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingVendorInvoiceInsertUpdate" message="tns:PurchasingVendorInvoiceInsertUpdateRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingVendorInvoiceInsertUpdate" message="tns:PurchasingVendorInvoiceInsertUpdateResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_PurchasingVendorInvoiceInsertUpdate" type="tns:PurchasingVendorInvoiceInsertUpdate">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="PurchasingVendorInvoiceInsertUpdate">
		  <soap:operation soapAction="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingVendorInvoiceInsertUpdate" 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="PurchasingVendorInvoiceInsertUpdateService">
			    <wsdl:port name="PurchasingVendorInvoiceInsertUpdate" binding="tns:DefaultBinding_PurchasingVendorInvoiceInsertUpdate">
			       <soap:address location="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingVendorInvoiceInsertUpdate" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
