Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Calling REST Service from OSB.

Siddhardha MJul 11 2012 — edited Jul 12 2012
Hi All,

I am calling a rest service from OSB BusinessService and tested it using Test Console.It worked fine.
When i am calling the BusinessService from ProxyService ,The invocation is failing in BusinessService with following error.

BEA-380000: General runtime error: charsetName

Details of the Service:
=============

URL : http://api.geonames.org/postalCodeSearch?postalcode=90110&username=siddhardha

It has 2 parameters ..postalcode & username.

Populated below to outbound variable as part of callout.

1# <http:http-method>GET</http:http-method>

2# <http:query-parameters>
<http:parameter name="postalcode" value="{$v}"/>
<http:parameter name="username" value="{$q}"/>
</http:query-parameters>


Can someone point me to any code sample for this.Where i am doing wrong.

NOTE : The main question is how to send the query parameters to BusinessService from Proxy Service.
I am getting these values from the user as part of XML input.

Thanks,
Sid.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 9 2012
Added on Jul 11 2012
6 comments
1,923 views