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
2358 Views

Similar Articles

[PageSpeed] 0

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:

Need Help on Passing XML data to a webservice
Hello there I have to pass on some data to a webservice. I have the XML format with me. How is it passed usually? As a string or as an object? If an object is used, what are the methods used for creating such object Also would like to know how an XML file is received from a web service and how to read it Thanks!! --- Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/ Hi, well I don't know how is it passed usually, but I am passing it as a string and I am using XmlSerializer class to pass the XML to the object I created from XSD with xsd.exe. I would also like ...

urgent java architect required #2
hi partners, we are having a urgent requirement for java architect with our clients located at chennai,hyderabad and bangalore if u r intrested send u r updated resume mail to: gangadhar.sadhu@optionsindia.com Job Profile The company is looking for outstanding java, j2ee professionals with atleast 4 years experience in java,j2ee,xml,jsp,coding and development, Working on large international software projects . Education: BE/B.Tech/MCA/M.Tech/M.S Experience: 4-10Yrs Candidate with experince in coding and development preferred) - Current Role and Responsibilities - Reporting Structure...

IE8 WebService Behaviour Issue
We're using the WebService behaviour in one of our intranet applications, it's been working fine under IE5 -> IE7. Looking at upgrading browser to IE 8 and found that the web service behaviour is no longer working using that browser. The useService method is throwing an exception "Object doesn't support this propery or method. both the htc file and the WorkQueue_svc.asmx file are located in the same directory as the calling page. I've tried calling it both with and without the "?WSDL" parameter. I'm hoping someone can share some insight. Here...

host lookup did not complete: retry timeout exceeded
When I get this error message after sending an email "host lookup did not complete: retry timeout exceeded" where is the error? Is it at my ISP? Is it in my Outlook? Is it on the recipient's ISP thanks, bob -- ----------------------------------------------------------------- Bob Hatcher are you running with exchange server? which outlook version are you using ? it's an smtp/isp problem, but I've never seen outlook reporting it in this way! N "Bob H" <rvha@hotmail.com> wrote in message news:uASjJOjzDHA.3416@tk2msftngp13.phx.gbl... > When I get...

Bank Payment with Application And WebService
Hi all I have a win application that interacts to my web application with web services. Part of my web site has online payment that connects to a bank web service. The Bank service wants some parameters including revertUrl ( the url that bank send back information to). I want to know that it's possible to connect to bank web service with my win application and send parameters to and get information back? My win application completely works with my web application except online payment. best regards. ...

Intergation Manager Query Timeout
IM using a source adapter for an advanced ODBC query. The query runs in SQL Query analyzer in under 18 seconds, but times out when run or previewed in IM. Here is my connect string for the DSN: DRIVER=SQL Server;SERVER=Pappy;UID=sa;PWD=xxxx;APP=Integration Manager;DATABASE=oc_bos;Command Timeout = 19200;Connect Timeout = 19200 What is causing the timeout in IM? ...

.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 error with activeX component
Hi, I'm using an ActiveX interface to a 3rd party application from within my own MFC application. 90% of the functions available from the 3rd party app work great, but the other ones, typically those which display a dialog asking for user input, cause a "server busy - This action cannot be completed because the other application is busy" error to be displayed after 10s or so if the user doesn't respond to them quickly enough. I have searched MSDN, but all the references I can find relate to VB. In a VB application there is a parameter OLERequestPendingTimeout which y...

create an opportunity using webservice
Hi, I was trying to create an opportunity from the webservice. I wrote: CrmService servo2 = new CrmService(); NetworkCredential ..... ..... opportunity opp = new opportunity() opp.name = "test"; servo2.create(opp); It return a SoapException at the "create" line: Server was unable to process the request Can anyone help me? Thx a lot Stefano Stefano, You need to specify the potential customer to save the opportunity. -- Michael Web: http://www.stunnware.com/crm2 Feed: http://www.stunnware.com/crm2/atom.aspx ---------------------------------------------------------- &...

