Sample Response Message
LeasePak Documentation Suite NETSOL website
add

(mPower icon) LPVendor

add

Sample Successful Response without SOAP

<?xml version="1.0"?>
<LP_RESPONSE_INFO>
	<RESULT_RECORD>
		<TYPE>INFO</TYPE>
		<RECORD>VENDOR</RECORD>
		<KEY>43</KEY>
		<FIELD>clientNumber</FIELD>
		<MSGCODE>3002</MSGCODE>
		<MSGTEXT>New Vendor number is:43</MSGTEXT>
	</RESULT_RECORD>
</LP_RESPONSE_INFO>
Sample Successful Response with SOAP

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
	<soapenv:Body>
		<ns:addResponse xmlns:ns="urn:LPVendor">
			<ns:return><![CDATA[<?xml version="1.0"?>
			<LP_RESPONSE_INFO>
				<RESULT_RECORD>
					<TYPE>INFO</TYPE>
					<RECORD>VENDOR</RECORD>
					<KEY>43</KEY>
					<FIELD>clientNumber</FIELD>
					<MSGCODE>3002</MSGCODE>
					<MSGTEXT>New Vendor number is:43</MSGTEXT>
				</RESULT_RECORD>
			</LP_RESPONSE_INFO>			
			]]></ns:return>
		</ns:addResponse>
	</soapenv:Body>
</soapenv:Envelope>
Sample Response Message with SOAP (error response)

Example: Response when user defined field key (udfkey) is not blank while adding a new vendor record.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
	<soapenv:Body>
		<ns:addResponse xmlns:ns="urn:LPVendor">
			<ns:return><![CDATA[<?xml version="1.0"?>
			<LP_RESPONSE_INFO>
				<RESULT_RECORD>
					<TYPE>ERROR</TYPE>
					<RECORD>VENDOR</RECORD>
					<KEY>46</KEY>
					<FIELD>udfKey</FIELD>
					<MSGCODE>1535</MSGCODE>
					<MSGTEXT>UDF key does not match client number.</MSGTEXT>
				</RESULT_RECORD>
			</LP_RESPONSE_INFO>
			]]></ns:return>
		</ns:addResponse>
	</soapenv:Body>
</soapenv:Envelope>