Retrieving ticket entity using SOAP webservices

Hello,

I am trying to create a ticket using the SOAP Web Services, the ticket is created but I get an error after saving, if I try to retrieve a ticket (that was created in the GUI self), I also get an error.

Sample code:

            SuperOffice.Configuration.ConfigFile.WebServices.RemoteBaseURL = "xx";

            SuperOffice.SoSession soSession = SuperOffice.SoSession.Authenticate("xx", "xx");

            using (SuperOffice.CRM.Services.TicketAgent _TicketAgent = new SuperOffice.CRM.Services.TicketAgent())
            {
                SuperOffice.CRM.Services.TicketEntity _TicketEntity = _TicketAgent.GetTicketEntity(10746);
            }

The following error is logged:

Debug	2021-06-11T11:54:17.32	test		test DH (1993) - Authorized (Employee)Gebruikersniveau 0: Beheerder: heeft volledige toegang tot alle gegevens. Kan alle inhoud in het systeem beheren. SuperOffice 9.2 R9 NetServer 9.2 Release (Build: Release92R9_2021.05.25-04) 9.2.0.0 9.2.7815.1722 Release92R9_2021.05.25-04 Default PC-ONTW-1 file:///C:/Users/All-CRM/source/repos/TestNetserverWebservices/bin/Debug/TestNetserverWebservices.exe NetServer	
Error	2021-06-11T11:54:19.82	System.ServiceModel.CommunicationException		LogExceptionError message: An error occurred while receiving the HTTP response to http://xx/superoffice/remote/services88/Ticket.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. DH (1993) - Authorized (Employee)Gebruikersniveau 0: Beheerder: heeft volledige toegang tot alle gegevens. Kan alle inhoud in het systeem beheren. SuperOffice 9.2 R9 NetServer 9.2 Release (Build: Release92R9_2021.05.25-04) 9.2.0.0 9.2.7815.1722 Release92R9_2021.05.25-04 Default PC-ONTW-1 file:///C:/Users/All-CRM/source/repos/TestNetserverWebservices/bin/Debug/TestNetserverWebservices.exe NetServer An error occurred while receiving the HTTP response to http://xx/superoffice/remote/services88/Ticket.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. 
Server stack trace: 
   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SuperOffice.Services88.Wcf.IWcfTicketService.GetTicketEntity(GetTicketEntityRequest request)
   at SuperOffice.CRM.Services.WcfProxy.Services88.TicketAgentWcfProxy.<>c.<GetTicketEntity>b__6_1(IWcfTicketService service, GetTicketEntityRequest request)
   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass8_0`2.<Execute>b__0(TWcfService service)
   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass7_0`1.<Execute>b__0(TWcfService service)
   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.Execute(OnExecute method) mscorlib The underlying connection was closed: An unexpected error occurred on a receive.    at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) System	
  	Exception Message:An error occurred while receiving the HTTP response to http://xx/superoffice/remote/services88/Ticket.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
  	Exception Source:mscorlib
  	Exception Target:Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
  	
  	Server stack trace: 
  	   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
  	   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
  	   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
  	   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
  	   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
  	   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
  	   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
  	
  	Exception rethrown at [0]: 
  	   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
  	   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
  	   at SuperOffice.Services88.Wcf.IWcfTicketService.GetTicketEntity(GetTicketEntityRequest request)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.TicketAgentWcfProxy.<>c.<GetTicketEntity>b__6_1(IWcfTicketService service, GetTicketEntityRequest request)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass8_0`2.<Execute>b__0(TWcfService service)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass7_0`1.<Execute>b__0(TWcfService service)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.Execute(OnExecute method)
Error	2021-06-11T11:55:57.78	System.ServiceModel.CommunicationException		LogExceptionError message: An error occurred while receiving the HTTP response to http://xx/superoffice/remote/services88/Ticket.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. DH (1993) - Authorized (Employee)Gebruikersniveau 0: Beheerder: heeft volledige toegang tot alle gegevens. Kan alle inhoud in het systeem beheren. SuperOffice 9.2 R9 NetServer 9.2 Release (Build: Release92R9_2021.05.25-04) 9.2.0.0 9.2.7815.1722 Release92R9_2021.05.25-04 Default PC-ONTW-1 file:///C:/Users/All-CRM/source/repos/TestNetserverWebservices/bin/Debug/TestNetserverWebservices.exe NetServer An error occurred while receiving the HTTP response to http://xx/superoffice/remote/services88/Ticket.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. 
Server stack trace: 
   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SuperOffice.Services88.Wcf.IWcfTicketService.GetTicketEntity(GetTicketEntityRequest request)
   at SuperOffice.CRM.Services.WcfProxy.Services88.TicketAgentWcfProxy.<>c.<GetTicketEntity>b__6_1(IWcfTicketService service, GetTicketEntityRequest request)
   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass8_0`2.<Execute>b__0(TWcfService service)
   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass7_0`1.<Execute>b__0(TWcfService service)
   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.Execute(OnExecute method) mscorlib The underlying connection was closed: An unexpected error occurred on a receive.    at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) System	
  	Exception Message:An error occurred while receiving the HTTP response to http://xx/superoffice/remote/services88/Ticket.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
  	Exception Source:mscorlib
  	Exception Target:Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
  	
  	Server stack trace: 
  	   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
  	   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
  	   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
  	   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
  	   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
  	   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
  	   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
  	
  	Exception rethrown at [0]: 
  	   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
  	   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
  	   at SuperOffice.Services88.Wcf.IWcfTicketService.GetTicketEntity(GetTicketEntityRequest request)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.TicketAgentWcfProxy.<>c.<GetTicketEntity>b__6_1(IWcfTicketService service, GetTicketEntityRequest request)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass8_0`2.<Execute>b__0(TWcfService service)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass7_0`1.<Execute>b__0(TWcfService service)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.Execute(OnExecute method)
Debug	2021-06-11T11:58:05.44	test		test DH (1993) - Authorized (Employee)Gebruikersniveau 0: Beheerder: heeft volledige toegang tot alle gegevens. Kan alle inhoud in het systeem beheren. SuperOffice 9.2 R9 NetServer 9.2 Release (Build: Release92R9_2021.05.25-04) 9.2.0.0 9.2.7815.1722 Release92R9_2021.05.25-04 Default PC-ONTW-1 file:///C:/Users/All-CRM/source/repos/TestNetserverWebservices/bin/Debug/TestNetserverWebservices.exe NetServer	
Error	2021-06-11T11:58:06.73	System.ServiceModel.CommunicationException		LogExceptionError message: An error occurred while receiving the HTTP response to http://xx/superoffice/remote/services88/Ticket.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. DH (1993) - Authorized (Employee)Gebruikersniveau 0: Beheerder: heeft volledige toegang tot alle gegevens. Kan alle inhoud in het systeem beheren. SuperOffice 9.2 R9 NetServer 9.2 Release (Build: Release92R9_2021.05.25-04) 9.2.0.0 9.2.7815.1722 Release92R9_2021.05.25-04 Default PC-ONTW-1 file:///C:/Users/All-CRM/source/repos/TestNetserverWebservices/bin/Debug/TestNetserverWebservices.exe NetServer An error occurred while receiving the HTTP response to http://xx/superoffice/remote/services88/Ticket.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. 
Server stack trace: 
   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SuperOffice.Services88.Wcf.IWcfTicketService.GetTicketEntity(GetTicketEntityRequest request)
   at SuperOffice.CRM.Services.WcfProxy.Services88.TicketAgentWcfProxy.<>c.<GetTicketEntity>b__6_1(IWcfTicketService service, GetTicketEntityRequest request)
   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass8_0`2.<Execute>b__0(TWcfService service)
   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass7_0`1.<Execute>b__0(TWcfService service)
   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.Execute(OnExecute method) mscorlib The underlying connection was closed: An unexpected error occurred on a receive.    at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) System	
  	Exception Message:An error occurred while receiving the HTTP response to http://xx/superoffice/remote/services88/Ticket.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
  	Exception Source:mscorlib
  	Exception Target:Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
  	
  	Server stack trace: 
  	   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
  	   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
  	   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
  	   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
  	   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
  	   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
  	   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
  	
  	Exception rethrown at [0]: 
  	   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
  	   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
  	   at SuperOffice.Services88.Wcf.IWcfTicketService.GetTicketEntity(GetTicketEntityRequest request)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.TicketAgentWcfProxy.<>c.<GetTicketEntity>b__6_1(IWcfTicketService service, GetTicketEntityRequest request)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass8_0`2.<Execute>b__0(TWcfService service)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass7_0`1.<Execute>b__0(TWcfService service)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.Execute(OnExecute method)
