New Posts New Posts RSS Feed: Remote Service Method Calls
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Remote Service Method Calls

 Post Reply Post Reply
Author
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Topic: Remote Service Method Calls
    Posted: 19-Nov-2010 at 4:24pm
You should be able to do that.
Back to Top
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Posted: 19-Nov-2010 at 12:27pm
Sorry, can it call a method in the same remote class synchronously?
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 19-Nov-2010 at 12:24pm
?
 
Not sure I understand. Can you clarify?
 
The 1st remote service is in the server. Who would it be calling remotelly?
 
Back to Top
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Posted: 19-Nov-2010 at 12:18pm

Can one remote service method call another remote service method synchronously instead of asynchronously?

Bill
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 19-Nov-2010 at 10:42am
It looks about right.
 
Place your AvailableStepTypesBuilder class in the Web project (i.e. Server)
Back to Top
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Posted: 19-Nov-2010 at 10:11am
Do you mean like this?
 

string typeName = "LaborWare2011.Services.AvailableStepTypesBuilder, LaborWare2011Web";

string methodName = "RetrieveAvailableSteps";

Do I place the class AvailableStepTypesBuilder in the Web project or the Silverlight project?
 
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 19-Nov-2010 at 9:41am
Hi BillG,
 
TypeName is the assembly-qualified type name.
i.e.
 
TopNamespace.SubNameSpace.ContainingClass+NestedClass, MyAssembly
 
in your case, it should be something like:
 
"MyProject.AvailableStepTypesBuilder, MyProjectWeb"
 
sbelini
 
Back to Top
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Posted: 18-Nov-2010 at 10:19pm
In my webapp I created a folder called Services. In the folder I created a class called AvailableStepTypesBuilder.
 
In the class I have a method called RetrieveAvailableSteps() defined as follows:
 

public class AvailableStepTypesBuilder : IKnownType

{

[AllowRpc]

public static ObservableCollection<EventStepType> RetrieveAvailableSteps(Event e)

{

}

}
 
Now I want to call this from my client side. I am unsure what to use for the type name.
 

public void FetchAvailableSteps()

{

string typeName = ???????????;

string methodName = "RetrieveAvailableSteps";

return (ObservableCollection<EventStepType>) Mgr.InvokeServerMethodAsync(typeName, methodName, currentEvent);

}

 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down