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: how to call a web service in slx 7.5 web on button click event? pls help
mark
Posts: 70
 
how to call a web service in slx 7.5 web on button click event? pls help Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Apr 10 9:53 AM

Hi all,



I have to call a webservice which creates the site in sharepoint if i passes the slxaccountid and slxaccountname as parameters after a button click in saleslogix 7.5 web.



But the thing is i am not getting how to call it actually. What i have tried is i have a created a class library and created a method called createspsite in that class by adding web services reference to that class.



But when ever i am calling that method i am getting the following error (in fact i have adopted this method from video called how to reference a external dll from slx)


Could not find default endpoint element that references contract 'SPSAdminWebServiceSLX.SPSAdminWebServiceSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.


Please kindly suggest how to call a webservice from slx 7.5 web on a button click

Help needed urgently

Thanks in advance



Regards,

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: how to call a web service in slx 7.5 web on button click event? pls help Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 26 Apr 10 11:45 AM
If you try consuming the DLL from some other app (take SLX out of the picture), like call it from a test windows app. Does it work?

To me it sounds like a problem with something you've done in the DLL, I'd take SLX out of this and just test/debug what the code in your DLL that calls the webservice is doing.
[Reply][Quote]
mark
Posts: 70
 
Re: how to call a web service in slx 7.5 web on button click event? pls help Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Apr 10 12:38 AM
yes actually it is working in windows application. But my doubt is how to call a web service in c# code snippet of the button click event in the web form in slx 7.5 web?



Regards,
Mark
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: how to call a web service in slx 7.5 web on button click event? pls help Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 10 12:39 PM
Quote:
Originally posted by mark

yes actually it is working in windows application. But my doubt is how to call a web service in c# code snippet of the button click event in the web form in slx 7.5 web?

Regards,
Mark


To call a web service from SLX, you need to wrap the call in an external DLL and then use that DLL in SLX. You can do this in one of two ways:

1) Directly wire your DLL to the rule. So, instead of choosing C#/VB snippet, you'd select external DLL. Make the signature of your method in the DLL match the rule signature (as shown in AA).

or

2) Consume your custom DLL from your C# snippet. Honestly the first route is easier, but to do this, you'll add your DLL into the Bin in Support Files, then in the code snippet add a reference to the DLL in the RefenceAssemblies in the properties editor when your code snippet is open.

Does that make sense?
[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 11:24:31 AM