Question
virtusa
IN
Last activity: 15 Apr 2016 11:28 EDT
rest service
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
PEG
IN
Hi Prasant,
For HTTP/REST Service there won't be any deployment descriptor as we find for other services. You should use the URL format as below.
http://hostname:portnumber/prweb/PRRestService/ServicePackageName/ClassName/MethodName
virtusa
IN
i am not able open the link
PEG
IN
Hello,
I had provided syntax to create URL for REST Service. You have to create URL on your own following the syntax.
virtusa
IN
ya where we need to create the syntax for the url could u plz elobrate??
PEG
IN
Did you create the Service-REST rule and ServicePackage data instance? If yes, you can form the URL and test using SOAP UI/Any third party rest tool.
virtusa
IN
ya i have created the service rest rule and i have created a package how can get the url now??
PEG
IN
For ex: http://localhost:8080/prweb/PRRestService/TestSP/TestRest/TestRestMethod
Here TestSP is the service package name
TestRest is the class name
TestRestMethod is the method name.
Localhost is the host name
8080 is port number
Similar way you can replace the names as were there in your application.
Hope this helps!
virtusa
IN
thq ganagababu this helped me a lot
PEG
IN
You are welcome. Please mark this thread as answered.
virtusa
IN
i have marked as success thq for the solution