HI All,
I am new to Basic4Android and I am trying to get my first project of the ground.
My First Activity is a Login page.
I am trying to call a XML Webservice to complete the login process but I am getting errors.
Below is the current code
I am new to Basic4Android and I am trying to get my first project of the ground.
My First Activity is a Login page.
I am trying to call a XML Webservice to complete the login process but I am getting errors.
Below is the current code
B4X:
Sub
btnLogin_Click
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:Body>" & _
"<Agmen_Login xmlns='http://tempuri.org//'>" & _
"<User>Eugene</User>" & _
"</soap:Body>"
& _
"</soap:Envelope>"
job2
.Initialize(Me,Me)
job2
.PostString(url,RequestSoapXML)
job2.GetRequest.SetContentType("text/xml; charset=utf-8")
job2.GetRequest.SetHeader("SOAPAction", """http://www.Myserver.co.za/deliverymanager/services/ccd.asmx""")
End Sub
[CODE]
And this is the error Im getting
startService: class anywheresoftware.b4a.samples.httputils2.httputils2service
** Service (httputils2service) Create **
** Service (httputils2service) Start **
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="[URL]http://schemas.xmlsoap.org/soap/envelope/[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]" xmlns:xsd="[URL]http://www.ccdcouriers.co.za/deliverymanager/services/ccd.asmx[/URL].
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>
main_jobdone (B4A line: 78)
Log(Job.GetString)
java.io.FileNotFoundException: /data/data/hippeus.ccd/cache/1: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:416)
at java.io.FileInputStream.<init>(FileInputStream.java:78)
at anywheresoftware.b4a.objects.streams.File.OpenInput(File.java:197)
at anywheresoftware.b4a.samples.httputils2.httpjob._getstring2(httpjob.java:155)
at anywheresoftware.b4a.samples.httputils2.httpjob._getstring(httpjob.java:144)
at hippeus.ccd.main._jobdone(main.java:448)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.keywords.Common$5.run(Common.java:958)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
at libcore.io.IoBridge.open(IoBridge.java:400)
... 18 more
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.httputils2.httputils2service
** Service (httputils2service) Create **
** Service (httputils2service) Start **
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="[URL]http://schemas.xmlsoap.org/soap/envelope/[/URL]" xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]" xmlns:xsd="[URL]http://www.myserver.co.za/deliverymanager/services/ccd.asmx[/URL].
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>
Last edited: