Changing Web Service IP at Production Site

As Uniface says in “Importing WSDL Definitions for Web Services” Help Section . At run time the WSDL file location is checked first time when a session starts. This can work for our advantage , so we can switch The web service IP

One of the issue i faced was controling the invirument  of  Web Service Test  Site and Production Site.
so what i did was using  what Uniface says in “Importing WSDL Definitions for Web Services” Help Section .
At run time the WSDL file location is checked first time when a session starts.
This can work for our advantage , so we can switch The web service IP
By  using   /sti /mwr=ws c:/mywebservice.wsdl  , i can control where  uniface call out  goes to the Web Service IP
Just by switching the mywebservice.wsdl with the same wsdl structure but with differnt  address location .
Here is an examle of this section in the WSDL file
<wsdl:service name=”maale2agrexco”>
<wsdl:port name=”maale2agrexcoSoap” binding=”tns:maale2agrexcoSoap”>
<soap:address location=”http://100.100.100.140/callagrexco/maale2agrexco.asmx”/>
</wsdl:port>
<wsdl:port name=”maale2agrexcoSoap12″ binding=”tns:maale2agrexcoSoap12″>
<soap12:address location=”http://100.100.100.140/callagrexco/maale2agrexco.asmx”/>
</wsdl:port>
</wsdl:service>

Avner

 

 

 

Leave a Reply