Using Web Services, Sending An API Key And Other Information To The Server?

May 29, 2012

I am new to web services in VB.net. I have imported the WSDL into the Visual Studio 2010, but using the .net 2.0 "Web References" framework instead of the new "Service References".I simply need to learn how to pass my API key and one other piece of information through the API to the server. This is all that I have. What code to I need to add to a) Send the API Keyb) Send the Database Mode String

Public Sub Call_Web_Service_Method()
Dim CallWebService As New PersonService.Header()
Dim sPostAPIKEY As String = CallWebService.APIKey()

[code].....

View 1 Replies


ADVERTISEMENT

Web Services - Change Authentication From SQL Server To Windows In Webservice (SQL Server)

Aug 20, 2010

Web service uses SQL Server based authentication how to change to windows based authentication both web server & Database service resides in different domain .

View 1 Replies

.net - Sending Sensitive Information Against AD?

Apr 2, 2012

I am working on vb.net 2.0 application which checks users credential against AD by sending LDAP configuration, user name, and password to DirectoryEntry method. LDAP is configured in web.config file. An AppScan result is showing that login request was not sent over SSL and recommends always using SSL and POST (body) parameters when sending sensitive information: DirectoryEntry("LDAPPath"), txtUserName, txtPassword)

How can I send this request against AD in a secure way?

View 1 Replies

C# - Sending Information From One Webform To Another?

Nov 27, 2009

i'm generating HyperLinks, all of them (depending on the circunstance, could be 1, 2 or 1000) send to the same webform:

from default.aspx
to envia.aspx

i can't use session, or anything i already know, because i can't create as many methods i want (that would not be good, due to possible large numbers)example, there are three lines i print on demand:

house [link]
car [link]
flower[link]

i want the three links to load the same aspx webform sending as a parameter a string with these lines.

View 2 Replies

TCP Connection - Sending XML Information ?

Oct 12, 2010

I have legacy hardware in our building that can accept commands via TCP as long as they have formatted XML in them. Using Wireshark, I have determined the proper format of what needs to be sent.

The problem: When using the original systems controller, I can look at the packet that is sent and see very specifically that there is a section for "eXtensible Markup Language" that has everything laid out properly. When I create my own TCP stream and send the same information, it gets sent as Hypertext Transfer Protocol text, and thus is not picked up.

My code is as follows:

Dim tcpClient As New System.Net.Sockets.TcpClient()
Dim bytes(tcpClient.ReceiveBufferSize) As Byte
Dim clientdata As String = ""

[CODE]...

View 6 Replies

2010 Sending Information To Another Form

Apr 11, 2011

Once I have inserted all details into my booking form I want to send some of the details to a form called "Daily Jobs Form", When I click the save Button on the booking form.On the "Daily Jobs Form" I have a row of TextBox's and at the Begining of the row I have a Button called "View Job" and When I click the "View Job" Button, I would like to be able to view the whole job. And Choose a driver who has Been Allocated the job.

View 11 Replies

Loop Sending Information Through Parameter?

Nov 29, 2010

I have a question about loops that I don't know if it can be done. The program will send data through a parameter to an Oracle DB. What I am trying to do is during a loop I want to be able to send information from one text box, the next time it loops to send information from another text box ect. ect. I was hoping I go do it this way instead of writing out a bunch of parameters in both the program and in Oracle. Can this be done or do I have to write a whole lot of parameters out?

View 6 Replies

VS 2008 Checking Server Services

Jun 6, 2009

I have started to Build my Server Monitoring/Alarm system and I have built all the components that check network connectivity and internet connectivity etc and alarm if anythingis bad.However I am now struggling to find a way that I can check the following local services are running ok:
[code]

View 1 Replies

Program Sending The Textbox Information As An Email?

Feb 5, 2010

I have a win form with three textboxes that lets the user input information using VB.net 2008. I am wanting the program to send me the information entered (when they hit the send button) as an email and also drop the information entered into an access database.I have the program sending the textbox information as an email.What I am having trouble with is saving the three textboxes to access database. I have an access database set up with a table and three fields for the three textboxes.

All I need to do is each time a user uses the program, it adds the information they enter into the three textboxes to the three different fields in the database. I don't need to let the user view or edit the database in any way.

View 3 Replies

VS 2010 PrintForm Not Sending Information To Printer?

Mar 5, 2012

I have been working at printing receipts using printform, but the printer does not seem to be receiving any information from the form. Here is the

