Project and Portfolio Management Practitioners Forum
cancel

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

SOLVED
Go to solution
Highlighted
kennyhosey
Contributor.

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

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

4 REPLIES
Utkarsh_Mishra
Acclaimed Contributor.

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

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)
kennyhosey
Contributor.

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

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

CodeJ
Regular Contributor.
Solution

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

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
Contributor.

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

CodeJ,

 

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

 

Kenny Hosey