<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=PurchasingOrderInsertUpdate" 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=PurchasingOrderInsertUpdate" 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=PurchasingOrderInsertUpdate" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="PurchasingOrderInsertUpdateRequestContainer">
	 <xsd:complexType>
	  <xsd:sequence>
		<xsd:element name="po_no" minOccurs="1" type="xsd:string" />
		<xsd:element name="vendor_id" minOccurs="1" type="xsd:string" />
		<xsd:element name="order_date" minOccurs="0" type="xsd:string" />
		<xsd:element name="company_no" minOccurs="1" type="xsd:string" />
		<xsd:element name="ship2_name" minOccurs="0" type="xsd:string" />
		<xsd:element name="ship2_add1" minOccurs="0" type="xsd:string" />
		<xsd:element name="ship2_add2" minOccurs="0" type="xsd:string" />
		<xsd:element name="ship2_city" minOccurs="0" type="xsd:string" />
		<xsd:element name="ship2_state" minOccurs="0" type="xsd:string" />
		<xsd:element name="ship2_country" minOccurs="0" type="xsd:string" />
		<xsd:element name="requested_by" minOccurs="0" type="xsd:string" />
		<xsd:element name="date_due" minOccurs="0" type="xsd:string" />
		<xsd:element name="po_desc" minOccurs="0" type="xsd:string" />
		<xsd:element name="ship2_zip" minOccurs="0" type="xsd:string" />
		<xsd:element name="date_created" minOccurs="1" type="xsd:string" />
		<xsd:element name="date_last_modified" minOccurs="1" type="xsd:string" />
		<xsd:element name="last_maintained_by" minOccurs="1" type="xsd:string" />
		<xsd:element name="location_id" minOccurs="1" type="xsd:string" />
		<xsd:element name="carrier_id" minOccurs="0" type="xsd:string" />
		<xsd:element name="cancel_flag" minOccurs="0" type="xsd:string" />
		<xsd:element name="ack_date" minOccurs="0" type="xsd:string" />
		<xsd:element name="ack_code" minOccurs="0" type="xsd:string" />
		<xsd:element name="supplier_id" minOccurs="0" type="xsd:string" />
		<xsd:element name="division_id" minOccurs="0" type="xsd:string" />
		<xsd:element name="branch_id" minOccurs="1" type="xsd:string" />
		<xsd:element name="approved" minOccurs="1" type="xsd:string" />
		<xsd:element name="po_class1" minOccurs="0" type="xsd:string" />
		<xsd:element name="po_class2" minOccurs="0" type="xsd:string" />
		<xsd:element name="po_class3" minOccurs="0" type="xsd:string" />
		<xsd:element name="po_class4" minOccurs="0" type="xsd:string" />
		<xsd:element name="po_class5" minOccurs="0" type="xsd:string" />
		<xsd:element name="po_type" minOccurs="1" type="xsd:string" />
		<xsd:element name="exclude_from_lead_time" minOccurs="1" type="xsd:string" />
		<xsd:element name="source_type" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="transmission_method" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="po_hdr_uid" minOccurs="1" type="xsd:decimal" />
		<xsd:element name="edi_edit_count" minOccurs="1" type="xsd:decimal" />
		<xsd:element name="contact_id" minOccurs="0" type="xsd:string" />
		<xsd:element name="created_by" minOccurs="0" type="xsd:string" />
		<xsd:element name="expedite_flag" minOccurs="0" type="xsd:string" />
		<xsd:element name="retrieved_by_wms" minOccurs="1" type="xsd:string" />
		<xsd:element name="supplier_release_no" minOccurs="0" type="xsd:string" />
		<xsd:element name="expected_date" minOccurs="0" type="xsd:string" />
		<xsd:element name="print_canadian_b3_forms_flag" minOccurs="1" type="xsd:string" />
		<xsd:element name="ship2_add3" minOccurs="0" type="xsd:string" />
		<xsd:element name="packing_basis" minOccurs="0" type="xsd:string" />
		<xsd:element name="ship_via_desc" minOccurs="0" type="xsd:string" />
		<xsd:element name="expected_ship_date" minOccurs="0" type="xsd:string" />
		<xsd:element name="auto_vouch_except_flag" minOccurs="1" type="xsd:string" />
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	<xsd:element name="PurchasingOrderLinesInsertUpdateRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="qty_ordered" minOccurs="1" type="xsd:string"/>
		<xsd:element name="qty_received" minOccurs="1" type="xsd:string"/>
		<xsd:element name="unit_price" minOccurs="1" type="xsd:string"/>
		<xsd:element name="mfg_part_no" minOccurs="0" type="xsd:string"/>
		<xsd:element name="delete_flag" minOccurs="1" type="xsd:string"/>
		<xsd:element name="date_due" minOccurs="0" type="xsd:string"/>
		<xsd:element name="date_created" minOccurs="1" type="xsd:string"/>
		<xsd:element name="date_last_modified" minOccurs="1" type="xsd:string"/>
		<xsd:element name="last_maintained_by" minOccurs="1" type="xsd:string"/>
		<xsd:element name="complete" minOccurs="1" type="xsd:string"/>
		<xsd:element name="vouch_completed" minOccurs="1" type="xsd:string"/>
		<xsd:element name="cancel_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="account_no" minOccurs="0" type="xsd:string"/>
		<xsd:element name="item_description" minOccurs="0" type="xsd:string"/>
		<xsd:element name="unit_of_measure" minOccurs="0" type="xsd:string"/>
		<xsd:element name="unit_size" minOccurs="1" type="xsd:string"/>
		<xsd:element name="unit_quantity" minOccurs="1" type="xsd:string"/>
		<xsd:element name="line_no" minOccurs="1" type="xsd:string"/>
		<xsd:element name="required_date" minOccurs="0" type="xsd:string"/>
		<xsd:element name="base_ut_price" minOccurs="1" type="xsd:string"/>
		<xsd:element name="price_edit" minOccurs="0" type="xsd:string"/>
		<xsd:element name="quantity_changed" minOccurs="0" type="xsd:string"/>
		<xsd:element name="pricing_unit" minOccurs="0" type="xsd:string"/>
		<xsd:element name="pricing_unit_size" minOccurs="0" type="xsd:string"/>
		<xsd:element name="extended_desc" minOccurs="0" type="xsd:string"/>
		<xsd:element name="unit_price_display" minOccurs="1" type="xsd:string"/>
		<xsd:element name="inv_mast_uid" minOccurs="1" type="xsd:decimal"/>
		<xsd:element name="exclude_from_lead_time" minOccurs="1" type="xsd:string"/>
		<xsd:element name="source_type" minOccurs="0" type="xsd:string"/>
		<xsd:element name="exp_date_updates" minOccurs="0" type="xsd:string"/>
		<xsd:element name="po_line_uid" minOccurs="0" type="xsd:string"/>
		<xsd:element name="edi_new_status" minOccurs="1" type="xsd:string"/>
		<xsd:element name="line_type" minOccurs="0" type="xsd:string"/>
		<xsd:element name="contract_number" minOccurs="0" type="xsd:string"/>
		<xsd:element name="created_by" minOccurs="0" type="xsd:string"/>
		<xsd:element name="supplier_ship_date" minOccurs="0" type="xsd:string"/>
		<xsd:element name="entered_as_code" minOccurs="0" type="xsd:string"/>
		<xsd:element name="expedite_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="acknowledged_date" minOccurs="0" type="xsd:string"/>
		<xsd:element name="b3_qty" minOccurs="0" type="xsd:string"/>
		<xsd:element name="carrier_status" minOccurs="0" type="xsd:string"/>
		<xsd:element name="expected_ship_date" minOccurs="0" type="xsd:string"/>
		<xsd:element name="date_due_last_modified" 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="PurchasingOrderInsertUpdateResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="PurchasingOrderInsertUpdateResponseContainerItems" nillable="true" type="tns:PurchasingOrderInsertUpdateResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="PurchasingOrderInsertUpdateResponseContainer" >
	    <xsd:sequence maxOccurs="unbounded">
