16. května 2012 15:13
I create a sandbox solution in visual studio 2010 for create custom sharepoint designer workflow action .
in execute method call a web service from external url (non sharepoint web service), when workflow runs, error has fired:
Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe" /noconfig /fullpaths @"C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\OICE_6927E0D7-E0EB-4C17-91E9-BB96E751ED04.0\cwohum8k.cmdline".
please help me.
16. května 2012 16:22
Any network action is not permitted (or limited) within the sandbox.
Here is a good place to start on using BCS to access external stuff:
17. května 2012 1:16
Sandboxed code runs in a restricted process. Calls to external sources, access to the file system, and various other operations are unavailable. For a more complete description of what can and can't be done in the Sandbox, refer to the following articles:
17. května 2012 6:02
Thanks Multisy & Eric,
but if I want to call external web service in sharepoint designer workflow action, i think that use sandbox solution, please help me if choose alternative way.
18. května 2012 14:55
Note: The BCS is used to connect to your web service.
SharePoint Designer is used to create External Content Type (which create BCS definition)
Workflow connects to the External Content Type.
This should help:
23. května 2012 22:49MULTISY is correct. The only way to call an external web service directly from sandbox code is via the BCS.
28. července 2012 12:43
It is only possible with BDC. The other way is Client Object Model
Read this article