Hi Marcelo Brancco,
Below there are some steps that may help you. They are not detailed, use as a guide.
1) You probably will need a security certificate (SSL) for your compunction, or you may receive at the end of the steps the error:ICF Error when receiving the response: ICM_HTTP_SSL_ERROR.
2) So in C4C using Silverlight, upload that certificate in "Administrator -> Edit Certificate Trust List".
3) Now in the Studio, create a new Business Object (BO) with the relevant fields for your web service.
4) Create a new External Web Service Integration. Use SOAP as type, upload your .wsld and create a Communication Scenario.
5) In the Solution Explorer you will see the communication scenario with the extension .csd, right click and go to Manage Communication Scenario.
6) And them create a new Communication System in the Silverlight of C4C. After create it set to active.
7) Back to the Studio and right click again in the .csd and now go to Manage Communication Arragement. Create a new one using your scenario as base. And it is done.
8) To test your web service communication you can in the Solution Explorer of Studio right click in the .wsid and go to Test Service Operations.
9) You may use the code to access the web service, so an example of .absl code below:
When I use “Your…”, replace that according with your needs. See: http://scn.sap.com/docs/DOC-27476
On Call Web Services (SOAP) from Custom Code (BO Integration).
importABSL;
varrequestVar : Library::YourWSIntegration.YourMethod.Request;
varresponseVar : Library::YourWSIntegration.YourMethod.Response;
varscenario = "YourScenarioName";
responseVar = Library::YourWSIntegration.YourMethod(requestVar, "", scenario);
// error handling // no info at all
if (responseVar.IsInitial())
{
raiseWebServiceCoreError.Create("E", scenario); // create message in BO
}
// get the data
vardata = responseVar.YourMethodResult.Data;
// ...
10) I hope that helps you
Best regards,
Marlos A. M. Damasceno