Hello,
 
Assumption1 - xmlRequest contains an Envelope as String (you can get from a file)
Assumption2 - END_POINT contains a URL for Webservice deployed in Axis Message style.
 
It works for me with Webservice deployed with signature:
public Document getBody(Document body)
 
so I get from Axis a DOM tree representing just the SOAP body.
 
I think it should work if you want Axis to call you with SOAPEnvelope, with signature you mentioned.
 
Attached 5 source lines for SOAP (non-RPC) client, with extra line if you want fast return to String. 
Obviously, on both sides you have plenty of methods to manipulate SOAPenvelope. 
 
Shmuel Koller
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
import org.apache.axis.message.SOAPEnvelope;
import org.apache.axis.client.Call;
SOAPEnvelope envelope = new SOAPEnvelope(new ByteArrayInputStream(xmlRequest.getBytes()));
Call call = new Call(END_POINT);
envelope = call.invoke(envelope);
String return_val = envelope.toString();
-----Original Message-----
From: Satheesh Mani [mailto:[EMAIL PROTECTED]
Sent: Mon, September 15, 2003 8:23 PM
To: [EMAIL PROTECTED]
Subject: Message Style SOAP

Hi,

 

Can somebody please provide client sample for the below method signature

 

public void method(SOAPEnvelope req, SOAPEnvelope resp)

 

 

Thanks

Satheesh Mani

Reply via email to