kennyhosey Absent Member.
Absent Member.
1572 views

HP PPM Web Services for DotNet (ResourceServices) (ResourcePool creation)

Jump to solution

I’m using VB.net to connect to the PPM Resource Web Services WSDL.  My goal is to create new Resource Pools through web services programmatically on the ResourceServices web service.  By following the Java examples, I would assume the same methods would be available in the DotNet environment when connecting, but this doesn’t appear to be the case.  How can I connect to web services to create a Resource Pool on VB.net or any DotNet environment?  Does anyone have an example of this in any DotNet environment?

 

JAVA Example:

http://hp-ppmc-special-command-pool.googlecode.com/svn/trunk/HP-PPMC/PPMC-webservice-toolkit/java/client/src/examples/rm/ResourceServiceClient.java

0 Likes
1 Solution

Accepted Solutions
CodeJ Absent Member.
Absent Member.

Re: HP PPM Web Services for DotNet (ResourceServices) (ResourcePool creation)

Jump to solution

I ran into this as well. After some playing around, I was able to successfully create resourcepools in VB.NET. Here's a small example of how I do it:

 

Dim ResourceService As New PPM_ResourceService.ResourceService 

ResourceService.Url = "http://SERVER:8081/itg/ppmservices/ResourceService"

 

Dim policyAssertion As UsernameOverTransportAssertion = New UsernameOverTransportAssertion()

policyAssertion.UsernameTokenProvider = New UsernameTokenProvider("USER", "PASS")

 

Dim p As Policy = New Policy(policyAssertion)
ResourceService.SetPolicy(p)

 

Dim ResourcePool As New PPM_ResourceService.ResourcePool
ResourcePool.name = "Test Resource Pool"

 

Dim Region As New PPM_ResourceService.RegionReference

Region.id = 30000

 

ResourcePool.region = Region

ResourcePool.description = "Test"
ResourcePool.id = 0

 

Dim Resourcepools(0) As PPM_ResourceService.ResourcePool
Resourcepools(0) = ResourcePool

 

Dim NewlyCreatedResourcePools() As PPM_ResourceService.ResourcePoolReference = ResourceService.createResourcePools(Resourcepools)

4 Replies
Established Member.. Utkarsh_Mishra
Established Member..

Re: HP PPM Web Services for DotNet (ResourceServices) (ResourcePool creation)

Jump to solution

You can find .NET web service sample in webservice_toolkit.zip 

 

 

Path - <PPM_ROOT>\server\<SERVER_NODE>\deploy\itg.war\download\webservice

 

 

With this zip check the code in MicrosoftDotNet folder. It has sample for all the module of PPM including Resource mgmt.

Cheers..
Utkarsh Mishra

-- Remember to give Kudos to answers! (click the KUDOS star)
0 Likes
kennyhosey Absent Member.
Absent Member.

Re: HP PPM Web Services for DotNet (ResourceServices) (ResourcePool creation)

Jump to solution

Utkarsh,

Thanks for the quick response. When I go into the webservice_toolkit.zip, I have the following example solutions.

 

DemandServiceTest
FinancialDataTest
FinancialSummaryTest
PortfolioServiceTest
ProgramServiceTest
ProjectServiceTest
TimeServiceTest

 

As you can see, I don't have a solution example here with anything for Resource Pools or Resource Services. This is part of the issue.

 

DotNet

0 Likes
CodeJ Absent Member.
Absent Member.

Re: HP PPM Web Services for DotNet (ResourceServices) (ResourcePool creation)

Jump to solution

I ran into this as well. After some playing around, I was able to successfully create resourcepools in VB.NET. Here's a small example of how I do it:

 

Dim ResourceService As New PPM_ResourceService.ResourceService 

ResourceService.Url = "http://SERVER:8081/itg/ppmservices/ResourceService"

 

Dim policyAssertion As UsernameOverTransportAssertion = New UsernameOverTransportAssertion()

policyAssertion.UsernameTokenProvider = New UsernameTokenProvider("USER", "PASS")

 

Dim p As Policy = New Policy(policyAssertion)
ResourceService.SetPolicy(p)

 

Dim ResourcePool As New PPM_ResourceService.ResourcePool
ResourcePool.name = "Test Resource Pool"

 

Dim Region As New PPM_ResourceService.RegionReference

Region.id = 30000

 

ResourcePool.region = Region

ResourcePool.description = "Test"
ResourcePool.id = 0

 

Dim Resourcepools(0) As PPM_ResourceService.ResourcePool
Resourcepools(0) = ResourcePool

 

Dim NewlyCreatedResourcePools() As PPM_ResourceService.ResourcePoolReference = ResourceService.createResourcePools(Resourcepools)

kennyhosey Absent Member.
Absent Member.

Re: HP PPM Web Services for DotNet (ResourceServices) (ResourcePool creation)

Jump to solution

CodeJ,

 

This is a perfect example of what I was looking for.  Thanks for taking the time for the response!

 

Kenny Hosey

0 Likes
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.