<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/csd/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsertUpdate" 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/csd/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsertUpdate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

	 <wsdl:types>
	 <xsd:schema targetNamespace="https://connector.greywolf.com/csd/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsertUpdate" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="PurchasingInvoiceInsertUpdateRequestContainer">
	 <xsd:complexType>
	  <xsd:sequence>
		<xsd:element name="cono" minOccurs="1" type="xsd:decimal" />
		<xsd:element name="operinit" minOccurs="1" type="xsd:string" />
		<xsd:element name="apinvno" minOccurs="0" type="xsd:string" />
		<xsd:element name="pono" minOccurs="0" type="xsd:string" />
		<xsd:element name="posuf" minOccurs="0" type="xsd:string" />
		<xsd:element name="InvDt" minOccurs="1" type="xsd:string">
			<xsd:annotation><xsd:documentation>MM/DD/YY</xsd:documentation></xsd:annotation>
		</xsd:element>
		<xsd:element name="Vendno" minOccurs="1" type="xsd:string" />
		<xsd:element name="Amount" minOccurs="1" type="xsd:decimal" />
		<xsd:element name="CurrencyTy" minOccurs="0" type="xsd:string" />
		<xsd:element name="ExchRate" minOccurs="0" type="xsd:string" />
		<xsd:element name="TermsType" minOccurs="0" type="xsd:string" />
		<xsd:element name="Status" minOccurs="0" type="xsd:string">
			<xsd:annotation><xsd:documentation>Blank or "PAID"</xsd:documentation></xsd:annotation>
		</xsd:element>
		<xsd:element name="OrderTypeCode" minOccurs="0" type="xsd:string" />
		<xsd:element name="Reference" minOccurs="0" type="xsd:string" />
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	<xsd:element name="PurchasingInvoiceLinesRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="lineno" minOccurs="1" type="xsd:string"/>
		<xsd:element name="shipprod" minOccurs="0" type="xsd:string"/>
		<xsd:element name="qtyord" minOccurs="0" type="xsd:string"/>
		<xsd:element name="invunit" minOccurs="0" type="xsd:string"/>
		<xsd:element name="cost" minOccurs="0" type="xsd:string"/>
		<xsd:element name="spcunit" minOccurs="0" type="xsd:string"/>
		<xsd:element name="description" minOccurs="0" type="xsd:string"/>
		<xsd:element name="reqprod" minOccurs="0" type="xsd:string"/>
	  </xsd:sequence><xsd:attribute name="id" type="xsd:string" />
	</xsd:complexType> 
	 </xsd:element>
	<xsd:element name="PurchasingInvoiceAddonsRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="addon" minOccurs="0" type="xsd:string"/>
		<xsd:element name="Type" minOccurs="0" type="xsd:string"/>
		<xsd:element name="applyAmount" minOccurs="0" type="xsd:string"/>
	  </xsd:sequence><xsd:attribute name="id" type="xsd:string" />
	</xsd:complexType> 
	 </xsd:element>
	<xsd:element name="PurchasingInvoiceGLRecordsRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="Division" minOccurs="0" type="xsd:string"/>
		<xsd:element name="AccountNumber" minOccurs="0" type="xsd:string"/>
		<xsd:element name="Amount" minOccurs="0" type="xsd:string"/>
	  </xsd:sequence><xsd:attribute name="id" type="xsd:string" />
	</xsd:complexType> 
	 </xsd:element>
	  </xsd:sequence>
	</xsd:complexType>
	 </xsd:element>
	<xsd:element name="PurchasingInvoiceInsertUpdateResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="PurchasingInvoiceInsertUpdateResponseContainerItems" nillable="true" type="tns:PurchasingInvoiceInsertUpdateResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="PurchasingInvoiceInsertUpdateResponseContainer" >
	    <xsd:sequence maxOccurs="unbounded">
<xsd:element name="result" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="errorcd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="errordesc" 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="PurchasingInvoiceInsertUpdateRequest" > 
			<wsdl:part name="parameters" element="tns:PurchasingInvoiceInsertUpdateRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="PurchasingInvoiceInsertUpdateResponse" >
			<wsdl:part name="parameters" element="tns:PurchasingInvoiceInsertUpdateResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="PurchasingInvoiceInsertUpdate">
			<wsdl:operation name="PurchasingInvoiceInsertUpdate">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/csd/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsertUpdate" message="tns:PurchasingInvoiceInsertUpdateRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/csd/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsertUpdate" message="tns:PurchasingInvoiceInsertUpdateResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_PurchasingInvoiceInsertUpdate" type="tns:PurchasingInvoiceInsertUpdate">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="PurchasingInvoiceInsertUpdate">
		  <soap:operation soapAction="https://connector.greywolf.com/csd/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsertUpdate" 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="PurchasingInvoiceInsertUpdateService">
			    <wsdl:port name="PurchasingInvoiceInsertUpdate" binding="tns:DefaultBinding_PurchasingInvoiceInsertUpdate">
			       <soap:address location="https://connector.greywolf.com/csd/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsertUpdate" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
