<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=SalesCustomerInsertUpdate" 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=SalesCustomerInsertUpdate" 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=SalesCustomerInsertUpdate" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema">
	<xsd:element  name="SalesCustomerInsertUpdateRequestContainer">
	 <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="customer_name" minOccurs="1" type="xsd:string" />
		<xsd:element name="mail_address1" minOccurs="0" type="xsd:string" />
		<xsd:element name="mail_address2" minOccurs="0" type="xsd:string" />
		<xsd:element name="mail_city" minOccurs="0" type="xsd:string" />
		<xsd:element name="mail_state" minOccurs="0" type="xsd:string" />
		<xsd:element name="zipcd" minOccurs="0" type="xsd:string" />
		<xsd:element name="central_phone_number" minOccurs="0" type="xsd:string" />
		<xsd:element name="central_fax_number" minOccurs="0" type="xsd:string" />
		<xsd:element name="last_maintained_by" minOccurs="1" type="xsd:string" />
		<xsd:element name="terms" minOccurs="1" type="xsd:string" />
		<xsd:element name="customer_type_cd" minOccurs="0" type="xsd:string" />
		<xsd:element name="po_no_required" minOccurs="1" type="xsd:string" />
		<xsd:element name="currency_id" minOccurs="1" type="xsd:string" />
		<xsd:element name="invoice_batch_uid" minOccurs="1" type="xsd:string" />
		<xsd:element name="statement_batch_uid" minOccurs="1" type="xsd:string" />
		<xsd:element name="salesrep_id" minOccurs="0" type="xsd:string" />
		<xsd:element name="taxable_flag" minOccurs="1" type="xsd:string" />
		<xsd:element name="email_address" minOccurs="0" type="xsd:string" />
		<xsd:element name="allow_line_item_freight_flag" minOccurs="0" type="xsd:string" />
		<xsd:element name="delete_flag" minOccurs="0" type="xsd:string" />
		<xsd:element name="source_price_cd" minOccurs="0" type="xsd:string" />
		<xsd:element name="default_branch" minOccurs="0" type="xsd:string" />
		<xsd:element name="APIKey"  minOccurs="1" type="xsd:string"/>
	  </xsd:sequence>
	</xsd:complexType>
	 </xsd:element>
	<xsd:element name="SalesCustomerInsertUpdateResponseContainerList">
	 <xsd:complexType>
	 <xsd:sequence>
	 <xsd:element maxOccurs="unbounded" minOccurs="0" name="SalesCustomerInsertUpdateResponseContainerItems" nillable="true" type="tns:SalesCustomerInsertUpdateResponseContainer" />
	 </xsd:sequence>
	 </xsd:complexType>
	</xsd:element>  
	   <xsd:complexType name="SalesCustomerInsertUpdateResponseContainer" >
	    <xsd:sequence maxOccurs="unbounded">
