Hi,
Would be able to check below in my coding for RPC for request/reply?
I wonder how to request/reply with external mutiple parameters Can I use
setmessage and sendreceive here?
I am trying to request/reply witha java wrapper. however, I don’t have an enough experience to use like that.
thanks for your reply.
Paul
public char findCatalogingBookmarc(String movexValues){
hasCatalog ='Y';
// config section for Brokerservice
private Broker broker;
private BrokerService brokerService;
private static String sServer = "SRV1";
private Movex library;
private Conversation conv;
String brokerID = "IBAX4101_BTN:41972:TCP";
try{
Broker broker = new Broker(brokerID,"ERXUSER");
library = new Movex(broker);
library.setRPCUserId("ERXUSER");
library.setRPCPassword("PASSWORD");
library.setNaturalLogon(true);
BrokerService bService =
new BrokerService(broker, Movex.DEFAULT_SERVER);
conv = new Conversation(library);
library.setConversation(conv);
//... code managing rpc communication ...
BrokerMessage bRequest = new BrokerMessage();
BrokerMessage bReply;
broker.logon();
bRequest.setMessage("50005900");
bReply =bService.sendReceive(bRequest);
broker.logoff();
try {
library.closeConversationCommit();
}catch(BrokerException be) {
System.out.println("exception:" + be);
}
#webMethods#EntireX#Mainframe-Integration