<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/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsert" 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/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsert" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

	 <wsdl:types>
	 <xsd:schema targetNamespace="https://connector.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsert" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="PurchasingInvoiceInsertRequestContainer" >
	 <xsd:complexType>
	  <xsd:sequence>
		<xsd:element name="cono" minOccurs="1" type="xsd:decimal"/>
		<xsd:element name="pono" minOccurs="1" type="xsd:decimal"/>
		<xsd:element name="whse" minOccurs="0" type="xsd:string"/>
		<xsd:element name="costord" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="groupnm" minOccurs="1" type="xsd:string"/>
		<xsd:element name="vendno" minOccurs="1" type="xsd:decimal"/>
		<xsd:element name="transcd" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="apinvno" minOccurs="1" type="xsd:string"/>
		<xsd:element name="amount" minOccurs="1" type="xsd:decimal"/>
		<xsd:element name="invtype" minOccurs="0" type="xsd:string"/>
		<xsd:element name="immedpyfl" minOccurs="0" type="xsd:string"/>
		<xsd:element name="disputefl" minOccurs="1" type="xsd:string"/>
		<xsd:element name="invdt" minOccurs="1" type="xsd:string"/>
		<xsd:element name="termstype" minOccurs="0" type="xsd:string"/>
		<xsd:element name="nopays" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="freqdays" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="discpct" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="discamt" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="refer" minOccurs="0" type="xsd:string"/>
		<xsd:element name="groupseqno" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="exchgrate" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="gsttaxamt" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="psttaxamt" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="discdays" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="discdt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="duedt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="transdt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="operinit" minOccurs="0" type="xsd:string"/>
		<xsd:element name="notes" minOccurs="0" type="xsd:string"/>
		<xsd:element name="nprintfl" minOccurs="0" type="xsd:string"/>
		<xsd:element name="PurchasingInvoiceInsert" minOccurs="0" type="xsd:string"/>
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	<xsd:element name="PurchasingInvoiceLinesInsertRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="vendprod" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shipprod" minOccurs="1" type="xsd:string"/>
		<xsd:element name="upc" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shipamt" minOccurs="1" type="xsd:decimal"/>
		<xsd:element name="costord" minOccurs="1" type="xsd:decimal"/>
		<xsd:element name="PurchasingInvoiceLinesInsert" minOccurs="0" type="xsd:string"/>
		<xsd:element name="lineno" minOccurs="0" type="xsd:decimal"/>
	  </xsd:sequence><xsd:attribute name="id" type="xsd:string" />
	</xsd:complexType> 
	 </xsd:element>
	<xsd:element name="PurchasingInvoiceAddonsInsertRequestContainer" minOccurs="0" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="addonno" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="ediaddonno" minOccurs="0" type="xsd:string"/>
		<xsd:element name="addonamt" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="PurchasingInvoiceAddonsInsert" 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="PurchasingInvoiceInsertResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="PurchasingInvoiceInsertResponseContainerItems" nillable="true" type="tns:PurchasingInvoiceInsertResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="PurchasingInvoiceInsertResponseContainer" >
	    <xsd:sequence maxOccurs="unbounded">
<xsd:element name="errorcd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="errordesc" 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="PurchasingInvoiceInsertRequest" > 
			<wsdl:part name="parameters" element="tns:PurchasingInvoiceInsertRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="PurchasingInvoiceInsertResponse" >
			<wsdl:part name="parameters" element="tns:PurchasingInvoiceInsertResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="PurchasingInvoiceInsert">
			<wsdl:operation name="PurchasingInvoiceInsert">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsert" message="tns:PurchasingInvoiceInsertRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsert" message="tns:PurchasingInvoiceInsertResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_PurchasingInvoiceInsert" type="tns:PurchasingInvoiceInsert">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="PurchasingInvoiceInsert">
		  <soap:operation soapAction="https://connector.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsert" 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="PurchasingInvoiceInsertService">
			    <wsdl:port name="PurchasingInvoiceInsert" binding="tns:DefaultBinding_PurchasingInvoiceInsert">
			       <soap:address location="https://connector.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingInvoiceInsert" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
