<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=PurchasingOrderSelect" 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=PurchasingOrderSelect" 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=PurchasingOrderSelect" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="PurchasingOrderSelectRequestContainer">
	 <xsd:complexType>
	  <xsd:sequence>
		<xsd:element name="company_no" minOccurs="1" type="xsd:string" />
		<xsd:element name="vendor_id" minOccurs="0" type="xsd:string" />
		<xsd:element name="po_no" minOccurs="1" type="xsd:string" />
		<xsd:element name="location_id" minOccurs="0" type="xsd:string" />
		<xsd:element name="order_date" minOccurs="0" type="xsd:string" />
		<xsd:element name="date_last_modified" minOccurs="0" type="xsd:string" />
		<xsd:element name="complete" minOccurs="0" type="xsd:string" />
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	  </xsd:sequence>
	</xsd:complexType>
	 </xsd:element>
	<xsd:element name="PurchasingOrderSelectResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="PurchasingOrderSelectResponseContainerItems" nillable="true" type="tns:PurchasingOrderSelectResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="PurchasingOrderSelectResponseContainer" >
	    <xsd:sequence maxOccurs="unbounded">
<xsd:element name="po_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="vendor_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="order_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="company_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="packing_slip_number" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_add1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_add2" 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_country" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="requested_by" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="fob" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="date_due" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="receipt_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_desc" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_zip" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="delete_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="complete" 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="location_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="carrier_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="vouch_flag" 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="cancel_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="currency_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="printed" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ack_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ack_code" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="closed_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="supplier_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="division_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="branch_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="approved" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="purchase_group_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_class1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_class2" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_class3" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_class4" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_class5" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="sales_order_number" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_type" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="exchange_rate" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="external_po_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="exclude_from_lead_time" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="source_type" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="transmission_method" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_hdr_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="edi_edit_count" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="revised_po" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="contact_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="created_by" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="total_iva_tax_amt" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="expedite_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="vendor_pays_freight_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="retrieved_by_wms" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="supplier_release_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="historical_complete_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="expected_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="sent_to_carrier_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="print_canadian_b3_forms_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="canadian_b3_forms_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="cad_cha_contract_cd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="cad_cha_quote_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="tracking_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="net_billing_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_add3" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="do_not_export_carrier_po_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="packing_basis" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="packing_basis_violation_cd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="transmit_print" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="transmit_fax" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="transmit_email" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="transmit_edi" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="dflt_list_price_multiplier" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship_via_desc" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="blind_ship_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_qty_change_count" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="carrier_service_type_desc" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="carrier_provider_type_desc" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_desc" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="discount_pct" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="discount_days" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="net_days" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="day_of_month" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="months" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="downpayment_pct" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_type" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="trading_partner_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="vendor_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="phys_address1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="phys_address2" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="phys_address3" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="phys_city" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="phys_state" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="phys_postal_code" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="phys_country" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BuyerName" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BuyerEmailAddress" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BuyerPhoneNumber" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BillToWarehouseCode" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BillToName" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BillToAddress1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BillToAddress2" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BillToAddress3" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BillToCity" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BillToState" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BillToPostalCode" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BillToCountry" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BillToPhoneNumber" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="carrier_type_cd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CarrierName" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ErrorCode" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ErrorDescription" 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="PurchasingOrderSelectRequest" > 
			<wsdl:part name="parameters" element="tns:PurchasingOrderSelectRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="PurchasingOrderSelectResponse" >
			<wsdl:part name="parameters" element="tns:PurchasingOrderSelectResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="PurchasingOrderSelect">
			<wsdl:operation name="PurchasingOrderSelect">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderSelect" message="tns:PurchasingOrderSelectRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderSelect" message="tns:PurchasingOrderSelectResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_PurchasingOrderSelect" type="tns:PurchasingOrderSelect">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="PurchasingOrderSelect">
		  <soap:operation soapAction="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderSelect" 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="PurchasingOrderSelectService">
			    <wsdl:port name="PurchasingOrderSelect" binding="tns:DefaultBinding_PurchasingOrderSelect">
			       <soap:address location="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderSelect" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
