Hi,
I am having a issue trying to send a SOAP request.
I am using a Non-UI Application.
I can't say I have ever done SOAP messages/requests before so I am learning as I work on this.
The following is the code I am using:
(I removed the IP from the code I posted)
The error I am getting is:
I guess I am doing something wrong..
Anyone know what I have done wrong ?
I am having a issue trying to send a SOAP request.
I am using a Non-UI Application.
I can't say I have ever done SOAP messages/requests before so I am learning as I work on this.
The following is the code I am using:
(I removed the IP from the code I posted)
B4X:
'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#End Region
Sub Process_Globals
End Sub
Sub AppStart (Args() As String)
Dim job1 As HttpJob
Dim requestSoapXML As String
requestSoapXML = "<?xml version='1.0' encoding='utf-8'?>" & _
"<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>" & _
" <soap:Header>" & _
" <CredentialsHeader xmlns='https://xxx.xxx.xxx.xxx/test/API'>" & _
" <OrganizationID>1234</OrganizationID>" & _
" <Username>Admin</Username>" & _
" <Password>1234</Password>" & _
" </CredentialsHeader>" & _
" </soap:Header>" & _
" <soap:Body>" & _
" <ListAccounts xmlns='https://xxx.xxx.xxx.xxx/test/API' />" & _
" </soap:Body>" & _
"</soap:Envelope>"
job1.Initialize("JOB1", Me)
job1.PostString("https://xxx.xxx.xxx.xxx/Accounts.asmx", requestSoapXML)
StartMessageLoop
End Sub
Public Sub JobDone (Job As HttpJob)
If Job.Success = True Then
Log(Job.GetString)
End If
Job.Release
End Sub
The error I am getting is:
Program started.
java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/application/Platform
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:82)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.example.main.main(main.java:29)
Caused by: java.lang.NoClassDefFoundError: javafx/application/Platform
at anywheresoftware.b4j.objects.FxBA.postRunnable(FxBA.java:17)
at anywheresoftware.b4a.keywords.Common.CallSubDelayed4(Common.java:484)
at anywheresoftware.b4a.keywords.Common.CallSubDelayed2(Common.java:468)
at b4j.example.httpjob._postbytes(httpjob.java:215)
at b4j.example.httpjob._poststring(httpjob.java:261)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
Program terminated (StartMessageLoop was not called).
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:606)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:227)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
... 3 more
Caused by: java.lang.ClassNotFoundException: javafx.application.Platform
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 20 more
I guess I am doing something wrong..
Anyone know what I have done wrong ?