<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=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/p21cloud/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/p21cloud/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:string" />
		<xsd:element name="location_id" minOccurs="0" type="xsd:string" />
		<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="Delete" 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="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="OrderNo" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CustomerId" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="CompanyId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="LocationId" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="PoNo" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ContactId" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="Taker" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="OrderDate" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="Completed" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="Quote" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="DeletedFlag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CancelledFlag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="InvoiceNo" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="JobName" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="RequestedDate" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="Approved" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ShipToId" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="ShipToName" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ShipToAddress1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ShipToAddress2" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ShipToAddress3" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ShipToCity" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="OeHdrShip2State" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ZipCode" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ShipToCountry" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ShipToMailAddress" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="SourceLocationId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CarrierId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="Route" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="PackingBasis" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="DeliveryInstructions" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="Terms" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="WillCall" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="Class1id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="Class2id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="Class3id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="Class4id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="Class5id" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="RMA" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="FreightCd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BillingDescription" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CaptureUsage" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="JobNo" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="InvoiceBatchNumber" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="InvoiceExchangeRateSource" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ShipToPhone" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ApplyBuilderAllowanceFlag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="QuoteExpirationDate" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="PromiseDate" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CreateInvoice" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CStrategicPriceLibraryId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="MerchandiseCreditFlag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="OrderPriorityId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="UpsCode" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="PlacedByName" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="RequiredPaymentUponRelease" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="FreightOut" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="PickTicketType" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="OeHdrUid" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ThirdPartyBilling" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="UserDefinedFields" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CurrencyID" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="QuoteType" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="WebReferenceNo" 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="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/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderList" message="tns:SalesOrderListRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/p21cloud/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/p21cloud/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/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderList" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
