<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/csd/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderInsertUpdate" 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/csd/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderInsertUpdate" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

	 <wsdl:types>
	 <xsd:schema targetNamespace="https://connector.greywolf.com/csd/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderInsertUpdate" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="SalesOrderInsertUpdateRequestContainer">
	 <xsd:complexType>
	  <xsd:sequence>
		<xsd:element name="cono" minOccurs="1" type="xsd:decimal" />
		<xsd:element name="operinit" minOccurs="1" type="xsd:string" />
		<xsd:element name="actionType" minOccurs="0" type="xsd:string" />
		<xsd:element name="attention" minOccurs="0" type="xsd:string" />
		<xsd:element name="batchNm" minOccurs="0" type="xsd:string" />
		<xsd:element name="boFl" minOccurs="0" type="xsd:string" />
		<xsd:element name="buyer" minOccurs="0" type="xsd:string" />
		<xsd:element name="cancelDt" minOccurs="0" type="xsd:string" />
		<xsd:element name="confirmFl" minOccurs="0" type="xsd:string" />
		<xsd:element name="whse" minOccurs="0" type="xsd:string" />
		<xsd:element name="contractNr" minOccurs="0" type="xsd:string" />
		<xsd:element name="correlation_data" minOccurs="0" type="xsd:string" />
		<xsd:element name="currencyCd" minOccurs="0" type="xsd:string" />
		<xsd:element name="direction" minOccurs="0" type="xsd:string" />
		<xsd:element name="expShipDt" minOccurs="0" type="xsd:string" />
		<xsd:element name="fobDesc" minOccurs="0" type="xsd:string" />
		<xsd:element name="fobFl" minOccurs="0" type="xsd:string" />
		<xsd:element name="notes" minOccurs="0" type="xsd:string" />
		<xsd:element name="orderdisp" minOccurs="0" type="xsd:string" />
		<xsd:element name="orderNo" minOccurs="0" type="xsd:string" />
		<xsd:element name="orderSuf" minOccurs="0" type="xsd:string" />
		<xsd:element name="partnerId" minOccurs="0" type="xsd:string" />
		<xsd:element name="poIssueDt" minOccurs="0" type="xsd:string" />
		<xsd:element name="poNo" minOccurs="0" type="xsd:string" />
		<xsd:element name="poSuf" minOccurs="0" type="xsd:string" />
		<xsd:element name="promiseDt" minOccurs="0" type="xsd:string" />
		<xsd:element name="refer" minOccurs="0" type="xsd:string" />
		<xsd:element name="releaseNr" minOccurs="0" type="xsd:string" />
		<xsd:element name="reqShipDt" minOccurs="0" type="xsd:string" />
		<xsd:element name="rushFl" minOccurs="0" type="xsd:string" />
		<xsd:element name="shipInstr" minOccurs="0" type="xsd:string" />
		<xsd:element name="shipVia" minOccurs="0" type="xsd:string" />
		<xsd:element name="subFl" minOccurs="0" type="xsd:string" />
		<xsd:element name="transType" minOccurs="0" type="xsd:string" />
		<xsd:element name="user1" minOccurs="0" type="xsd:string" />
		<xsd:element name="user2" minOccurs="0" type="xsd:string" />
		<xsd:element name="user3" minOccurs="0" type="xsd:string" />
		<xsd:element name="user4" minOccurs="0" type="xsd:string" />
		<xsd:element name="user5" minOccurs="0" type="xsd:string" />
		<xsd:element name="user6" minOccurs="0" type="xsd:string" />
		<xsd:element name="user7" minOccurs="0" type="xsd:string" />
		<xsd:element name="user8" minOccurs="0" type="xsd:string" />
		<xsd:element name="user9" minOccurs="0" type="xsd:string" />
		<xsd:element name="taxfl" minOccurs="0" type="xsd:string" />
		<xsd:element name="fpcustno" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="approvty" minOccurs="0" type="xsd:string" />
		<xsd:element name="lostbusty" minOccurs="0" type="xsd:string" />
		<xsd:element name="slsrepin" minOccurs="0" type="xsd:string" />
		<xsd:element name="slsrepout" minOccurs="0" type="xsd:string" />
		<xsd:element name="takenby" minOccurs="0" type="xsd:string" />
		<xsd:element name="addonamt1" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="addonamt2" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="addonamt3" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="addonamt4" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="addonno1" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="addonno2" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="addonno3" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="addonno4" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="addontype1" minOccurs="0" type="xsd:string">
			<xsd:annotation><xsd:documentation>Use “$” or “%” for</xsd:documentation></xsd:annotation>
		</xsd:element>
		<xsd:element name="addontype2" minOccurs="0" type="xsd:string">
			<xsd:annotation><xsd:documentation>Use “$” or “%” for</xsd:documentation></xsd:annotation>
		</xsd:element>
		<xsd:element name="addontype3" minOccurs="0" type="xsd:string">
			<xsd:annotation><xsd:documentation>Use “$” or “%” for</xsd:documentation></xsd:annotation>
		</xsd:element>
		<xsd:element name="addontype4" minOccurs="0" type="xsd:string">
			<xsd:annotation><xsd:documentation>Use “$” or “%” for</xsd:documentation></xsd:annotation>
		</xsd:element>
		<xsd:element name="wodiscamt" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="wodiscpct" minOccurs="0" type="xsd:decimal" />
		<xsd:element name="wodisctype" minOccurs="0" type="xsd:string" />
		<xsd:element name="route" minOccurs="0" type="xsd:string" />
		<xsd:element name="apiruntype" minOccurs="0" type="xsd:string" />
		<xsd:element name="revieworderhold" minOccurs="0" type="xsd:string" />
		<xsd:element name="webtransactiontype" minOccurs="0" type="xsd:string" />
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	<xsd:element name="OrderCustomerRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="address1" minOccurs="0" type="xsd:string"/>
		<xsd:element name="address2" minOccurs="0" type="xsd:string"/>
		<xsd:element name="city" minOccurs="0" type="xsd:string"/>
		<xsd:element name="contact" minOccurs="0" type="xsd:string"/>
		<xsd:element name="countryCd" minOccurs="0" type="xsd:string"/>
		<xsd:element name="custNo" minOccurs="0" type="xsd:string"/>
		<xsd:element name="dunsNr" minOccurs="0" type="xsd:string"/>
		<xsd:element name="name" minOccurs="0" type="xsd:string"/>
		<xsd:element name="phone" minOccurs="0" type="xsd:string"/>
		<xsd:element name="postalCd" minOccurs="0" type="xsd:string"/>
		<xsd:element name="state" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user1" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user2" minOccurs="0" type="xsd:string"/>
	  </xsd:sequence><xsd:attribute name="id" type="xsd:string" />
	</xsd:complexType> 
	 </xsd:element>
	<xsd:element name="OrderShipToRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="address1" minOccurs="0" type="xsd:string"/>
		<xsd:element name="address2" minOccurs="0" type="xsd:string"/>
		<xsd:element name="city" minOccurs="0" type="xsd:string"/>
		<xsd:element name="contact" minOccurs="0" type="xsd:string"/>
		<xsd:element name="countryCd" minOccurs="0" type="xsd:string"/>
		<xsd:element name="dunsNr" minOccurs="0" type="xsd:string"/>
		<xsd:element name="name" minOccurs="0" type="xsd:string"/>
		<xsd:element name="phone" minOccurs="0" type="xsd:string"/>
		<xsd:element name="postalCd" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shipToNo" minOccurs="0" type="xsd:string"/>
		<xsd:element name="state" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user1" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user2" minOccurs="0" type="xsd:string"/>
	  </xsd:sequence><xsd:attribute name="id" type="xsd:string" />
	</xsd:complexType> 
	 </xsd:element>
	<xsd:element name="OrderBillToRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="address1" minOccurs="0" type="xsd:string"/>
		<xsd:element name="address2" minOccurs="0" type="xsd:string"/>
		<xsd:element name="city" minOccurs="0" type="xsd:string"/>
		<xsd:element name="contact" minOccurs="0" type="xsd:string"/>
		<xsd:element name="countryCd" minOccurs="0" type="xsd:string"/>
		<xsd:element name="dunsNr" minOccurs="0" type="xsd:string"/>
		<xsd:element name="name" minOccurs="0" type="xsd:string"/>
		<xsd:element name="phone" minOccurs="0" type="xsd:string"/>
		<xsd:element name="postalCd" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shipToNo" minOccurs="0" type="xsd:string"/>
		<xsd:element name="state" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user1" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user2" minOccurs="0" type="xsd:string"/>
	  </xsd:sequence><xsd:attribute name="id" type="xsd:string" />
	</xsd:complexType> 
	 </xsd:element>
	<xsd:element name="OrderTermsRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="basisDtCd" minOccurs="0" type="xsd:string"/>
		<xsd:element name="cardAcctNo" minOccurs="0" type="xsd:string"/>
		<xsd:element name="cardExpDt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="cardPreAuthDt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="cardPreAuthNo" minOccurs="0" type="xsd:string"/>
		<xsd:element name="cardType" minOccurs="0" type="xsd:string"/>
		<xsd:element name="descrip" minOccurs="0" type="xsd:string"/>
		<xsd:element name="discDays" minOccurs="0" type="xsd:string"/>
		<xsd:element name="discDt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="discPct" minOccurs="0" type="xsd:string"/>
		<xsd:element name="discProxDay" minOccurs="0" type="xsd:string"/>
		<xsd:element name="dueDays" minOccurs="0" type="xsd:string"/>
		<xsd:element name="dueDt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="sxTermsCd" minOccurs="0" type="xsd:string"/>
		<xsd:element name="typeCd" minOccurs="0" type="xsd:string"/>
	  </xsd:sequence><xsd:attribute name="id" type="xsd:string" />
	</xsd:complexType> 
	 </xsd:element>
	<xsd:element name="OrderLinesRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="buyerProd" minOccurs="0" type="xsd:string"/>
		<xsd:element name="descrip" minOccurs="0" type="xsd:string"/>
		<xsd:element name="dueDt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="expShipDt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="lineComments" minOccurs="0" type="xsd:string"/>
		<xsd:element name="lineIden" minOccurs="0" type="xsd:string"/>
		<xsd:element name="promiseDt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="qtyOrd" minOccurs="0" type="xsd:string"/>
		<xsd:element name="qtyUom" minOccurs="0" type="xsd:string"/>
		<xsd:element name="reqShipDt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="sellerProd" minOccurs="0" type="xsd:string"/>
		<xsd:element name="specPriceUom" minOccurs="0" type="xsd:string"/>
		<xsd:element name="sxLineNo" minOccurs="0" type="xsd:string"/>
		<xsd:element name="unitCost" minOccurs="0" type="xsd:string"/>
		<xsd:element name="upc" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user1" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user10" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user2" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user3" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user4" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user5" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user6" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user7" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user8" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user9" minOccurs="0" type="xsd:string"/>
		<xsd:element name="taxfl" minOccurs="0" type="xsd:string"/>
		<xsd:element name="specnstype" minOccurs="0" type="xsd:string"/>
		<xsd:element name="lostbusty" minOccurs="0" type="xsd:string"/>
		<xsd:element name="saleprice" minOccurs="0" type="xsd:string"/>
		<xsd:element name="seqno" minOccurs="0" type="xsd:string"/>
		<xsd:element name="warehouseid" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shipinstrty" minOccurs="0" type="xsd:string"/>
		<xsd:element name="lineitemtype" minOccurs="0" type="xsd:string"/>
	  </xsd:sequence><xsd:attribute name="id" type="xsd:string" />
	</xsd:complexType> 
	 </xsd:element>
	<xsd:element name="OrderHeaderExtraRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="fieldname" minOccurs="0" type="xsd:string"/>
		<xsd:element name="fieldvalue" minOccurs="0" type="xsd:string"/>
		<xsd:element name="seqno" minOccurs="0" type="xsd:string"/>
	  </xsd:sequence><xsd:attribute name="id" type="xsd:string" />
	</xsd:complexType> 
	 </xsd:element>
	<xsd:element name="OrderInFieldValueRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="level" minOccurs="0" type="xsd:string"/>
		<xsd:element name="lineno" minOccurs="0" type="xsd:string"/>
		<xsd:element name="seqno" minOccurs="0" type="xsd:string"/>
		<xsd:element name="fieldname" minOccurs="0" type="xsd:string"/>
		<xsd:element name="fieldvalue" 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="SalesOrderInsertUpdateResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="SalesOrderInsertUpdateResponseContainerItems" nillable="true" type="tns:SalesOrderInsertUpdateResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="SalesOrderInsertUpdateResponseContainer" >
	    <xsd:sequence maxOccurs="unbounded">
