Hi all,
Now that I can call the WebServices, I have a problem with one of them with returns a hudge amount of data (which is what it's supposed to do).
The error is :
What is the "appropriate binding element" ? I'm using a Service reference that connects to a WebService through a WSDL file.
Note : I found on Internet some clue, saying that I should use the System.ServiceModel.WSHttpBinding.
The current code is this :
It still fails, saying that there is too much data. How can I tell the WebService call to use the Binding object ?
Thanks a lot for your help.
Now that I can call the WebServices, I have a problem with one of them with returns a hudge amount of data (which is what it's supposed to do).
The error is :
System.ServiceModel.CommunicationException was unhandled by user code
The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.
What is the "appropriate binding element" ? I'm using a Service reference that connects to a WebService through a WSDL file.
Note : I found on Internet some clue, saying that I should use the System.ServiceModel.WSHttpBinding.
The current code is this :
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Binding As System.ServiceModel.WSHttpBinding = New System.ServiceModel.WSHttpBinding(System.ServiceModel.SecurityMode.None)
Binding.MaxReceivedMessageSize = 50000000
Dim AAA_SC As New SR_toto.AaaExportServiceClient
Dim ID_Requis(0) As Long
ID_Requis(0) = 54
Dim cc() As SR_toto.appelSummaryWS
cc = AAA_SC.getAppels(ID_Requis)
It still fails, saying that there is too much data. How can I tell the WebService call to use the Binding object ?
Thanks a lot for your help.
Last edited: