cancel
Showing results for 
Search instead for 
Did you mean: 

PI 7.30: SOAP Axis Sender Adapter - avoid polling when no file to poll

peter_wallner2
Active Contributor
0 Kudos

Dear experts,

I have set up a SOAP Axis Adapter and under "Connection Parameters" I set "Interval (msec)" to 120000, so every 2 minutes the adapter connects to the http-address to poll files. Now if there is no message to poll I get an empty message in SXMB_MONI with a red flag. That is annoying.

So now in the "Receiver Determination" I put in a conditon checking if the message is empty or not:

Now all I get in SXMB_MONI is a message that says (no red flag anymore):

But is there a possibility that the AXIS Sender Adapter does not create a message at all? Am I missing a certain setting here?

Thank you for your help and best regards,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Rather setting poll interval, I would do this way ... You can write script to control the communication channel externally.  You check whether file available on the sender system, then start the communication channel and after a minute stop the channel.

You can see this link for controlling channels start and stop.

http://scn.sap.com/people/william.li/blog/2007/05/04/control-communication-channels-externally-witho...

You can write script and use the commands given in the link.

or otherwise you set condition in the receiver determination if the payload is empty , select ignore message option in the receiver determination. This way you create message but not pass it to the target system.  I think you are already doing this.

peter_wallner2
Active Contributor
0 Kudos

Hello Baskar Gopalakrishnan,

Thank you for your help. This sounds like a good solution but I can't really work with scripts because I do not have access to the PI server and going to the guys from basis for each new script or adaption of scripts is not working.

I was wondering if I could write an adapter module for my Axis sender adapter that checks the existence of a file on the HTTPS-location. And if there is no file it stops processing.

But I saw in this thread

http://scn.sap.com/thread/2040361

that Sunil Singh said "...you can't stop adapter through Module."

Is there anything else I could do with an adapter module, just so no empty message gets processed?

Thank you again for any ideas and best regards,

Peter

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Peter,

I thought you might help as I am designing a similar interface.

I am trying to set up SOAP sender adapter with polling option.

The sender system has created a soap web service with Request and response messages.

My PI soap sender adapter polls the URL using the HttpGetter and it successfully connects.

But I do not get any response message back. What am I missing here?

Thanks

peter_wallner2
Active Contributor
0 Kudos

Hello S Kantheri,

In a SOAP scenario you have to send a request to the other server and then get a response (payload) back.

That means if you want to retrieve information from another server using SOAP you have to send a request to the server - therefore you need a SOAP receiver that sends the request and uses a certain SOAP action. Then the other server will respond to you request sending the payload you want.

I hope this helps. Please have a look at this for example:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80104882-c7a8-2f10-c3a3-81f182917...

Best regards,

Peter

Former Member
0 Kudos

Thank you Peter for taking time and replying.

I Have worked with normal soap to rfc scenarios, but this is special case where we want to do a polling of the request and using the response method post the data to Sap.

Thats why I have used sender adapter with httpGetter class to invoke the request.

this is working but I am not able to receive the response as a payload.