An HTTP transport error occured. Error Code: 413, Error Message: Request Entity Too Large

Hi
While Running a DotNet Adapter service i gave Large XML file nearly with 1800 lines then the following error was coming
If anyone familiar with pls help

com.wm.app.b2b.server.ServiceException: com.wm.app.b2b.server.ServiceException: com.wm.dotnet.pkg.WmDotNetException: Reasons:An HTTP transport error occured. Error Code: 413, Error Message: Request Entity Too Large , DetailErrorId:, DetailMessage:
com.wm.app.b2b.server.ServiceException: com.wm.app.b2b.server.ServiceException: com.wm.dotnet.pkg.WmDotNetException: Reasons:An HTTP transport error occured. Error Code: 413, Error Message: Request Entity Too Large , DetailErrorId:, DetailMessage:
at com.wm.dotnet.pkg.ns.DotNetServiceNode.baseInvoke(DotNetServiceNode.java:281)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:640)
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:39)
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:49)
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:243)
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:49)
at com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:171)
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:289)
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:34)
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:369)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:544)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:383)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:244)
at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:119)
at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:164)
at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:174)
at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:383)
at com.wm.util.pool.PooledThread.run(PooledThread.java:119)
at java.lang.Thread.run(Thread.java:724)

What is your IS version? Fix levels?

I have not worked on .NET Serive but I have some information for you.

Assuming you are on vesion 9.x:

Make sure WmDotNet, WmMSCodeGen package and webMethods add-in for Microsoft Visual Studio .NET are installed on your IS

The Microsoft .NET Framework, which includes the Common Language Runtime (CLR), must be installed.

Make sure to install the webMethods Package for Microsoft .NET and the Microsoft .NET Framework on the same machine.

Open wmSystem.exe.config file from Software AG_directory/DotNetHost folder. Check the parameter ?maxReceivedMesageSize? if it is too small for the receiving request entity then increase it to a size in which this can be handled and restart the Dot Net Host.

Refer “webMethods Package for Microsoft .NET Installation and User’s Guide”

1 Like

Is the same working fine with small size files ? If yes, no issues with Adapter.

Thanks,

Hi Mahesh Thank you For Your Suggestion I tried to search for maxReceivedMesageSize term in WmSyetem config file but i did not find anything is there anything i can change at any other config files

<?xml version="1.0"?>

<basicHttpBinding>
  <binding name="basicHttpBinding_IHosting" maxReceivedMesageSize="1048576">
    <security mode="None" />
    <readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
  </binding>
</basicHttpBinding>

Before you make any changes to the config file, make a backup and then edit. Don’t forget to restart yoru .net host.


<basicHttpBinding>
  <binding name="basicHttpBinding_IHosting" maxReceivedMesageSize="1048576">
    <security mode="None" />
    <readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
  </binding>
</basicHttpBinding>

Before you make any changes to the config file, make a backup and then edit. Don’t forget to restart yoru .net host.


<basicHttpBinding>
  <binding name="basicHttpBinding_IHosting" maxReceivedMesageSize="1048576">
    <security mode="None" />
    <readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
  </binding>
</basicHttpBinding>

Before you make any changes to the config file, make a backup and then edit. Don’t forget to restart yoru .net host.


<basicHttpBinding>
  <binding name="basicHttpBinding_IHosting" maxReceivedMesageSize="1048576">
    <security mode="None" />
    <readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
  </binding>
</basicHttpBinding>

Before you make any changes to the config file, make a backup and then edit. Don’t forget to restart yoru .net host.


<basicHttpBinding>
  <binding name="basicHttpBinding_IHosting" maxReceivedMesageSize="1048576">
    <security mode="None" />
    <readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
  </binding>
</basicHttpBinding>

Before you make any changes to the config file, make a backup and then edit. Don’t forget to restart yoru .net host.

1 Like

Thank You Mahesh its Working

Ok great :slight_smile:

Abdul,

Have you worked on .net services in webMethods? Any implementation done on this, can you share details to me?