Error	2021-06-11T12:03:25.16	System.ServiceModel.CommunicationException		LogExceptionError message: An error occurred while receiving the HTTP response to http://xx/superoffice/remote/services88/Ticket.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. DH (1993) - Authorized (Employee)Gebruikersniveau 0: Beheerder: heeft volledige toegang tot alle gegevens. Kan alle inhoud in het systeem beheren. SuperOffice 9.2 R9 NetServer 9.2 Release (Build: Release92R9_2021.05.25-04) 9.2.0.0 9.2.7815.1722 Release92R9_2021.05.25-04 Default PC-ONTW-1 file:///C:/Users/All-CRM/source/repos/TestNetserverWebservices/bin/Debug/TestNetserverWebservices.exe NetServer An error occurred while receiving the HTTP response to http://xx/superoffice/remote/services88/Ticket.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. 
Server stack trace: 
   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at SuperOffice.Services88.Wcf.IWcfTicketService.GetTicketEntity(GetTicketEntityRequest request)
   at SuperOffice.CRM.Services.WcfProxy.Services88.TicketAgentWcfProxy.<>c.<GetTicketEntity>b__6_1(IWcfTicketService service, GetTicketEntityRequest request)
   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass8_0`2.<Execute>b__0(TWcfService service)
   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass7_0`1.<Execute>b__0(TWcfService service)
   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.Execute(OnExecute method) mscorlib The underlying connection was closed: An unexpected error occurred on a receive.    at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) System	
  	Exception Message:An error occurred while receiving the HTTP response to http://xx/superoffice/remote/services88/Ticket.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
  	Exception Source:mscorlib
  	Exception Target:Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
  	
  	Server stack trace: 
  	   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
  	   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
  	   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
  	   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
  	   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
  	   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
  	   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
  	
  	Exception rethrown at [0]: 
  	   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
  	   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
  	   at SuperOffice.Services88.Wcf.IWcfTicketService.GetTicketEntity(GetTicketEntityRequest request)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.TicketAgentWcfProxy.<>c.<GetTicketEntity>b__6_1(IWcfTicketService service, GetTicketEntityRequest request)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass8_0`2.<Execute>b__0(TWcfService service)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.<>c__DisplayClass7_0`1.<Execute>b__0(TWcfService service)
  	   at SuperOffice.CRM.Services.WcfProxy.Services88.SoWcfClient`1.Execute(OnExecute method)

No error is logged server-side, even with all logging levels enabled.

This is with the latest netserver release (9.2.7815.1722) and endpoint Services88.

 

RE: Retrieving ticket entity using SOAP webservices

Note: If I use the exactly the same code but connect using local mode instead of remote, it does work, so seems like there is something going wrong in the WCF serialization?

 

Av: David Hollegien 11. jun 2021

RE: Retrieving ticket entity using SOAP webservices

Hi David,

No concreate answered, just thoughts/questions...

  • IIS Permissions Settings - AllowAnonymous set to true or false?
  • IIS website host settings? SSL?
  • System.Net.ServicePointManager.SecurityProtocol |= System.Net.SecurityProtocolType.Tls12; ?
  • maxItemsInObjectGraph="2147483646" ?
  • Client side misconfiguration WCF configuration settings? 
  • <httpRuntime maxRequestLength="8192"/> too small?

 

Av: Tony Yates 11. jun 2021

RE: Retrieving ticket entity using SOAP webservices

Hi Tony,

Other WCF operations on the same environment with the same program work just fine (for ex. GetTicketMessageEntity). So I don't think it is any configuration issue.

To answer your list:

  • Anonymous authentication is enabled
  • No SSL/HTTPS, it is a local test environment
  • Changed 'maxItemsInObjectGraph' to max int value, no change
  • No special WCF configuration set, set max* properties on the WCF client-side, no change
  • Changed maxRequestLength to max value, no change

 

Av: David Hollegien 14. jun 2021

RE: Retrieving ticket entity using SOAP webservices

Hi David,

Ok, I can try and reproduce your observations. In the meanwhile, perhaps you could use the [WCF Service Trace Viewer tool to better identify the cause?

Best regards.

Av: Tony Yates 14. jun 2021

RE: Retrieving ticket entity using SOAP webservices

Hi David,

I've been unsuccessful at recreating these errors using the 9.2.7815.1722 SuperOffice.NetServer.Services nuget package towards an online tenant, which signals to me the problem is probably configuration (IIS or database data). 

I understand you say other method functions work as expected, and just the GetTicketEntity is causing problems. 

I have tried the following, all towards services88 without issue.

var ticket = ticketAgent.CreateDefaultTicketEntity();
ticket.Title = "Created from Demo App 2";
ticket = ticketAgent.SaveTicketEntity(ticket);

//Add a message to it
var ticketMessage = ticketAgent.CreateDefaultTicketMessageEntity();
ticketMessage.Ticket = new Ticket() { TicketId = ticket.TicketId };
ticketMessage.HtmlBody = "<b>Testing TicketMessage2 Body Text</b>";
ticketMessage.Author = "tony@superoffice.com";
ticketMessage = ticketAgent.SaveTicketMessageEntity(ticketMessage);

var ticketEntity = ticketAgent.GetTicketEntity(ticket.TicketId);

Question, is it just this one ticket id that causes problems, or all tickets? I'm reminded of a problem where if the ticket status was incorrectly set, it would cause problems. Are you able to verify the ticket values are OK?

 

Av: Tony Yates 14. jun 2021

RE: Retrieving ticket entity using SOAP webservices

Hi Tony,

Thanks for your help. It happens to all tickets that I created either using the API or in the GUI.

Using your code and some additionaly debugging I found out that I can retrieve tickets without a category just fine, but with a category attached then the error occurs, this happend with all 3 category's we have in our test environment.

If I created a new category and used that on the ticket, I could retrieve the ticket, but when making all settings equal, it broke again.

Long story short:

If any of the "Default status" fields on the category contain a reference to an user defined ticket status with an id id higher then 3, then it breaks.

Why? My assumption is that internally the WCF client try's to cast these values to the TicketCategoryClosingStatus (since that goes from 1 to 3), which isn't correct (anymore, in an earlier release this was changed so you can set a specific status, not sure which one)

Av: David Hollegien 14. jun 2021

RE: Retrieving ticket entity using SOAP webservices

Easier way to reproduce this is by calling GetTicketCategoryEntity:

            using (SuperOffice.CRM.Services.ListAgent listAgent = new SuperOffice.CRM.Services.ListAgent())
            {

                // this works since ej category 12 has closing_status = 2 and msg_closing_status  = 1
                SuperOffice.CRM.Services.TicketCategoryEntity category1 = listAgent.GetTicketCategoryEntity(12);

                // this doesnt work since ej category 4 has closing_status = 1 and msg_closing_status  = 13
                SuperOffice.CRM.Services.TicketCategoryEntity category2 = listAgent.GetTicketCategoryEntity(4);

            }

 

Av: David Hollegien 15. jun 2021

RE: Retrieving ticket entity using SOAP webservices

I assumed this would be fixed in 9.2 R10 because that was listed as the targeted release on the bug:

https://community.superoffice.com/en/product-releases/bugs-wishes/product-issue/?bid=14602&azure=1

But after just trying the latest NuGet packages the issue isn't resolved, I do see the status being set to reported (I thought it had fixed before, not sure).

Any indication on when this gets fixed? It currently prevents us from releasing a new feature for own of our apps.

Av: David Hollegien 2. aug 2021

RE: Retrieving ticket entity using SOAP webservices

Hey, thanks for the tips David. Had the same issue here, and easily solved by changing the "Default status for new request" and "Default status for new message" for the category I used.

I don't use NuGet packages, but use the REST based WebApi instead. The issue is easily reproducible using Visual Studio Code and the REST Client extension.

 

Av: Frode Lillerud 13. aug 2021

RE: Retrieving ticket entity using SOAP webservices

Hi Frode,

Interesting, During my testing I tried the retrieval of a ticket with a category that had a closing status / msg closing status higher then 3, and that doesn't error out, it just returns the ID instead of the name when trying to convert to the enum text:

So my assumption was that creating a ticket using the Web API probably should work, apparently not!

Sadly changing the category default status isn't an option for us, so hopefully this gets fixed in an upcoming release.

Av: David Hollegien 13. aug 2021