Returning Plain Old XML With WCF?
Nov 15, 2011
How can this be so difficult and why? Returning simple XML with no Name Spaces and an XML decaration. Creating the XML using XML Writer is easily done and if I output it to a file then great. How on earth can you return the contents via WCF. Using an XML Element is no good as you loose the XML declaration and using a string is no good as the output is wrapped up in a <string> element. Can't return an XML Document as it can't be serialised.I know that there are many posts on this site, but none answer the question. I am using VB.NET (boy I wish I had the time to learn C#) and I cannot get the Data Contract to work either even using IXmlSerializer. An example of the output I need to send back via WCF
View 4 Replies
ADVERTISEMENT
Mar 15, 2012
I have an ASP.NET web application (VB.NET) using an Oracle database. On an insert, I need to get the identity of the inserted row back. I am trying to use RETURNING, but I keep getting a value of 1 returned.
Dim strInsert As String = "INSERT INTO L.TRANSACTIONS (LOCATION_KEY, TRANS_CREATOR, TRANS_EMAIL, TRANS_PHONE) VALUES (:location_key, :trans_creator, :trans_email, :trans_phone) RETURNING TRANS_ID INTO :ukey"
[Code].....
View 2 Replies
Dec 12, 2011
My brain may just be fried since it's the end of the semester, but my teacher kicked this back to fix and resubmit...she said that I am "returning the name of your function rather than your variable name".
Here is my code for all 3 forms.
code:
These are forms to calculate the cost of getting a cell phone package.
View 6 Replies
Apr 12, 2012
I'm trying to use VB.NET to process a very large plain text file (2 GB). It is a database and has a field delimiter of SOH and a record delimiter of STX.
I want to separate the fields and records of the file.
I would normally read each line of a text file and then use the split function to separate out the fields. I can't use this approach as there isn't always a delimiter on every line.
Is there any way to read a file until STX is found (rather than one line at a time)?
View 2 Replies
Apr 24, 2012
I have a desktop application displaying text in a read only RichTextbox component. Some words in the text needs to be highlighted depending on a text analyze that was previously executed.Now I need to create a web version of this application.I know there's a couple of Rich Text Editors available but I would like to know if there's a library or a simple way to generate an properly tagged HTML string from a plain text and a list of word to highlight?
View 2 Replies
Jul 1, 2009
I have a solution in which I have included three projects, say X Y Z..Now one of the projects X refers to the namespaces A.B.ObjectStore and another namespace ObjectStore..Now when the ObjectStore namespace is used the compiler thinks it is A.B.objectStore.I cant use a better qualifier as the one intended to be used is a plain ObjectStore only.
View 1 Replies
Feb 15, 2012
I have a DataGrid table like this: [URL] How could I change the plain-looking arrows in the RowHeader into row number (Like 1,2,3...)?
View 4 Replies
Jun 14, 2011
I have a program, that allows writers to save there quotes. The quotes are saved in a xml file. Everything works as it should but when I load a saved quote it still comes up in xml format. I need to load a saved quote in a plain text format and I also want to be able to give the output file print functionality. I was thinking of making the output file a html file which opens up in a web browser, this of course already has print functionality, is this at all possible.
[Code]...
View 4 Replies
Jun 8, 2012
So basically, I have this RSS feed in hand. I converted the RSS into XmlDocument by the following:
Public Function GroveHallFromRss() As String
Dim webClient As System.Net.WebClient = New System.Net.WebClient()
Dim ourUrl As String = "http://abc.123.org/RSSSyndicator.aspx?type=N&
[Code]....
So I'm wondering how could I display the converted RSS as any other XML file with the nodes styled. (but not rendered and displayed by browser as RSS, but only styled XML)
View 2 Replies
Sep 9, 2011
I'm writing a replacement for an old library we use at the office to communicate with a rather clumsy and old custom-made C++ framework that takes requests via sockets in order to communicate with a bunch of other systems. The problem is that it will only take plain text messages containing a string which must be formatted in a very specific way.The problem I'm facing is that I haven't found so far a way of sending plain text through the socket. The Send method of the socket will only take byte arrays, and while the listening point receives the data, it gets there completely scrambled, and there's no way I can mess with that in order to convert the byte array back to plain text. I need to be able to send plain text, not byte arrays.[code]
View 1 Replies
May 11, 2012
i'm currently converting a delphi code into .net they have this encryption in their database I have decrypted but the problem is the output is in byte array.
Private Function EnDeCrypt(ByVal Value As String) As String
Dim transformed = Encoding.Unicode.GetBytes(Value).Select( _
[code]....
Result : º»¯³¶½ = e d p l i b(unprintable chars) my problem is how to convert the output to string?
View 1 Replies
Feb 7, 2012
I am using Visual Studio 2008 Pro to create a web application in Visual Basic. This app takes the information filled in by a user and then sends it to various people. Some of these people get the email in HTML, the rest in plain text. However, whenever I use the code below to send the plain text email, when the email arrives in my Outlook 2010 Inbox it is completely blank. If I leave the code alone and change only .IsBodyHTML from False to True, it works (it sends the email formatted for HTML).[code]Also, if I create an entirely new web app, using only this code, it sends the email correctly as plain text.
View 11 Replies
Mar 30, 2010
I'm sort of new to VB and have to use it for my Software Design & Development Major Project.I'm making a blackJack game, and i the names of all users in a file called "CurrentUserNames.txt".I'm struggling to get VB to read this file (items are line by line not separated by a comma or something) and then save it into an array called CurrentUsers(). This array is then displayed in a listbox called "lstAllUsers".I can get VB to read the file and put the FIRST item in the file into the FIRST line of the list box, or i can get VB to put ALL the items in the file into the listbox, separated by the little [] squares when the program runs e.g listbox, line 1 says - "Current [][] Names".[code]
View 17 Replies
Jan 1, 2010
i am programming a note and i save the plain text of the richtextbox1 to a notepad then i want to print it i use this code but it print the frist line only and i want to print all lines Private Sub SaveToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem1.Click
[Code]...
View 3 Replies
Jul 30, 2009
I've added reference to Flash object. Then dragged AxMacromediaFlash to form. [renamed Flash1]. Even after setting Flash1.Movie="file.swf".
it doesn't start playing ! I tried, loadMovie,Play,MovieData etc etc.. nothing works. There's no error, no warning, nothing. That Flash object remains plain white. am not using try catch too. I'm on Vista Home Premium 32bit, Flash player 10, Flash ActiveX version 10. Tried re-installing player, activeX. its just not working! : any known issues am ignoring here? and same file works fine if I drag it in IE. and if I check Flash1's state, it shows playing.
View 6 Replies
Nov 24, 2011
Just like the notepad, it will not allow you to paste any picture in it, and it will convert all formatted text to plain text. It will not change the content of the clipboard, it just like a filter... Is there any way to do it in VB.NET?My program screenshot:
I had a solution in my brain but I think it is not the best... The solution is reformat the text with
richtextbox1.font=myfont after any time I pasted, but it still can paste the other thing like object and picture..
View 4 Replies
Jul 4, 2010
I am setting a validation rule on a series of textboxes. I'd rather not create a new instance of my custom validation rule for each TextBox.[code]
View 1 Replies
May 12, 2009
for example I have this plain text:
Quote:
ID=100000CUSTOMER=JohnAMOUNT=2300020INVOICES=123CALLS=12ID=100001CUSTOMER=MaryAMOUNT=589INVOICES=2CA LLS=0ID=1002122CUSTOMER=DanielAMOUNT=8900000INVOICES=5CALLS=1
[code].....
View 2 Replies
Oct 18, 2009
Im trying to use File.ReadAllLines to read a DLL that has plain text. (the DLL is basically a text file) [code] The process cannot access the file '****DebugNewFile.DLL' because it is being used by another process.How do I use readalllines to find text? How do I use readalllines to only search a part of the text file?
View 4 Replies
Apr 23, 2010
I have a DataGridView in a Winforms application containing a collection of items. Each item has an image and various other details. I know it is possible in WPF, but can you get a tooltip to display an image and a more structured set of details then just plain text?
View 1 Replies
Feb 14, 2012
I have a program written in VB.NET and I have a textbox for the RFID tag (which is in ASCII format) and then convert it to a simple text format to be saved to my database. How can I convert ASCII to plain text to save to my database?
View 1 Replies
Jan 31, 2011
I am trying to mimic an encryption application. The application I am mimicking does a simple calculation where it takes the key and the plain text characters 7 bit ascii code and xor's them together. If the two spots in the code are = then it returns a 0 if it is ~ then it returns a 1. I have tried several code snippets for xor and none of them produce the results I want. I have only taken a couple programming classes so I get lost easy. This is what I have so far. My goal is to decrypt something encrypted by the program I am replicating using a password generator to come up with the key.I already have the binary for the encrypted text from the program I am copying. So I need to convert the key into the matching binary format. I used this snippet for that. [code] When I run this as is I get a much longer result than I should. If I use an "a" as my key and "00000000" as my cipher bi the result is "0011000000110000001100000011000000110000001100000011000000110000" when it should be "01100001".
View 14 Replies
Apr 26, 2009
Does Visual Basic have a function to switch between HTML character entities and plain text natively?
EG. > < to > <
View 2 Replies
May 20, 2011
I know this script [below] gives the pc motherboard number ,...well I would like to know how to write the result number as plain text somewhere in the windows, in a folder, or registry , or in a harddisk volume,... I know I could use
FileSystemObject CreateTextFile
I dont know how to insert it in the code , I tried but it gives me error
Code:
strServer = "."
Set objWMI = GetObject("winmgmts://" & strServer & "/rootcimv2")
Set objInstances = objWMI.InstancesOf("Win32_BaseBoard",48)[code].....
View 3 Replies
Mar 21, 2010
I need to implement a routine to read a plain text file, BUT that file has a predefined format.The file format is as follows:
Quote:
<FILE_PROPERTIES> 'The "< >" also appears
Propertie1="String" 'It's possible to have spaces after or before the "="
Propertie2="String"
Propertie3="String"
PropertieN="String"
[code]....
Is there any Windows API Routine to read something like that?Or could you point me an URL where something is implemented?I don't want a procedure to read the file line by line and comparing them with Line Input because blank spaces, empty lines and comments starting with " // " may appear too, and I don't want to take them into account, but also I need to save changes to the file, but only to the modified section, without having to read the whole file, and re-write it completely.
Binary access can't work, because I don't know what's the size of each "section", since the number of elements into it can change.
I need something like the "ReadINI" Windows API Procedure, but allowing me to read the "[XXX]" sections headers, and also the "<XXX>" file title header.
View 3 Replies
Feb 19, 2011
what I am trying to accomplish worked with the code in the last thread I posted a while back. I still am using this code, however, I changed the window size to work better and gave it a nicer background for the title screen of my project. Now what I am working on at the moment is making a settings form that has 2 labels. One for "Default" Layout and one for "Plain" layout. When default is at start, the default label is disabled,and when plain layout is clicked, the button is disabled and default button is enabled.Basically, this is a toggle switch for default or plain where if one is enabled, the option for it is disabled and the other is enabled.My problem is that when I switch from Plain back to default, the background Image will not switch back from the plain background color of "control"Here is my code:
Public Class Settings
Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
MiDNiGHT.BackgroundImage = Nothing[code].......
View 6 Replies
Nov 13, 2010
So I have a pretty simple UDF written in visual basic for use in excel. It calculates your approx. taxes. Lets say I use it as such: =Taxes(I23-I18,I24-I20,"Married")
If I type this in it works great. Now if I save the sheet and restart excel the cell now says #VALUE! If I select the formula and hit enter once again it recalculates it fine. What am I doing wrong? Application.Volatile shouldn't be needed but I was trying ideas. [Code]
View 1 Replies
Mar 15, 2012
This might seem like an insanely easy question, but I cant seem to find an answer anywhere to it. I'd like to think that I am decent at VB but while I was learning javascript the other day I found something that seemed awesome and now I cant figure out how to do it in VB.in javascript it looks like this
var someValue = getThatValue()Its both calling and setting the value from the getThatValue() sub. what is the VB equivalent?
[Code]...
View 2 Replies
Nov 2, 2010
I have a piece of code that checks a time and then adds hours based on the daylight savings time value.
Dim CommentDateTime as Date = "11/2/2010 8:21:42 PM"
If CommentDateTime.IsDaylightSavingTime Then
'do something
Else
'do something else
End If
The problem that I'm having is that IsDaylightSavingTime behaves differently on the production server than it does on the development.On the development server the case is TRUE, but on the production it is false.
Both servers are running the same OS and are both running .NET 3.5
[Code]...
View 2 Replies
Oct 10, 2011
I have two different GetConstructors(), one is returning what it should be returning the other however is returning nothing. ItemName is BSRPTReportPerformanceSubcontractorRating
The first one which is returning what it properly should is:
[Code]...
View 2 Replies