We are trying to use the cognos SDK to access reports from an external web application using PHP. Using the built-in php functionality, we are able to successfully get a WSDL file from cognos, however the address contained inside the file points to 'localhost'. Therefore any subsequent requests made to cognos from within PHP fail because all requests are then made to localhost rather than the cognos server.
Is there any setting in cognos to set the address that gets put into the WSDL file? If so, are there any problems you can foresee if we change this setting?
Thanks in advance for your help.
- <wsdl:service name="AuthService">
- <wsdl:port name="AuthServicePort" binding="tns:AuthServiceBinding">
<soap:address location="http://localhost:80/ibmcognos/cgi-bin/cognos.cgi" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
have you tried changing the gateway Uri in Cognos Configuration?
Hi,
Handling this in PHP itself (replacing localhost with servername) should solve the issue.
Regards,
Rahul