Data Management Group
Company Professional Services Solutions Technology Expertise Training & Education Resources
Resources










Contact Us

BI Advantage Newsletter

 

 

ADDING WEB REFERENCE

The information in the article refers to
Cognos

Applies to
Cognos ReportNet SDK and Visual Studio.Net

Synopsis
Do you need to add a Web Reference using the WSDL but don’t have an Internet connection from your development box?

Solution
Before we begin, let’s give credit where credit is due; many thanks to an anonymous Cognos employee for pointing us in the right direction with this one.

The problem we had here is that we had to add a web reference to Visual Studio.Net to the Cognos WSDL but we didn’t have a connection to the Internet from our server or our development machine. Don’t ask why, let’s just call it the government’s absolute security solution.

Why is this a problem? Well, when the WSDL is called, it has a link to a web page on the Internet at http://schemas.xmlsoap.org/soap/encoding/. However, as we said, we have no connection to the outside world. So, adding the web reference fails!

Now what? Actually, thanks to our anonymous friend, it’s easy. Follow these instructions:
  • Download the XML definition at http://schemas.xmlsoap.org/soap/encoding/ on any machine that is connected to the Internet - go home early if you have to.
  • Save the XML as ENCODING.XML to a disk.
  • Copy ENCODING.XML to a web server that is accessible from the development computer.
  • Stop the Cognos ReportNet service.
  • Open REPORTNET.WSDL with any text editor. It can found in this location: C:\Program Files\cognos\crn\webapps\p2pd\WEB-INF\classes
  • Change the following line. It should be approximately line 13: <xs:import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
  • Change schemaLocation to http:// /encoding.xml
  • Save REPORTNET.WSDL
  • Restart the Cognos ReportNet service.
  • Add the Web Reference as usual.
You are in business. Happy coding from here.

Questions
Have a question for our trainers?
Click here to send your questions!

 

Professional Services

To find out how we can help you solve your information challenges, visit our professional services pages:

Blueprint Analysis
Business Intelligence Implementation
Performance Management
Data Management
Business Intelligence Integration
Training and Education

Career Post Email


COMPANY | PROFESSIONAL SERVICES | SOLUTIONS | TECHNOLOGY EXPERTISE | TRAINING & EDUCATION | RESOURCES