Public Sub PrintReceipt()
PrintForm.PrintAction = Printing.PrintAction.PrintToPrinter
PrintForm.Print()
End Sub

When I use the "PrintToPreview" print action, there is nothing shown on the screen.

View 4 Replies

Retrieve List Of Services Running On Server?

Feb 2, 2012

I'm looking for a way to get details of the name and status of all services running on a service. I did use the following code:
Public Sub GetServices()
Dim localServices As ServiceController() = ServiceController.GetServices()
For Each service As ServiceController In localServices
If Not String.IsNullOrEmpty(service.DisplayName) Then
dictservice(service.DisplayName) = New Service(service.DisplayName, service.ServiceName, service.Status.ToString)
End If
Next
End Sub
However, since I have packaged up my project as a WCF service, the System.ServiceProcess namespace I used cannot be used: Is there any other way I can retrieve the same details? Possibly through WMI?

View 1 Replies

SQL Server Reporting Services VS Rdlc And The ReportViewer

Mar 28, 2012

We are planning on creating reports to be run on the same computer that the database application is running on. which of these is the best approach? (SQL Server Reporting Services or creating a rdlc ReportViewer report) Also I tried to locate detailed rdlc ReportViewer report tutorials both in books and online and found none. It's probably because I'm looking in the wrong places.

View 1 Replies

Sending Information Back To Original Creator Of Program?

Jun 15, 2009

Is there anyway you can send information back to the original creator of the program? Here is a quick example- I made a little program that gives you general information about your computer, when you click a button it sets the text box to specific information. One of the text boxes gives you the Version of your OS. I would like to know if there is a way to send the information in that text box back to me when someone clicks it and they are connected to the internet. FYI I would tell the person who clicks it before so that I am not stealing information, plus what is there to steal from a simple program I made.

View 2 Replies

ComboBox Dropdown Server 2003 Terminal Services?

Dec 22, 2011

I have built an application in VB 2010 on my Windows 7 Pro desktop. I have a particular combo box with a datasource that is dynamically populated, depending on certain values entered by the user; it may or may not have any records in the datasource. When I run/install the application on my desktop, the combo box acts normal, if I click the dropdown button and the datasource contains no records, the combobox will show a single blank beneath the combobox (to indicate no records). When I perform the same action on server 2003, the combobox DOES NOT show a blank row, it does nothing! It act's like it's broken.

View 3 Replies

Develop An Application Which Can Connect Any Remote Server And Pick The Configuration Information From Server And Show It In Desktop?

Feb 10, 2010

I planing to develop an application which can connect any remote server and pick the configuration information from server and show it in my desktop.

View 4 Replies

VS 2010 Sending Input To Website, And Receiving Information Back?

Aug 19, 2009

I've created a simple licensing system for a friend who has created visual basic programs which he sells at a few dollars each (they're speciality programs).The licensing system is coded in PHP (I'm a PHP coder), and the system requires the user to input their license key upon start up, if there is not already an activated key (which is created in a .txt doc)

View 2 Replies

Passing Current User Credentials From IIS Server To Reporting Services Sever?

Aug 8, 2011

Question: How to pass the current user on the web page from the IIS server to the Reporting Services Server.I have seen this topic throughout the forums. However, the answers are always hard code the user in web.config - use a login window and pass those fields to the IReportServercredentials or create one user for everyone.

When the person who asks the question comes back and says that doesn't work there is not answer.Does anyone know how to do this? I have VS 2008 ( and 2010 ) I am sending the info to SSRS 2005 server.As anyone using SSRS knows that if the reports have parameters and udf behind the report to inspect who the user is, then you have to pass that user to the report.

[Code]...

I have been programming steady with vb.net for a year now and was all happy about using the List view and email etc from web sites. I even used a reportviewer to pdf to email attach, cool. Now I feel quite lost and realize I have not been using properties, etc. That is my background.

View 7 Replies

Sending A Log To A Remote Server?

Dec 9, 2010

how to send a log using vb.net console app to a external server? I have the application sitting in a store oulet, then I need this application to send over a log file.

I have a couple of ideas.. one is using a tcp listener and sender, then the listener logs it over in the server.

Another is using a ftp send.

but I would prefer it to be coded in the program itself.

View 2 Replies

Sending A String To An Ftp Server?

May 3, 2011

I am working on an application that is going to read a weight from a scale. The people who sold us the scale said that I can send a string to the scale over FTP and the response I will get is the weight. I haven't done much with ftp and have been searching for weeks. Can anyone point me in the right direction? The steps are... Create a TCP/IP connection to the ip address, port 1701 If the connection is succesful then I'll get 53 Ready for user as the response I can then send the username/password to the machine (sent as a string...) Read the response, which should be 12 Access OK I then need to transmit 'r wt0101' to read the weight. The response will have the weight. They've said this is done through FTP but maybe that's not the case? I don't understand why it would be FTP but that's what the technical documents say. Is there a class I can use that sends string commands over a tcp/ip connection?

View 8 Replies

Sending An Email From Server?

Nov 4, 2011

I'm trying to send a simple email via vb.net. This is the first time i've tried this and am getting the same message every time. I've looked everywhere with no answer... The host that i use is bluehost, and i know the port name and the client name and username and password are correct. So i'm not sure what i'm doing wrong, perhaps it's thinking i should be sending from my localhost, or my ip address? Either way, below is the error i'm getting, and the code. The # just represent the numbers in the error and so on and so forth.

Mailbox unavailable. The server response was: cpe - ##-###-###-###... (my-pc)[my ip address] is currently at...

Try
Dim Mail As New MailMessage
Mail.Subject = "The Email Subject"

[Code].....

View 3 Replies

Communications :: Sending Packet To Server

Apr 12, 2012

i want ask how i can send hex packet to server .i am able to connect IP and port [code] here we can see that for 3 hex 33 is used and for char "." 00 07 13 and many others are used and for its 0F used [code] it sends same Hex for each "." in packet but i want to send other values as there in original/so i want to create a byte to send from hex code/

View 2 Replies

Remotely Sending DOS Commands To Another Server

Jun 24, 2011

Is it possible to send DOS commands, using VB 2008, from one server to another server on the network? Perhaps using the process class?

View 1 Replies

Sending An XML File To A Remote Server

Feb 17, 2010

A certificate is required to complete client authentication.I am sending an XML file to a remote server.[code]

View 1 Replies

Sending Data To Clients From A Server In Vb?

Aug 27, 2010

Actually I have created a chat application is it possible to send data to particular client only?

View 1 Replies

Sending Email Using Exchange Server?

Oct 8, 2008

i ma trying to send email using a exchange server i am in intranet i can use the same code to send email using gmail smtp a/c but when i try using the exchanger server inside my network it fails here is the exception i get

SOURCE: SystemMESSAGE: Failure sending mail.INNER EXCEPTION: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.10.100:25 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at

[code]....

View 7 Replies

Sending Images From Client To Server?

Jun 11, 2011

i want to send multiple screenshot images from my client to server.. now i already get the screenshot code.. and the only problem i have is that .. i can't send them in my server..

View 2 Replies

C# :: Sending Byte Array From Client To Server?

Jun 15, 2010

I am new to VB.net and struggling to get out of VB6's way of sending data, I am doing this to send a byte array from my client to server, please advice if this is the right way,The sending portion:

Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim arrNo(3) As Integer

[code].....

View 2 Replies

Ping Server Before Sending Mail With Smtp?

Jan 30, 2010

below is my code

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ProgressBar1.Value = 5
Dim strTo As String = setting.tosett.ToString[code].....

i want the program to ping the server before sending the mail; if server is available then send mail if not then message box with warning appears notifying user to check VPN connection and sending of mail is canceled.

View 39 Replies

VS 2008 Sending Mails - Acting Like A Server?

Jun 20, 2010

I have a software under contruction for a small firm. And it requires email functionality. That is, whenever the users in the main database reaches the payment date, an email will be send to that user as a reminder.Or, in certain period, the admin needs to send a notification mail to all the users in the main database.

So, how can I incorporate that facility in my main app ?My present idea is to create a separate app for send the mails. That is, when the admin compose the mail and selects a bunch of users (as recipients) from the database, all the message will be saved to another database (for mailing application) and will start the mailing app. This mailing app will check it's database for any pending emails to be sent, and if there exists any pending mails, it will start sending one by one. After sending each mail, it will remove that from the database.

What's your idea ? Does it sounds ok to you I don't want the user of my main app to know that there exist another program, running in background, sending emails.

View 13 Replies

C# - Show Preview Of Image Being Uploaded Before Actually Sending It To Server

Jan 11, 2012

I have a FileUpload control in my aspx page and I want to display the image selected before postback so that user confirms the image to upload.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved