Issue in  Synchronous SOAP Communication channel

hi Experts,
   I stuck in one scenario where my requirment is:--
At Receiver side SOAP adapter(which is Synchronous Communication) accepts data  as Attachment.
But the response mustn't be in form of attachment.
If i use Keep Attachment at SOAP receiver channel, I will get response in the form of Attachment which doesn't meet my requirment.
Is it possible to extract the data from attachment.
I used PayloadSwapBean Module at SOAP receiver side but still I am getting response as Attachment.
Please help me out.
Is there any other approch for my Requirment which is as follows:---
FTP--->SOAP request(as an Attachment) >SOAP response(Without Attachment)->FTP
Solutions will be awarded with points:)
Thanks,
Jaideep Jain

Hi Jaydeep,
The other way is to develope the develope our own Module.
As you are using SOAP in sych ( you are using it as Receiver adapter Also we cant develope Modules for Sender SOAP adapter for that we have to look for AXIS SOAP adapter).
Here is module code that you can use for Module development.
public ModuleData process(ModuleContext moduleContext, ModuleData inputData)
            throws ModuleException{  
           String str = "";
            Message mes = null;          
      //Fetch the Message Data from Module Data
            mes = (Message) inputData.getPrincipalData();        
            XMLPayload xmlpayload = mes.getDocument();           
            String xmlText = xmlpayload.getText();       
            String temp = "";
      // For Audit Log Fetch the Audit Message key from the message.
      amk = new AuditMessageKey(mes.getMessageId(), AuditDirection.OUTBOUND);
      Audit.addAuditLogEntry(amk,   AuditLogStatus.SUCCESS, "Excel to XML Module called");           
      try {      
            Iterator itr = mes.getAttachmentIterator();
//to iterate through all the attached messages.      
            Payload pay = null;          
            int i = xmlText.indexOf("<Content>");
            while(itr.hasNext()){
            pay = (Payload) itr.next();
          Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS, "Payload Description: " + pay.getContentType());
            if(pay.getContentType().indexOf("Excel-sheet") > 0)
//only to process excel type attachment
      temp = temp +  convert(pay.getContent()) ; //call the function that will convert the Excel data into xml formate                                
pay.setContent(new byte[0]); //set the attachment to zero because they are not required any more this will reduce system load
Audit.addAuditLogEntry(amk,   AuditLogStatus.SUCCESS, "Excel to XML Module DATA"+ temp);
            String payText = "";
            payText = xmlText.substring(0, i + 9)+ temp +xmlText.substring(xmlText.indexOf("</Content>"));   
            xmlpayload.setText(payText);
            mes.setDocument(xmlpayload);
inputData.setPrincipalData(mes);         
      } catch (RuntimeException e) {
            e.printStackTrace();
      Audit.addAuditLogEntry(amk,   AuditLogStatus.SUCCESS, "error caught " + e.getMessage());
      catch (Exception e1) {
                              e1.printStackTrace();
            return inputData;
I had written this code to convert the Excel Attachment(there could me many attachments) in the Mail to the XML .
Thanks
Sunil Singh

Similar Messages

  • Getting error in target SOAP communication channel

    Hi all,
    I am trying to send data from Http client to Webservice.In moni i got a message processed successfully means getting black flag.But i got an error in SOAP Communication channel as "error in response".
    I got this message from that error 
    <b>"SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )"</b>
    Source side i dont configure Http adapter.Target side i configured SOAP adapter.In that SOAP adapter i configured these fields.1)Target URL 2)Configure Proxy 3)Configure proxy user authentication.
    I want get response from webservice.Please help me.
    Thanks,
    Gopi.

    Hi,
    Make sure that you have specified the proper host and port values, in the text box that appears when you check the configure proxy check box(in receiver soap adapter).
    Looks like the webservice requires a proxy authentication.
    Select the check box "configure proxy user authentication"(in receiver soap adapter) and provide the correct username and password.
    Regards,
    Smitha.
    Message was edited by: Smitha Rao

  • HOW TO CREATE SERVICE FOR SENDER SOAP COMMUNICATION CHANNEL FOR ECC PROXY

    Hi Experts,
    I need generate the service for sender soap communication channel for target url to receive the  inbound proxy.
    my scenario is like SOAP to proxy. while using  receiver proxy also we are planing using AAE method .
    i am using SOAP sender and SOAp receiver communication channel .i need to provide the target url for this communication channel.
    how to generate the url for this and what is the transaction code .
    Please help us.
    Regards
    Ravinder.S

    Hi Ravinder,
    Q.my scenario is like SOAP to proxy. while using  receiver proxy also we are planing using AAE method.
    SOAP to Poxy in this case.
    For sender  SOAP system, we can generate the WSDL link in ID part.
    for Reveiver proxy give the integration engine URL.
    http://IP:PORT/sap/xi/engine?type=entry
    how to generate the url for this and what is the transaction code
    There is no transaction code for generating the URL.
    i hope this will help.
    Regards,
    Kesava.

  • Receiver SOAP Communication channel -- Target URL

    Hi Experts,
    Can anyone provide some inputs for my below question?
    How the receiver SOAP Communication channel internally calls the Target URL?
    What is the internal process behind this call?
    I would really appreciate you all if could provide answers.
    Thanks & Regards,
    Prabu Muthu

    Hi...
    To be able to send SOAP messages from the Integration Server/PCK to remote clients or Web service servers, you must first configure the receiver SOAP adapter. The receiver adapter supports system acknowledgments but not application acknowledgments
    Find the below link .
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40611dd6-e66e-2910-f383-e80fb44f9cd4
    Regards,
    Leela

  • SOAP communication channel

    Hi,
    I am configuring sender SOAP communication channel. I see only "CENTRAL ADAPTER ENGINE" in the Adapter engine type. I do not see any INTEGRATION SERVER  in the drop down option.
    Kindly help.

    Hi,
    Why do you need INTEGRATION SERVER in the drop down option??
    you have to select the Adapter Engine, Transport Protocol and Message Protocol.
    In the Adapter Engine you need to select the CENTRAL ADAPTER ENGINE . This is since you have only one adapter engine. If there is any local AE, and it is correctly installed, then it will also appear in the drop down.
    But INTEGRATION SERVER, which you are askin never appears!!
    Please explain if u need further clarifications.
    Cheers,
    Souvik

  • Issue with updation of communication  channel

    Hi Experts,
    I have configured a   JMS  to Proxy scenario in XI system. i  have changed  the  "Queue name" parameter   in  sender communication channel for the JMS adapter. the new Queue name is not  being used by the interface.
    when i monitor the messages  for the  this interface, i found that system is still using the Old  Queue name.
    can you please suggest  a way to resolve this issue.
    -Kaushik

    Hi,
    I am not sure if this resolves the issue.
    Stop the channel using RWB>Adapter Engine>Communication Channel Monitoring
    Identify your JMS sender Communication channel and stop it.
    Go to ID and reedit this channel and activate.
    Comeback to previous Communication Channel Monitoring check the status of activated Communication Channel (start it if it is still in stopped mode)
    - Gujjeti.

  • Error in Soap Communication Channel

    Hi All,
    I am using Soap as sender from UPXI and again Soap as receiver in EUPI but while doing end to end test SOAP sender channel was failing.
    Below was the error which I cam seeing the channel mointoring.
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error
    Can you please help me in resolving this issue.
    Thanks,
    Mahi.

    Hi Mahi,
    I understand from above post that you are using SOAP to SOAP interface, however can you also elaborate on following:
    1) How are you testing the interface?
    2) Where do you see this error?
    3) Are you using ICo or classical configuration scenario?
    HTTP 500 is a generic error and could have been caused because of any reason. If you are using a tool like SOAPUI etc, you can try looking into the text of error to see what error reason is displayed. Also worthwhile looking in to the runtime workbench or sxmb_moni (if dual stack processing) to see what is the status of message processing.
    Regards,
    Sanjeev.

  • Receiver SOAP Communication Channel  Error

    Hi,
    I am trying to post a file to a WebService but facing the below error in the communication channel :
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Object variable or With block variable not set.
    Has anyone encountered such an error?
    Please let me know.
    Regards,
    Anuradha.

    Hi,
    First of all check the URL in your receiver SOAP adapter. The error comes from the web service server. It says that the request message is wrong.
    1.fill field SOAPAction in the receiver soap adapter
    2.fPlease find the related information here
    http://help.sap.com/saphelp_nw2004s/helpdata/en/29/5bd93f130f9215e10000000a155106/content.htm
    Please check this one also:
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    There are multiple soap actions listed there.
    Regards,
    Divya

  • Soap communication channel is inactive by itself

    hi Although the communication channel is activin in the intergration directory  , when i check the RWB it shows it is inactive, can any body help me in resolving this
    regards
    saneeep

    when i check the RWB it shows it is inactive, can any body help me in resolving this
    i think if you dont send any message through a channel after creating it.....the staus will be shown as inactive.....did you try testing the scenario which uses this channel...maybe then the status will change...you need to confirm if the channel is active in ID and Started in RWB

  • SOAP COMMUNICATION CHANNEL ERROR

    Hi all,
    Please tell me how to solve following error:
    Error in Adapter: SOAP
    Error Message: SOAP: call failed: java.io.EOFException: Connection closed by remote host.

    Hi,
    1.Yes, please try to test the web service independently.
    2. Are all the firewall ports open for this communication to happen end to end.?
    3. Is the target system up and running?
    The answers for these questions, have the solution in them
    regards,
    Younus

  • SOAP communication Channel inactive

    Hi Forum,
    We have some SOAP sender and receiver channels, in the integration Directory, which are all active there,
    but, in the RWB i can see all of them as inactive, with message in RWB as "Channel started but inactive" ,
    why so, can u pls help

    Sudheer
    Youe Adater engine cache are not getting updated, goto the Runtime workbench and check the cache monitoring there all the instacess should be green in color
    IS
    AE
    sol:
    Goto the SXI_CACHE
    run the delta or compelte cache and do the complete CPA Cache using the URL, use PIDIRUSER for this.
    it will work then

  • Issue with JMS sender Communication Channel

    Hi All,
    We are tying to connect to IBM WebSphere MQ system from SAP PI and pickup messages thru sender JMS adapter.
    This is WebSphere MQ -> PI -> Proxy Async scenario. We deployed the required sda file in SDM. We could connect to MQ system message queue, and pick messages from PI development system.
    But, when we are trying to do it from PI test system, we get the following error in Comm Channel monitoring:
    Error while processing message 'b000f150-15cf-4484-24ec-d8ad10acb685';  detailed error description: com.sap.aii.adapter.jms.api.channel.filter.MessageFilterException: Exception in method process.: BaseEJBException: Exception in method process. at com.sap.aii.adapter.jms.core.channel.filter.SendToModuleProcessorFilter.filter(SendToModuleProcessorFilter.java:105) ...
    The patch levels (ABAP & Java) are the same for both the PI systems.
    sda file is also deployed successfully for both systems. Comm Channel config is exactly the same for both the systems.
    But, still we get the above error.
    We did full cache refresh, CPA cache refresh, stopped/started comm channel, restarted the adapter, java stack, and whole PI system after deployment. But, still we get the same error.
    Can you please tell me if i am missing something here?
    Thanks,
    Chandra

    Hi,
    >>>MessageFilterException
    my exp with this error on JMS
    a) delete the channel in ID
    b) recreate it and active and it works ....
    at least with activemq jms
    Regards,
    Michal Krawczyk

  • SOAP Communication channel monitioring error.

    Hi guru's
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidden: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidden
    SOAP: call failed: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidden
    I am checked what the other members have said, but still i am getting the same error. any inputs please.
    Thanks.

    Hi Latha,
    403 meaning is given here: http://www.checkupdown.com/status/E403.html
    So either your paylaod what ever you are sending is wrong. So send it from altova xml spy and from your original webservice. Then compare both of your payloads, You should see the difference somewhere.
    Regards,
    ---Satish

  • Error in calling SOAP receiver communication channel in a syncronous comm

    Hi I am getting the following dump..when I am sending some employee data from SAP to a webservice through a SOAP reciver communication channel.
    It is a syncronous communication.
    ShrtText
        Access with 'ZERO' object reference not possible.
    What happened?
        Error in ABAP application program.
        The current ABAP program "CL_PROXY_FRAMEWORK============CP" had to be
         terminated because one of the
        statements could not be executed.
        This is probably due to an error in the ABAP program.
    Error analysis
        An exception occurred. This exception is dealt with in more detail below
        . The exception, which is assigned to the class 'CX_SY_REF_IS_INITIAL', was
         neither
        caught nor passed along using a RAISING clause, in the procedure
         "XI_PROCESS_PAYLOAD" "(METHOD)"
            The reason for the exception is:
        There was an attempt to access a component using a 'NULL' object
        reference (points to nothing).
        An object reference must indicate an object (an instance of a class),
        before it can be used to access components.
        Either the reference was never set or it was set to 'NULL' using a
        CLEAR statement.
    Trigger Location of Exception
        Program                                 CL_PROXY_FRAMEWORK============CP
        Include                                 CL_PROXY_FRAMEWORK============CM011
        Row                                     46
        Module type                             (METHOD)
        Module Name                             XI_PROCESS_PAYLOAD
    I think this error is coming while sending the response..can anybody tell me how to correct this error...
    Thanks in advance...

    No in the adapter monitoring...
    It shows the messages for all other adapters...
    But there is not even a single processing message for this SOAP communication channel...it only shows active..that means I think there is no processing of messagethrough this ..is it ?...but why not there is any error in the SXMB_MONI..
    Earlier it was giving an error saying the proxy authentification required..but that doesn't work...now I have removed the proxy settings ..and it takes the program to dump..

  • Invalid content type for SOAP: TEXT/HTML:communication channel modification

    Hello ,
    While delivering an async message from XI to thirdparty, getting an error 'invalid content type for SOAP: TEXT/HTML' in the RWB/adapter engine
    I need to modify Module tab for MessageTransformBean / content type as text/html.
    Can anyone tell me how to do this in SOAP communication channel?
    Thanks in advance

    Hi,
    Thanks for ur help...
    I've tested with soapUI and it is working fine. When I send the data from soapUI , it is reaching to third party and I get response as 'success' So the url is also fine.
    The same data when XI is sending it is throwing an error.
    One more thing here -- The XI server is in intranet and TP is in DMZ .... there is a firewall in between them...
    1. When I execute thr soapUI (from intranet) it is reaching to TP (DMZ)
    2. When I execute thr XI (intranet) its throwing an error.
    Is this because of firewall settings ?
    Thanks..

Maybe you are looking for

  • JIT compiler and nested classes

    Q1. how does JIT compile on fly and improve the performance ? Q2. how is system.out.println(argument) implemented in java ? is it that system is a class in which out is a static nested class and println is a static method in out?

  • Height of text object / database field

    Hello, is it possible to size the height of each field in the detail section to the height of the detail section via formula or setting? Regards

  • Apps in iTunes not synching to iPhone 4S - anyone else having this problem?

    I can download apps in iTunes, and I can download them on my phone, but I can't get them to sync between iTunes and my phone. This seems to be a recent issue, it was working OK last week.

  • Flash pro cs6 fonts not working

    I'm having problem with flash cs6 after I installed flash builder/game sdk. It recognizes all my fonts but some of them are not visible and when I export they dont appear either. I installed and uninstalled several times from the creative cloud and p

  • Reverse a receipt with appropriate security and approval ()

    Hi, Reverse a receipt with appropriate security and approval () Need to make security and approval on making reverse receipt according to amount limit for user combined with the Reverse reason thanks