Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - ASP/ASP.NET/Web Services/Other
Forum to discuss building external web applications for SalesLogix. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to ASP/ASP.NET/Web Services/Other | New ThreadView:  Search:  
 Author  Thread: Webservice called twice
Preston Zappa
Posts: 4
 
Webservice called twice Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Dec 06 7:33 AM
fiogf49gjkf0d
I am using a soap call within SLX 6.1 to call a webservice. The problem is
that the webservice appears to be called twice. My webservice calls some
external C# code that performs alot of DB read/writes. I've included a snippet
of my soap call. Any ideas? TIA -Preston

Sub btnContinueClick(Sender)

Dim soapClient
Set soapClient = CreateObject("MSSOAP.soapClient")

soapClient.mssoapinit "http://servername/SLX/SLXWebSvc.asmx?WSDL"
soapclient.TransmitData(editBatchDate.Text)


End Sub
[Reply][Quote]
Jason Huber
Posts: 77
 
Re: Webservice called twice Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Jan 07 12:59 PM
fiogf49gjkf0d
How are you determining that it is called twice?

Just speculating but in IIS you would see two HTTP hits using SOAPClient since the initial hit is to get the WSDL and the second is the call after the proxy is created (or whatever that was called back with SOAPClient)

1. soapClient.mssoapinit "http://servername/SLX/SLXWebSvc.asmx?WSDL"
2. soapclient.TransmitData(editBatchDate.Text)
[Reply][Quote]
Preston Zappa
Posts: 4
 
Re: Webservice called twice Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Jan 07 1:15 PM
fiogf49gjkf0d
Initially, I noticed the problem simply by monitoring some xml files that the webservice creates on a local drive. I noticed the files being created and then overwritten with the same data. After seeing this, I added some logging to a C# constuctor called from the webservice. The logging shows the constructor being called twice. The constructor is referenced only once by the webservice.
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Webservice called twice Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Jan 07 2:03 PM
fiogf49gjkf0d
I'd check the IIS logs as well to see if the traffic indicates two passes.

Also, could it be as simple as the user double-clicking the button in SLX? I had that problem once, I spent quite a bit of time trying to see why my code was executing twice. It turned out to be that the user was double-clicking the button and the event was firing twice. That was in v5x, not sure if the same is even still possible in the v6/v7 world.
[Reply][Quote]
Carla Tillman
Posts: 290
 
Re: Webservice called twice Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Jan 07 12:44 PM
fiogf49gjkf0d
Preston,

One last idea - possibly far fetched (?). Are you using any services such as TS, Citrix, Load Balancing? Depending on architecture/code implementation, instanciation of objects can be duplicated (looks like a split) when objects were already in play from previous usage. (i.e. DLL, exe, out-of -process objects, DLLHost/W3pe.exe per port isolated...) You would need to investigate IIS configuration (or MuteX properties for object behavior) in that case.

Carla
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 4:31:48 PM