Timeout when consuming java webservice

Hi,

I wrote a .NET application to consume a https webservice from the
Belgian government for sending excise info to the government. It is
a .NET 2.0 application which uses the web reference feature of visual
studio to generate proxy classes and a service class that inherits
from SoapHttpClientProtocol. Before making the actual webservice call,
I retrieve the correct client certificate from my personal certificate
store using X509Store and I add it to the ClientCertificates
collection of the service class that was generated. This ensurces
sending the public stuff of our client certificate with the request,
because they use that on the server side to see that we are who we say
we are.

When running the application on a Windows XP machine, everything works
fine. When I run the same app, sending the same request, on a Windows
7 machine, the request times out. I tried having a look in Fiddler to
see what happens, but with all the SSL encryption, I don't see that
much.

I tried a lot of things already: upgrade the app to .NET framework 4,
using a service reference instead of a web reference, building my app
in 64bit instead of 32bit, setting keepalive to false. Nothing
helped...

I tried installing SoapUI (java tool to send bare soap requests) and
send the same request from the Windows 7 machine with SoapUI and then
it works. So it has got something to do with the .NET framework that
treats SSL messages different in Windows 7 than in Windows XP and
appearently the server does not like this. Actually, I found a post
from someone with the same symptoms (http://stackoverflow.com/
questions/4511213/httpwebrequest-getrequeststream-breaks-by-timeout-on-
ssl-connection-under-wind) but they solved it by making server
changes. I cannot do that since the server side is not managed by us.
I contacted the government technical helpdesk, but I did't get any
helpful response so far.

The question I am having right now is: can I somehow change my code so
that the SSL request will be send the same way in Windows 7 as it is
in Windows XP? I read somewhere that SSL configuration has become a
lot more strict in Windows 7, so maybe the source of the problem lays
there. I'm wondering if I can change it to less strict (actually, just
the same as in XP) in code or by making adjustements to some Windows
or IE settings?

Any other ideas on stuff to try to get this fixed? Any help would be
much appriciated...
0
12/21/2011 5:11:59 PM
dotnet.xml 7266 articles. 0 followers. Follow

1 Replies
1012 Views

Similar Articles

[PageSpeed] 49

I solved the problem.
I found the solution in this post:
http://stackoverflow.com/questions/5653868/what-makes-this-https-webrequest-time-out-even-though-it-works-in-the-browser
Adding the line ServicePointManager.SecurityProtocol =
SecurityProtocolType.Ssl3; to my code, solved it...

On 21 dec, 12:11, Veerle <veerleve...@hotmail.com> wrote:
> Hi,
>
> I wrote a .NET application to consume a https webservice from the
> Belgian government for sending excise info to the government. It is
> a .NET 2.0 application which uses the web reference feature of visual
> studio to generate proxy classes and a service class that inherits
> from SoapHttpClientProtocol. Before making the actual webservice call,
> I retrieve the correct client certificate from my personal certificate
> store using X509Store and I add it to the ClientCertificates
> collection of the service class that was generated. This ensurces
> sending the public stuff of our client certificate with the request,
> because they use that on the server side to see that we are who we say
> we are.
>
> When running the application on a Windows XP machine, everything works
> fine. When I run the same app, sending the same request, on a Windows
> 7 machine, the request times out. I tried having a look in Fiddler to
> see what happens, but with all the SSL encryption, I don't see that
> much.
>
> I tried a lot of things already: upgrade the app to .NET framework 4,
> using a service reference instead of a web reference, building my app
> in 64bit instead of 32bit, setting keepalive to false. Nothing
> helped...
>
> I tried installing SoapUI (java tool to send bare soap requests) and
> send the same request from the Windows 7 machine with SoapUI and then
> it works. So it has got something to do with the .NET framework that
> treats SSL messages different in Windows 7 than in Windows XP and
> appearently the server does not like this. Actually, I found a post
> from someone with the same symptoms (http://stackoverflow.com/
> questions/4511213/httpwebrequest-getrequeststream-breaks-by-timeout-on-
> ssl-connection-under-wind) but they solved it by making server
> changes. I cannot do that since the server side is not managed by us.
> I contacted the government technical helpdesk, but I did't get any
> helpful response so far.
>
> The question I am having right now is: can I somehow change my code so
> that the SSL request will be send the same way in Windows 7 as it is
> in Windows XP? I read somewhere that SSL configuration has become a
> lot more strict in Windows 7, so maybe the source of the problem lays
> there. I'm wondering if I can change it to less strict (actually, just
> the same as in XP) in code or by making adjustements to some Windows
> or IE settings?
>
> Any other ideas on stuff to try to get this fixed? Any help would be
> much appriciated...