<xsd:element name="coNo" nillable="true" minOccurs="0" type="xsd:dec"/><xsd:element name="correlation_data" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="data1" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="errorNo" nillable="true" minOccurs="0" type="xsd:dec"/><xsd:element name="msg" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="seqNo" nillable="true" minOccurs="0" type="xsd:dec"/><xsd:element name="trxType" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="orderno" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="errorcd" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="errordesc" 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="SalesOrderInsertUpdateRequest" > 
			<wsdl:part name="parameters" element="tns:SalesOrderInsertUpdateRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="SalesOrderInsertUpdateResponse" >
			<wsdl:part name="parameters" element="tns:SalesOrderInsertUpdateResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="SalesOrderInsertUpdate">
			<wsdl:operation name="SalesOrderInsertUpdate">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/csd/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderInsertUpdate" message="tns:SalesOrderInsertUpdateRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/csd/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderInsertUpdate" message="tns:SalesOrderInsertUpdateResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_SalesOrderInsertUpdate" type="tns:SalesOrderInsertUpdate">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="SalesOrderInsertUpdate">
		  <soap:operation soapAction="https://connector.greywolf.com/csd/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderInsertUpdate" 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="SalesOrderInsertUpdateService">
			    <wsdl:port name="SalesOrderInsertUpdate" binding="tns:DefaultBinding_SalesOrderInsertUpdate">
			       <soap:address location="https://connector.greywolf.com/csd/ws.aspx?result=ws&amp;v=1&amp;api=SalesOrderInsertUpdate" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
