473,807 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

long delay after invoking web service until SOAP message is sent

I have built a web service consumer application by adding a web
reference for a vendor-provided wsdl file. My client is
interoperating with the server just fine, in terms of sending a
request and receiving and properly parsing a response, but the problem
is that when I step through it in the debugger (or even when I run the
executable) there is a delay of about 15 seconds after executing my
XXXAsync method to invoke the web service until the SOAP request
message is actually sent out over the wire. I have no idea what the
program is doing during this time. Anyone have an idea of what might
be causing the delay? It almost seems like the web consumer is trying
to resolve some dns names or something, but I have set the url to send
to to be a specific ip address so there is no need for dns there. My
client PC is also connecting to the server over a VPN, not sure if
that plays into this somehow.

I have taken an ethereal trace during this time to see what is going
over the network during this 15 second delay, and what I see is a
bunch of SMB messages that Ethereal decodes as Trans2 requests and
responses, followed 12 seconds later by some Netbios name queries,
followed at about the 15 second interval by the SOAP message.

Apr 21 '07 #1
2 5893
"beachdog" <dh*****@pactol us.comwrote in message
news:11******** *************@y 80g2000hsf.goog legroups.com...
>I have built a web service consumer application by adding a web
reference for a vendor-provided wsdl file. My client is
interoperating with the server just fine, in terms of sending a
request and receiving and properly parsing a response, but the problem
is that when I step through it in the debugger (or even when I run the
executable) there is a delay of about 15 seconds after executing my
XXXAsync method to invoke the web service until the SOAP request
message is actually sent out over the wire. I have no idea what the
program is doing during this time. Anyone have an idea of what might
be causing the delay? It almost seems like the web consumer is trying
to resolve some dns names or something, but I have set the url to send
to to be a specific ip address so there is no need for dns there. My
client PC is also connecting to the server over a VPN, not sure if
that plays into this somehow.

I have taken an ethereal trace during this time to see what is going
over the network during this 15 second delay, and what I see is a
bunch of SMB messages that Ethereal decodes as Trans2 requests and
responses, followed 12 seconds later by some Netbios name queries,
followed at about the 15 second interval by the SOAP message.

To whom are these SMB messages directed? What resource are they about? That
may give you a clue as to what's going on.

This isn't standard web services behavior, so it's likely to be something
specific to your environment; perhaps something to do with anti-virus
software, or some other piece of code that thinks it's a good idea to delay
you for 15 seconds while you're in the debugger.
--

John Saunders [MVP]
Apr 21 '07 #2
Interesting, it looks like the delay was caused by web proxy auto-
discovery. I brought up IE, went into Tools/Internet Options/
Connections/LAN Settings and unchecked "Automatica lly Detect
Settings", and with that one change now the delay is gone. Also, if I
take an Ethereal trace now, what is different is that I no longer see
the broadcast messages of netbios name queries to WPAD.MSHOME. (It
looks like the SMB messages were a red herring as I now see that those
occur at times when I am not running my tests and must therefore be
unrelated).

Apr 21 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
6860
by: mark kurten | last post by:
i have a requirement to send a soap message to a web service. i'm familiar with the soap toolkit using vb. i need to generate a xml document which i think i can do, but i don't know how to send it to this service. i've accessed other web services in .net and usually there are functions i can reference which do the processing and then return some result.
3
7061
by: mark kurten | last post by:
I have a soap message that looks like this. s = s & " <soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'" s = s & " xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'" s = s & " xmlns:xsd='http://www.w3.org/2001/XMLSchema'>" s = s & " <soap:operation soapAction='urn:Example1/HelloWorld' style='document' />" s = s & " <soap:Body> <HelloWorld xmlns='urn:Example1'> <name>Mark</name> </HelloWorld> </soap:Body>...
3
4491
by: Richard Martino | last post by:
Dear Experts: I am using the new Microsoft Web Services Enhancements (WSE) to send SOAP messages from a client to a web service. How can I get identifying information of the sender (aka transmitter, aka originator, aka requestor) of the web request? By comparison, for a completely different project, I have an internet web site running PHP in which I can get the IP address of the sender,
0
1006
by: SAL | last post by:
I've been working with VB.net for a few months and I have been tasked to build a Web Service and define a SOAP message policy which I have not done before. I am using VS.net 2003, Framework 1.1, and WSE 2.0 for my Web Service. I haven’t been able to find any good examples on how to build a Web Service that uses SOAP message policies, nor any good examples that shows you how to define a SOAP policy. What I’m looking for are shells...
6
43068
by: Peter van der veen | last post by:
Hi I have the following problem. I'm calling a webservice from within a VB.net 2005 Windows program. For this i got a WSDL file and loaded that in VB. Until now i just call the webservice and everything works OK. Now i need to add an extra attribute/header element to the SOAP header before i contact the webservice.
0
1712
by: bdtmike | last post by:
I'm using VS2005 and creating a VB.Net Winforms app. The app uses a couple of web services. For some reason, when I start the app, there is a 30 second delay when VB invokes its first web service. After that, the response time on subsequent calls is nearly intantaneous. As an example, If I'm debugging and press <F5I'll get the 30 second delay on first invocation, then it's fast after that. If I stop the program and restart (F5), I get...
2
6702
by: =?Utf-8?B?QWplaw==?= | last post by:
I have a client which consumes Web Service (WCF - .NET Framework 3.0). I would like to see a Soap message generated when a client calls a Web Service method. In debug mode, I just see the method call and the response (no Soap message). I am using Microsoft Visual Studio. Please advice.
0
2702
by: Philluminati | last post by:
I have a Perl SOAP Server which returns this SOAP Message when invoked: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http:// schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/ XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/ encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/...
0
2457
by: =?Utf-8?B?ZWQ=?= | last post by:
I had this exact problem using a vb.net client accessing a Java web service. The solution takes 3 steps: 1.) Create custom ClientOutputFilter 2.) Create a custom Assertion that uses filter from step 1 3.) Bind service to custom Assertion Step 1 Custom Filter(Called by Custom Assertion) Class ClientOutputFilter
0
9720
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9599
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.