Exposing SOAP Web SERVICE on port different from 80

13 May '15, 09:02 AM
11,660 Views
No Forum Badges

I need to expose a SOAP web service on a port different from the default HTTP port 80. 

I created a WS and in WSDL file i see the following line:

<wsdl:service name="CercaProvincia">
  <wsdl:port name="CercaProvincia_Port" binding="tns:CercaProvincia">
    <soap:address location="http://127.0.0.1/ExposeWS_SOAP/WebService/CercaProvincia.do"/>
  </wsdl:port>
</wsdl:service>

I need to have a different port for location. I deploy the application using Tomcat and i need to expose the WS on 8080 port. 

Thanks

 Best Regards

 

 
x 0
Follow
Answer Answer at this question and get points!
No Forum Badges

Hi Luca,

you can replace on the wsdl of the web service the soap address with a variable, i.e.

<soap:address location="http://${pippo-ws}/

the variable is defined as

pippo-ws=localhost:9090 in an external file

for how to load parameters from an external file you must put this lines on your RTXConfig.properties

#export del file di properties
externalPropertyDirectoryJVMArg=namePathConfig
externalPropertyFileName=name.properties

then you must add this option on your catalina.bat

set CATALINA_OPTS= -DnomePathConfig=C:\anyPath§YouWant

 

i hope this will be useful

bye

Renato

 
x 1
Forum Expert - Level 5

Hi Luca,
you can change the port where you want to expose the web service, by setting in the "HTTP Port" property in the Properties View of the Project tab, the new port that by default is set to port 8080. Also the Tomcat must be able to listen the same port used in the project.

I remember you that if you change the port of the project, all project is generated on this port. 

Best regards,
Ombretta Malinverno

 
x 0
No Forum Badges

At project level the HTTP port is 8080 (HTTPS 8443) but for my SOAP Web Service WebRatio created automatically the wsdl in the following manner:

  <wsdl:service name="CercaProvincia">
    <wsdl:port name="CercaProvincia_Port" binding="tns:CercaProvincia">
      <soap:address location="http://127.0.0.1/ExposeWS_SOAP/WebService/CercaProvincia.do"/>
    </wsdl:port>
  </wsdl:service>

http://127.0.0.1 without a port... so i deploy the WS on Tomcat 8080 port but the service is active on 80 port. 

How can i change the port (or set the port) used by WebRatio during automatic wsdl creation? 

I need to expose the WS on xxxx (7867 for example) port. 

 
x 0
Answer at this question and get points!

Related questions

Access wsdl in https Can not get generate and run option for DataService Project Cannot invoke method selectSingleNode() on null object Can't generate and run database or start tomcat server! CelsiusToFahrenheit Example com.webratio.rtx.RTXException: An error occurred dispatching the SOAP message Could not create service Custom Unit and AJAX / SOAP Description: Unknown tag 'wr:LinkResource' Exception REST Post request Generation options problem Getting started with Web Services How can I invoke a Rest Web Service having dynamic parameters? How to change smtp port invoking a webservice using REST java.lang.NullPointerException No cloud accounts available No database on my cloud account Parameters order in a webservice request Problema generando la logica de un proyecto Problemas al invocar webservice Properties of the XSD Resource (File) Publish a web service publish web service for storing information in PostgreSQL DB following XSD Resource Sync DataService Project with Mobile Project usuarios y grupos WebRatio and MySQL WebRatio Mobile Platform Community edition - Restful request WebService DateTime value is not parsed to Date. Web service provider newline problem web service request using XSD Web service - Synchronize XSD When stars web ratio between dofollow and nofollow backlink has affected? When using web services, what kind authentication is used? which of these three models is closer to webratio/ifml way of creating web applications XML Out Unit and Soap Request Response Unit XML Schema Definition Support XML Schema Definition Support