Using Java Applets in CHtmlView
I noticed that even when I have newest Java 1.4 installed and IE supports Applets compiled with it, CHtmlView only shows Applets compiled with Java 1.1. I assume this is because CHtmlView uses Microsoft Java Virtual Machine ( MSJVM ). Is there any way to tell CHtmlView to use same Java version that the IE is using? Aggro wrote: > I noticed that even when I have newest Java 1.4 installed and IE > supports Applets compiled with it, CHtmlView only shows Applets compiled > with Java 1.1. I assume this is because CHtmlView uses Microsoft Java > Virtual Machine ( MSJVM ). > ...

File access and program-2-program-communication with C++ and Java
Hi! I came across the following problem I have to solve. The operating system is WinXP Pro. There are two programs, a C++- and a Java-program. The two programs have to exchange data. I was looking for an effective way to do that, and finally I chose a file as "shared resource". Both, C++ and Java must read/write into the shared resource. However, the file must not be accessed simultaneously by both of them. Additionally there could be several instances of the C++-progamm. 1. The C++-Side I use the CFile-Class from MFC with Visual C++. The CFile-Class enables to open a file in excl...

Time sheet webservices or API?
Hello! I am a .Net developer. Until about 6 months ago our IT shop had a custom time tracking application written in Silverlight. It was exceptionally smooth with auto completes, notes, and a wide assortment of other indicators that helped us identify critical projects and time allotment. Then we switched to MS Project Web Access. Don't get me wrong, I LOVE Project, and that I can use it on the web is awesome. But the Time Sheet interface over the web is horrendous. It's slow, cludgey, inconsistent, and a royal pain in the butt. So around the shop we were chatting...

Problem coonectiing to SSL WebServices
We have a valid SSL Certificat issued to www.mycompany.com and installed on our web server. Our web services are on that server too. We have imported the certificat on the client. We have two subdomain pointing to the same server: ws.mycompany.com & www.mycompnay.com. Here is the problem: When we acces a webservice with ws.mycompany.com we have the following connection error: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship with remote server. -- Dany Couillard, ing. ...

absolutely cannot resolve timeout error
OL 2002 (10.6515.6626) SP3 Win XP HE Follow-up to: *microsoft.public.outlook* (this message is cross-posted to the newsgroups that appear in the headers. To reply, just click "Reply" in news client and it will go to the follow-up newsgroup *microsoft.public.outlook*, where u can follow the thread. Thanks.) Hi, I am constantly receiving error message: Task 'smtp server name - Sending and Receiving' reported error (0x8004210A): 'The operation timed out waiting for a response from the receiving (POP) server. If you continue to receive this message, contact your s...

Proc cache consumed with one-time queries
In investigating memory usage os our SQL Server 2005 SP3, I noticed that about 4.3GB of our 32GB phsyical memory was consumed by the procedure cache. In looking at what was in the cache, I found that the overwhelming majority of the stored plans were from queries that will never be reused. In fact 4.1GB of the 4.3GB were plans with usecounts=1. Most of these turn out to be statements generated by Sql Server itself: there are many that are statements generated by SqlAgent, running scheduled tasks. Many more are the backup statements generated for log shipping. In these cases, ...

Automation timeout?
I have an application which update Excel spreadsheet, for Excel 97/2000, it's fine, but for Excel 2002/2003, looks like the connection fails after about 2 minutes, I got error message like 'the object invoked has disconnected from its clients". is it a bug of Excel 2002/2003? any workaround for this problem? Thanks Simon ...

java srcipt not working, getting about blank page
i have windows xp recently i have been getting a blank page behind the page im trying to open, mainly pogo games or playsite games, i have all new updates from microsoft installed, but i cant change calender set up either, what di i need to do This newsgroup is for questions related to Microsoft Publisher. You would be better off posting your question to the appropriate group. -- JoAnn Paules MVP Microsoft [Publisher] "the big bud man 8" <the big bud man 8@discussions.microsoft.com> wrote in message news:BED6D77A-DD80-48B8-A58A-1FC98613ED2A@microsoft.com... >i hav...

