Setting IMISWebServerURL key within a class library dll

We are tryiing to use the iBO dlls within a custom class library that we are writing.  Would anyone know how to set the iMISWebServerURL key that is normally in the web.config file in the coding of the class library(dll) that we are writing? 

<appSettings><add key="System.WebLogin" value="MANAGER"/><add key="iBOCacheRefreshIntervalSeconds" value="300"/><add key="ImisWebServerUrl" value="http://localhost/imis15"/><appSettings>

 

Perhaps iBO can only read it from the web.config file?  Thanks.

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Only web.config

From the openIbo source code, it appears iBO will only retrieve it from web.config. (On iMIS 15, that is. On iMIS 10, it will only retrieve it from System_Params)

--
Bruce Wilson
Director, Technical Services
McGladrey & Pullen, LLP

Setting IMISWebServerURL key within a class library dll

Thanks so much for the quick response. 

Agnes

Is this what you are looking

Is this what you are looking for? This snippet uses the setup in an App.config file. You could invoke it and just hard-code that URL reference which is just your iMIS installation instance URL.

Regards

Joe John

John Consulting

 

MembershipWebService membership = new MembershipWebService();
membership.Url = ConfigurationManager.AppSettings["ImisWebServerUrl"] + "/AsiCommon/Services/Membership/MembershipWebService.asmx?wsdl";

iBO not MWS

She was asking specifically about iBO. There are certainly other options if iBO is not a requirement.
--
Bruce Wilson
Director, Technical Services
McGladrey & Pullen, LLP