Note that there are some explanatory texts on larger screens.

plurals
  1. POwhile calling a webservice from the code,it gives a illegal characters in path error
    text
    copied!<p>I am calling a webservice function from a static class.... the code looks like below:</p> <pre><code> public static class ERPBOServiceHandler { private static ERPBOService _service = new ERPBOService(); private static bool _connected = false; /// &lt;summary&gt; /// Connect to the ERPBO WebService to access all WebService methods /// &lt;/summary&gt; /// &lt;param name="url"&gt;The URL of the webservice to connect to.&lt;/param&gt; /// &lt;returns&gt;Returns true if the web service connection succeded, else false.&lt;/returns&gt; public static bool Connect(string url) { try { _service.Url = url; _service.Discover(); _connected = true; return true; } catch (Exception exc) { ERPLog.LogException("ERPBOServiceHandler.Connect", exc); //discover failed, maening that we failed to contact the web service. So Web Service is not connected. System.Windows.Forms.MessageBox.Show("Error while connecting to webservice\nTrying to connect to: " + url + "\n\n" + exc.ToString()); _connected = false; ERPEngine.SetStatus(false); return false; } } } </code></pre> <p>I am trying to connect to the webservice using this static class....this works fine when i am opening the application with proper GUI....but if i try to call the application using commandline parameters and then use this webservice class it gives illegal charcters in path error.</p> <p>I tried getting the url being passed in a messagebox and it seems path is fine. Note: i am getting the path for webservice from a settings file written in xml. and path is defined like this :</p> <pre><code>&lt;ERPBOWebServicePath&gt;http://localhost:4744/ERPBOService.asmx&lt;/ERPBOWebServicePath&gt; </code></pre> <p>Is something wrong when i call this using commandline params..</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload