• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

invoking server function using socket?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic