Dear Sietse,

With respect to the EPR of the webservice: offcouse I must set the destination address, this is not the problem.

The problem is sending the response back. I can successfully let the webapp send a request to the webservice. However, I want to let the webservice respond back to a separate Java program (not the webapp) on my client machine. I am not sure how I can make sure that the response of the webservice is NOT send back to the webapp, but to my Java program, running on the same machine as where the webapp was used.

Best regards,
Jethro


[EMAIL PROTECTED] wrote:
Hi Jethro,

I actually don't see the problem. You always need to specify the
destination (using a EPR with axis2), how can the application determine
the service without having this information? You can specify this in
different ways. Using hard coded method, constant declaration, some
parameter which is filled with some input during initialization, or a
properties file.

Properties files are a nice way of dealing with this problem. It is just
a matter of changing the my-app.properties text file to change the
service address.

Regards,
Sietse

-----Original Message-----
From: Jethro Borsje [mailto:[EMAIL PROTECTED] Sent: 14 November 2007 09:12
To: Axis-User
Subject: Response to different Java program on some machine

Hi everybody,

I am new to SOAP / Axis, yesterday I tried some very basic things with
Axis and I must say I am  impressed by the ease of use and nice
userguide.

However, when it comes to my real world problem I am not sure what is
the best approach solving it. Let me describe the situation I am looking
for:

There is a webapp which can be used by multiple client machines. These
machines also all have a separate Java program running. Once a user
clicks on a button in the webapp the webapp sends a SOAP message to the
webservice server. The server should then send a response to the Java
program running on the same client pc. The webapp does not need to
receive a response.

I saw the EchoNoBlockingDualClient.java example, which contains
something like this in the code:
[code]
EndpointReference targetEPR = new EndpointReference(
"http://127.0.0.1:8080/axis2/services/MyService";);
[/code]
However, as for as I understand that means I have to hardcode the IP
adress of each client into the webapp which sends the SOAP message.

I think this is possible using Axis / SOAP, however I am not sure how to
solve this problem. Perhaps some of you guys can give me some pointers
on how to tackle the problem?

--
Best regards,
Jethro Borsje

http://www.jborsje.nl


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to