0
12/22/2011 9:24:09 AM
Reply:

Similar Artilces:

Socket TimeOut
Hi; Can I change the timeout of recieving , sending...? I tried to use SetSockOpt but nothing happened Monther "monther" <monther80@hotmail.com> wrote in message news:OrOsW8wXDHA.3444@tk2msftngp13.phx.gbl... > Hi; > Can I change the timeout of recieving , sending...? > I tried to use SetSockOpt but nothing happened > Monther > > > See documentation for struct linger in MSDN. Hi; I read all documentation about this problem,The problem actually is seriouse in recieving form someone, if there is no recieved data , the programm will stop at recieveform...

TimeOut errors
I have about 700000 customer records to bring in RMS HQ tried with all of them it gave me a the following error which I belive is a time out. Runtime error 3246 Connection object cannot be explicitly closed while in a transaction Runtime error '440' Automation error. If i bring the records say 100,000 at a time into HQ it might work but when it syncs to other stores will it give me the same error ?. Anyone got any ideas about what the time out value should be ?. -- bangi Do you have customer numbers already assigned? When I imported my customers, I was having trouble also an...

Java Runtime Error
Recently did xp migration on this particular pc. After migration java runtime error kept occurring preventing me fromusing application. Error as follows: 2<box symbol>\bin\hotspot\jvm.dll What's a good fix for this? Thnx. ...

timeout
I'm getting timeout error messages using Microsoft Outlook 2002 connecting to MSN (DSL) Hotmail Web-based email with email sizes larger than 1 meg. MSN tech support claims all problems are within Outlook 2002. However MSN does not support Outlook. Does anyone know how to fix this problem? Thanks for your help, Please respond to jon_n2@yahoo.com Jon ...

SQL timeout
Is anyone familiar with a timeout setting for SQL. As long as we continue to use CRM the speed changing from one window to the next is fine, but if we go to another program(outlook, excel, word, etc.) and then return to CRM there is anywhere from 20 to 30 sec. delay when attempting to change pages in CRM. AB ...

Timeout when change Role
Dear All, I cannot change the role, because when I change and save it I always got timeout. When I cek the role it again, the record is already changed. But the role itself does not change. Record of role become different than the reality. Anybody can help me?? Rgds, Frans One thing I would recommend is to keep changes to existing roles to a minimum. Especially if you have a large BU hierarchyy as the roles are replicated to all child BU's and changes need to be propogated. When I say keep changes to a minimum, I mean just change a few privileges at a time. Don't go in and mo...

Java cache size
My java cache is 1GB. Can I clean it out and then size it down to 50MG? Thank you. Yes. See http://lmgtfy.com/?q=java+cache+clear moon wrote: > My java cache is 1GB. Can I clean it out and then size it down to 50MG? From: "moon" <moon@discussions.microsoft.com> | My java cache is 1GB. Can I clean it out and then size it down to 50MG? | Thank you. If you mean 50MB (as in MegaByte), yes. -- Dave http://www.claymania.com/removal-trojan-adware.html Multi-AV - http://www.pctipp.ch/downloads/dl/35905.asp Thank you David and P.A. Bear for your ...

CInternetSession timeout
I use CInternetSession::GetHttpConnection and some other CHttpConnection methods. Can I control the timeout and how? Regards Kurtz This is a wrong NG for this question. Ask questions like this at microsoft.public.inetsdk.programming.wininet NG. In short: you can set timeout on WinInet HINTERNET handle using InternetSetOption with INTERNET_OPTION_CONNECT_TIMEOUT. -- V This posting is provided "AS IS" with no warranties, and confers no rights. "Kurtz" <kurtz@goren.org.ir> wrote in message news:efhNkfDYIHA.1208@TK2MSFTNGP05.phx.gbl... >I use CInternetSess...

OWA Timeout
This is a multi-part message in MIME format. ------=_NextPart_000_0008_01C400EE.DFE46440 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Where would i find the default TIMEOUT value for OWA on exchange 2003 = and how would i change it to something longer? (i am using forms based = authentication) Rummie ------=_NextPart_000_0008_01C400EE.DFE46440 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML>&...

