cancel
Showing results for 
Search instead for 
Did you mean: 

Issue Consuming synchronous RESTful service

juan_vasquez2
Active Participant
0 Kudos

I am getting the The message error following this blog step by step:

PI REST Adapter - Consuming synchronous RESTful service

http://maps.googleapis.com/maps/api/geocode/json?address=5th Avenue+New York+USA&sensor=false not successful. HTTP/1.0 400 Bad Request



can you please help me with this

<![CDATA[

com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rest.ejb.common.exception.HttpCallException: HTTP GET call to http://maps.googleapis.com/maps/api/geocode/json?address=5th Avenue+New York+USA&sensor=false not successful. HTTP/1.0 400 Bad Request

  at com.sap.aii.adapter.soap.web.SOAPHandler.processSOAPtoXMB(SOAPHandler.java:772)

  at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:530)

this is my channel configuration

Thanks a lot for your help

Accepted Solutions (1)

Accepted Solutions (1)

juan_vasquez2
Active Participant
0 Kudos

I solved the issue

This is the change in URL:

http://maps.googleapis.com/maps/api/geocode/json?address="{street_par}+{city_par}+{country_par}"&sen...

using quotation marks for the address.

It works fine:

Answers (2)

Answers (2)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Juan,

Have you tried escaping the spaces? 5th Avenue should be 5th%20Avenue. You can confirm this in the Raw tab of SOAP UI. For example here is the same request:

Regards,

Mark

juan_vasquez2
Active Participant
0 Kudos

Thanks, but it not works, the source is a XML form SOAP

This immage from SOAP UI

the answer is empty

markangelo_dihiansan
Active Contributor
maheswarareddykonda
Active Contributor
0 Kudos

even i was getting such issue,

pls look this thread https://scn.sap.com/thread/3734786

have you checked what is patch level ?

my case when upgraded to patch 5 ,issues got resolved

justin_santhanam
Active Contributor
0 Kudos

Hello Juan,

Could you let us know what's you PI Version? I was recently doing one of the REST scenario, but I was also getting the same error Bad Request. We applied the below note and then it started working.

2114322 - REST: GET variables are ignored

I'm not sure if it's applicable to you. But take a look at the note.

Thanks!

juan_vasquez2
Active Participant
0 Kudos

Hello

we are using PO 7.3 EH 15.

Thanks for your help

former_member186851
Active Contributor
0 Kudos

Hello Juan,

Based on ur Request in soap ui ur channel config should be changed.

Under the request format change to XML and try.

juan_vasquez2
Active Participant
0 Kudos

Thnaks for your help, but it not works

former_member182412
Active Contributor
0 Kudos

Hi Juan,

What is your patch level?? according to above SAP Note mentioned by Justin and Mahesh, the fix is included in PI 7.31 SP15 patch level 02. If your patch level is less than 02 then update the patch and try.

Regards,

Praveen.