<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=SalesOrderList" 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=SalesOrderList" 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=SalesOrderList" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="SalesOrderListRequestContainer">
	 <xsd:complexType>
	  <xsd:sequence>
		<xsd:element name="company_id" minOccurs="1" type="xsd:string"/>
		<xsd:element name="customer_id" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="location_id" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="po_no" minOccurs="0" type="xsd:string"/>
		<xsd:element name="cancel_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="completed" minOccurs="0" type="xsd:string"/>
		<xsd:element name="brs-b-order_date" minOccurs="0" type="xsd:string"/>
		<xsd:element name="brs-e-order_date" minOccurs="0" type="xsd:string"/>
		<xsd:element name="delete_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="brs-b-mod_date" minOccurs="0" type="xsd:string"/>
		<xsd:element name="brs-e-mod_date" minOccurs="0" type="xsd:string"/>
		<xsd:element name="ship_confirmed_flag" minOccurs="0" type="xsd:string"/>
		<xsd:element name="corp_address_id" minOccurs="0" type="xsd:string"/>
		<xsd:element name="filter" minOccurs="0" type="xsd:string"/>
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	  </xsd:sequence>
	</xsd:complexType>
	 </xsd:element>
	<xsd:element name="SalesOrderListResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="SalesOrderListResponseContainerItems" nillable="true" type="tns:SalesOrderListResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="SalesOrderListResponseContainer" >
	    <xsd:sequence maxOccurs="unbounded">
<xsd:element name="company_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="order_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_id" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="order_date" 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_zip" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_country" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="requested_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="terms_desc" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship_to_phone" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="delete_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="completed" 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="cod_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="projected_order" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="po_no_append" 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:decimal"  /><xsd:element name="address_id" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="contact_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="handling_charge_req_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="payment_method" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="fob_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="rma_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="taker" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="approved" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="source_location_id" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="packing_basis" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="delivery_instructions" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="pick_ticket_type" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="requested_downpayment" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="downpayment_invoiced" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="cancel_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="will_call" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="front_counter" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="validation_status" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="oe_hdr_uid" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="source_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="credit_card_hold" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="invoice_batch_uid" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="freight_out" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="shipping_route_uid" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="exclude_rebates" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="front_counter_rma" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_email_address" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="order_type" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="taxable" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="profit_percent" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="order_cost_basis" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="rma_expiration_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="created_by" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="invoice_no" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill_to_contact_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="tag_hold_cancel_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="restock_fee_percentage" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="date_order_completed" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="original_promise_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="promise_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="requested_ship_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="expected_completion_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="downpayment_percentage" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="acknowledgement_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="source_code_no" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="expedite_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="environmental_fee_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="admin_fee_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="promise_date_extended_desc" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="promise_date_edited_date" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="order_disc_type" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="order_disc_factor" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="order_ack_printed_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="packing_list_sent_flag" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="send_partial_order_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="apply_fuel_surcharge_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="central_fax_number" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="url" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="net_billing_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="net_billing_edited" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship2_add3" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="electronic_order_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="hold_invoice_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="do_not_export_to_pts_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="blind_ship_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="quote_type" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="pts_label_print_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="discount_item_id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_disc_pct" nillable="true" minOccurs="0" type="xsd:decimal"  /><xsd:element name="consolidate_per_order_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill_address1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill_address2" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill_city" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill_state" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill_postal_code" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="bill_phone" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_address1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_address2" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_city" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_state" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_postal_code" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="customer_phone" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="location_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="location_address1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="location_address2" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="location_city" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="location_state" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="location_postal_code" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="location_phone" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="remit_name" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="remit_address1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="remit_address2" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="remit_city" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="remit_state" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="remit_postal_code" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="remit_phone" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ship_confirmed_flag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="class_1id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="class_2id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="class_3id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="class_4id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="class_5id" 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="job_name" 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="SalesOrderListRequest" > 
			<wsdl:part name="parameters" element="tns:SalesOrderListRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="SalesOrderListResponse" >
			<wsdl:part name="parameters" element="tns:SalesOrderListResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="SalesOrderList">
			<wsdl:operation name="SalesOrderList">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderList" message="tns:SalesOrderListRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderList" message="tns:SalesOrderListResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_SalesOrderList" type="tns:SalesOrderList">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="SalesOrderList">
		  <soap:operation soapAction="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderList" 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="SalesOrderListService">
			    <wsdl:port name="SalesOrderList" binding="tns:DefaultBinding_SalesOrderList">
			       <soap:address location="https://connector.greywolf.com/p21/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderList" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
