<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=PurchasingOrderList" 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=PurchasingOrderList" 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=PurchasingOrderList" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="PurchasingOrderListRequestContainer">
	 <xsd:complexType>
	  <xsd:sequence>
		<xsd:element name="company_no" minOccurs="1" type="xsd:string" />
		<xsd:element name="vendor_id" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="location_id" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="order_date" minOccurs="0" type="xsd:string" />
		<xsd:element name="approved" minOccurs="0" type="xsd:string" />
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	  </xsd:sequence>
	</xsd:complexType>
	 </xsd:element>
	<xsd:element name="PurchasingOrderListResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="PurchasingOrderListResponseContainerItems" nillable="true" type="tns:PurchasingOrderListResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="PurchasingOrderListResponseContainer" >
	    <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="bulk_discount_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="estimated_value" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="estimated_value_edit_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bid_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="expected_ship_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="auto_vouch_except_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="submitted_to_vendor_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="excl_send_linked_info_to_rfnav_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="exclude_ds_po_from_billing_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="direct_through_stock_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="dts_original_po_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="adi_supplier_freight_terms_uid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="received_cost" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="airbill_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="pay_freight_to" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="waste_percent" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="rec_frt_cost_var" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="rec_frt_cost_var_acct" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="rec_mat_cost_var" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="rec_mat_cost_var_acct" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="rec_frt_var_curr_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="home_rec_frt_cost_var" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="gst_tax_amt" 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="PurchasingOrderListRequest" > 
			<wsdl:part name="parameters" element="tns:PurchasingOrderListRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="PurchasingOrderListResponse" >
			<wsdl:part name="parameters" element="tns:PurchasingOrderListResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="PurchasingOrderList">
			<wsdl:operation name="PurchasingOrderList">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderList" message="tns:PurchasingOrderListRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderList" message="tns:PurchasingOrderListResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_PurchasingOrderList" type="tns:PurchasingOrderList">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="PurchasingOrderList">
		  <soap:operation soapAction="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderList" 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="PurchasingOrderListService">
			    <wsdl:port name="PurchasingOrderList" binding="tns:DefaultBinding_PurchasingOrderList">
			       <soap:address location="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderList" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
