<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=ItemsLotSelect" 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=ItemsLotSelect" 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=ItemsLotSelect" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="ItemsLotSelectRequestContainer">
	 <xsd:complexType>
	  <xsd:sequence>
		<xsd:element name="company_id" minOccurs="1" type="xsd:string"/>
		<xsd:element name="item_id" minOccurs="1" type="xsd:string"/>
		<xsd:element name="ShowZeroQOH" minOccurs="0" type="xsd:string"/>
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	  </xsd:sequence>
	</xsd:complexType>
	 </xsd:element>
	<xsd:element name="ItemsLotSelectResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="ItemsLotSelectResponseContainerItems" nillable="true" type="tns:ItemsLotSelectResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="ItemsLotSelectResponseContainer" >
	    <xsd:sequence maxOccurs="unbounded">
<xsd:element name="company_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="lot" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="qty_on_hand" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="location_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="item_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="item_desc" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="comment" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="sku_cost" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="uom" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="uom_size " nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="user_defined1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="user_defined2" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="qty_allocated" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="supplier_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="supplier_id" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="no_of_lots" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="certification_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="supplier_certification_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="recertification_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="supplier_recertification_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="quality_cd_uid" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="expiration_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="quality_code_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="quality_code" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="inv_mast_uid" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="item_revision_uid" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="revision_level" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="blue_print_number" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="engineering_change_number" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="pricing_multiplier" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="use_lot_pricing_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="creation_date" 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="ItemsLotSelectRequest" > 
			<wsdl:part name="parameters" element="tns:ItemsLotSelectRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="ItemsLotSelectResponse" >
			<wsdl:part name="parameters" element="tns:ItemsLotSelectResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="ItemsLotSelect">
			<wsdl:operation name="ItemsLotSelect">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=ItemsLotSelect" message="tns:ItemsLotSelectRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=ItemsLotSelect" message="tns:ItemsLotSelectResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_ItemsLotSelect" type="tns:ItemsLotSelect">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="ItemsLotSelect">
		  <soap:operation soapAction="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=ItemsLotSelect" 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="ItemsLotSelectService">
			    <wsdl:port name="ItemsLotSelect" binding="tns:DefaultBinding_ItemsLotSelect">
			       <soap:address location="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=ItemsLotSelect" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
