cancel
Showing results for 
Search instead for 
Did you mean: 

Where can i find WDSystemLandscapeFactory class

deshdeepak_shukla2
Participant
0 Kudos

Hello All,

SAP Help for Netweaver Developer Studio states that these services allows navigation in the system landscape and gives an example :

try {

// Get the required CIMClient object

com.sap.lcr.api.cimclient.CIMClient

cimClient = WDSystemLandscapeFactory.getClient();

...

}

Which package WDSystemLandscapeFactory belongs to? Does anyone have any examples how to navigate SAP System Landscape Directory from a webdynpro app?

Any Help in this regard will be appreicated.

Thanks in advance.

Regards

~Deshdeepak

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Deshdeepak,

You can get classes for this purpose on the server at the following location:

usr\sap\<SYS ID>\JC00\SDM\root\origin\sap.com\com.sap.lcr.api.cimclient

There you can find one sda file which contains all required classes.

Check this and let me know.

Regards,

Bhavik

deshdeepak_shukla2
Participant
0 Kudos

Hi Bhavik,

Thanks for a prompt reply but WDSystemLandscapeFactory class is not available in the specified path.

Can anyone please provide some help.

I haven't been able to find the WDSystemLandscapeFactory class yet.

Regards

~Deshdeepak

Former Member
0 Kudos

Hi Shukla

You can use the following import statement for using factory class

import com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape;

But by default in NWDS if you create a project and do organize imports this should be added.

Kishore

deshdeepak_shukla2
Participant
0 Kudos

Hi Kishore

Thanks for a reply,but my query was for WDSystemLandscapeFactory Class.

I can find WDSystemLandscape and WDsystemLandscapeException classes but even after searching rigoursly i was unable to find "WDSystemLandscapeFactory" class. The factory class is required for creating an instance of CIMClient class.

If anyone has some solution for the above mentioned problem,their inputs are most welcome.

Thanks in advance.

Regards

~Deshdeepak

Former Member
0 Kudos

Hi Deshdeepak

I have the same problem , not able to locate the class

WDSystemLandscapeFactory. But the objective is to get

CIMClient , here is alternative

URL url = new URL("<sld host>:<sld port>");

ClientFactory factory = ClientFactory.newInstance();

CIMOMClient client = factory.createClient(url,

"<sld user>", "<sld password>");

CIMClient cimClient = new CIMClient(client);

Then you could do the rest as in the example.

Regards

Bhanu Mohanty

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Did someone manage to find the WDSystemLandscapeFactory class

Thanks

Former Member
0 Kudos

This class does not exist on my system - NW04, SP14. Using the class/jar locator, I seardched every jar file on my system.

It's not there. Perhaps the described code was for a much older version of Web Dynpro?