problem consuming my service
'project with web service <webmethod()> _ public function myws(id as integer) 'do db stuff with id and build document Dim xd As New XmlDataDocument xd.Load("D:\Inetpub\webservice_xml\redbook.xml") Return xd end function ---------------------------------------------------------------------------- 'project that consumes web service ws = New com.domain.www.WebService dgWS.DataSource = ws.myws(100) dgWS.DataBind() Here is what is returned in the datagrid: Prefix HasChildNodes Value HasAttributes NamespaceURI InnerText InnerXml Name OuterXml BaseURI LocalN...

Timeout error
When I open outlook I get a Timeout error. I can ping the exchange server. Any ideas. Thanks, Wesley try to expand timeout time . There is an option in an advanced menu for that account.. "Wesley Steele" <ws@fulcrumgroup.co.za>, iletide �unu yazd� news:OE0K1sbUDHA.3308@tk2msftngp13.phx.gbl... > When I open outlook I get a Timeout error. > > I can ping the exchange server. > > Any ideas. > > Thanks, > Wesley > > ...

installin java runtime to sbs2008
Hello SBS 2008 Internet Explorer by default doesn't support driver downloads from Intel, neither access to router configutration. Is it allowed or suggested to install java runtime to server evironment? Looks like without java sbs2008 several requested software components may fail. Thanks! You can always access the router from your own PC and download drivers onto a shared folder on the server Russ -- Russell Grover - SBITS.Biz [SBS-MVP] MCP, MCPS, MCNPS, SBSC Microsoft Certified Small Business Specialist 24hr SBS Remote Support - www.SBITS.Biz Question or Sec...

