cancel
Showing results for 
Search instead for 
Did you mean: 

Sender SOAP AXIS message protocol

Former Member
0 Kudos

Hello Experts,

i am working on SOAP to Proxy scenario, i need to pull XML data from URL using AXIS message protocol.

i have developed the scenario and in rwb channel show active with out error and its not pulling XML data from URL.

when i open the URL in browser i can see the XML data?

wer i came wrong as its not evening showing error, all are active and working but not pulling data.

Please help.

regards,

chinna

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi China,

Check your task class you have written adaper instead of adapter.

Regards.

Former Member
0 Kudos

Hi,

i have done the changes still no luck, adapter is running no messages are pulled.

iaki_vila
Active Contributor
0 Kudos

Hi Chinna,

Check if there is any exception in the communication channel monitoring. Check there, if the channel is set to start automatically.

Regards.

Former Member
0 Kudos

Hi,

thanks for the qucik responce.

there is no exception in the RWB, so not able to trace the issue.

the channel status running and there is no data....

channel is under Manual only.

iaki_vila
Active Contributor
0 Kudos

HI Chinna,

Could you try to set the channel automatically?

Regards.

Former Member
0 Kudos

Hi,

i have set the channel to automatically......still no luck.

problem, i am not able to understand as it is not showing any error.

channel status running and there is no error.

wen i open web page i can check XML data.

please help..

regards,

chinna

iaki_vila
Active Contributor
0 Kudos

Hi,

If i was you i would try to set any error in the URL or another parameter in order to check if any exception is raised, in this way you can know at least if the adapter tries to do anything.

Regards.

Former Member
0 Kudos

Hi,

i have done the changes in URL and its not giving any error.

do i need to check with basis team for this???

regards,

chinna

iaki_vila
Active Contributor
0 Kudos

Hi,

To use the task com.sap.aii.adapter.axis.ra.transport.http.HTTPGetter you should check if your PI is in the corresponding patch pointed out in this note  1448849 - Axis adapter fixes/improvement 2010-01

You can ask this feature to your basis team.

Regards.

Former Member
0 Kudos

Hi,

i checked the note, we are using SAP PI 7.31 SP5 so any other option to test the web page is working.

kindly help me in this.

Former Member
0 Kudos

experts,

waiting for your suggestion on this thread.

regards,

chinna

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello Exerts,

is there any way to test that can we pull the data from web page, i want to test can we pull the data from web page or not?/

regards,

chinna

former_member182455
Active Contributor
0 Kudos

Hi,

you can use the java code to pull the data from web page.

Regards

srinivas

Former Member
0 Kudos

Thanks for the update, java code in mapping or i need to craete module?

let me know if any thread available for the same.

regards,

chinna

former_member182455
Active Contributor
0 Kudos

hi,

you can use the java mapping.

Regards

srinivas

Former Member
0 Kudos

HI srinivas,

can you help me in writing the java mapping?

regards,

chinna

former_member182455
Active Contributor
0 Kudos

Hi,

pls use this code.

* Created on May 16, 2014

*

* To change the template for this generated file go to

* Window>Preferences>Java>Code Generation>Code and Comments

*/

package XXXXX;

import java.util.HashMap;

import com.sap.aii.mapping.api.AbstractTrace;

import com.sap.aii.mapping.api.StreamTransformation;

import com.sap.aii.mapping.api.StreamTransformationConstants;

import com.sap.aii.mapping.api.StreamTransformationException;

import java.io.InputStream;

import java.io.OutputStream;

import java.util.*;

import java.io.*;

import java.net.*;

/**

* @author Srinu. Peram

*

* To change the template for this generated type comment go to

* Window>Preferences>Java>Code Generation>Code and Comments

*/

public class XXXXX implements StreamTransformation {

            private Map            param = null;

            private AbstractTrace  trace = null;

            /* (non-Javadoc)

             * @see com.sap.aii.mapping.api.StreamTransformation#setParameter(java.util.Map)

             */

            public void setParameter(Map param)

            {

                        // TODO Auto-generated method stub

                        this.param = param;

                        if (param == null)

                        {         

                                    this.param = new HashMap();

                        }

            }

            /* (non-Javadoc)

             * @see com.sap.aii.mapping.api.StreamTransformation#execute(java.io.InputStream, java.io.OutputStream)

             */

            public void execute(InputStream inputstream, OutputStream outputstream)

                        throws StreamTransformationException {

                        // TODO Auto-generated method stub

                                               

                                                try

                                                {

                                                            trace =(AbstractTrace) param.get(StreamTransformationConstants.MAPPING_TRACE);

                                                            URL url = new URL("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");

                                                            trace.addInfo("******Srinu PI developer******");

                                                           

                                                            URLConnection URLconnection = url.openConnection();

                                                           

                                                            InputStream inputStream = URLconnection.getInputStream();

                                                           

                                                            int available = inputStream.available();

                                                           

                                                            trace.addInfo("Input Stream Available => " + available );

                                                           

                                                            trace.addInfo("Trying to get txt file from URL  => XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ");

                                                            /*BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));

                                                            String str;

                                                            while ((str = in.readLine()) != null)

                                                            {

                                                                       

                                                            trace.addInfo("Inside While loop");

                                                            trace.addInfo(str);      

                                                            }

                                                            in.close();*/

                                   

                                                }

                                                catch (Exception e)

                                                {

                                                trace.addInfo("Exception Occured => " + e.getMessage()) ;

                                                trace.addInfo("Exception Occured => " + e.getStackTrace()) ;

                                                }

            }

}

Regards

srinivas

Former Member
0 Kudos

thanks aloot srinivas, will try with this code.

regards,

chinna

Former Member
0 Kudos

Hello Experts,

your inputs on this issue...

regards,

chinna

former_member182455
Active Contributor
0 Kudos

Hi,

kindly chwck whwther admin team was added the HOST in in your white list(Firewall).

please check and add the host name.

Regards

Srinivas

former_member182455
Active Contributor
0 Kudos

Hi Chinna,

you can uncheck the Keep attachment check box and check once again.

Regards

srinivas

Former Member
0 Kudos

Thank for the reply.

i tired as you suggested, still no luck.

regards,

chinna