If your client not need the document then write the method see below. Then
you have a one-way message.
 
public void echoDocument(Document doc) throws RemoteException {
        System.out.println("EchoDocument");
        return doc;
}

-----Urspr�ngliche Nachricht-----
Von: Alberto De Stasi [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 6. Juni 2005 18:34
An: [email protected]
Betreff: One Way Method for Web Service Axis

Hi all, I have this problem;

I publishing a web server and a client that they use a call with OneWay 
operation (without return response to client).
So, my client is:

�
call = (Call) service.createCall();
call.setTargetEndpointAddress(new URL(endPointURLString));
call.invokeOneWay(new SOAPBodyElement[] {new SOAPBodyElement(body)});

(I use a call.invokeOneWay(�) method to call my service)

Then my web service is:

public Document echoDocument(Document doc) throws RemoteException {
        System.out.println("EchoDocument");
        return doc;
}

And I don�t sure this my service is right! How to make this service?
The wsdd file of axis is:
     provider="java:MSG" style="document" use="literal"

Then I use a TCP Monitor and I see both request and response, and I think 
that my problem is service (echoDocument).

The case without OneWay is work and I use a call.invoke (for client java) 
and a service is echoDocument

I want to use a OneWay and I see into TCP Monitor only request (client to 
service) without response (service to client)!

Thanks

_________________________________________________________________
250MB per la tua casella di posta http://www.msn.it/hotmail/minisite_10

Reply via email to