Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] [WS] Use of port 80 in SOAP endpoint

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] [WS] Use of port 80 in SOAP endpoint


Chronological Thread 
  • From: Yoann Delattre <>
  • To: "Hyzer, Chris" <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] [WS] Use of port 80 in SOAP endpoint
  • Date: Thu, 30 Nov 2017 15:44:12 +0100
  • Dkim-filter: OpenDKIM Filter v2.11.0 webmail.ac-lille.fr 963B19107F
  • Ironport-phdr: 9a23:XTKmDB9Ir9bqoP9uRHKM819IXTAuvvDOBiVQ1KB31+4cTK2v8tzYMVDF4r011RmSDNWds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2e2//57ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRgL2hicJNzA382/ZhcJ/g61ZvB2svAZwz5LObYyPKPZzcKHQcNUHTmRBRMZRUClBD5u+YIsIFeUBO+BYpJTzqVQQqRuxHxWsBP/1yjBWm3T72q070+M7HgHA2gwsBc8Bv2rQrNrvKKcSTfq1w7fTwDrZc/xawDP96InMchAlv/6AR7xwcdDIxEQpCgjLgFKQqYn/MDOU0OQAq3Cb7+p4Ve61jW4otR1xriCgx8YjhYjIiZgZyl7e9Slh3ok1I9K4SE9lbtK9DZRQtjuaOJVqTcM+WW1npCE6yrgAtJWmfyYK0IwqywPbZvGIaYSE/xbuWeKLLTp6gH9pYq+ziwux/EWm1+byTNO70ExQoSpAitTMtm4C1xjU6sWfUPR94Eas1SyV2A/P8+1EJUE0la7fK5E/2LIwmIATvVzCHi/whkr2kLebelgg9+Wn8ejrf7Hrq5uGO4J2jgzyKLkiltG8DOggNwgBRWmb+eCy1L35+k35Ra1Hj/0xkqbDtpDaI94XqbOnDA9RyIkj9wq/Dy2439kDh3YIMEtJeBaGj4jtP1HBPur0Dfmlg1i0ijdk2+jGPqH9ApXKNnXDn63hfbFg605E1gUz18lT549PCr4fOvLzQVT8tNjZDh8iLwy02PjrBM981oMYRWKAHLWZMKXMvl+U+O4jOfeDa5IIuGW1F/9wrd7/n3Ij3Rc2fbOoxtFfPHWzHuV0Ll+xYGHnxMoZHGEM+AcyUbq5pkeFVGtiYH+0WeoQ6zUyFJ68AM+XV4ekhrrH0Cq/F4FKfG1uA1vJFXbsc4jCVe1aO3HaGdNojjFRDevpcIQmzxz77AI=

Yes, both solution will work but maybe a little cumbersome to set up

Or maybe there could be a build param that changes the axis2.xml ports to whatever people need…

why not :)
I just want that part documented somewhere : it's a tricky thing when you use PHP SOAP...

Thanks,
Yoann

Le 30/11/2017 à 15:00, Hyzer, Chris a écrit :

You could run apache on 443 and reverse proxy to tomcat J

 

Can you also instead do something like this in iptables?

 

iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8080

 

Or maybe there could be a build param that changes the axis2.xml ports to whatever people need…

 

Thanks

Chris

 

From: Yoann Delattre []
Sent: Thursday, November 30, 2017 7:01 AM
To: Hyzer, Chris
Cc:
Subject: Re: [grouper-users] [WS] Use of port 80 in SOAP endpoint

 

Are you sure you don’t want to turn on SSL on 443 though, wont that fix it?  J

Hmmm it's more complicated.
I tried to run Tomcat on port 80 (but with the port 443, it will be the same) : Tomcat can't use port < 1024 unless tomcat is launch as root (or with authbind who allow access to network services as a privileged user).

I see two options :
- use 80/443 port in axis2.xml but i think a little documentation may be needed to use the SOAP web service with PHP (use __setlocation function or modify axis2.xml or configure tomcat to run on port 80/443 (even if it's complicated)).
- use the tomcat default ports (http : 8080 / https : 8443) in axis2.xml

I don't know what is the best option...

Thanks for your help !

Yoann

Le 29/11/2017 à 16:22, Hyzer, Chris a écrit :

If you want to send a pull request in git, or a patch in email, or just more explicitly tell me what to change, I will discuss it with the team (and anyone let me know if it seems like a bad idea).

 

Are you sure you don’t want to turn on SSL on 443 though, wont that fix it?  J

 

Thanks

Chris

 

From: Yoann Delattre []
Sent: Wednesday, November 29, 2017 9:51 AM
To: Hyzer, Chris
Cc:
Subject: Re: [grouper-users] [WS] Use of port 80 in SOAP endpoint

 

It's not the default behaviour for PHP SOAP extension.
Our developpers will need to customize the common library to add an option (http://php.net/manual/en/soapclient.setlocation.php) for overloading the endpoint URL only for Grouper :-/

I don't known if it's a good idea but apparently, if you set only one protocol (HTTP or HTTPS), AxisServlet auto-detect the port number (see here).
I just tested and it works.

Thanks,
Yoann

Le 29/11/2017 à 15:18, Hyzer, Chris a écrit :

I can call the soap service from any port on my machine… cant you specify that in php without using whats in the wsdl?

 

It was an arbitrary decision since 80 is the default http port and I could call it on any port…

 

Thanks

Chris

 

From: [] On Behalf Of Yoann Delattre
Sent: Wednesday, November 29, 2017 8:46 AM
To:
Subject: [grouper-users] [WS] Use of port 80 in SOAP endpoint

 

Hi,

The port 80 is used in the SOAP Endpoint from Grouper's WSDL:

<wsdl:port name="GrouperService_v2_0HttpSoap11Endpoint" binding="tns:GrouperService_v2_0Soap11Binding">
    <soap:address location="http:/xxxx.fr/grouper-ws/services/GrouperService_v2_0.GrouperService_v2_0HttpSoap11Endpoint/"/>
</wsdl:port>

But with this port, in PHP, i get this error :

Uncaught SoapFault exception: [HTTP] Not Found

If i want to get it works, i need to modify axis2.xml, specifically those lines :

<!-- CH 20120812: Do not use the HTTP server receiver or it will listen on that port -->
<transportReceiver name="http" class="org.apache.axis2.transport.http.AxisServletListener">
    <parameter name="port">80</parameter>
</transportReceiver>

and switch the port from 80 to 8080.

But i wonder why it's not 8080 by default as tomcat default listening port is 8080 ?

Thanks for your help,

Yoann

 

 

 





Archive powered by MHonArc 2.6.19.

Top of Page