JavaScript SOAP Messages

This is a problem that others wrote about, but I could not understand the proposed solutions.

I have a very simple Java WebService server running on my local computer. I design it for the game that I make.

I create it using javax.jws.WebService and publish it using javax.xml.ws.Endpoint according to the tutorial here:

http://www.ibm.com/developerworks/webservices/tutorials/ws-eclipse-javase1/

I publish it on my local computer according to:

Endpoint.publish("http://MyComputerName:8080/subserver", new SubServer());

I have forwarded port 8080 to my router and I have a static IP address. Outwardly, I can view WSDL without problems.

My problem: I want to call my WebService methods from the JavaScript Canvas game that I am writing. Whenever I make a request, I get no response and the following error on the server:

Mar 03, 2012 9:39:24 PM com.sun.xml.internal.ws.transport.http.server.WSHttpHandler handleExchange
WARNING: Cannot handle HTTP method: OPTIONS

, Chrome POST, , OPTION, , , - . , - , ( ).

MyComputerName... - MyExternalIPAddress...? - ?

, JSONP, ( , WebService ), , - -, - . , .

, , / . . 6 , .

+5

All Articles