...
Add a Custom Code device in the same way you would add any other device. Stop the channel, open it for editing, and choose Custom Code Device from the drop-down.
<screen shot>
Using the Custom Code window
If you select the Custom Code device in the channel, you can launch the Custom Code window.
<screen shot>
This window contains several components:
...
You can also use references to a remote service (usually a SOAP service) in your Custom Code device. Right click the Service Reference item and select Add Service Reference. The Add Service Reference window will be displayed.
<screen shot>
The window contains the following:
...
The Custom Code Device allows you to add embedded resources which can be accessed from your source code. To add a resource to your project, right-click the Resources item and select Add Resource. Select the file(s) to include in your project and click Open.
...