You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Saminda Wishwajith Abeyruwan (JIRA)" <ji...@apache.org> on 2007/06/15 11:27:25 UTC
[jira] Closed: (AXIS2-2214) client not run behind a proxy
[ https://issues.apache.org/jira/browse/AXIS2-2214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Saminda Wishwajith Abeyruwan closed AXIS2-2214.
-----------------------------------------------
Resolution: Fixed
Fixed in Axis2 1.2 release. Yet this been test for Axis2 1.3 and it's working.
> client not run behind a proxy
> -----------------------------
>
> Key: AXIS2-2214
> URL: https://issues.apache.org/jira/browse/AXIS2-2214
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: transports
> Affects Versions: nightly
> Environment: Axis2 nighty 15th Feb 2007, Eclipse, Windows 2000
> Reporter: Enrique Moya
> Assignee: Saminda Wishwajith Abeyruwan
> Priority: Blocker
>
> I've got a client of Google Web Services. I run it behind a proxy, so I add next lines (//EMS comment) to stub generated with code generator plugin for Eclipse:
> /**
> * Auto generated method signature
> * @see googlesearch.GoogleSearchService#doSpellingSuggestion
> * @param param0
>
> */
> public googlesearch.DoSpellingSuggestionResponseDocument doSpellingSuggestion(
> googlesearch.DoSpellingSuggestionDocument param0)
> throws java.rmi.RemoteException
>
> {
> try{
> org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
> _operationClient.getOptions().setAction("urn:GoogleSearchAction");
> _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
> //++ EMS INI
> // Obtenir les opcions de la connexio
> org.apache.axis2.client.Options a = _operationClient.getOptions();
> // Transport sense chunked, per que el nostre proxy no ho admet
> a.setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE);
> // La connexió ha de ser keep-alive. Per defecte ja la posa, pero per si de cas
> a.setProperty(org.apache.axis2.transport.http.HTTPConstants.HEADER_CONNECTION, org.apache.axis2.transport.http.HTTPConstants.HEADER_CONNECTION_KEEPALIVE);
> // Establir proxy i usuari amb permisos
> org.apache.axis2.transport.http.HttpTransportProperties.ProxyProperties b = new org.apache.axis2.transport.http.HttpTransportProperties.ProxyProperties();
> b.setProxyName("PALAMOS_NT_DOC");
> b.setProxyPort(8080);
> b.setDomain("AURORA");
> b.setUserName("31460");
> b.setPassWord("a password");
> a.setProperty(org.apache.axis2.transport.http.HTTPConstants.PROXY,b);
> // Establir les noves opcions
> _operationClient.setOptions(a);
> //++EMS FIN
> // create SOAP envelope with that payload
> org.apache.axiom.soap.SOAPEnvelope env = null;
> .....
> That client runs ok with Axis2 1.1, but now I updated to Axis2 Nighty of 15th Feb 2007 and client doesn't work. I sniff http port and there is a diference in the POST header.
> Axis2 1.1 send this post
> ------------------------------------------------------------------------
> POST http://api.google.com/search/beta2 HTTP/1.1
> SOAPAction: "urn:GoogleSearchAction"
> User-Agent: Axis2
> Host: api.google.com
> Proxy-Connection: Keep-Alive
> Content-Length: 321
> Content-Type: text/xml; charset=UTF-8
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header /><soapenv:Body><doSpellingSuggestion xmlns="urn:GoogleSearch"><key>0AEPw4pQFHIwcux3YrrUVmYCkrHV7OZr</key><phrase>return tipe</phrase></doSpellingSuggestion></soapenv:Body></soapenv:Envelope>
> Axis2 Nighty send this post
> ------------------------------------------------------------------------
> POST http://PALAMOS_NT_DOC/search/beta2 HTTP/1.1
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: "urn:GoogleSearchAction"
> User-Agent: Axis2
> Host: PALAMOS_NT_DOC
> Proxy-Connection: Keep-Alive
> Content-Length: 321
> <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header /><soapenv:Body><doSpellingSuggestion xmlns="urn:GoogleSearch"><phrase>return tipe</phrase><key>0AEPw4pQFHIwcux3YrrUVmYCkrHV7OZr</key></doSpellingSuggestion></soapenv:Body></soapenv:Envelope>
>
> It seems like proxy settings owerride hostname api.google.com.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org