Technical Support Forum Index
Technical Support Forum
Access ChemAxon scientists and developers here. For registration and login issues contact website support.
Remote access to JChemWebService
To watch this topic for replies  Register (enables digests) or give email address:
Reply to topic
Display posts from previous:   
    View previous topic :: View next topic    
Author Message
little50

Joined: 16 Jan 2012
Posts: 2

View user's profile

Back to top
Link to postPosted: Mon Jan 16, 2012 9:10 amPost subject: Remote access to JChemWebService Reply with quote

I have a JChemWebService(port 8180) installed and it's working perfectly.

Now i am trying to use the examples  with another tomcat server in the same machine(port 8080) but it just dont work.

After tracing the program(js_examples/relational/*.*), I found that it hanged with "xhr.send(content);" around line 221 in SOAP.js. It occured when it request a remote target url ike "http://localhost:8180/axis2/services/ConnectionWS?wsdl"

Do you have any suggestion or solution?

Thx a lot.

jlee

Joined: 11 Aug 2008
Posts: 720

View user's profile

Back to top
Link to postPosted: Tue Jan 17, 2012 12:18 amPost subject: Reply with quote

I want to confirm the environment setup when the problem occurs.  

The JChem Web Services Tomcat server is running on the 8180 port.  There is a second tomcat server also running at the same time, but on port 8080.  You have copied over the files from <jchem_ws_server_tomcat_dir>/webapps/ROOT/js_examples/relational/ to

<the_other_server_tomcat_dir>/webapps/ROOT/js_examples/relational/  ?

 

Jon

little50

Joined: 16 Jan 2012
Posts: 2

View user's profile

Back to top
Link to postPosted: Tue Jan 17, 2012 2:49 amPost subject: Reply with quote

jlee wrote:

I want to confirm the environment setup when the problem occurs.  

The JChem Web Services Tomcat server is running on the 8180 port.  There is a second tomcat server also running at the same time, but on port 8080.  You have copied over the files from <jchem_ws_server_tomcat_dir>/webapps/ROOT/js_examples/relational/ to

<the_other_server_tomcat_dir>/webapps/ROOT/js_examples/relational/  ?

 

Jon

Yes, and I have copid all the  ajax, marvin,  js_examples  and WEB-INF folders to  a new tomcat server(port 8080).

 

 

jlee

Joined: 11 Aug 2008
Posts: 720

View user's profile

Back to top
Link to postPosted: Wed Jan 18, 2012 12:15 pmPost subject: Reply with quote

Hi,

Can you send any error logs or useful output? 

Perhaps setting up the SOAP monitor might be useful

http://www.chemaxon.com/webservices/FAQ.html#soapmonitor

 

Jon

jlee

Joined: 11 Aug 2008
Posts: 720

View user's profile

Back to top
Link to postPosted: Wed Jan 18, 2012 5:51 pmPost subject: Reply with quote

From the description you have confirmed, most likely the problem is that you are trying to run a javascript from one port to a web service at another.  This will fail the "Same origin policy" followed by JavaScript and AJAX (using the XMLHttpRequest (aka XHR) object). 

There may be cross-domain solutions (hacks?) that circumvent the policy. 

Sorry, but we don't support the extension of the examples, but leave it up to you to make your own solutions or clients of the web services. 

 

Jon Lee

Reply to topic
Page 1 of 1


To watch this topic for replies   Register (enables digests) or give email address  
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum