Android Question Setting binding parameters

realblue

Member
Licensed User
Longtime User
Hi everybody, below is my Visual Basic code to connect to a web service. How can I achieve this with httputils?

B4X:
Dim binding As New BasicHttpBinding()
binding.MaxBufferSize = Integer.MaxValue
binding.MaxReceivedMessageSize = Integer.MaxValue
binding.MaxBufferPoolSize = Integer.MaxValue
binding.ReaderQuotas.MaxStringContentLength = Integer.MaxValue
binding.ReaderQuotas.MaxArrayLength = Integer.MaxValue
binding.Security.Mode = BasicHttpSecurityMode.Transport
binding.MessageEncoding = WSMessageEncoding.Mtom
binding.ReceiveTimeout = New TimeSpan(23, 59, 59)
binding.SendTimeout = New TimeSpan(23, 59, 59)
client = New digitalplanet.IntegrationServiceSoapClient(binding, New EndpointAddress(IntegratorURL))
 

realblue

Member
Licensed User
Longtime User
Hi Erel,

I understand that I need to convert requests to XML format but my question is about binding parameters. The service I am trying to use is using MTOM encoding which I need to setup connection with the correct parameters before submitting any request.

B4X:
binding.MessageEncoding = WSMessageEncoding.Mtom
 
Upvote 0
Top