Retrieving Call Source For A WCF Service?
Aug 12, 2010
Is there a way to identify the source of a WCF call ?I'm trying to find a realiable .Net property that will let the service know the address (URI) of the calling Web Service.Especially in the case where two Web Services are hosted on the same machine.
View 1 Replies
ADVERTISEMENT
Dec 8, 2010
I'm looking for a way to "pick out" a url string from a webpages source. The source always has a unique identifier for the url. Here is the complete line from the webpages source where the url appears.
[Code]...
View 6 Replies
Feb 16, 2009
Is there away to retrieve the Logged In state of a machine?I made a vb.net service with some monitoring functions and I wanne know if a windows server or computer is logged in by a user.
View 6 Replies
Mar 11, 2011
I'm trying to understand how I would retrieve information about a running process on my machine from a VB.Net routine.For instance, Assume I open Task Manager and see a process called "Bob.exe".From Task manager I can see the PID for Bob.exe, the memory it uses, the I/O information, etc.I want to be able to query the machine for this information for Bob.exe from a method within VB.Net.
View 5 Replies
May 5, 2012
I inherited a working WCF Web Service with one major flaw - the WCF Service consumes memory and does not release unless the service is restarted. After a half a day of requests hitting the web service, the memory on the server hosting the service climbs to close to 2 gig and is dead in the water.
I'd like to be able to release memory after the web service has received its response but cannot figure out how (WCF is still new to me). [code]...
View 2 Replies
Nov 10, 2011
i need some function like adodb.recordset on vb6.0 on vb.net but seem i cant manipulate it like recordset because i want to manipulate in retrieving,inserting and updating my record on just only how call on the database im using mysql database..
View 4 Replies
Jul 16, 2010
Call API getcommconfig example or source
View 1 Replies
Dec 17, 2011
I actually have a menstrip with sub-menu ... File > Service >>> Products
My aim is to add a uri to products so that when on click on product the particular web service will be invoked.
My question is only How Can I add a URI with Products on click ?
View 7 Replies
Sep 13, 2011
How to call exe with multiple arguments from VB.Net Source. Now, I can call exe file with mmyProcess.StartInfo.FileName ="....exe" and pass parameters with myProcess.StartInfo.Arguments but i can't pass multiple parameters with it.
View 1 Replies
Dec 28, 2009
I need to dynamically call web service! For this I made simple web service Service1.asmx
Then I created the proxy class for the Service1 Web Service, I use the WSDL.exe utility and following command at the command prompt: wsdl /language:VB /out:myclass.vb http://localhost:3245/Service1.asmx?WSDL
This command create class myclass.vb. That class I include in my Windows Application project, but when I do this I get lot of errors.
This is the how created class look like:
Imports System
Imports System.ComponentModel
Imports System.Diagnostics
Imports System.Web.Services
[Code]....
View 2 Replies
May 2, 2010
I had deploy a program to call Java Web services from VB.net . Below is my code:
[code]...
after run the code, I had get soap error code 500 after soap.send(), is that anything wrong with my program ??
View 2 Replies
Nov 24, 2009
I have a console app that is supposed to async call a web service...i don't get any errors but the completed handler doesn't seem to complete correctly. I have a subroutine with a loop that is supposed to fire off say 6 seperate calls to another routine that calls the service. The completed event handler routine puts data into the database..If i put a thread.sleep under the call to the routine calling the web service. The completed event handler fires but only one record is put in the database instead of the hundreds expected and only that one webservice call appears to fire.I should mention that this works as expected when calling the sync method of the web service within a console app and the asyc calls work as expected from a windows forms app. I just need it to work async within a console app..
View 1 Replies
Nov 16, 2010
I'm working in VB.Net and I'm trying to make a piece of code more generic.In fact, there's a big Select Case statement that build a ProxyServer based on a value passed in parameter (a string).
Select Case _strNteraHL7
Case Constantes.NomPRPMIN306010
strUrl = ObtenirUrl("ProviderDetailsQuery", _strVersion, _strEnvir, True, _blnSimulCAIS, _blnSimulPDS, _blnSimulPDSSIIR, _blnSimulPDSInteg)
[code]....
or something similar, so I can remove all those big switch cases, that repeat the same thing 30 times.objWsHL7 being an object or type "object" at compiling.Again, in another switch case statement,
objMsgHL7Out = _objWsHL7.ProviderDetailsQuery(_objMsgIn)
objMsgHL7Out is a System.ServiceModel.Channels.Message
_objMsgIn is a System.ServiceModel.Channels.Message
_objWsHL7 is an Object
View 1 Replies
Jan 18, 2012
private String[] createid(String id,HttpServletRequest req) throws Exception {
try {
final Client client = Client.create(); [code]....
View 1 Replies
Feb 16, 2011
I want to question how to call bat file in windows service using vb.net. This is my code:
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
[code]...
this service created in service windows(service manager windows), but when i start this service not happening. What wrong in my code
View 2 Replies
May 15, 2012
I have a asp.net web application with jquery controls. I have a datagrid that will display data from a database table and created a WCF Service to access the db and return the data. I want to be able to call the WCF service from this application which is on a different server and have the xml data returned, converted to json format to be used in the datagrid which is a jquery widget. I have tested the web service and it works fine. Should I call the web service from the javascript function within the xml or create a .net method behind that calls the service and then does the conversion? From these how would I get started?
View 1 Replies
Apr 18, 2006
Can somebody tell me the steps to follow so that i can call my windows application (.exe) file from my windows service in C# (.Net 2003
View 2 Replies
Jul 15, 2010
I have kind of a big quesstion...ok here goes...Usually if i understand it well...web services work in a way that i write a method to get some data from the database and then some other user/client adds a reference and calls my service and gets the data...now in my case i have to get the data and actually post it to the user/client in xml(in soap maybe) i guess....so here is what i do...
[Serializable]
public class MyClass
{ [SoapAttribute]
[code]....
So basically....I serialize it to xml(and soap) and convert it to string and then upload this string to the web service url...I just want to know if what i am doing is right?...i want to basically get the data convert it to soap xml and then send it over to the user's web service url...
View 1 Replies
Sep 8, 2006
I have written a windows service to do some operation (in .net), im calling the same in .net it works quite fine without any issues. Now my problem is i need to call the same service which is written in .net from an VB application.
View 4 Replies
Aug 19, 2010
I have created a Windows Service that I am trying to use to call an Emergency Alert program that checks a database to see if there is an alert to display. This is the Timer in the Windows Service that I call the Emergency Alert program from.
[Code]...
View 1 Replies
Aug 13, 2009
I'm using ASMX web services in VB.Net in VS 2005. I am calling a function method on the web service that returns a true or false value. This works fine if I call the the web method synchronously, but if I want to call the method asynchronously, the function returns to a sub and there is no return value; therefore, I can't tell whether the result of call is true or false. Is there a way to make an asynchronous call and still get the true or false result (perhaps using the userState Object)?
For Example:
Dim MyResult as Boolean = MyService.GetResult(10)
Dim MyResult as Boolean = MyServer.GetResultAsync(10)
This doesn't work the compiler complains: "Expression Does Not Produce a Value"
View 2 Replies
Feb 22, 2012
I used the same lines of codes to call a SQL server store procedure to export sql data to an XML file:
1. If I call the stored procedure from a window form application, it works and generates the file at the designated location.
2. If I call the stored procedure from a window service application with a setup project, and the install process run well, and I started the service, and checked the event log, it showed the service start successfully, BUT it FAILED to generate the file at the destination folder. I also run everything as administrator, but it still failed to generate the file. It made me wonder if a window service can call a stored procedure. Because, again, mine ran fine with the window form appl, but window service, I would like to have your sample codes. I have googled around for 3 days now, but could not find the answer. I use vs 2008, sql server 2008, and Windows 7
View 39 Replies
May 28, 2009
I need to explicitly load my data source variables and then call the insert method associated with the data source. The sample VB .net code is listed below. So is it sufficient for me to just call the Insert() method when I am ready to insert my values? Or do I need to create an insert event? You see if I look at the properties window for the data source, there is a lightning bolt icon that will generate events for the data source such as Insert,Inserting,Disposing,Init,Load etc.
Protected Sub btnSave_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Me.SqlDataSource1.InsertParameters.Add("@Title", "Mr.")
Me.SqlDataSource1.Insert()
View 1 Replies
Mar 23, 2012
I'm building a web service client using vb .net. The web service is secured with ssl, basic authentication and also requires client certificates. So I created a web reference in Visual Studio and provided the credentials:
Dim cred As New System.Net.NetworkCredential("usr", "passwd")
Dim proxy As New SimpleFromLocal.simple
proxy.Credentials = cred
Console.WriteLine(proxy.helloWorld())
This works as expected, as long as I turn off mutual authentication on the server side.I added a client certificate like this:
Dim cert As X509Certificate = X509Certificate.CreateFromCertFile(certFile)proxy.ClientCertificates.Add(cert)
The certificate is loaded, but the web service call fails. I could post the exception, but it is in german, which is an issue on its own. It basically says: Authentication failed, because the remote site closed the connection.I tried debugging the ssl handshake on the server side and it looks like the client certificate is not transmitted.So what am I missing here? Is it required to install the client certificate on the local machine?Edit: The error thrown:
[Code]...
View 1 Replies
May 24, 2011
I have a WCF self-hosted as a Windows Service.When I start the service (under the NETWORK_SERVICE account), I can consume the service from my ASP.NET application on a different server.However, the business rules have changed. Now I need to run the service under my own account. I am able to stop the service, and start it again under my account. No problem there.Until I try to consume the service from my ASP.NET application on the other service. I get:
A call to SSPI failed, see inner exception
View 1 Replies
Aug 23, 2011
If I create a scheduled task for my vb.net program, and run it under another user, and it runs when logged off, as long as the user has full rights, will the winforms application be able to call web services over the web?
View 8 Replies
Aug 13, 2009
I have a Deployment project which creates an MSI setup file to install a service. (VB .NET) I have a reference to another project which is a win form application and has a setup form which takes the user name, password and some other settings information which will be used by a service. It has "Finish" and "Cancel" buttons. I am creating a new instance of this form on Sub New() of the ProjectInstaller Class, so user can input information, click Finish and installation completes. The service is then automatically started. Now, when I click Cancel on the settings form, I am not able to exit out and halt the installation process. Instead it installs the service !! How can I use the Rollback or Uninstall methods to do the task? I was trying this -
On cancel_click, set boolean var cacelStatus = True
On Sub New() method of ProjectInstaller class, I am checking - If true - uninstall, else - install
How can I achieve this?
View 1 Replies
Jul 21, 2011
I have just a form in my VB.Net project and even when I try debugging that - there is nothing going on besides the form being loaded - I get the error: No symbols are loaded for any call stack frame. The source code cannot be displayed.
View 3 Replies
Sep 2, 2011
I have a vb.net Windows application that calls a vb.net Web Service function. Both the vb.net application and Web Service have been in use for over 5 years and have worked well. The Windows App builds a text file consisting of a number of inserts into an Oracle table, followed by a call to an Oracle package. The Web Service call uploads the text file to the Web Server, loops through the statements in the text files and executes them. It then does a Select statement to put the resultant data in a string which is passed back to the calling program. We have both people on our local area network as well as external users where the call to the Web Server is over the internet.
The data string returned is the pricing for each of the lines inserted in the text file, separated by asterisks. Normal use of this call has anywhere from 1 to a few dozen lines, and the program works fine for this for both internal and external users.
Our problem right now is one external person is attempting to price a job with 491 individual line items. At first it would not price, whether the job was priced from a computer at the customers site or one of our internal people on the LAN. The problem turned out to be the timeout value was not long enough (it was set at 2 minutes, this job takes 5 minutes) so changing both the Timeout value in the Web Service call as well the httpRuntime executionTimeout value in the web.config file on the web server addressed the problem, but only for our internal users on the LAN. Our external customer wants to be able to price jobs of this size going forward, and I am at a loss as to why it errors on internet connected machines but not locally connected machines. Our customer is in New York, We are in Wisconsin, and I am able to recreate the error condition from my home computer.
The other thing is, if I create a VPN connection to our server from my computer at home, this job will price (again, it takes about 5 minutes) but if I disconnect the VPN connection, it gets an error after approximately 3 minutes, http 404: Not Found.The customer can otherwise price all of his other jobs with no problems, it's only this one, very large job that gets the error.
View 4 Replies
Jun 28, 2011
How do i call ODBC Data Source Administrator form of Control Panel and get the selected DSN and its contents
View 3 Replies