2007B2TR - grooveForms2.ReplaceDesign

L

Lou Zher

I noticed that the wsdl changed for this.

It doesn't seem to work, however.

Calling it from a form pointing to a form tool uri just gives me unspecified
error.

Can anyone verify that this works?
-LZ
 
L

Lou Zher

Thanks for the response Hugh.

Here's the stripped down code:

Microsoft.Win32.RegistryKey grooveWebServicesRegKey =
Microsoft.Win32.Registry.CurrentUser.OpenSubKey(
"Software\\Microsoft\\Office\\12.0\\Groove\\WebServices" );
Microsoft.Win32.RegistryKey grooveWebServicesHTTPortRegKey =
Microsoft.Win32.Registry.CurrentUser.OpenSubKey(
"Software\\Microsoft\\Office\\12.0\\Groove");
string localRequestKey =
(string)grooveWebServicesRegKey.GetValue("LocalRequestKey");
string localPort =
grooveWebServicesHTTPortRegKey.GetValue("GrooveLocalHTTPPort",
9080).ToString();
string localResponseKey =
(string)grooveWebServicesRegKey.GetValue("LocalResponseKey");
GrooveForms2.GrooveForms2 gf2 = new GrooveForms2.GrooveForms2();
gf2.GrooveRequestHeaderValue = new
GrooveFormReplaceDesign.GrooveForms2.GrooveRequestHeader();
gf2.GrooveRequestHeaderValue.GrooveRequestKey = localRequestKey;
gf2.GrooveRequestHeaderValue.GrooveIdentityURL =
"grooveIdentity://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@";
gf2.Url =
"http://localhost:9080/GWS/Groove/2....ToolContainer/yyyyyyyyyyyyy/DataModelDelegate";
gf2.ReplaceDesign("http://localhost:9080/GWS/Groove/2....ToolContainer/uuuuuuuuuuuuu/DataModelDelegate");

Obviously, the URIs have been obfuscated, but you get the idea.
Both the source and target urls were snagged out using GrooveRemoteExplorer.
What happens at ReplaceDesign is SoapException "IDispatch error #528", but,
get this, only if the tool was just created. If I go in the UI and click the
"import" or "start" button, the design can be replaced without error.

Any ideas? Could it be that it only works in the gdb... We've been working
against the client.

BTW: I've been watchin' the cb301/302 videos from sdc2006. Good stuff.
-LZ
 
L

Lou Zher

Here it is even more stripped down:

GrooveForms2.GrooveForms2 gf2 = new GrooveForms2.GrooveForms2();
gf2.GrooveRequestHeaderValue = new
GrooveFormReplaceDesign.GrooveForms2.GrooveRequestHeader();
gf2.GrooveRequestHeaderValue.GrooveRequestKey =
"qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq";
gf2.GrooveRequestHeaderValue.GrooveIdentityURL =
"grooveIdentity://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@";
gf2.Url =
"http://localhost:9080/GWS/Groove/2....ToolContainer/yyyyyyyyyyyyy/DataModelDelegate";
gf2.ReplaceDesign("http://localhost:9080/GWS/Groove/2....ToolContainer/uuuuuuuuuuuuu/DataModelDelegate");

Thx,
-LZ
 
J

John Milan

Hi Lou,

I encountered this issue as well. I found I could run my web service test
code in the debugger, break just after I add a form, go to the groove tool
and click 'Start' on the form, then continue in the debugger and successfully
replace the form schema.

I chatted with Hugh about it as well and he mentioned pinging development.

Best Regards,

John Milan
TeamDirection, Inc.
intelligantt.blogspot.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top