locked
Unable to get TIBCO service response in .NET 3.5 code after service upgradation RRS feed

  • Question

  • Hi,

    I am using TIBCO service to get a PDF file in .NET 3.5 code. Recently service has done some up-gradation and after that we are unable to get response from TIBCO service in .NET code.

    As per service team, there is now a change in MIME header of the response as below:

     MIME Header Before:
                                                   <mimeHeaders>
           <content-type>text/xml; charset=utf-8</content-type>
     <content-transfer-encoding>binary</content-transfer-encoding>
       <content-id>&lt;TIBCO_START_PART></content-id>
     

                                 </mimeHeaders>

    MIME Header Now:
                                                   <mimeHeaders>
           <content-type>text/xml; charset=utf-8</content-type>
        <content-id>&lt;TIBCO_START_PART></content-id>
                                  </mimeHeaders>

    Currently I am using SOAPCustomBinding for getDocument method and definition of this custom binding as below:

     
    <binding name="DocumentService_SOAPCustomBinding">     
              <customTextMessageEncoding messageVersion="Soap11" encoding="utf-8">
                <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
              </customTextMessageEncoding>
              <httpsTransport manualAddressing="false" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"allowCookies="false" authenticationScheme="Basic" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"keepAliveEnabled="true" maxBufferSize="2147483647" proxyAuthenticationScheme="Anonymous" realm=""transferMode="Buffered" unsafeConnectionNtlmAuthentication="false" useDefaultWebProxy="true"/>

            </binding>

    The exception in code in the line where we are calling TIBCO method is 'non-negative number required. parameter name count'

    Getting exception. PFB detailed Stack trace error:
     
       at System.Text.UTF8Encoding.GetString(Byte[] bytes, Int32 index, Int32 count)
       at SoapWithAttachments.Mime.MimeParser.ReadMimePart(Byte[] binaryContent, Int32& currentIndex, Byte[] mimeBoundaryBytes)
       at SoapWithAttachments.Mime.MimeParser.DeserializeMimeContent(String httpContentType, Byte[] binaryContent)
       at CustomTextMessageEncoder.CustomTextMessageEncoder.ReadMessage(Stream stream, Int32 maxSizeOfHeaders, String contentType)
       at CustomTextMessageEncoder.CustomTextMessageEncoder.ReadMessage(ArraySegment`1 buffer, BufferManager bufferManager, String contentType)
       at System.ServiceModel.Channels.MessageEncoder.ReadMessage(Stream stream, BufferManager bufferManager, Int32 maxBufferSize, String contentType)
       at System.ServiceModel.Channels.HttpInput.ReadChunkedBufferedMessage(Stream inputStream)
       at System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(HttpRequestMessage httpRequestMessage, Exception& requestException)
       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 TIBCO.DocumentService.GetDocument(GetDocumentRequest request)
       at TIBCO.DocumentServiceClient.TIBCO.DocumentService.GetDocument(GetDocumentRequest request) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\89b611b2\df2d0ca4\App_WebReferences.0kbrlu7j.0.cs:line 2759
       at TIBCO.DocumentServiceClient.GetDocument(JHHeader& JHHeader, GetDocument_request GetDocument_request) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\89b611b2\df2d0ca4\App_WebReferences.0kbrlu7j.0.cs:line 2766

       at DSTOHelper.GetDocument(String documentId, String sessionIdentifier, Int64 userId, String userName, FunctionType ft) in c:\wwwjhltc\App_Code\CSCode\CommStmtDSTOHelper.cs:line 690

    Please advise which part I should change?

    Wednesday, February 15, 2017 3:19 AM