cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
740
Views
0
Helpful
1
Replies

DCNM for LAN (5.x) SOAP WebService API

saamundsen
Level 1
Level 1

Hello,

I’ve been trying to find some documentation on the Web Services API other than the Webservices API Guide for DCNM which gives you pretty much nothing other than a list of functions and what parameters they take...

I really need some more technical description on how to structure the data to pass to the webservices (methods with input parameters).

Lets take the InterfacesAppService for instance.

The function "getAllInterfacesInNetworkElement" takes two parameters:

"opContext - operational context" and

"neInstanceNameId - InstanceNameId corresponding to the network element"

Based on the WSDL the SOAP call should look pretty much like this:

<getAllInterfacesInNetworkElement>

     <opContext></opContext>

     <neId></neId>

</getAllInterfacesInNetworkElement>

There are no definitions on what kind of data this parameters should be (int, string etc.)

What is operational context ?

What is InstanceNameId ?

A lot of theese functions refeers to an "InstanceNameId" which is nowhere to be found!

In the API Guide (link below), they give an example from the InventoryAppService and calls "getAllChassisInNetwork" which takes one optional parameter. Here you can find "InstanceName, instanceClassId and even an neId in the InstanceName".

This one also works for me, and I've been trying almost every single value from my response, but with no luck.

http://www.cisco.com/en/US/docs/switches/datacenter/sw/5_x/dcnm/web_services/api/guide/overview.html

Are there anyone of you who have some experience with this??

Any extended/more detailed documentation, referals or anything ??

Any help would be appreciated!

Thanks!

1 Reply 1

ngoldwat
Level 4
Level 4

Hi,

Have you seen DCNM for SAN Web Services API found in SMI-S and Web Services Programming Guide, Cisco DCNM for SAN, Release 5.x?

Excerpt:

To interact with DCNM-SAN Web Services, the you must obtain a token  through LogonWS and attach this token to the header message of every  SOAP requests. DCNM-SAN Web Services verifies user credentials using a  unique token string that is administered by LogonWS. At any given time,  HTTPS should be deployed to secure the communication channel. The  following example displays the format of the header message:

http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >

   http://www.w3schools.com/transaction/">

     token string is put here

  

  http://ep.jaxws.dcbu.cisco.com/"/>

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: