Carbon Mashup Server: 0x80040111 Error

lylec's picture

I wish to allow Internet users to consume my Javascript service hosted on WSO2 Mashup Server.

I wish to allow Internet users to consume my Javascript service hosted on WSO2 Mashup Server.

 

Related Topics:

http://wso2.org/forum/thread/5815

https://www.wso2.org/forum/thread/8635

 

My Setup:

My Javascript service is named Blackboard and it is hosted on WSO2 Mashup Server v2.0.2 in Linux (Ubuntu v9.10 Karmic Koala). This Linux box has IP 192.168.1.103 and is behind my router (http://chamarette.podzone.net) on which I have opened ports 9443/9763 among others..

 

Problem:

All works well when I point my browser to http://192.168.1.103:9763/services/Blackboard?tryit

The web page displays OK, I click on the service button and am presented with expected results.

However, I wish to expose my service to Internet requests.

 

When I point my browser to http://chamarette.podzone.net:9763/services/Blackboard?tryit

the web page displays ok, but when I click the service button, the following error is generated:

Fault: Server connection has failed.
[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://chamarette.podzone.net:9763/carbon/admin/js/WSRequest.js :: anonymous :: line 507" data: no]

 

I suspect this error is related to overcoming the browser same domain policy. Accordingly, I pointed my browser to:

http://chamarette.podzone.net:9763/services/Blackboard?tryit

 

and from that page, I set the end point (I tried all three, Soap11/Soap12/http) to:

http://chamarette.podzone.net:9763/services/Blackboard.SOAP12Endpoint/

instead of http://192.168.1.103:9763/services/Blackboard.SOAP12Endpoint/

and viola now I can use the ?tryit page from anywhere, even the Internet.


So my question then is; How can I modify the (auto-generated) .wsdl file to set the endpoints for my service to use my domain name instead of my local intranet IP?


Thanks in advance,

 

Lyle "Nizam of Mashup".


tyrell's picture

Did you try editing the

Did you try editing the carbon.xml file found in the /conf directory of your installation? If you go to line line 69 you'll see an entry commented out. Uncomment it and add your host name there as follows;

<HostName>chamarette.podzone.net</HostName>

Tyrell

lylec's picture

Success!

Hello Tyrell and thanks for your prompt response. I set the HostName as you described and that seems to have done the trick. Cheers, Lyle "Agile"
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)