Absent Member.
Absent Member.

Consuming ConfigrationManagement.wdsl and retrieving lists of devices

I need to create a C# Application to retrieve a list of devices from HPSM

I can add ConfigurationManagement.wdsl to my C# Project without an issue, now the issue is how do i connect to the server and perform queries.

everytime i use this 

ConfigrationManagement.configurationManagementClient NewClient = new ConfigrationManagement.configurationManagementClient();

i get an error.

An unhandled exception of type 'System.InvalidOperationException' occurred in System.ServiceModel.dll

Additional information: Could not find default endpoint element that references contract 'ConfigrationManagement.configurationManagement' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

Im pretty sure i need to create this class before doing anything else as this class has a method that appears to be what i require


1 Reply
Absent Member.
Absent Member.

Re: Consuming ConfigrationManagement.wdsl and retrieving lists of devices

at the end of the ConfigurationManagement.wdsl there is an xml section that says 

- <service name="ConfigurationManagement">
- <port binding="ns:ConfigurationManagement" name="ConfigurationManagement">
im loading the WDSL info my project from http://dev-kitntgsm03:13080/sc62server/PWS/ConfigurationManagement.wsdl
i am unable to navigate to http://dev-kitntgsm03.uat.internal:13080/sc62server/ws however i can navigate to 
http://dev-kitntgsm03:13080/sc62server/ws but it says "invalid webservice url.
i have a feeling that something is wrong in the WDSL here. can anyone confirm?
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.