You need to sign in to do that
Don't have an account?
Testing REST API
Hello experts :) I created the following APEX Class in my Dev Org:
@RestResource(urlMapping='/createCase/*')
global with sharing class RESTCaseController
{
@HttpPost
global static Void createNewCase()
{
Case c = new Case();
c.OwnerId = '005i0000001uqEm';
c.AccountId = '001i000000RsOOS';
c.Subject = 'SOAP Test';
c.Status = 'New';
insert c;
return;
}
}
So the endpoint URL is https://na15.salesforce.com/services/apexrest/FieldCase
There will be a a third party application that will send SOAP messages to that end point.
I would like to test it and see if it'll create a case for me :) Any help is much apreciated (By the way, I'm new to this so bare with me :) )
Once saved you can click on the class list and generate a WSDL for the class.
Thank you :) I just did that and generated the WSDL, now what should I do? :)
Is it that I povide the WSDL to the SOAP msg sender or do I provide a URL like before with the REST API?
Sorry for bothering you, I'm new at this and trying to learn, thanks in advance :)
Thank you :) I appreciate you helping me with this. I received the requirements yesterday for their SOA msg sender and they said that we need to provide them with an IP address and a port number. Is there a way to get that info from the WSDL file or somewhere else? Thank you in adbvance.
Thank you for the quick response :) How will SalesForce know where to send the message if all I give the sender an IP address and a port number that everybody uses?
I guess I'm confused on how it'll be directed to the controller that I have rather than one that some other Org has. Thank you in advance.