Android Question Cant Post XML to IP address?

Cosmotastic

Member
Licensed User
Hi I have tried to upload my XML to my IP address but it gave me this error
B4X:
<!DOCTYPE html>



<html><head><title>Not Found</title></head>

<body>

<h2>Access Error: 404 -- Not Found</h2>

<pre>Cannot open document for: /PowerMeter/SampleData</pre>

</body>

</html>

JobName = JobPostName, Success = false


Error: Not Found
Any idea why this occurred?
B4X:
Sub cmdSubmit_Click
    Dim jobPost As HttpJob
    jobPost.Initialize("JobPostName",Me)
    jobPost.PostFile("http://"Ip"/PowerMeter/SampleData",File.DirRootExternal,"create.xml")
End Sub

Sub JobDone (Job As HttpJob)
    Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
    If Job.Success = True Then
        Select Job.JobName
            Case "JobPostName"
                ToastMessageShow("Success!", True)
        End Select
    Else
        Log("Error: " & Job.ErrorMessage)
        ToastMessageShow("Error: " & Job.ErrorMessage, True)
    End If
    Job.Release
End Sub
 
Top