Sample Response Message
LeasePak Documentation Suite NETSOL website
add

(mPower icon) LPLessee

add

Sample Successful Response without SOAP

<?xml version="1.0"?>
<LP_RESPONSE_INFO>
	<RESULT_RECORD>
		<TYPE>INFO</TYPE>
		<RECORD>LESSEE</RECORD>
		<KEY>40</KEY>
		<FIELD>clientNumber</FIELD>
		<MSGCODE>3004</MSGCODE>
		<MSGTEXT>New Lessee number is:40</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:LPLessee">
			<ns:return><![CDATA[<?xml version="1.0"?>
			<LP_RESPONSE_INFO>
				<RESULT_RECORD>
					<TYPE>INFO</TYPE>
					<RECORD>LESSEE</RECORD>
					<KEY>40</KEY>
					<FIELD>clientNumber</FIELD>
					<MSGCODE>3004</MSGCODE>
					<MSGTEXT>New Lessee number is:40</MSGTEXT>
				</RESULT_RECORD>
			</LP_RESPONSE_INFO>
			]]></ns:return>
		</ns:addResponse>
	</soapenv:Body>
</soapenv:Envelope>
Sample Response Message with SOAP (error response)

Example: Response when UDT key does not match client number.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
	<soapenv:Body>
		<ns:addResponse xmlns:ns="urn:LPLessee">
			<ns:return><![CDATA[<?xml version="1.0"?>
			<LP_RESPONSE_INFO>
				<RESULT_RECORD>
					<TYPE>ERROR</TYPE>
					<RECORD>LESSEE</RECORD>
					<KEY>41</KEY>
					<FIELD>udtKey</FIELD>
					<MSGCODE>1536</MSGCODE>
					<MSGTEXT>UDT key does not match client number.</MSGTEXT>
				</RESULT_RECORD>
			</LP_RESPONSE_INFO>		
			]]></ns:return>
		</ns:addResponse>
	</soapenv:Body>
</soapenv:Envelope>