We are trying to use the following script to view invoice details from Kashflow using Classic ASP. But we are receiving the following error:
Microsoft VBScript runtime error '800a01a8'
Object required: '[login to view URL]'
We simply need it fixing, or advising us on what can fix this issue.
Script below....
Many thanks
-------------------------------------------------------------------------------------------------------------------------------
<%
SOAP_ENDPOINT = ""
SOAP_NS = ""
SOAP_FUNCTION = ""
SOAP_REQUEST = ""
SOAP_RESPONSE = ""
function SOAP_StartRequest(sEndPoint, sNameSpace, sFunction)
SOAP_ENDPOINT = sEndPoint
SOAP_NS = sNameSpace
SOAP_FUNCTION = sFunction
'do the SOAP envelope
SOAP_REQUEST = ""
SOAP_REQUEST = SOAP_REQUEST + " "
'start the SOAP body
SOAP_REQUEST = SOAP_REQUEST + ""
'start function
SOAP_REQUEST = SOAP_REQUEST + ""
end function
Function SOAP_AddParameter(byval strParam, byval strValue)
Dim strSoap
SOAP_REQUEST = SOAP_REQUEST + ""
SOAP_REQUEST = SOAP_REQUEST + strValue
SOAP_REQUEST = SOAP_REQUEST + ""
End Function
function SOAP_SendRequest()
'end function, body and envelope
SOAP_REQUEST = SOAP_REQUEST + ""
SOAP_REQUEST = SOAP_REQUEST + ""
SOAP_REQUEST = SOAP_REQUEST + ""
Dim oHttp
Dim strResult
Set oHttp = [login to view URL]("MSXML2.ServerXMLHTTP.6.0")
[login to view URL] 2, 13056
[login to view URL] "POST", SOAP_ENDPOINT, false
[login to view URL] "Content-Type", "text/xml"
[login to view URL] "SOAPAction", SOAP_NS + "/" & SOAP_FUNCTION
[login to view URL] SOAP_REQUEST
SOAP_RESPONSE = [login to view URL]
end function
Function SOAP_GetResult(resultParam)
Dim oXml
Set oXml = CreateObject("[login to view URL]")
[login to view URL] = true
[login to view URL] SOAP_RESPONSE
Dim strPath
strPath = "/*/*//" + resultParam
Dim oNode
Set oNode = [login to view URL](strPath)
SOAP_GetResult = [login to view URL]
End Function
%>
------------------------------------------------------------------------------------------------------------------------------
<%
SOAP_StartRequest "[login to view URL]", "KashFlow", "GetInvoice"
SOAP_AddParameter "UserName", "USERNAME"
SOAP_AddParameter "Password", "PASSWORD"
SOAP_AddParameter "InvoiceNumber", "16477"
SOAP_SendRequest
%>
Status: <%=SOAP_GetResult("Status")%><br />
NetAmount: <%=SOAP_GetResult("NetAmount")%><br />
VATAmount: <%=SOAP_GetResult("VATAmount")%><br />
Hi. this is simple as you have to check the component registered correctly or not at server.
Relevant Skills and Experience
ASP
Proposed Milestones
$15 USD - final payment
Hi, I went through your requirement and feel comfortable to do this job. I have good experience in website design & development. Please initiate chat to discuss further.
Relevant Skills and Experience
PHP, Word press, Magneto, CSS, HTML
Proposed Milestones
$15 USD - Complete Milestone
Hi,
I think I can fix the code but I have some questions, and I am not sure I can ask these questions if my bid is not won.
Stay tuned, I'm still working on this proposal.
Hi! I can fix your issue. I have long term skills for classical asp development.
Соответствующие навыки и опыт
classical asp
Предлагаемые промежуточные платежи
$10 USD - after job is done
Good experience in Classic ASP and willing to start the work immediately.
Relevant Skills and Experience
Ready to fix it immediately.
Proposed Milestones
$15 USD - milestone 1
Are you also using include file in the top of the page?
Relevant Skills and Experience
Need to have a include file, I can see suggest you the right file.
Proposed Milestones
$25 USD - project milestone
Hi,I have checked the issue and my understanding is that you are making api request and while parsing the response this error comes as this is object required so i need to check the response 1st.
Relevant Skills and Experience
if response is ok then there must be some error on the line prescribed.
Proposed Milestones
$15 USD - payment will be after work done
I have 9+ years’ experience of web development with classic ASP and SQL-Server. I have done all my projects in classic ASP and having good experience over xml api request response.