Suggestions for improvement

Feb 3, 2010 at 7:40 PM

if you specify a namespace for the proxy, life gets a bit easier

$cp = New-WebServiceProxy -Uri "https://www.codeplex.com/Services/ReleaseService.asmx" -Namespace CodePlex

Then you can write:

$releaseFile = New-Object CodePlex.ReleaseFile

Also, consider replacing your [bool]$Parameter arguments with:

[switch]$Default

If someone passes -Default, this is considered $true, if not passed, it's $false.

-Oisin

 

 

Coordinator
Feb 4, 2010 at 4:38 AM

Thanks for the feedback Oisin.

I did try using -Namespace. I wasn't really successful loading the webproxy that way. I gave up on that and started using the full autogenerated namespace. I will work on this again.

Also, as you see, this is just a .1 release and I have not put efforts to make it a complete solution. I want to use the module best practices, enable help, etc as I go forward.

Thanks again

Ravi

 

Coordinator
Mar 4, 2010 at 12:04 PM

Oisin,

Got these changes in 0.2 release

Ravi