Connection timeout set to 5 sec but takes longer to timeout
Hi all, My Connection string timeout was set to 5 sec but commands takes much longer to timeout when there is no connection to the destination ip. Is the timeout value only helps when the ip is reachable but the sql server is not, or it should work also if the ip address is unreachable. If it should work also when the ip is unreachable, why it does not work in my case? Thanks a million, Avi public static int ExecCommand(string command, string ip) { if (String.IsNullOrEmpty(ip)) throw new ManualRedundancyException("IP address for database connection can...

Timeout in a CSOCKET
I'm not sure if it's the correct newsgroup. If it's not tell me and I'll repost to microsoft.public.win32.programmer.networks. I have written some code using CSocket, and now there's a requirement for a timeout when receiving data. So, I just want to do something like CSocket s; s.Create(); s.Connect(...); if(s.Recv(...) == ERROR_TIMEOUT ) { got_a_timeout(...); } else { handle_data(...); } without changing many things in the already written code. Is this possible or I have to use another class ? Thanks for any help ! -- Papastefanos Serafeim serafeim@otenet.gr...

Help help ,help! OWA problem. 440 Login Timeout https://emilserver/exchweb/bin/auth/owalogon.asp?url=https://emailserver/exchange&reason=0
I installed Exchange2003 in windows 2003 server. it runs well . but few days ago, when I using https://emailserver/exchange to access OWA it automatic change address to https://emilserver/exchweb/bin/auth/owalogon.asp?url=https://emailserver/exchange&reason=0 and display below: 440 login Timeout. exchange2003 other part is good. user can use POP3 and SMTP. so I don't wan't reinstall all exchange2003 . I need find a tools or some thing can reinstall or reset OWA in IIS . who can help me? Thanks A lot. Best Regards Jeff Does this help? http://msmvps.com/cgross/archive/2004/0...

2 issues, VBRuntime error and NBMIG.exe consumes CPU very much
Hi I have two issues. 1. I Can see error in Event Viewr >>Application Log Even when I clear the Log it get populated with VBRuntime errors within seconds Event Type: Information Event Source: VBRuntime Event Category: None Event ID: 1 Date: 12/25/2009 Time: 1:22:10 AM User: N/A Computer: GANESHSO-E77189 Description: The VB Application identified by the event source logged this Application : Thread ID: 2408 ,Logged: For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. 2. In my task manager I can see NBMIG.exe con...

Java autoupdate in Vista
I've read that in Vista, there is no way to turn off Autoupdate in Java SE. With XP you could do it in Control Panel. I have Vista with the latest Java SE. I could find nothing in Control Panel. There is no Java icon in the System Tray - if there was, I could set up the autoupdates from there. Is there still no way to turn off the Java Autoupdate in Vista? It's possible I will have to wait for an update and then the system tray icon will appear. On Feb 24, 6:16=A0pm, Richard Fangnail <richardfangn...@excite.com> wrote: > I've read that in Vista, there is ...

windows app embed java app
Hi Windows application embed IE control embed applet <--- this is the way i know that emebd a java app into a windows app, but the disadvantage is slow, because applet take a longer time to load than a normal standalone java app. Is there any way to embed a JFrame/Java standalone application(with interface) into a windows app? thanks from Peter (cmk128@hotmail.com) ...

CAsyncSocket Listen Timeout
Good Afternoon Everyone; I hope someone has come across this problem before. I am doing some programming with CAsyncSockets and I am unable to find a way to get the Listen method to timeout. Communication between my two computers works fine and I can send and receive data no problem. However I want to ensure that if for whatever reason one of the computers goes down that the other computer does not sit there waiting to receive data that is never coming. Currently all I can think of is spawning a thread to do the counting for me, and then close my listining thread through my new thread...

Timeout for AsyncSocket
I have a big problem with my C++ SocketServer Program... For the Connection I used an Asyncsocket and I'm using OnConnect and OnAccept for the Communication. Now the problem is, that the ClientSocket, which is connected, has the abandonment to close the Connection. If the Client doesn't close it, the Server waits to long until he closes the connection (after timeout)... Now my Question: "How can I make a timeout, after the connection is established??? (10 second timeout)" Thanks in Advance... Peter See if this helps........ http://support.microsoft.com/default.aspx?scid=k...

Timeouts and connection issues
WindowsXP(SP2) with Office2003. In 1 Outlook Profile I use 2 POP3 accounts with 1 SMTP and 1 Hotmail account Problem 1: During Send/Receive the one of the 2 POP accounts (Always the same), SOMETIMES only, not always, around 50-60% gives an error that the server cannot be contacted, with code 0x80042108. After several attempts, it will not give this error for a while. Also, sometimes, in the details pane, although I use only 3 accounts, it shows multiple instances of Send and Receive for each account. Why does this happen? Problem 2: When a message is sent via the SMTP server, it gives a...

Can I remove the IMAP server timeout warning from Outlook
Can I remove the IMAP server timeout warning from Outlook? - not just extend the timeout period since I want the outlook program to remain open all the time and an auto login and check for new mail say every 30 mins or so. -- Help! "Michael J Dalby" <anonymous@discussions.microsoft.com> wrote in message news:1ecd01c3ce7e$c8738180$3101280a@phx.gbl... > Can I remove the IMAP server timeout warning from Outlook? > - not just extend the timeout period since I want the > outlook program to remain open all the time and an auto > login and check for new mail say every 30...

.NET for Java Developers Migrating to C.exe (7/7)
=ybegin part=7 line=128 size=1593885 name=.NET for Java Developers Migrating to C.exe =ypart begin=1497601 end=1593885 �C[=@a=}�/��`�5Ҵ�b��,�'���r�?������/��3NV���q���w�3x��`A���7,$D2=J_SOfu�4p�"��Z&N�褜#-n���̷�@��r�/��5�QҬу��� I͠)?{7@�%��[�ym�z��^�~�:���ڑYdkŝ��� Dx���@3��8�p+�"y��$E�ޓeْ2�b<=}STTY]�=@T9W�6����P�%��C��^o�x+1��c�5[O|N�I�KD xb��1Œ�bz$Ӭk�#⺶H���C:��h��,E�?�\?���~��0볈�j�+���T���ay�$���Y%��-��5���<=}�i+�?O�7�#�m�%V�d��9Bc>Qv_;=}�V��w� ��&�S�F6����3���/;^�n�x��=J���>�$��H���WK�\�-�v�+:dyw�=J��A���n���J-���...

Timeout expired
Hi, We have migrated our production server from SQL Server 2000 to SQL Server 2005 and are frequently getting the timeout expired error. As per my analysis, connection pooling problems are almost always caused by a "connection leak" - a condition where your application does not close its database connections correctly and consistently. When you "leak" connections, they remain open until the garbage collector (GC) closes them for you by calling their Dispose method. We have already verified our DBService and everything seems fine. Please could someon...

Socket TimeOut #2
Hi! folks I have a issue with my sockets built in VC ++ 6.0 . I want to avoid that my socket server stay waiting indefinably by a client conexion, that after certain time send a message of timeout, but I can not handle a diference of time ( time end - time start) because I will get the "time end" until the socket server get a conexion. I am using two methods 'BeginserverSession' where I prepare the params to iniciate the socket session and the 'AcceptConnection'. I guess that the key is in the second method, but know I don't have idea of how handle this....