<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/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderInsert" 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/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderInsert" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

	 <wsdl:types>
	 <xsd:schema targetNamespace="https://connector.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderInsert" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="PurchasingOrderInsertRequestContainer" >
	 <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="createdby" minOccurs="0" type="xsd:string"/>
		<xsd:element name="transtype" minOccurs="1" type="xsd:string"/>
		<xsd:element name="vendno" minOccurs="1" type="xsd:decimal"/>
		<xsd:element name="prodline" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shipfrom" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="billtowhse" minOccurs="1" type="xsd:string"/>
		<xsd:element name="buyer" minOccurs="0" type="xsd:string"/>
		<xsd:element name="refer" minOccurs="0" type="xsd:string"/>
		<xsd:element name="expshipdt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="reqshipdt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shipinstr" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shipviaty" minOccurs="0" type="xsd:string"/>
		<xsd:element name="whse" minOccurs="1" type="xsd:string"/>
		<xsd:element name="shiptonm" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shiptoaddr1" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shiptoaddr2" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shiptocity" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shiptost" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shiptozip" minOccurs="0" type="xsd:string"/>
		<xsd:element name="enterdt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="transdt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="bofl" minOccurs="0" type="xsd:string"/>
		<xsd:element name="subfl" minOccurs="0" type="xsd:string"/>
		<xsd:element name="termstype" minOccurs="0" type="xsd:string"/>
		<xsd:element name="printprice" minOccurs="0" type="xsd:string"/>
		<xsd:element name="orderdisp" minOccurs="0" type="xsd:string"/>
		<xsd:element name="actionty" minOccurs="0" type="xsd:string"/>
		<xsd:element name="altorderno" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="altordersuf" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="duedt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="orderdt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="rushfl" minOccurs="0" type="xsd:string"/>
		<xsd:element name="createpurchaseorderlines" minOccurs="0" type="xsd:string"/>
		<xsd:element name="PurchasingOrderInsert" minOccurs="0" type="xsd:string"/>
		<xsd:element name="shiptoaddr3" 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:decimal"/>
		<xsd:element name="user7" minOccurs="0" type="xsd:decimal"/>
		<xsd:element name="user8" minOccurs="0" type="xsd:string"/>
		<xsd:element name="user9" minOccurs="0" type="xsd:string"/>
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	<xsd:element name="PurchasingOrderLinesInsertRequestContainer" minOccurs="1" maxOccurs="unbounded">
	 <xsd:complexType >
	  <xsd:sequence>
		<xsd:element name="lineno" minOccurs="1" type="xsd:decimal"/>
		<xsd:element name="price" minOccurs="1" type="xsd:decimal"/>
		<xsd:element name="descrip1" minOccurs="0" type="xsd:string"/>
		<xsd:element name="descrip2" minOccurs="0" type="xsd:string"/>
		<xsd:element name="qtyord" minOccurs="1" type="xsd:decimal"/>
		<xsd:element name="shipprod" minOccurs="1" type="xsd:string"/>
		<xsd:element name="reqprod" minOccurs="0" type="xsd:string"/>
		<xsd:element name="vendprod" minOccurs="0" type="xsd:string"/>
		<xsd:element name="enterdt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="duedt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="reqshipdt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="expshipdt" minOccurs="0" type="xsd:string"/>
		<xsd:element name="unit" minOccurs="1" type="xsd:string"/>
		<xsd:element name="lncomm" minOccurs="0" type="xsd:string"/>
		<xsd:element name="cprintfl" minOccurs="0" type="xsd:string"/>
		<xsd:element name="pricingoption" minOccurs="0" type="xsd:string"/>
		<xsd:element name="PurchasingOrderLinesInsert" 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="PurchasingOrderInsertResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="PurchasingOrderInsertResponseContainerItems" nillable="true" type="tns:PurchasingOrderInsertResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="PurchasingOrderInsertResponseContainer" >
	    <xsd:sequence maxOccurs="unbounded">
<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="purchaseordernumber" nillable="true" minOccurs="0" type="xsd:decimal"  />	    </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="PurchasingOrderInsertRequest" > 
			<wsdl:part name="parameters" element="tns:PurchasingOrderInsertRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="PurchasingOrderInsertResponse" >
			<wsdl:part name="parameters" element="tns:PurchasingOrderInsertResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="PurchasingOrderInsert">
			<wsdl:operation name="PurchasingOrderInsert">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderInsert" message="tns:PurchasingOrderInsertRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderInsert" message="tns:PurchasingOrderInsertResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_PurchasingOrderInsert" type="tns:PurchasingOrderInsert">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="PurchasingOrderInsert">
		  <soap:operation soapAction="https://connector.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderInsert" 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="PurchasingOrderInsertService">
			    <wsdl:port name="PurchasingOrderInsert" binding="tns:DefaultBinding_PurchasingOrderInsert">
			       <soap:address location="https://connector.greywolf.com/sx/ws.aspx?result=ws&amp;v=1&amp;api=PurchasingOrderInsert" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
