cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP_AAE Sender Adapter issue

Former Member
0 Kudos

Hi,

We are using SAP PO single stack and got interface HTTP_AAE to RFC. We are using GET for  HTTP adapter and when sending any data using url getting error as:

In channel configuration we have given Main payload parameter name as api_key. Can anyone please look into the error and tell ho to proceed with testing.. At sender side client is using API and they can not send the data. Can anyone help on how to GET the data from Sender to PI.

Thanks,

Swapnashree

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Swapnashree,

1. You must be using GET in message protocol.

2. This GET parameter is supposed to fetch the payload from a specific URL.

So question : Have you specified the URL Path by choosing the addressing mode as URL ?

In the Path you need to maintain the path.

If you have done the above then you can check if the certificate has expired or not (which you will get in NWA under configuration in Certificates and Keys in Trusted CAs).

Regards,

Souvik

Former Member
0 Kudos

Yes we have used GET and specified the URL in path. If we click on URL, it is opening. But data is not coming to PI. There is no certificate issue.

former_member186851
Active Contributor
0 Kudos

Refer the links I shared Swapna

Former Member
0 Kudos

My input Datatype structure is:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:matw.com:xi:tre:g_oandaexchangerates:100" targetNamespace="urn:matw.com:xi:tre:g_oandaexchangerates:100">

   <xsd:complexType name="DT_ExchangeRates">

      <xsd:sequence>

         <xsd:element name="base_currency" type="xsd:string" />

         <xsd:element name="meta">

            <xsd:complexType>

               <xsd:sequence>

                  <xsd:element name="effective_params">

                     <xsd:complexType>

                        <xsd:sequence>

                           <xsd:element name="data_set" type="xsd:string" />

                           <xsd:element name="date" type="xsd:date" />

                           <xsd:element name="decimal_places" type="xsd:int" />

                           <xsd:element name="fields">

                              <xsd:complexType>

                                 <xsd:sequence>

                                    <xsd:element name="field" type="xsd:string" />

                                 </xsd:sequence>

                              </xsd:complexType>

                           </xsd:element>

                           <xsd:element name="quote_currencies">

                              <xsd:complexType>

                                 <xsd:sequence>

                                    <xsd:element name="currency" type="xsd:string" maxOccurs="unbounded" />

                                 </xsd:sequence>

                              </xsd:complexType>

                           </xsd:element>

                        </xsd:sequence>

                     </xsd:complexType>

                  </xsd:element>

                  <xsd:element name="request_time" type="xsd:string" />

                  <xsd:element name="skipped_currencies" type="xsd:string" />

               </xsd:sequence>

            </xsd:complexType>

         </xsd:element>

         <xsd:element name="quotes">

            <xsd:complexType>

               <xsd:sequence>

                  <xsd:element name="quote" maxOccurs="unbounded">

                     <xsd:complexType>

                        <xsd:sequence>

                           <xsd:element name="ask" type="xsd:double" />

                           <xsd:element name="bid" type="xsd:double" />

                           <xsd:element name="currency" type="xsd:string" />

                           <xsd:element name="date" type="xsd:string" />

                        </xsd:sequence>

                     </xsd:complexType>

                  </xsd:element>

               </xsd:sequence>

            </xsd:complexType>

         </xsd:element>

      </xsd:sequence>

   </xsd:complexType>

</xsd:schema>stucture

and the source is

<response><base_currency>USD</base_currency><meta><effective_params><data_set>oanda</data_set><date>2015-11-17</date><decimal_places>5</decimal_places><fields><field>averages</field></fields><quote_currencies><currency>CAD</currency></quote_currencies></effective_params><request_time>2015-11-17T14:44:42+0000</request_time><skipped_currencies>

    </skipped_currencies></meta><quotes><quote><ask>1.33244</ask><bid>1.33219</bid><currency>CAD</currency><date>2015-11-16T21:00:00+0000</date></quote></quotes></response>

Seems it is due to different structure issue. But I have to modify the input xsd file to use in PI.

Former Member
0 Kudos

Hello Swapna,

Are you using proxy, i.e., I mean,  is the checkbox for using proxy checked ?

If yes then please uncheck that, since otherwise it will become dual stack and the capability of PO is single stack.

Regards,

Souvik

Former Member
0 Kudos

One more thing : 500 internal server error occurs when the cache is full.

So please do a full cache refresh and then try the polling of the sender CC.

Regards,

Souvik

Former Member
0 Kudos

no proxy not used. We are using single stack. I am getting 400 bad request error.

former_member186851
Active Contributor
0 Kudos

Try as per below link Swapna.Face the same issue I guess

Pulling Data From Webservice using Sender SOAP ... | SCN

Former Member
0 Kudos

Thanks, I exactly followed..I am able to do successful operation mapping testing with xml data from URL but in PI sender channel I am getting : error during receive 400 bad request

Former Member
0 Kudos

I exactly followed the link you provided and created the interface.but not successful.. Can you share your module tab..I am getting error with Module.

My Module setting was:

I changed from Inbound to Outbound and now getting error as:

Can you help on this.. I need this to be fixed urgently.

former_member186851
Active Contributor
0 Kudos

Didnt use any module.

former_member186851
Active Contributor
0 Kudos

And images are not loading.I mean the images shared by you.

Former Member
0 Kudos

After removing module, getting error as:

no valid message format object found.

former_member186851
Active Contributor
0 Kudos

Swapna,

Can you please post the images again,nothing is getting loaded.

Former Member
0 Kudos
former_member186851
Active Contributor
0 Kudos

Can you please test the same message in Soap UI and see if the response is getting fetched?

Former Member
0 Kudos

yes response is getting fetched. Seems some special character coming

former_member186851
Active Contributor
0 Kudos

Then the same should work in PI as well.your using the same data while testing in PI?

Former Member
0 Kudos

yes..same URL and the same data type mentioned in your link. But data not coming to PI and getting error in PI sender channel. Can you share your channel screen shot with module tab

former_member186851
Active Contributor
0 Kudos

Swapna,I dont have any modules being used.Just the only parameter which I shared.

Former Member
0 Kudos

Please see if the below helps you in some direction

Webservice GET method HTTP_AAE | SCN

former_member186851
Active Contributor
0 Kudos

Hello Swapnashree,

I doubt HTTP adapter can poll from the webservice.use a soap adapter with rest protocol.

Former Member
0 Kudos

I tried using SOAP Axis sender adapter and updated the URL. But when I am trying to send request from sender API data not coming to PI.Is there any other setting to be done? I followed the below doc.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/01/05/michals-pi-tips-exchange-rates-fr...

former_member186851
Active Contributor
0 Kudos

Try as per below link

https://scn.sap.com/docs/DOC-64306

Former Member
0 Kudos

I have done the channel configuration like the attached screen shot. But can you tell me how to trigger the interface . How data will coming to PI.

former_member186851
Active Contributor
0 Kudos

Hello,

Its like polling the file.

Soap adapter will poll the webservie based on the time configured and retrieve the data.

Former Member
0 Kudos

I changed the interval to 30sec, but no data is coming, no error in PI channel also.

former_member186851
Active Contributor
0 Kudos

Swapna check all the drivers required are installed.

Former Member
0 Kudos

We verified, now we are getting 400 bad request error in communication channel. Can you please tell if any other activity to do?

former_member186851
Active Contributor
0 Kudos


Refer the blog and try creating structure or enable the rest parameter to true.

Former Member
0 Kudos

Rest parameter is already set to TRUE.Can you tell what change need to do for structure.