<xsd:element name="po_no" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="vendor_id" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="order_date" nillable="true" minOccurs="0" type="xsd:date"/><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="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="date_due" nillable="true" minOccurs="0" type="xsd:date"/><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="date_created" nillable="true" minOccurs="0" type="xsd:date"/><xsd:element name="date_last_modified" nillable="true" minOccurs="0" type="xsd:date"/><xsd:element name="last_maintained_by" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="location_id" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="carrier_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="cancel_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ack_date" nillable="true" minOccurs="0" type="xsd:date"/><xsd:element name="ack_code" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="supplier_id" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="division_id" nillable="true" minOccurs="0" type="xsd:decimal"/><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="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="po_type" 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:int"/><xsd:element name="transmission_method" nillable="true" minOccurs="0" type="xsd:int"/><xsd:element name="po_hdr_uid" nillable="true" minOccurs="0" type="xsd:int"/><xsd:element name="edi_edit_count" nillable="true" minOccurs="0" type="xsd:int"/><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="expedite_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="expected_date" nillable="true" minOccurs="0" type="xsd:date"/><xsd:element name="print_canadian_b3_forms_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_add3" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="packing_basis" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship_via_desc" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="expected_ship_date" nillable="true" minOccurs="0" type="xsd:date"/><xsd:element name="auto_vouch_except_flag" 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="PurchasingOrderInsertUpdateRequest" > 
			<wsdl:part name="parameters" element="tns:PurchasingOrderInsertUpdateRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="PurchasingOrderInsertUpdateResponse" >
			<wsdl:part name="parameters" element="tns:PurchasingOrderInsertUpdateResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="PurchasingOrderInsertUpdate">
			<wsdl:operation name="PurchasingOrderInsertUpdate">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderInsertUpdate" message="tns:PurchasingOrderInsertUpdateRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderInsertUpdate" message="tns:PurchasingOrderInsertUpdateResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_PurchasingOrderInsertUpdate" type="tns:PurchasingOrderInsertUpdate">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="PurchasingOrderInsertUpdate">
		  <soap:operation soapAction="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderInsertUpdate" 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="PurchasingOrderInsertUpdateService">
			    <wsdl:port name="PurchasingOrderInsertUpdate" binding="tns:DefaultBinding_PurchasingOrderInsertUpdate">
			       <soap:address location="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderInsertUpdate" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
