Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

REST to SOAP: Invalid number of elements in URL "/"

$
0
0

Hi,

So having read the great blog series PI Rest Adapter - Don't be afraid by Alexander Bundschuh and I decided to try and set up my first scenario using the REST adapter in the same vain as Working with REST Adapter: A REST to SOAP Scenario in SAP PI/PO .

 

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."

Rest Adapter Error.jpg

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:

  • Input and output format = XML
  • Channel selection = MyService   (The specify Endpoint flag is ticked)
  • There is not limit to HTTP operation set
  • Everything else is left unchanged....left as their default values

 

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.


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>