Maximum Size Quota

Hello Team,

We have integrated one WCF application in Identity manager. Few of the methods are working fine. for getalluser method which list the all users, we are facing issue in debugger, 

"The maximum message size qouta for incoming messges (65536) has been exceeded. To increse the qouta, use the MaxReceivedMessageSize property on the appropriate binding element."

Can anyone please help me out here how can i increase the size of the incoming messages?

we are using identity manager 8.1.2

Thanks,

Prasad

Parents Reply Children
  • Former Member
    0 Former Member over 1 year ago in reply to prasad

    That should have generated a script. In this script there's a call  to  the function VID_GetWcfWebService that returns a BasicHttpBinding object. Before using it you need to modify its settings. For instance , if the object is called mybinding , you should add a line mybinding.MaxReceivedMessageSize=1000000 .

    Confirm this, please, before continuing Slight smile

  • before override the existing script, my few other custom(soap) applications also integrated. those will also have impact of this right? do i need to take care of anything for those? 

  • Former Member
    0 Former Member over 1 year ago in reply to prasad

    If the setting on your custom script didnt work and you need to override the VID_GetWcfWebService  script, just copy it but keep the function names. That wont interfere at all in your code. But all in all, make some testing in your development servers first Slight smile

    Protected Overridable Function GetWcfBinding(ByVal vpWebService As IValueProvider) As System.ServiceModel.Channels.Binding

    ' create the configuration objects
    Dim myBinding As BasicHttpBinding = New BasicHttpBinding()

    >>>> ADD: myBinding.MaxReceivedMessageSize = 1000000;

    Return myBinding
    End Function

    HtH !!