on 04-28-2015 7:38 PM
Hi,
So having read the great blog series by Alexander Bundschuh and I decided to try and set up my first scenario using the REST adapter in the same vain as .
When I come to test the service from SOAPUI I get a 404 error with the message "Invalid number of elements in URL "/". 3 expected, 0 received."
As you can see it is hitting the correct sender communication channel as the response comes back with the channel name "RESTSenderMyService".
The Channel has been set up as follows:
Also I've tried adding the full URL in SOAPUI in the endpoint field - the attached screenshot shows when I tried moving the /RESTAdapter/MyService into the Resource field.
I've also fiddled with the media type of the payload from text/xml to application/xml.
So the mystery is what does the error message refer to and what are the 3 elements it's expecting?
Thanks in advance.
Hi Peter,
This has happened because you have not defined the values for the url pattern you have defined in the REST sender channel (I am talking about Service resource and id).
Provide them in the resource section and you will get the message through.
eg- /RESTAdapter/MyService/service/resource/id
Thanks,
Vikas Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.