• Post Reply Bookmark Topic Watch Topic
  • New Topic

invoking server function using socket?  RSS feed

 
Taylor Simpson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there, nice to meet you guys. i have a problem here, need some help

im currently on a project that using socket and my JAVA suck

im developing a client to connect to a server. The server already have few functions like getCustomerInfo() whereby it will return primaryID, CustomerID and its written in VB script.

Im using JAVA to develop the client and using socket to connect to that server. i manage to create a connection to server but then how can i invoke the method/function at server? like the getCustomerInfo() and have it return me the value.

here is my code:-



or any other approach whereby i can invoke the method/function at server and have it return me the CustomerID those thing? Thanks in advance!

PS: i cant change any code at the server...i can only code at client side to invoke the method at server
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to read the documentation of the server application. Or ask someone. Maybe you must send command or something but it's guessing for us.

// Edit: And welcome to the JavaRanch
 
Taylor Simpson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, thanks for reply. the document stated that the server have CTB.DLL and functions are accessible through it. But my senior told me that they tried send message to server through the DLL but return no value, that's why change to try using socket.

oh, and "CTBFunction, this is the only class in CTB.DLL that encapsulates the VCT functions. Its class ID is xxxx-xxxx-xxxx"

this class ID, any use? in socket programming.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!