on 03-13-2012 1:52 AM
Hi,
Iam developing a scenario RFC--PI -- Rest service.
I went to the following blogs
http://wiki.sdn.sap.com/wiki/display/XI/REST+Web+Services+in+XI+(Proof+of+Concept)
But as per the blog, some customisation to be done for HTTP adapter - we dont want to do this way
Then i came across AXIS adapter where we call the rest service. So i used rest adapter but it is giving the error.
Hello,
Make sure you have deployed the necessary Axis components by going to this URL:
http://host:port/XIAxisAdapter/MessageServlet
The status for the required components should be okay. Here is a sample blog by Michal regarding the use of the SOAP Axis Sender for HTTP GET, take note of the URL escaping after the query string e.g United States is equal to United%20States if you use URL escaping..
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Srinivas
Why do you want to use Soap Axis.
Go with
a. Use http adapter
b. Soap Adpater with no soap envelope.
regards
Monika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can anybody suggest how to proceed on this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You might want to try using plain http adapter to consume rest web service. Since this webservice does not need envelope and header details, I think it should be possible. If not, soap adapter with no envelope option would do.
Also I want you to see the other option given in the link
https://www.advantco.com/product/REST
Hope that helps.
Hello,
I used the soap adapter with option (No SOAP envelope), iam able to get the response from the service.
iam calling the below URL
http://www.voip.ms/rates/xmlapi.php?dest=United%20States% and the response is
<?xml version="1.0" encoding="utf-8" ?>
<results>
<item>
<short_description>USA</short_description>
<description>United States</description>
<pattern>1</pattern>
<rate>0.01050000</rate>
<rate_premium>0.01250000</rate_premium>
<increment>6</increment>
<old_rate>0.00000000</old_rate>
<old_rate_change>2009-10-31</old_rate_change>
</item>
</results>
bu the issue is when iam mapping the response to the traget iam getting an message mapping error because the payload is of plain text.How can i map to the target? do i need to write java mapping inorder to do this?
Thanks
Srinivas
> when iam mapping the response to the traget iam getting an message mapping error because the payload is of plain text.How can i map to the target? do i need to write java mapping inorder to do this?
Yes. If the target system requires soap header details or some namespace details then you need to create those information using XSLT or java mapping. In your operation mapping, this XSLT or java mapping will be the first interface mapping followed by message mapping. This way you can complete the response mapping.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.