SMPT server timeout
The company director has an Acer notebook that is running windows XP and Office 2003, it connects to the network via a 4 port wireless AP, and collects mail from an mDeamon 10.0.5 eMail server. At lease once a day Outlook starts to through a SMTP tie out error and stops sending eMails, all eMails are stored in the out box. A restart of Outlook clears the error and sends the eMails, until tomorrow. To try clear this error I have, 1. Restarted the eMail server 2. Replaced the Hub/AP 3. Deleted and recreated the eMail profile. Any other suggestions? Thank you in advance ...

Problems with a MFC ODBC consumer class on ISAPI server
Hello, I'm trying to read and write to an Access database, using an ISAPI server. In order to do so, I've configured a MFC ODBC consumer class with the following configuration: - "Data Source" on the machine = Access Database (second Property Sheet of "Select Datasource") - "Type" is Dynaset - "Bind all columns" checked. The resulting connection string is the following: ------------ Example 1 ------------ CString CDatabase::GetDefaultConnect() { return _T("DSN=MS Access database;DBQ=C:\\Inetpub\\wwwroot\\data\\database.mdb;DefaultDi...

OWA 440 Login Timeout Error
Ok, I have performed a swing of SBS2003 onto a new virtual box (HyperV R2) and almost everything is working great. The exception is OWA (exchange is working for both internal and external clients (RPC/HTTP & POP3/SSL). In OWA I simply get a "440 Login Timeout" message displayed immediately. Much searching of the internet has turned up much on resetting the passwords for IUSR_server and IWAM_server accounts and I have done this with no change in the OWA problem (it did fix a minor issue with RWW, which now works perfectly). While I don't think it is related, y...

Is there a Java version of CHtmlEditView
Anyone know what the Java equivalent classes are to MFC's CHtmlEditView & CHtmlEditCtrl? CHtmlEditView creates an edit window for the user to type in the text. CHtmlEditCtrl is a pre-made toolbar allowing the user to format text, insert urls and images in an CHtmlEditView. thx You would probably have to interface these using some low-level Java interface. The best place to ask this question would be to post the question in a Java newsgroup and rather than use the MFC terms, say what you want to achieve, e.g., "I want a way to bring up a window that allows me to display and e...

Radio Buton
hi I have a radio field on the form. Basically I want to make another field mandatory if the value in radio field = yes. By default the value = no. This is the code I have below but it doenst work,. Any help would be appreciated if (crmForm.all.radio.DataValue == true;) { crmForm.all.SetFieldReqLevel("address1_line1",1); } Kind Regards Snow White The MS CRM SetFieldReqLevel function was taken away (for some reason) in CRM 3.0. But you can write your code as below,this is of course not supported by MS. crmForm.all.address1_line1.setAttribute("req", 2); crmForm.al...

enable java in spreadsheet #2
Currently I am trying to produce a spreadsheet that updates from websit that requires a login. I can create the login page in the spreadsheet but get an error tha says I do not have java enabled. Was hoping there was a simple solution by using Com Add-ins to invok java in the spreadsheet. Hope that helps. Disma -- disma ----------------------------------------------------------------------- dismas's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=1106 View this thread: http://www.excelforum.com/showthread.php?threadid=27659 ...

Increase Server timeout (Max 5 Minutes)
My Outlook 2000 allows a maximum sever timeout of 5 minutes Im trying to receibve a 9 MB email attachement. Outlook times out before this is fully downloaded. Is there any solution to this Please use Reply to Group - dont reply to me direct as Spam settings will not allow. Thanks Sam Sam, Before sending a 9MB file I would zip it to reduce the size. Not only due to the limits on increasing the timeout for the server, which is mostly likely setup not to go beyond a certain amount because more needed may indicate an issue. Additionally, opening let alone receiving a 9MB file on the o...

Problems While Installing Java
Hello: I have been trying to download and install java on my computer. After I install the program I get a message stating Java has been installed sucessfullly. I restart my computer. When I go to open the Java icon on desktop It is prompting to reinstall Java all over agian. I have gone to add and remove programs and successfully remove the program from there. But going back to desk top the Java icon is still there and after opening it it continues to start the installation process again. I have gone through these steps several times and have tried Revo uninstallatio...