COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: Cannondale23 on 02 Jul 2012 10:38:53 AM

Title: wsdl file and cognos settings
Post by: Cannondale23 on 02 Jul 2012 10:38:53 AM
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>
Title: Re: wsdl file and cognos settings
Post by: sir_jeroen on 03 Jul 2012 05:57:42 PM
have you tried changing the gateway Uri in Cognos Configuration?
Title: Re: wsdl file and cognos settings
Post by: Rahul Ganguli on 16 Jul 2012 02:32:07 AM
Hi,

Handling this in PHP itself (replacing localhost with servername) should solve the issue.

Regards,
Rahul