• 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

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

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sakthi,
This question is very much related to webservices,so i am moving your post to webservices forum.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about some code?

/Soren
 
sakthi vadivelan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic