aspose file tools*
The moose likes Web Services and the fly likes how to pass the SOAPMessage object as argument to the server interface class from cli Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to pass the SOAPMessage object as argument to the server interface class from cli" Watch "how to pass the SOAPMessage object as argument to the server interface class from cli" New topic
Author

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

sakthi vadivelan
Greenhorn

Joined: Nov 15, 2004
Posts: 14
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


Sakthi.C
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Sakthi,
This question is very much related to webservices,so i am moving your post to webservices forum.


Spritle Software Blogs
soren eriksen
Greenhorn

Joined: Nov 22, 2004
Posts: 4
How about some code?

/Soren
sakthi vadivelan
Greenhorn

Joined: Nov 15, 2004
Posts: 14
"""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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to pass the SOAPMessage object as argument to the server interface class from cli
 
Similar Threads
how to send a soap message by argument to the server usingservice without call
How to capture SoapRequest.xml and SoapResponse.xml
Sending requests in xml
SOAP customizing object with JNI
SAAJ - Empty SOAP Response / Null Pointer Exception