hi buddies,
I've built the web service/SOAP and worked. But I'm consuming separately.
How can I send message through Web Services/SOAP between Desktop APP and Web APP?
[DesktopApp] ----> Send the message --->[WebAPP] ---> Show the message
Desktop App
public class Main {
public static void main(String[] args) throws Exception {
String local = "
http://localhost:8080/Buble/services/Message?wsdl";
Call call = (Call) new Service().createCall();
call.setTargetEndpointAddress(local);
call.setOperationName("sayHello");
Object[] param = new Object[] { new String("Baby")};
String ret = (String) call.invoke(param);
System.out.println("Name: " + ret);
}
}
Web App - index.jsp
<body>
<%
MessageService service = new MessageServiceLocator();
Message msg = (Message) service.getMessage();
out.println("Nome: " + msg.sayHello("Razec"));
%>
</body>
thanks in advance