This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to pass the SOAPMessage object as argument to the server interface class from cli

 
sakthi vadivelan
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Server side:
i have one imlimentation class and interface class in implimentation class i have to get the SOAP message object from client and process and give the result SOAP message to the client.In interface i declare that method"onMessage" it returns SOAPMessage object.

Client side:
i have one client class and it read the xml file and convert to the soap and i create the object for the server side interface class and using this object i pass the client side soap message object to the server iinterface.and process it

in this i got the soap message but i cant send the SOAPMessage object to this server interface......please any one give me the methd to send the soap messager object to the server interface class


please help me i have this problem for last 2 days
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sakthi,
This question is very much related to webservices,so i am moving your post to webservices forum.
 
soren eriksen
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about some code?

/Soren
 
sakthi vadivelan
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"""ServiceFactory serviceFactory = ServiceFactory.newInstance();
Service helloService = serviceFactory.createService(helloWsdlUrl,new QName(nameSpaceUri, serviceName));
pkgClient.JAXMServiceIF objSoap=(pkgClient.JAXMServiceIF);
helloService.getPort(new QName(nameSpaceUri, portName),pkgClient.JAXMServiceIF.class);
SOAPMessage soapResult=objSoap.onMessage(msg);""""

this my code to invoke the server interface JAXMServiceIF..i create one object for the interface class in client pkgClient is my client package


it gave me the error in the SOAPMessahge soapResult = objSoap.onmessage(msg)

the error is :: cannot be applied to SOAPMessage soapResult = objSoap.onMessage(msg)


please give me the solution
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic