Soap is easier with Soap Class

Status
Not open for further replies.

omidaghakhani1368

Well-Known Member
Licensed User
Longtime User
Hi.
I wrote a project that had web service(soap) with php
In basic4android we don't have library or class for use soap easily
We should be use XML and post it to web service body
finally i decide to create class for use web service easily
In this class you enter web service URL and method name and add all fields with type and value
and send request to web service
Then web service return result in "return tag" and in end my class parse result of web service and return result without any extra tag of web service

i attach class and example.
maybe this example and class don't be complete
i be happy if you complete it
 

Attachments

  • Soap.zip
    8.9 KB · Views: 939

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi.
I wrote a project that had web service(soap) with php
In basic4android we don't have library or class for use soap easily
We should be use XML and post it to web service body
finally i decide to create class for use web service easily
In this class you enter web service URL and method name and add all fields with type and value
and send request to web service
Then web service return result in "return tag" and in end my class parse result of web service and return result without any extra tag of web service

i attach class and example.
maybe this example and class don't be complete
i be happy if you complete it

May i use this in B4J ?
 

peacemaker

Expert
Licensed User
Longtime User
B4X:
Public TYPE_DOUBLE   As String = "xsd:dobule"
is it misprinted ? must be fixed ?
 

imbault

Well-Known Member
Licensed User
Longtime User
You are right :
B4X:
    Public TYPE_DOUBLE   As String = "xsd:double"
 

nidpea04

Member
Licensed User
Longtime User
Hi.
I wrote a project that had web service(soap) with php
In basic4android we don't have library or class for use soap easily
We should be use XML and post it to web service body
finally i decide to create class for use web service easily
In this class you enter web service URL and method name and add all fields with type and value
and send request to web service
Then web service return result in "return tag" and in end my class parse result of web service and return result without any extra tag of web service

i attach class and example.
maybe this example and class don't be complete
i be happy if you complete it
Pls create full example for web service(soap)
 

victormedranop

Well-Known Member
Licensed User
Longtime User
Hi.
I wrote a project that had web service(soap) with php
In basic4android we don't have library or class for use soap easily
We should be use XML and post it to web service body
finally i decide to create class for use web service easily
In this class you enter web service URL and method name and add all fields with type and value
and send request to web service
Then web service return result in "return tag" and in end my class parse result of web service and return result without any extra tag of web service

i attach class and example.
maybe this example and class don't be complete
i be happy if you complete it

You save my life. thanks
 

victormedranop

Well-Known Member
Licensed User
Longtime User
Hi.
I wrote a project that had web service(soap) with php
In basic4android we don't have library or class for use soap easily
We should be use XML and post it to web service body
finally i decide to create class for use web service easily
In this class you enter web service URL and method name and add all fields with type and value
and send request to web service
Then web service return result in "return tag" and in end my class parse result of web service and return result without any extra tag of web service

i attach class and example.
maybe this example and class don't be complete
i be happy if you complete it

how can you manage the cookie? I can connect with your class, but next reuest error. httpjob delete de cookies on request.
 

frutuopa

Member
Licensed User
Longtime User
Hello

I try to consume https://funfrap.com/ws/server.php?wsdl like this


dim s1 As Soap
s1.Initialize("https://funfrap.com/ws/server.php?wsdl","daLoginSucesso",Me,"Result")


s1.AddField("login",s1.TYPE_STRING,txtLogin.Text)
s1.AddField("pwd",s1.TYPE_STRING,txtPWD.TEXT)
's1.AddField("sID",s1.TYPE_INTEGER,"01239123")
s1.SendRequest

if i consume from vb.net nao problem

in b4x i have this message
error was encountered while trying to use an ErrorDocument to handle the request.</p>

can you hel me?

Thanks
 
Status
Not open for further replies.
Top