HOWTO QUESTION: inout sequences from client
Does anyone understand how to handle inout sequences in Java. I have to call a CORBA server method that accepts an inout sequence of structures. I can invoke the method, but how do I access the return values?
As far as I understand this topic, this is the task of
the holder objects. For example, if you have a method
in IDL
void foo(inout MyObject obj);
It will be converted to Java
void foo(MyObjectHolder obj);
You would use it by invoking
MyObject obj = new MyObject();
MyObjectHolder objHolder = new
new MyObjectHolder(obj);
myXYServer.foo(objHolder);
// now do something with obj
objHolder.value.doSomething()
I believe the question is to manipulate the inout variable. An 'inout' is a variable that originate from the
client, but can be altered by the server and sent back to the client
struct inItem
string key;
string value;
}; // inItem
struct outItem
string key;
string value;
}; // outItem
struct inoutItem
string key;
string value;
}; // outItem
typedef sequence <inoutItem> inoutResponse;
interface InfoRoamServer
long processData(in Intype inreq, out outType, inout inoutResponse response);
The java code generated should include Helper and Holder for each of the struct, use them to
set/get data from response object
If we initialize
inoutResponseHolder response = new inoutResponseHolder();
Set value
response.value =...
to get Value
= response.value ;
Similar Messages
-
Silly question: stop sequence from looping
Hi there, I think I hit a key to make the sequence loop at the end and I don't know how to disable it, any help would be appreciated, thanks!
At some point in editing, you pressed Control-L to activate Loop Playback.
Press Control-L again to toggle that function off. -
Question :create a database from client?
Hi,All.
I would ask , how can I create database on the server from client on LAN , Is there any way rather than Telnet?
Thanks
Edited by: 918204 on 01/03/2012 10:38 ص
Edited by: 918204 on 01/03/2012 10:40 ص918204 wrote:
Thank u a lot Mr.jgarry for ur help....
I appreciate it .
Maybe My English is not good, so I couldn’t decsribe what is my order?
I will try again .
I am begginer in oracle .and I am student.
.so:
I have an assignment which is :
What all the possible ways to connect the server from the client to create a database ? Then it all boils down to this:
1 - on the client, execute a program that will open a terminal session on the server. (For this you can use any number of available utilities that use either the telnet or ssh protocols. The most common are 'telnet' or 'ssh' (yes, the utility is named the same as the protocol). Putty is my favorite, using the ssh protocol.)
2 - within that terminal session, either
2.1 - execute the oracle utility DBCA, which will walk you through the process, but requires graphical (GUI) support,
OR
2.2 - use sqlplus to execute a complex set of SQL statements.
That's it. The rest is just details on those two.
Please could any one help me, -
I have Sequenced SQL2005 Client Tools Successfully and here is the steps used.
(I was getting this error, and this is my question in this blog http://social.technet.microsoft.com/Forums/en-US/appvgeneralsequencing/thread/e97ed71a-7d68-4977-890e-5ce317553855.
Thanks for the replies)
1. Install .NET 2.0 before sequencing SQL 2005 Client tools.
2. Create SQL2005 folder ON Q:
3. Create SQL folder in Q:\SQL2005
4. Start Sequencer> New Package ( used App-V 4.5 SP2 on Windows XP SP3) sequence to Q:\SQL2005
5. Give Name And Comments
6. Start monitoring
7. Run SQL Server 2005 setup
8. select Server components, tool, books online, and samples on setup screen
9. install pre requisites
10. IIS Feature Requirement will give a warning, click next to continue.
11. Check All Components(Workstation Components, Books Online and development tools etc)
12. Change installation path to Q:\SQL2005\SQL
13. Install SQL2005 SP2
14. Install Visual Studio 2005 Service Pack 1(VS80sp1-KB926601-X86-ENU)
15. Install hot fix 944478(VS80sp1-KB944478-X86-ENU)
16. Install the VKeyPackage.dll (hot fix package 945347). follow these steps:
a. Extract the pack © VKeyPackage.dll to C:\Program Files\Microsoft Visual Studio 8
b. Run this at command prompt regsvr32 "C:\Program Files\Microsoft Visual Studio8\VKeyPackage.dll"
17. Stop sequencing and Launch applications.
18. On deployment tab fill out required information needed and Uncheck "enforce security descriptors"
19. Save the Package.
20. Make sure that the Sequencer clients are having .NET 2.0 installed.
21. Copy the package to ‘content ‘folder and import it.
Thanks
SreekanthHai i am sequencing SQL server 2008 R2 . just want to know from where can i get this hot fix download. there is only option saying contact microsoft . but where we are able to download this hotfix to Fix the issue of licience..Help out
-
How to use KeyChain API from client-side HTML scripting in Safari on iPad?
I have a requirement where I need to add client-side scripting in an HTML page to be supported by Safari on iPad that creates a private / public key pair and that creates a CSR (Certificate Signing Request) in PKCS#10 or SPKAC format that can be sent to a certification authority server using form HTTP/POST that will then return the generated certificate.
I initially thought that I could simply use the HTML 5 tag <keygen> which can do exactly what I need, but unfortunately this tag is not at all supported on mobile Apple devices like iPad or iPhone, so I have to look for another solution.
I have noticed that the KeyChain tool should be available on iPad using the documented API, but I have no idea based on the documentation whether the API can be called from client-side HTML scripting on iPad.
Question : is it technically possible using the functionalities and API's exposed on an iPad to implement what I just described in HTML client-side scripting? If so, do you have some links with useful information that can help me on my way?I have a requirement where I need to add client-side scripting in an HTML page to be supported by Safari on iPad that creates a private / public key pair and that creates a CSR (Certificate Signing Request) in PKCS#10 or SPKAC format that can be sent to a certification authority server using form HTTP/POST that will then return the generated certificate.
I initially thought that I could simply use the HTML 5 tag <keygen> which can do exactly what I need, but unfortunately this tag is not at all supported on mobile Apple devices like iPad or iPhone, so I have to look for another solution.
I have noticed that the KeyChain tool should be available on iPad using the documented API, but I have no idea based on the documentation whether the API can be called from client-side HTML scripting on iPad.
Question : is it technically possible using the functionalities and API's exposed on an iPad to implement what I just described in HTML client-side scripting? If so, do you have some links with useful information that can help me on my way? -
How to list IP address from client on the Server (TCP/IP CLIENT SERVER COMMUNICATION)
Excuse me,
In this project I want to ask how to add list IP from client that connect to server.
I have edited slightly the project.
'SERVER
Imports System.Net
Imports System.Net.Sockets
Imports System.Threading
Imports System.Threading.Tasks
Imports System.Reflection
Public Class ServerForm
Private _Listener As TcpListener
Private _Connections As New List(Of ConnectionInfo)
Private _ConnectionMonitor As Task
Private Sub Button_Checked(sender As System.Object, e As System.EventArgs) Handles StartStopButton.CheckedChanged
If StartStopButton.Checked Then
StartStopButton.Text = "Stop"
StartStopButton.Image = My.Resources.StopServer
_Listener = New TcpListener(IPAddress.Any, CInt(PortTextBox.Text))
_Listener.Start()
Dim monitor As New MonitorInfo(_Listener, _Connections)
ListenForClient(monitor)
_ConnectionMonitor = Task.Factory.StartNew(AddressOf DoMonitorConnections, monitor, TaskContinuationOptions.LongRunning)
Else
StartStopButton.Text = "Start:"
StartStopButton.Image = My.Resources.StartServer
CType(_ConnectionMonitor.AsyncState, MonitorInfo).Cancel = True
_Listener.Stop()
_Listener = Nothing
End If
End Sub
Private Sub PortTextBox_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles PortTextBox.Validating
Dim deltaPort As Integer
If Not Integer.TryParse(PortTextBox.Text, deltaPort) OrElse deltaPort < 1 OrElse deltaPort > 65535 Then
MessageBox.Show("Port number between 1 and 65535", "Invalid Port Number", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
PortTextBox.SelectAll()
e.Cancel = True
End If
End Sub
Private Sub ListenForClient(monitor As MonitorInfo)
Dim info As New ConnectionInfo(monitor)
_Listener.BeginAcceptTcpClient(AddressOf DoAcceptClient, info)
End Sub
Private Sub DoAcceptClient(result As IAsyncResult)
Dim monitorinfo As MonitorInfo = CType(_ConnectionMonitor.AsyncState, MonitorInfo)
If monitorinfo.Listener IsNot Nothing AndAlso Not monitorinfo.Cancel Then
Dim info As ConnectionInfo = CType(result.AsyncState, ConnectionInfo)
monitorinfo.Connections.Add(info)
info.AcceptClient(result)
ListenForClient(monitorinfo)
info.AwaitData()
Dim doUpdateConnectionCountLabel As New Action(AddressOf UpdateConnectionCountLabel)
Invoke(doUpdateConnectionCountLabel)
End If
End Sub
Private Sub DoMonitorConnections()
Dim doAppendOutput As New Action(Of String)(AddressOf AppendOutput)
Dim doUpdateConnectionCountLabel As New Action(AddressOf UpdateConnectionCountLabel)
Dim monitorInfo As MonitorInfo = CType(_ConnectionMonitor.AsyncState, MonitorInfo)
Me.Invoke(doAppendOutput, "Server Started")
Do
Dim lostCount As Integer = 0
For index As Integer = monitorInfo.Connections.Count - 1 To 0 Step -1
Dim info As ConnectionInfo = monitorInfo.Connections(index)
If info.Client.Connected Then
If info.DataQueue.Count > 0 Then
Dim messageBytes As New List(Of Byte)
While info.DataQueue.Count > 0
Dim value As Byte
If info.DataQueue.TryDequeue(value) Then
messageBytes.Add(value)
End If
End While
Me.Invoke(doAppendOutput, "Message from IP: " + System.Text.Encoding.ASCII.GetString(messageBytes.ToArray))
End If
Else
monitorInfo.Connections.Remove(info)
lostCount += 1
End If
Next
If lostCount > 0 Then
Invoke(doUpdateConnectionCountLabel)
End If
_ConnectionMonitor.Wait(1)
Loop While Not monitorInfo.Cancel
For Each info As ConnectionInfo In monitorInfo.Connections
info.Client.Close()
Next
monitorInfo.Connections.Clear()
Invoke(doUpdateConnectionCountLabel)
Me.Invoke(doAppendOutput, "Server Stoped")
End Sub
Private Sub UpdateConnectionCountLabel()
ConnectionCountLabel.Text = String.Format("{0} Connections", _Connections.Count)
End Sub
Private Sub AppendOutput(message As String)
If RichTextBox1.TextLength > 0 Then
RichTextBox1.AppendText(ControlChars.NewLine)
End If
RichTextBox1.AppendText(message)
RichTextBox1.ScrollToCaret()
End Sub
Private Sub ClearButton_Checked(sender As Object, e As EventArgs) Handles ClearButton.CheckedChanged
If ClearButton.Checked Then
RichTextBox1.Clear()
End If
End Sub
End Class
Public Class MonitorInfo
Private _listener As TcpListener
Public ReadOnly Property Listener As TcpListener
Get
Return _listener
End Get
End Property
Private _connections As List(Of ConnectionInfo)
Public ReadOnly Property Connections As List(Of ConnectionInfo)
Get
Return _connections
End Get
End Property
Public Property Cancel As Boolean
Public Sub New(tcpListener As TcpListener, connectionInfoList As List(Of ConnectionInfo))
_listener = tcpListener
_connections = connectionInfoList
End Sub
End Class
Public Class ConnectionInfo
Private _monitor As MonitorInfo
Public ReadOnly Property Monitor As MonitorInfo
Get
Return _monitor
End Get
End Property
Private _Client As TcpClient
Public ReadOnly Property Client As TcpClient
Get
Return _Client
End Get
End Property
Private _DataQueue As System.Collections.Concurrent.ConcurrentQueue(Of Byte)
Public ReadOnly Property DataQueue As System.Collections.Concurrent.ConcurrentQueue(Of Byte)
Get
Return _DataQueue
End Get
End Property
Private _Stream As NetworkStream
Public ReadOnly Property Stream As NetworkStream
Get
Return _Stream
End Get
End Property
Public Sub New(monitor As MonitorInfo)
_monitor = monitor
_DataQueue = New System.Collections.Concurrent.ConcurrentQueue(Of Byte)
End Sub
Private _LastReadLength As Integer
Public ReadOnly Property LastReadLength As Integer
Get
Return _LastReadLength
End Get
End Property
Private _Buffer(63) As Byte
Public Sub AcceptClient(result As IAsyncResult)
_Client = _monitor.Listener.EndAcceptTcpClient(result)
If _Client IsNot Nothing AndAlso _Client.Connected Then
_Stream = _Client.GetStream
End If
End Sub
Public Sub AwaitData()
_Stream.BeginRead(_Buffer, 0, _Buffer.Length, AddressOf DoReadData, Me)
End Sub
Private Sub DoReadData(result As IAsyncResult)
Dim info As ConnectionInfo = CType(result.AsyncState, ConnectionInfo)
Try
If info.Stream IsNot Nothing AndAlso info.Stream.CanRead Then
info._LastReadLength = info.Stream.EndRead(result)
For Index As Integer = 0 To _LastReadLength - 1
info._DataQueue.Enqueue(info._Buffer(Index))
Next
'info.SendMessage("Data Diterima " & info._LastReadLength & " Bytes")
info.SendMessage("reply form server: " & info._LastReadLength & " Bytes")
For Each otherInfo As ConnectionInfo In info.Monitor.Connections
If Not otherInfo Is info Then
otherInfo.SendMessage(System.Text.Encoding.ASCII.GetString(info._Buffer))
End If
Next
info.AwaitData()
Else
info.Client.Close()
End If
Catch ex As Exception
info._LastReadLength = -1
End Try
End Sub
Private Sub SendMessage(message As String)
If _Stream IsNot Nothing Then
Dim messageData() As Byte = System.Text.Encoding.ASCII.GetBytes(message)
Stream.Write(messageData, 0, messageData.Length)
End If
End Sub
End Class
'CLIENT
Imports System.Net
Imports System.Net.Sockets
Public Class ClientForm
Private _Connection As ConnectionInfo
Private _ServerAddress As IPAddress
Private Sub ClientForm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
ValidateChildren()
End Sub
Private Sub ConnectButton_Checked(sender As Object, e As System.EventArgs) Handles ConnectButton.CheckedChanged
If ConnectButton.Checked Then
If _ServerAddress IsNot Nothing Then
ConnectButton.Text = "Disconnect"
ConnectButton.Image = My.Resources.StopServer
Try
_Connection = New ConnectionInfo(_ServerAddress, CInt(PortTextBox.Text), AddressOf InvokeAppendOutput)
_Connection.AwaitData()
Catch ex As Exception
MessageBox.Show(ex.Message, "Error Connecting to Server", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
ConnectButton.Checked = False
End Try
Else
MessageBox.Show("Invlid IP Server", "Cannt Connect to Server", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
ConnectButton.Checked = False
End If
Else
ConnectButton.Text = "Connect"
ConnectButton.Image = My.Resources.StartServer
If _Connection IsNot Nothing Then _Connection.Close()
_Connection = Nothing
End If
End Sub
Private Sub SendButton_Click(sender As System.Object, e As System.EventArgs) Handles SendButton.Click
If _Connection IsNot Nothing AndAlso _Connection.Client.Connected AndAlso _Connection.Stream IsNot Nothing Then
Dim buffer() As Byte = System.Text.Encoding.ASCII.GetBytes(InputTextBox.Text)
_Connection.Stream.Write(buffer, 0, buffer.Length)
End If
End Sub
Private Sub ServerTextBox_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles IPTextBox.Validating
_ServerAddress = Nothing
Dim remoteHost As IPHostEntry = Dns.GetHostEntry(IPTextBox.Text)
If remoteHost IsNot Nothing AndAlso remoteHost.AddressList.Length > 0 Then
For Each deltaAddress As IPAddress In remoteHost.AddressList
If deltaAddress.AddressFamily = AddressFamily.InterNetwork Then
_ServerAddress = deltaAddress
Exit For
End If
Next
End If
If _ServerAddress Is Nothing Then
MessageBox.Show("Cannot resolve Server Address", "invalid Server", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
IPTextBox.SelectAll()
e.Cancel = True
End If
End Sub
Private Sub PortTextBox_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles PortTextBox.Validating
Dim deltaPort As Integer
If Not Integer.TryParse(PortTextBox.Text, deltaPort) OrElse deltaPort < 1 OrElse deltaPort > 65535 Then
MessageBox.Show("Port number between 1 and 65535", "invalid Port number", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
PortTextBox.SelectAll()
e.Cancel = True
End If
End Sub
Private Sub InvokeAppendOutput(message As String)
Dim doAppendOutput As New Action(Of String)(AddressOf AppendOutput)
Me.Invoke(doAppendOutput, message)
End Sub
Private Sub AppendOutput(message As String)
If RichTextBox1.TextLength > 0 Then
RichTextBox1.AppendText(ControlChars.NewLine)
End If
RichTextBox1.AppendText(message)
RichTextBox1.ScrollToCaret()
End Sub
Private Sub ButtonClear_Click(sender As Object, e As EventArgs) Handles ButtonClear.Click
RichTextBox1.Clear()
InputTextBox.Clear()
End Sub
End Class
Public Class ConnectionInfo
Private _AppendMethod As Action(Of String)
Public ReadOnly Property AppendMethod As Action(Of String)
Get
Return _AppendMethod
End Get
End Property
Private _Client As TcpClient
Public ReadOnly Property Client As TcpClient
Get
Return _Client
End Get
End Property
Private _Stream As NetworkStream
Public ReadOnly Property Stream As NetworkStream
Get
Return _Stream
End Get
End Property
Private _LastReadLength As Integer
Public ReadOnly Property LastReadLength As Integer
Get
Return _LastReadLength
End Get
End Property
Private _Buffer(63) As Byte
Public Sub New(address As IPAddress, port As Integer, append As Action(Of String))
_AppendMethod = append
_Client = New TcpClient
_Client.Connect(address, port)
_Stream = _Client.GetStream
End Sub
Public Sub AwaitData()
_Stream.BeginRead(_Buffer, 0, _Buffer.Length, AddressOf DoreadData, Me)
End Sub
Public Sub Close()
If _Client IsNot Nothing Then _Client.Close()
_Client = Nothing
_Stream = Nothing
End Sub
Private Sub DoreadData(result As IAsyncResult)
Dim info As ConnectionInfo = CType(result.AsyncState, ConnectionInfo)
Try
If info._Stream IsNot Nothing AndAlso info._Stream.CanRead Then
info._LastReadLength = info._Stream.EndRead(result)
If info._LastReadLength > 0 Then
Dim message As String = System.Text.Encoding.ASCII.GetString(info._Buffer)
info._AppendMethod(message)
End If
info.AwaitData()
End If
Catch ex As Exception
info._LastReadLength = -1
info._AppendMethod(ex.Message)
End Try
End Sub
End Class
//ScreenShot server
http://prntscr[dot]com/5t1ol3
//Screenshot client
http://prntscr[dot]com/5t1odj
source: code[dot]msdn[dot]microsoft[dot]com/windowsdesktop/Simple-Multi-User-TCPIP-43cc3b44I have a similar chat application. When the user attempts to connect, instead of sending a simple string, the client sends a serialized object(xml string) with all relevant login and session information, this includes the user's IP address. Once the server
receives said information, depending on the type of TCP broadcast (a custom enumerated type) information from one user may be passed to a single user, or distributed to many users.
If it helps, here is the TCPBroadcast object I use. But in order for your server to understand it, you kind of have to build your server and client somewhat around it.
Option Strict On
Option Explicit On
Option Infer Off
Namespace TCPChat
Public Class TCPBroadcast
Public Property Message As String
Public Property BroadCastTime As DateTime
Public Property DestUser As String
Public Property OriginUser As String
Public Property PasswordHash As String
Public Property BroadcastSourceIP As String
Public Property BroadCastType As TCPBroadcastType
Public Property LoginUserName As String
Public Property FailureReason As String
Public Function XmlEncoding() As String
Dim serializer As New Xml.Serialization.XmlSerializer(GetType(TCPBroadcast))
Dim XML As String = String.Empty
Using memStream As New IO.MemoryStream
Using xmlWriter As New Xml.XmlTextWriter(memStream, System.Text.Encoding.UTF8) With _
{.Indentation = 4, .Formatting = System.Xml.Formatting.Indented}
serializer.Serialize(xmlWriter, Me)
End Using
XML = System.Text.Encoding.UTF8.GetString(memStream.ToArray)
End Using
Return XML
End Function
Public Function ToBinary() As Byte()
Return System.Text.Encoding.UTF8.GetBytes(Me.XmlEncoding)
End Function
Public Shared Function FromBinary(binary As Byte()) As DeserializationResult
Dim xml As String = System.Text.Encoding.UTF8.GetString(binary)
Return FromXML(xml)
End Function
Public Shared Function FromXML(xml As String) As DeserializationResult
Dim DeserializationResult As New DeserializationResult
DeserializationResult.Error = False
Try
Dim deserializer As New Xml.Serialization.XmlSerializer(GetType(TCPBroadcast))
Dim buffer As Byte() = System.Text.Encoding.UTF8.GetBytes(xml)
Using memStream As New IO.MemoryStream(buffer)
DeserializationResult.tcpBroadCast = CType(deserializer.Deserialize(memStream), TCPBroadcast)
End Using
Catch ex As Exception
DeserializationResult.Error = True
DeserializationResult.ErrorMessage = ex.ToString
DeserializationResult.AttemptedXML = xml
End Try
Return DeserializationResult
End Function
Public Class DeserializationResult
Public [Error] As Boolean
Public ErrorMessage As String
Public tcpBroadCast As TCPBroadcast
Public AttemptedXML As String
Sub New()
End Sub
End Class
Public Enum TCPBroadcastType
AdministrativeMessage
AuthenticationFailure
AuthenticationSuccess
ChatBroadcast
CredentialsRequest
Credentials
DisconnectedByServer
KeepAlive
PrivateMessage
ServerMessage
SystemMessage
UnableToProcessRequest
End Enum
End Class
End Namespace
“If you want something you've never had, you need to do something you've never done.”
Don't forget to mark
helpful posts and answers
! Answer an interesting question? Write a
new article
about it! My Articles
*This post does not reflect the opinion of Microsoft, or its employees. -
How can I pass a value from Client to EntityImpl class?
Hi everyone,
I am using ADF BC to develop my Application.
I want to do something in the EntityImpl class.
My job needs a value from Client.
I can't find any way to slove the problem.
Is there anyone have an ideal, please tell me.
Thanks,
Tuan Vu Minh
FPT Software Solution Company (Oracle partner)
FPT Coporation
Add: 3th Fl., 51 Le Dai Hanh Builiding,
Hai Ba Trung Dist,
Hanoi,
The Socialist Republic of VietNam
Tel: (84,4) 9745476
Fax: (84,4) 9754475
Email: [email protected]
Website: http://www.fss.com.vn , http://www.fpt.com.vnFirstly, let me state that I'm not a Swing programmer, so your mileage may vary. However I don't think a Swing solution is what you need. ADF BC will do this for you.
Assumptions on my answer:
1) You're generating the log_id from a database sequence and it is automatically populated in the UserLog table.
2) You have 2 VOs, namely UserLogView and ActionLogView based on the EOs.
Create a View Link between each VO making UserLogView the master.
In your UI, once the user has inserted into UserLogView, include a bound create button for the ActionLogView such that it creates an associated ActionLogView record for the user when they wish to enter the log details. ADF BC will populate the ActionLogView Log_id with the parent's UserLogView log_id automatically. You'll then need to navigate to the ActionLogView screen to allow the user to enter the rest of the details.
As such, you don't need to expose the log_id to the client, ADF BC will take care of the population of the log_id correctly for you when creating the detail record.
Another approach may be to define one VO encompassing both EOs, where the ActionLog is a reference. Look at the JDevelope help page "View Object Wizard - Entity Objects Page", specifically at the "Reference" section for more info. You'll need to test out the updateable flag for both EOs defined within the VO to ensure you can update the values of both.
Test this out in the Business Components Browser before writing the UI to see if the ADF BC solution works, and saving you time in writing the UI.
Hope this helps.
CM. -
Sending xml file from client to servlet
Hi,
I am writing the server component of an applcation, such that it will receive xml files from the clients(standalone application similar to javaSwing stuff but it's coded in C#), and the servlet will have to extract the data from the xml file and update the mySql database. it will also fulfill the client's request for xmlFiles (and extract data from DB, format to xml file and send back to client)
I'm new to implementing the servlet receiving files from clients so would need some help.
I've got 3 questions to ask:
1) How does the servlet receive/returns the xml file from the client as a series of httpPost request/response. Do i send a File or the file's contents as a String to/from the client?
2) Is it also a must to use socket for the file transfers? I have read in other posts about sockets as well as HttpURLConnection but i don't quite understand.
3) When I send a file back to the client(client is standalone application written in C# whereas server is coded in java), what do i specify for the HttpResponse.setContentType() in my servlet? (i'm returning the xml file to client)
Would really appreciate for any help rendered. If you have any useful links, would appreciate them too. Thanks a lot.
KarenI've got 3 questions to ask:
1) How does the servlet receive/returns the xml file
from the client as a series of httpPost
request/response. Do i send a File or the file's
contents as a String to/from the client?The server will listen on some port for requests. The client has to open a socket to this server to send the file as string to the server.
see http://java.sun.com/docs/books/tutorial/networking/index.html
>
2) Is it also a must to use socket for the file
transfers? I have read in other posts about sockets as
well as HttpURLConnection but i don't quite
understand.You use HttpURLConnection to make a request using the http protocol, instead of opening a socket and then writing the html headers yourself.
3) When I send a file back to the client(client is
standalone application written in C# whereas server is
coded in java), what do i specify for the
HttpResponse.setContentType() in my servlet? (i'm
returning the xml file to client)Its up to your receiving program how to interpret this though, so you probably dont need this. -
Converting date value one day less while transfering from client to server
Hi,
I have very typical problem. My application is in java, we are using oralce 9ias. The problem when the server is running in german locale and client is running in english. We the date value is passed from client to server it is converting to one day less.
i.e.
If i want to search with records jan 02,2005,
on server side if we print the value it is getting as jan 01,2005.
Can anybody help me in solving the above problem.
Its bit very urgent.
Thanks in advance
regards
Kalyan// to get current time in Germany
Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("Germany"));
int hour12 = cal.get(Calendar.HOUR);
int minutes = cal.get(Calendar.MINUTE);
int seconds = cal.get(Calendar.SECOND);
boolean am = cal.get(Calendar.AM_PM) == Calendar.AM;
//I think all you need to do is to set the timezone to the current, so that when the
//server at some other timezone gets this date it knows that this date belongs to
//different timezone and gets converted automatically according to the server
//timezone settings.
// Set the current local timezone
cal.setTimeZone(TimeZone.getDefault());
int hour24 = cal.get(Calendar.HOUR);
Hope this answers your question. Good luck.
-Sreekanth varidhireddy -
Transport Questions and Questionnaires from Dev to QAS or to PRD
Question
How do we transport questions and questionnaires from dev to QAS or to PRD. Do you type all them again or there is process no. What is best process others do
Answer
As you must be aware, Questionnaires are updated from a Recruiter start page in the front end which cannot be saved in a change request.
At least Iu2019m not aware of any other way to move the Questionnaire details across clients.
I know that it is quite a bit of a task to repeat the activity of maintaining questions and response in questionnaire/s across clients, particularly When you have to maintain big questionnaires (with lots of questions & multiple responses).But As it is , Process templates, Questionnaires have been considered as a recruiters day-to-day administration task in SAP which has to be done from the front end even in live environment
Any body has soloution ?
Thanks.
Saquib
http://aspirehr.com/HCM_solutions/hcm_solutions.aspHi Vishal,
As you must be aware, Questionaires are updated from a Recruiter start page in the front end which cannot be saved in a change request.
Atleast i'm not aware of any other way to move the Questionnnaire details across clients.
i know that it is quite a bit of a task to repeat the activity of maintaining questions and response in questionnaire/s across clients, particularly When you have to maintain big questionnaires (with lots of questions & multiple responses).But As it is , Process templates, Questionnnaires have been considered as a recruiters day-to-day administration task in SAP which has to be done from the front end even in live environment.
So if you are a part of the Implementation Consulting team, it is your responsibility to train the core team in doing the activity in live environment. Hope this information helps.
Best regards
G Raj -
HI All, send me flow chart for whole mi process from client to backend sys
HI All, send me flow chart for whole mi process from client to backend system .
means that The process whe the synchronization is trigerred on a client device . Pls its Urgent .pls send ASAP.
Thanks&Regards.
Bharat Kumar .Hi,
have a look here:
http://help.sap.com/saphelp_me21sp2/helpdata/en/5a/386cc01dd1c7489e237d532841d407/content.htm
Hope this helps to answer your question.
Regards,
Oliver -
How To... Execute Planning Functions and Sequences from MS Office Ribbon
Dear all,
I am working with a SAP how to paper, which is called:
How To... Execute Planning Functions and Sequences from MS Office Ribbon.
It is working absolutely fine and I am pretty satisfied, but as you probably know "Control the visibility of a button based on the visibility of a related crosstab: the button just disappears once the related crosstab is not located on the active sheet."
This means, when I insert different queries in different crosstabs, only one crosstab will have my own created ribbon. Is it also possible to set another specific ribbon with other buttons for another crosstab? Can I change the macro, included in the appendix of the how to paper, regarding this issue?
Thanks in advance!
Kind regards
Dominik DrebingerHey Martin,
thanks for your reply, but I solved the problem on my own. Unfortunately my colleague did not see that the crosstabs had to be defined differently.
Like this:
Label
Screentip
Msolmage name
Crosstab name
Copy Initial Aligned
Copy Initial Aligned
CacheListData
SAPCrosstab1
Copy Initial Aligned
Copy Initial Aligned
CacheListData
SAPCrosstab3
Copy Initial Aligned
Copy Initial Aligned
CacheListData
SAPCrosstab5
The macro, provided by the HowTo, is therefore working perfectly fine.
Thanks though
Dominik -
Exporting sequence from Premiere CC to Audition CC opens completely wrong clips in multitrack
I export my sequence from PP and Audition opens 100% incorrect video and audio! Nothing is the right clip, totally wrong files are being opened. I have no clue at all what is going on. Can anyone help?
Footage is DV PAL. Audio is single stereo audio file (made in Audition CC) on dialogue track and single stereo music track, both 48KHz 16bit. All audio is going into Audition at 0db with no effects (ie untampered).
I've done plenty of other mixes with the same project in different sequences with no problem at all (starting in CS6 and now working in CC - it's a feature film project with many tracks and over an hour long). The primary feature mixdown has been done and worked beautifully last week. Now I'm working on a trailer which is only 3 minutes long, using the rendered movie as my primary source, so it should be quite simple.
I have had a look at the xml (of which I only have the most basic understanding) and the document clearly references completely wrong files, so I think you are right and it's a PP issue rather than Audition, which just seems to be fed crap to start with!
My specs are:
Mac Pro 5,1 - 6 Core 3.33GHz
48GB RAM
GTX 680 Mac
OSX 10.8.5
Adobe CC - up-to-date
playout via Focusrite Saffire Pro 24 (FW400)
Thanks for any help!
Dominic
PS
This is a copy of a thread I started in the AUdition forum but was advised to ask here instead.Not a direct reply to your question but...
I have only exported video to Audition as a reference track- preferring to use the PP timeline for the master export. I somehow feel it's less prone to image quality loss (codec dependent!)
To that end, I add the imported Audition mix-down either as a single or multiple stems, depending upon the project requirements, and place them in sync in the original timeline. -
How to get MAC address from client machine ?
Hi dear,
We are implementing security measures for a banking system, so it is required that we track the MAC address of the registered clients along with other parameters. How do we get the MAC address from client machine using ADF or running scripts in client side?
thanks allHi,
Welcome to OTN.
Your question has nothing to do with ADF as such. Googling would give you plenty of such topics.
-Arun -
Create users for other clients from client 000
Hello!
I have the following question:
What is the Tcode allows me to see all created users (perhaps wuth their password) in all clients from e.g. client 000?
Is it possible to create new users for other clients from client 000?
Thank you very much!
regards
Thom<b>SU10 User Mass Maintenance</b>
SCUA Central User Administration
SCUM Central User Administration
SCUG Copy users
SU01/SUCOMP User Maintenance/User company address maintenance
SU01D User Display
SCUL Central User Management Log
Maybe you are looking for
-
How to draw a JPanel in an offscreen image
I am still working on painting a JPanel on an offline image I found the following rules : - JPanel.setBounds shall be called - the JPanel does not redraw an offline image, on should explicitly override paint() to paint the children components - the C
-
Issue with form based Authentication in three tier sharepoint 2013 environment.
Hi, We are facing issue with form based Authentication in three tier environment. We are able to add users to the database and in SharePoint. But we are not able to login with created users. In single tier everything working fine Please help , Its ur
-
Open attached file in the same editor(ZCRM_DNO_MONITOR customer program)
Hi All, I wrote a dialog program to simplify the CRM_DNO_MONITOR. I gave the facility to attach file from the PC(any doc type .txt ,doc, xls. etc) by calling the functions. I need to give a facility to open these attached file in the same edit. Pl
-
I am doing File->File Scenarios. There is no Recrod set also. I want to rename the file using XI. No mapping required. To rename the File name we can do the coding related to Dynamica configuration in one UDF and will map to the top node of the targe
-
Purchasing new iMac, upgrade to Lion
Seems there are no iMacs currently available with Lion installed. I can't seem to get the Apple support people to accurately address this question: If I were to purchase one that has Snow Leopard, how much initial set up is involved before I can dow