<xsd:element name="CompanyId" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="CustomerId" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="CustomerName" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="SalesrepId" nillable="true" minOccurs="0" type="xsd:integer"/><xsd:element name="TermsId" nillable="true" minOccurs="0" type="xsd:integer"/><xsd:element name="CodRequiredFlag" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="GenerateFinanceCharges" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="FcCycle" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="MinimumFinanceCharge" nillable="true" minOccurs="0" type="xsd:integer"/><xsd:element name="FinanceChargeShipToId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="FcGraceDays" nillable="true" minOccurs="0" type="xsd:integer"/><xsd:element name="FcPercentage" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="LastFcDate" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CreditStatus" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CreditLimit" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="CreditLimitPerOrder" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="CreditLimitCheckAtShipment" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="OverrideRevenueByItem" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="OrderAcknowledgments" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="PoNoRequired" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="LimitMaxShipmentsPerOrder" nillable="true" minOccurs="0" type="xsd:integer"/><xsd:element name="MinimumOrderDollarAmount" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="PickTicketType" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="DefaultDisposition" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="BillToContactId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="InvoicePrintQty" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="GenerateCustomerStatements" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="Taxable" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="StatementBalance" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="SicCode" 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="StateSalesTaxExemptionNo" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="StateExciseTaxExemptionNo" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="FederalExemptionNumber" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="OtherExemptionNumber" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="SecurityInfo" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="InterchgReceiverId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="InternationalSAN" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="TradingPartnerName" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="PrintPricesOnPackinglist" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="InvoiceBatchNumber" nillable="true" minOccurs="0" type="xsd:integer"/><xsd:element name="StatementBatchNumber" nillable="true" minOccurs="0" type="xsd:integer"/><xsd:element name="JobPricing" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="DefaultRebateLocationId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CurrencyId" nillable="true" minOccurs="0" type="xsd:integer"/><xsd:element name="OverrideProfitLimit" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="MinimumOrderLineProfit" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="MaximumOrderLineProfit" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="MinimumOrderProfit" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="MaximumOrderProfit" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="DateAcctOpened" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="PrintPackinglistInShipping" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="InclNonAllocOnTixText" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ExcludeCanceldFromPickTix" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="InclNonAllocOnListText" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="ExcludeCanceldFromPackList" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="AlwaysUseJobPrice" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="AllowNonJobItem" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="PromptForNonJobItem" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="AllowExceedJobQty" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="PrintLotAttribOnInvoice" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="PrintLotAttribOnPacklist" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="OverTolerancePercentage" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="UnderTolerancePercentage" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CustomerType" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="LeadSourceId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="UseAllContracts" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="JobNumberRequired" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="PromiseDateBuffer" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="FreightChargeId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="OrderPriorityId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="UseSystemUPSHandlingCharge" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="UpsHandlingCharge" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="DaysOverdueForCreditHold" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="Delete" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="SendOutsideUseDocs" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="SendOutsideUsePrint" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="SendOutsideUseFax" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="SendOutsideUseEmail" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="LegacyId" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="PricingMethod" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="RequirePaymentUponReleaseOfItems" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="CreditLimitUsed" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="CreditLimitAvailable" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="CorporateCreditLimit" nillable="true" minOccurs="0" type="xsd:decimal"/><xsd:element name="CorporateCreditLimitAvailable" nillable="true" minOccurs="0" type="xsd:string"/><xsd:element name="WebEnabledFlag" 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="SalesCustomerInsertUpdateRequest" > 
			<wsdl:part name="parameters" element="tns:SalesCustomerInsertUpdateRequestContainer" />
		</wsdl:message>
		 <wsdl:message name="SalesCustomerInsertUpdateResponse" >
			<wsdl:part name="parameters" element="tns:SalesCustomerInsertUpdateResponseContainerList" />
		</wsdl:message>

		 <wsdl:message name="faultMsg">
		  <wsdl:part name="fault" element="tns:FaultContainer" /> 
		 </wsdl:message>

		<wsdl:portType name="SalesCustomerInsertUpdate">
			<wsdl:operation name="SalesCustomerInsertUpdate">
			<wsdl:input wsaw:Action="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerInsertUpdate" message="tns:SalesCustomerInsertUpdateRequest" />
			<wsdl:output wsaw:Action="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerInsertUpdate" message="tns:SalesCustomerInsertUpdateResponse" />
			<wsdl:fault name="fault" message="tns:faultMsg"/>
			 </wsdl:operation>
		</wsdl:portType>

		<wsdl:binding name="DefaultBinding_SalesCustomerInsertUpdate" type="tns:SalesCustomerInsertUpdate">
		 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
		 <wsdl:operation name="SalesCustomerInsertUpdate">
		  <soap:operation soapAction="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerInsertUpdate" 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="SalesCustomerInsertUpdateService">
			    <wsdl:port name="SalesCustomerInsertUpdate" binding="tns:DefaultBinding_SalesCustomerInsertUpdate">
			       <soap:address location="https://connector.greywolf.com/p21cloud/ws.aspx?result=ws&amp;v=1&amp;api=SalesCustomerInsertUpdate" />
			   </wsdl:port> 
		 </wsdl:service>
	</wsdl:definitions>
