Configure WSO2 ESB to access Internet through a PROXY
:)
What does it take to configure WSO2 ESB to access Internet throught a PROXY?
- Login or register to post comments
- Printer friendly version
- 256 reads
:)
What does it take to configure WSO2 ESB to access Internet throught a PROXY?
can you let me know the
can you let me know the proxy server you use and the version?
Also check :http://www.mail-archive.com/httpcomponents-dev@jakarta.apache.org/msg02153.html
asankha
Thanks I use a simple proxy
Thanks
I use a simple proxy to control the webs that visit all of the people.
I read It, I have the same
I read It, I have the same problem. Tell me if you find a solution please.
I need more information from
I need more information from you on what exactly is the proxy server software you use etc. Also, can you get a trace through TCPMon for a request passing through your proxy?
asankha
It's a normal proxy server,
It's a normal proxy server, I don't Know the software sorry.
Not exist a simple configuration as APACHE?
I really need more
I really need more information to pin point any issue and help you on this :-)
Can you check from your IT department on the proxy server your company uses? Also, can you let me know the URL of the service you try to access through the ESB? You may send this information privately to me if you do not want to share this publicly
asankha (asankha - AT - wso2 - DOT - com)
OK, I send you a mail.
OK, I send you a mail.
i have the ESB, the client
i have the ESB, the client and the server in the same machine. This machine no have a direct acces to Internet. All conection pass trought a router. Firefox and i.e. are configurated to pass the router. I am looking for a way to configure ESB to pass through the router. It's all :S
But it through a Error when
But it through a Error when I try to put a external webservice to prove the system: (http://webservices.iter.dk/calculator.asmx?WSDL)
2008-03-11 11:44:49,967 [192.168.7.22-boo] [http-9443-Processor4] ERROR ProxyService Error reading from wsdl URI
java.net.SocketTimeoutException: connect timed out
For this, you could configure the ESB to use your proxy services. See http://java.sun.com/j2se/1.5.0/docs/guide/net/proxies.html for more details
Basically you will start the ESB (by editing the start scripts) to use the system properties "-Dhttp.proxyHost=webcache.mydomain.com -Dhttp.proxyPort=8080"
asankha
Another problem
I have had problems after amend whatYou said. Look, this happens when I try to access a webservice outside:
12:11:54,386 [192.168.7.22-boo] [HttpCoreNIOSender] WARN Fault handler - setting ERROR_MESSAGE : <soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Server</faultcode><faultstring>The connection timed out</faultstring><detail /></soapenv:Fault>
12:11:54,386 [192.168.7.22-boo] [HttpCoreNIOSender] WARN Fault handler - setting ERROR_DETAIL : java.lang.Exception: <soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapenv:Server</faultcode><faultstring>The connection timed out</faultstring><detail /></soapenv:Fault> at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:164) at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:125) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender$3.handleError(HttpCoreNIOSender.java:472) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender$3.timeout(HttpCoreNIOSender.java:439) at org.apache.http.impl.nio.reactor.SessionRequestImpl.timeout(SessionRequestImpl.java:155) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processTimeouts(DefaultConnectingIOReactor.java:161) at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:104) at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:160) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.executeClientEngine(HttpCoreNIOSender.java:139) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender.access$000(HttpCoreNIOSender.java:68) at org.apache.synapse.transport.nhttp.HttpCoreNIOSender$1.run(HttpCoreNIOSender.java:101) at java.lang.Thread.run(Unknown Source)
OK.. now this happens as the
OK.. now this happens as the NIO based http/s transport is not aware of the non-transparent proxy server. Let me look at possible solutions and get back to you.. when you originally posted this question, I assumed you wanted this - but then the problem you had was getting the WSDL of the external service - which does not take place over the NIO http/s transport
However, if you configure your proxy as a transparent proxy - this will work fine as it is in your environment.. is this a possibility?
asankha
I can't set my proxy. I
I can't set my proxy. I need to get a form to configure the ESB.
Someone can help me?
Someone can help me?
I do not think I would be
I do not think I would be able to make the fix required for this available to you this week, as I am travelling.
Meanwhile, if this is urgent please get in touch with WSO2 support (http://wso2.com/inquiry/)
asankha
I wait ;) Bon voyage
I wait ;)
Bon voyage
Find you a solution for the
Find you a solution for the problem?
The URLRewriteMediator can help me?
Yes, it should be helpful
Yes, it should be helpful :).. you will also find other cool stuff on the http://esbsite.org
asankha