473,473 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Recieve xml

7 New Member
hi all,
iam new on .net,,,
iam make it as string and convert it to xml
how i can recieve XML..





Private Sub btnRequest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRequest.Click
Dim strBuildxml As String = "" '"<?xml version=" & "1.0" & " ?>" & Microsoft.VisualBasic.ControlChars.NewLine
Try
'===============================
'build <InfoLinkDocument>

strBuildxml &= "<InfoLinkDocument>" & Microsoft.VisualBasic.ControlChars.NewLine

'===============================
' build <AccessRequest>
strBuildxml &= "<AccessRequest>" & Microsoft.VisualBasic.ControlChars.NewLine

strBuildxml &= "<DocumentType>" & txtDocumentType.Text & "</DocumentType> " & Microsoft.VisualBasic.ControlChars.NewLine
strBuildxml &= "<EntityID>" & txtEntityID.Text & "</EntityID> " & Microsoft.VisualBasic.ControlChars.NewLine
strBuildxml &= "<Version>" & txtVersion.Text & "</Version> " & Microsoft.VisualBasic.ControlChars.NewLine
strBuildxml &= "<TimeStamp>" & txtTimeStamp.Text & "</TimeStamp> " & Microsoft.VisualBasic.ControlChars.NewLine
strBuildxml &= "<Reference1>" & txtReference1.Text & "</Reference1> " & Microsoft.VisualBasic.ControlChars.NewLine

If txtReference2.Text <> "" Then
strBuildxml &= "<Reference2>" & txtReference2.Text & "</Reference2> " & Microsoft.VisualBasic.ControlChars.NewLine
End If
If txtReference3.Text <> "" Then
strBuildxml &= "<Reference3>" & txtReference3.Text & "</Reference3> " & Microsoft.VisualBasic.ControlChars.NewLine
End If
If txtReference4.Text <> "" Then
strBuildxml &= "<Reference4>" & txtReference4.Text & "</Reference4> " & Microsoft.VisualBasic.ControlChars.NewLine
End If
If txtReference5.Text <> "" Then
strBuildxml &= "<Reference5>" & txtReference5.Text & "</Reference5> " & Microsoft.VisualBasic.ControlChars.NewLine
End If

strBuildxml &= "<ReplyEmailAddress>" & txtReplyEmailAddress.Text & "</ReplyEmailAddress> " & Microsoft.VisualBasic.ControlChars.NewLine
strBuildxml &= "<NotifyOnSuccess>" & ddlNotifyOnSuccess.SelectedValue.ToString & "</NotifyOnSuccess> " & Microsoft.VisualBasic.ControlChars.NewLine

'Close <AccessRequest>
'===============================
strBuildxml &= "</AccessRequest>" & Microsoft.VisualBasic.ControlChars.NewLine

'===============================
' build <HAWB>

strBuildxml &= "<HAWB>" & Microsoft.VisualBasic.ControlChars.NewLine

strBuildxml &= "<HAWBNumber>" & txtHAWBNumber.Text & "</HAWBNumber> " & Microsoft.VisualBasic.ControlChars.NewLine
strBuildxml &= "<HAWBOriginEntity>" & txtHAWBOriginEntity.Text & "</HAWBOriginEntity> " & Microsoft.VisualBasic.ControlChars.NewLine
strBuildxml &= "<HAWBDestinationEntity>" & txtHAWBDestinationEntity.Text & "</HAWBDestinationEntity> " & Microsoft.VisualBasic.ControlChars.NewLine
strBuildxml &= "<Services>" & txtServices.Text & "</Services> " & Microsoft.VisualBasic.ControlChars.NewLine
strBuildxml &= "<ProductType>" & txtProductType.Text & "</ProductType> " & Microsoft.VisualBasic.ControlChars.NewLine

'Close <HAWB>
'===============================

strBuildxml &= "</HAWB>" & Microsoft.VisualBasic.ControlChars.NewLine


strBuildxml &= "</InfoLinkDocument>" & Microsoft.VisualBasic.ControlChars.NewLine
Session("Request") = strBuildxml

Response.Redirect("frmResult1.aspx")

Catch ex As Exception

Response.Write(ex.Message)

End Try

End Sub
Jul 23 '08 #1
0 1201

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: K.K. | last post by:
I am writing program that will recieve or sent data to selected port (users can select which port they want to recieve or sent) but I don't know how or whick object I can use.
2
by: Robin Tucker | last post by:
Hiya, I can't get my panel to recieve mousewheel events at all. When I handle the Mousedown event, I call Me.Focus() in order to have the input focus, but my mousewheel event never fires. Is...
2
by: Jody L. Whitlock | last post by:
I'm kinda stumped at the moment, so... Here's what I'm looking to do: I have a ClientSocket, and I would like to free-thread the recieve end of it. I tried a delegate, but that won't fire. I'm...
1
by: Kiran | last post by:
how to send and recieve objects to java web services from .net client
1
by: Dave | last post by:
I can't figure out why my code does not recieve the message. The only message that it receives is the one going out from my machine. I am suppose to send out a message to a server. Upon...
16
by: jimjim | last post by:
#include <stdio.h> #include <stdlib.h> //WARNING: The function's signature should be: f( int ** ) void f(int *ip) { static int dummy = 5; *ip = &dummy; } int main(){
0
by: Aerodyne | last post by:
Hi all, I have a client that send a text file to a server... the client end seems to work ok. I would like some help on the server side, it's listening fine... but how do I get it to recieve a...
7
by: sreehari | last post by:
Hi All, I have this problem, I have developed a Master - Slave kinda appliacation , were the slave is generally a device.when i broadcast a message from my application, the Device seems to...
2
by: ericlangland | last post by:
Hi, I have a small managed code application (windows forms) that executes on startup and immidiatly minimizes to the system tray. It launches and shows the form when I double click it's small...
1
by: 4project | last post by:
i wanted to design a user interface such that i can handle all the incoming and outgoing calls , also send and recieve sms. I know that for sure that we can 1a .call 2a send sms but not...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.