473,387 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 5868
"beachdog" <dh*****@pactolus.comwrote in message
news:11*********************@y80g2000hsf.googlegro ups.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 "Automatically 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
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...
3
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 =...
3
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...
0
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,...
6
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...
0
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....
2
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...
0
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"...
0
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.