"Wrong" content in response message from Sync HTTP receiver connection

Hello,
We're trying to set up a synchronous HTTP receiver connection in a BPM to send a PO to a business partner. This partner will then respond with a response message or an error message.
Request : messagetype_request
Response : messagetype_response
Fault message: messagetype_fault
Our problem is that a sync HTTP connection apparently does not support the fault messages and therefore the errormessage, based on the messagetype "messagetype_fault" is returned into the responsemessage with messagetype "messagetype_response". This means that we can not perform any manipulation on this message due to the wrong messagetype compared to the content.
Using a switch in the BPM that checks on the existence of an X-path expression we have already splitted branches for the errorhandling and succesfull response handling.
Does anyone have an idea how to change the errormessage that is stuck in the messagetype_repsonse  format ?
Thanks in advance !

Hi Stefan,
Thanks for the answer, but this leaves me with the main question how I can change a certain message within a BPM from one messagetype to another. Normally a simple message mapping would do the job but the problem in this case is that the source message does not have the message structure that would be expected by the BPM due to the error message being received in the message that was reserved for the correct response.

Similar Messages

  • Getting the response code from a http url connection

    The following program bombs if it does not find a page
    import java.net.*;
    import java.io.*;
    public class URLReader {
    public static void main(String[] args) throws Exception {
    URL yahoo = new URL("http://www.yahoo.com/sadjhasjd.html");
    HttpURLConnection client = (HttpURLConnection) yahoo.openConnection();
    int resp_code = 0;
    if(client!=null)
    resp_code = client.getResponseCode();
    I want to get the page that the yahoo returns if it cannot get the page.... just cut and paste the above address in a web browser and see what you get.....how can i get that page back....the above thing throws an IOException...............
    thanks
    sharad

    The problem is it doesn't like .htm or .html for some reason.. I don't know this reason but somebody else might..
    Just try taking the .html off the link like this, then I'm sure you'll get the error now.
    URL yahoo = new URL("http://www.yahoo.com/sadjhasjd");
    I know it's not what you want but that is all I can offer. It seems to only look for the main index.htm(l) or welcome.htm(l) files. Sorry thats as much as I can offer on this.

  • When I connected my iPod Classic or iPhone 4S to the right side USB port of my 2012 11 inches Macbook Air (128 GB SSD), I get a message from iTunes that I connected my device to a USB 1.1 port. I checked the specs, it's a USB 3 port. What's wrong?

    When I connected my iPod Classic or iPhone 4S to the right side USB port of my 2012 11 inches Macbook Air (128 GB SSD), I get a message from iTunes that I connected my device to a USB 1.1 port. I checked the specs, it's a USB 3 port. What's wrong?

    When I connected my iPod Classic or iPhone 4S to the right side USB port of my 2012 11 inches Macbook Air (128 GB SSD), I get a message from iTunes that I connected my device to a USB 1.1 port. I checked the specs, it's a USB 3 port. What's wrong?

  • PI 7.11 - Sync HTTP receiver adapter with response XML file

    Hi
    We have a File to HTTP scenario in which we need a sync HTTP interface. We send a file to the HTTP address and receive a XML acknowledge. As I read in this forum: sync HTTP interfaces are not possible with the "standard" HTTP adapter. So I found an entry which recommended to use the SOAP adapter instead.
    I configured it:
    - Do Not Use SOAP envelope
    - modules: RequestResponseBeans, CallSapAdapter, ResponseOneWayBean
    If i use this scenario, i get following error in the RWB - Message Display Tool:
    Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageId() of an object loaded from local variable 'message1'.
    I testet this scenario using CURL and it worked properly. Should this kind of scenario work with the SOAP adapter or do I need to buy/develop an own adapter? Is in NW7.3 possible to configure sync HTTP scenarios?
    Thanks in advance
    Michael

    Hi
    actually i use a simple HTTP receiver CC with the setting "XI Payload in HTTP Body" to send a XML datafile to a webpage (java servlet). This part works fine by now. But, this servlet would also send back a status information to the state of the received datafile, which I like to catch.
    e.g. HTTP response from the servlet (catched using CURL):
    HTTP/1.0 403 Forbidden
    Server: Apache-Coyote/1.1
    X-Powered-By: Servlet 2.4; JBoss-4.3.0.GA (build: SVNTag=JBPAPP_4_3_0_GA date=200801031548)/Tomcat-5.5
    Set-Cookie: JSESSIONID=OALHMomjR9TVgIATi8SrPQ**.ajp13_ls_1; Path=/ls
    Content-Type: text/xml
    Date: Tue, 06 Mar 2012 16:19:56 GMT
    X-Cache: MISS from proxy.xxxx.com
    Via: 1.0 proxy.xxxx.com:xxxx (http_scan/4.0.2.6.19)
    Proxy-Connection: close
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><!DOCTYPE transportordersfromls [ <!ELEMENT transportordersfromls (userid, clntid, msgid, (transportorderfromls+ | error))> <!ATTLIST transportordersfromls vers CDATA #REQUIRED> <!ELEMENT userid (#PCDATA)> <!ELEMENT clntid (#PCDATA)> <!ELEMENT msgid (#PCDATA)> <!ELEMENT transportorderfromls (refid, status)> <!ELEMENT refid (#PCDATA)> <!ELEMENT status (ok | error+)> <!ELEMENT ok EMPTY> <!ELEMENT error EMPTY> <!ATTLIST error reason (XMLError | SystemNotAvailable | ApplicationError | OTHER) #REQUIRED message CDATA #REQUIRED> ]>
    <transportordersfromls vers="1.0">
        <userid/>
        <clntid>XXXXX</clntid>
        <msgid>0</msgid>
        <error reason="OTHER" message="Access denied"/>
    </transportordersfromls>
    Michael

  • Response message from stored procedure

    I have created  the stored procedure(oracle)
    CREATE OR REPLACE PROCEDURE UPDATE_INSERT(sHID IN VARCHAR2,sZNAME IN VARCHAR2,sZDATE IN DATE)IS
    I NUMBER;
    BEGIN
    SELECT COUNT(HID) INTO I FROM ZSO_H WHERE HID = sHID;
    IF I > 0
    THEN
    begin
    DELETE FROM ZSO_H WHERE HID = sHID;
    end;
    END IF;
    INSERT INTO zso_h VALUES(sHID,sZNAME,sZDATE);
    commit;
    END UPDATE_INSERT;
    It's proxy to jdbc synchronous scenario.
    I can see data saved in the table, and sucessfull in communication channel monitoring.
    but sxmn_moni, get error,(SAP system)
    <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
    sxmb_moni in XI
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns0:t002_ora_response xmlns:ns0="http://topfine.com/proxy">
      <st3_response />
      <st3_response />
      <st3_response />
      <st3_response />
      <st3_response />
      </ns0:t002_ora_response>
    but structure is
       <st3_response>
          <insert_count/>
          <update_count/>
       </st3_response>
    and the db request message is
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:t002_ora xmlns:ns0="http://topfine.com/proxy">
    - <st3>
    - <spName action="execute">
      <table>UPDATE_INSERT</table>
      <SHID type="VARCHAR">21</SHID>
      <SZNAME type="VARCHAR">21</SZNAME>
      <SZDATE type="DATE">2010-11-21</SZDATE>
      </spName>
      </st3>
    - <st3>
    - <spName action="execute">
      <table>UPDATE_INSERT</table>
      <SHID type="VARCHAR">22</SHID>
      <SZNAME type="VARCHAR">22</SZNAME>
      <SZDATE type="DATE">2010-11-21</SZDATE>
      </spName>
      </st3>
    then how to get update_count in  response message?
    Edited by: Shen Peng on Nov 21, 2010 8:35 AM

    Can you jus let know totally how many are getting Updated and inserted for the Proxy u sent....I am guessin the response from ur DB is
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns0:t002_ora_response xmlns:ns0="http://topfine.com/proxy">
    <st3_response />
    <st3_response />
    <st3_response />
    <st3_response />
    <st3_response />
    </ns0:t002_ora_response>
    So probably four records are getting updated or inserted...
    Check this blog may be helpful
    /people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response

  • How to save the Response message from SOAP adapter

    Dear Friends,
       I am sending the FIle details webserver.here sender is FILE adapter and receiver is SOAP adapter.
    FIle to SOAP working successfully, but I need response from SOAP.
    Sender QoS is BE, so the response is coming to XI, but in SXMB_MONI it is showing DO YOU WANT TO SAVE IT or DISPLAY IT.
    my requirement is response message is directly updated in XI system.
    For response Can I use BPM or which method I need to use.
    Please suggest me  how to do the resonse message(SOAP to FILE).
    Regards,
    Shalini Shah.

    Sender QoS is BE,
    File adapter does not support sync communication. Therefore the scenario won't work as it is.
    What are you planning to do with the response? If you want to process is further, then:
    1. One way without BPM would be use of adapter module.
    File - RFC - File without a BPM - Possible from SP 19.
    2. Or you may use BPM with Async Sync bridge
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Regards,
    Prateek

  • No response message from web cache

    Hi,
    We are facing a strange and serious problem with our Oracle infrastructure. We have running a web application that uploads files to the database server. But we have found out that if we try to upload a ZIP file (in the application, uploading a ZIP file means that it uncompresses the ZIP file and copy the zipped files one by one to the database server, therefore this operation can take a while), it comes an error message of the type:
    No Response from Application Web Server
    We didn't find any especial configuration for a timeout in the application server and http server. We also checked the timeout for the web cache that we also use, and seems to be alright (very much longer that the time to crash). When using the application without going through the Web Cache (calling directly the application server), it works well!!! On the other hand, we thought in a relation between the size of the files and the effort of the application to process them and the "No response", but we have successfully uploaded other documents bigger than the ZIP file. When checking the LOG files of the Web Cache and the Apache and application server, we find the following:
    Webcache
    [06/Dec/2006:13:47:18 +0100] [internal 11396] [ecid: 20482077186490,0] unknown internal error
    [06/Dec/2006:13:47:19 +0100] [req-info] [ecid: 13486197309440,0] [client: 139.191.202.56] [host: odin.jrc.nl] [url:/doma/DocumentUploadFile]
    [06/Dec/2006:13:47:19 +0100] [warning 14013] [ecid: 13486197309440,0] Send request to origin server times out.
    [06/Dec/2006:13:47:19 +0100] [error 11364] [ecid: 13486197309440,0] Network error response is returned.
    [06/Dec/2006:13:47:19 +0100] [error 11385] [ecid: 13486197309440,0] The request fails because the service is unavailable.
    [06/Dec/2006:13:47:33 +0100] [req-info] [ecid: 20464897332666,0] [client: 139.191.207.213] [host: odin.jrc.nl:443] [url: /_oracle_http_server_webcache_static_.html]
    [06/Dec/2006:13:47:33 +0100] [internal 11396] [ecid: 20464897332666,0] unknown internal error
    [06/Dec/2006:13:47:48 +0100] [req-info] [ecid: 20447717478842,0] [client: 139.191.207.213] [host: odin.jrc.nl:443] [url: /_oracle_http_server_webcache_static_.html]
    [06/Dec/2006:13:47:48 +0100] [internal 11396] [ecid: 20447717478842,0] unknown internal error
    Apache
    [Wed Dec 6 13:47:19 2006] [error] [client 139.191.207.213] [ecid: 15272903704576,1] MOD_OC4J_0080: After calling Apache's ap_bwrite(), got an return value: -1 and the client could have aborted in the middle of receiving the chunk data.
    [Wed Dec 6 13:47:19 2006] [error] [client 139.191.207.213] [ecid: 15272903704576,1] MOD_OC4J_0058: Failed to handle response chunk data passed in from oc4j via ajp13.
    [Wed Dec 6 13:47:19 2006] [error] [client 139.191.207.213] [ecid: 15272903704576,1] MOD_OC4J_0035: After handling ajp13 response message, got an invalid value: -2.
    [Wed Dec 6 13:47:19 2006] [error] [client 139.191.207.213] [ecid: 15272903704576,1] MOD_OC4J_0121: Failed to service request with network worker: ODIN_HOME_15 and it is not recoverable.
    [Wed Dec 6 13:47:19 2006] [error] [client 139.191.207.213] [ecid: 15272903704576,1] MOD_OC4J_0013: Failed to call destination: ODIN_HOME's service() to service the request.
    [Wed Dec 6 13:47:20 2006] [error] [client 139.191.207.213] [ecid: 15187004358656,1] MOD_OC4J_0080: After calling Apache's ap_bwrite(), got an return value: -1 and the client could have aborted in the middle of receiving the chunk data.
    [Wed Dec 6 13:47:20 2006] [error] [client 139.191.207.213] [ecid: 15187004358656,1] MOD_OC4J_0058: Failed to handle response chunk data passed in from oc4j via ajp13.
    [Wed Dec 6 13:47:20 2006] [error] [client 139.191.207.213] [ecid: 15187004358656,1] MOD_OC4J_0035: After handling ajp13 response message, got an invalid value: -2.
    [Wed Dec 6 13:47:20 2006] [error] [client 139.191.207.213] [ecid: 15187004358656,1] MOD_OC4J_0121: Failed to service request with network worker: ODIN_HOME_15 and it is not recoverable.
    [Wed Dec 6 13:47:20 2006] [error] [client 139.191.207.213] [ecid: 15187004358656,1] MOD_OC4J_0013: Failed to call destination: ODIN_HOME's service() to service the request.
    ODIN_HOME/log/ODIN_HOME_default_island_1
    139.191.207.211 - - [06/Dec/2006:15:58:57 +0100] "GET /doma/DoMaBlobInterface.jsp HTTP/1.1" 200 3032
    139.191.207.211 - - [06/Dec/2006:15:59:03 +0100] "GET /doma/DoMaBlobInterface.jsp HTTP/1.1" 200 3032
    139.191.207.211 - - [06/Dec/2006:15:59:08 +0100] "GET /doma/DoMaBlobInterface.jsp HTTP/1.1" 200 3032
    139.191.207.211 - - [06/Dec/2006:15:59:13 +0100] "GET /doma/DoMaBlobInterface.jsp HTTP/1.1" 200 3032
    139.191.207.211 - - [06/Dec/2006:15:59:18 +0100] "GET /doma/DoMaBlobInterface.jsp HTTP/1.1" 200 3032
    139.191.207.211 - - [06/Dec/2006:15:59:23 +0100] "GET /doma/DoMaBlobInterface.jsp HTTP/1.1" 200 3032
    139.191.207.211 - - [06/Dec/2006:15:59:28 +0100] "GET /doma/DoMaBlobInterface.jsp HTTP/1.1" 200 3032
    139.191.207.211 - - [06/Dec/2006:15:59:33 +0100] "GET /doma/DoMaBlobInterface.jsp HTTP/1.1" 200 3032
    139.191.207.211 - - [06/Dec/2006:15:59:40 +0100] "GET /UserMgmt/home.jsp HTTP/1.1" 200 789
    Could it be that the Web Cache sent a request to the application server and because of an unknown reason, it received a response that made it to show the "No response" message. Or could it be that the Web Cache is sending request and not receiving any response from the application server, or that there is some timeout configuration that we didn't find??? Please, help!!!!
    Thanks in advance,
    Luis

    We found the core issues was with the number of database connections that were created during load testing. Refactoring the code to reuse the database connections fixed this issue.
    Thanks,
    Dom

  • How to handle multiple types in response message in Sync interfaces

    Dear all,
      I have the following case. A synchronous scenario that the response can be one of two possible external XSDs.
    (i.e. one request that the response is eithe a succes message or error message). Both success or error response are external defintions (xsd). What is the best way to handle such a case? Do we need to have a BPM to process the request and how? My understanding is that multi-mapping and enhanced Interface determination only works for asynch interface, right? Any help will be appreciated.
    S.Socratous

    Yes I have thought of that but the two responses are from external xsd definitions with different namespaces and therefore I can not create such a datatype. As I mention above the web service gets a request and then has two possible replies (the two different xsd). Thanks.

  • How to send response message from Java mapping class? Please help!

    Hi Experts,
      I have a sync scenario
              -Req-->  -
    >
    SOAP           XI       RFC
              <Res--     <-----
      The Req message contains:
      <Order>
           <Orderid>100</Orderid>
           <Desc>Extrenal Order</Desc>
           <Qty>2500</Qty>
      </Order>
      Response message is:
      <Log>
         <LogTxt>Qty value cannot be more than 3 chars</LogTxt>
      </Log>
      In the XI I have to validate the input request message using a schema. For this I am writing a java mapping program using aii_map_api.jar.
    My requirement is that If the input message schema validation fails then I want to send a response message back to sender.
      How can I send a response message back to the sender in java mapping program?
    Kindly help with sample code example.
    Thanks
    Gopal

    Hi,
    First, I think PI 7.1 has this functionality and perhaps it comes in a SP for PI 7.0 and XI 3.0.  So first have a look at that before creating custom development.
    Second, if you use the java mapping, you will only have access to a request or response message.  I would advise using a custom java module in the module processor and insert this message in the sender communication channel.  This will allow you to validate request and send a response.
    Regards,
    Yaghya

  • Monitoring of messages sent by HTTP Receiver

    Hello,
    is there any possibility to monitor HTTP requests sent by the HTTP receiver? I would like to check the header settings of the HTTP request. Thank you.

    Hi Florian,
       Do you mean Messages sent by HTTP sender?
    YOu can monitor messages in SXMB_MONI transaction in the abap stack of the XI system.
    Not sure, if you meant anythig else.
    Regards,
    Ravi

  • Messaging only syncs on wifi connection (5800XM)

    For some unexplained reasons, nokia messaging only syncs on my home wifi connection and very randomly through my 3G connection. I suspect that nokia messaging never opens a 3G connection and only syncs if another software is already connected...
    Erik.

    BUMP

  • Messages from iMac Not Received by Recipient?

    I just installed Mavericks and tried out the Messages app.  It took a few minutes, but when I send a messages from the iMac it shows up on my iPhone and iPad as I would expect it to.  But it is not being received by the recipient.  I've looked at both system and message preferences and don't see anything that would fix the problem.
    When my wife sends me a message it shows up on my iPhone, iPad, and iMac.  But I've sent messages to her and a friend, and neither have received them.
    Any ideas?  Thank you very much.

    Never mind.  I guess Mavericks just needed some time to warm up.  Working now.

  • Pulling messages from a mailbox - Unity Connections 8

    Hello,
    I have a teacher with 20 or so messages from a crazy parent for I need to archive for potential legal reasons.  How can I export a single mailbox and save it as a bunch of audio files?  I've seen documention on export messages, but that was directed at people migrating or upgrading. 
    Thanks in advance.
    -Ian

    COBRAS is normally the tool we use to export mailboxes; however, that will store it in a Microsoft Access database. Your best bet is likely to enable IMAP access for that subscriber and just add the account to Outlook/Thunderbird.

  • IPod Touch 'Invalid Response' message from iTunes on Vista

    Just install iTunes 8.2 on my new ACER Laptop running Vista Home Edition.
    When iPod touch connected to Laptop iTunes throws up the follow error message:
    'iTunes could not connect to the iPod device-name because an invalid response was received from the device' I have tried reinstalling iTunes. All the services are running. Vista sees the device and I can browse the content with explorer, but iTunes does not.
    Any ideas?

    Hi,
    Are you seeing any other messages in iTunes?
    Try the general tips in this article: http://support.apple.com/kb/HT1852
    Also, make sure the iPod touch is directly connected to a high-speed USB2 port on the PC, using the cable that came with it.
    -Jason

  • Response message from CIDX Adapter to IDOC Adapter

    Hi Experts,
                  I have created scenario for "SAP IDOC - PI - CIDX" (OrderCreate_Request)
                  and also need to create respose message for "CIDX - PI - SAP IDOC(OrderCreate_Response)
               Integration Repoistery
                  "SAP IDOC - PI - CIDX" 
                       1,Imported idoc metadata from sender sap r3 .
                       2,Created External Definition and imported OrderCreateV202.xsd from receiver party.
                       3, Done message mapping                 
                       4, Done Interface Mapping
               Integration Directory
                          Under PO_Create(Scenario Name)
                     1,Assigned Business System for Sender SAP R3                 
                     2, Configured Party For receiver Sytem (CIDX)
                     3, No need Communication Channel for Sender IDOC
                     4, Configured Communication Channel for receiver(CIDX Adapter) 
                     5, No need ender Aggrement for Sender               
                     6, Configured Receiver Determination
                     7, Configured Interface Determination
                     8, Configured Receiver Aggrement.
                My Questions are 
                     1,do i need to create new namespace for response msg
                     2,This scenario,sender is 3rd part(cidx) and receiver is sap r3
                     3,Do i need to create again all steps in Integration Repoiestry.
                     4,Can you send me Wat are all the steps involved in integration directory.
                       (ex.ineed to config comm. channel for both)
         Can anybody help me out?
    Thanks

    Sender QoS is BE,
    File adapter does not support sync communication. Therefore the scenario won't work as it is.
    What are you planning to do with the response? If you want to process is further, then:
    1. One way without BPM would be use of adapter module.
    File - RFC - File without a BPM - Possible from SP 19.
    2. Or you may use BPM with Async Sync bridge
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Regards,
    Prateek

Maybe you are looking for

  • XML Publisher Bursting

    Hi All, I want to generate xmlp report with bursting email. For this I created 1.  data template file   <dataTemplate name="XXX_XXX_XX" version="1.0">   <dataQuery> <sqlStatement name="Q_MAIN"> <![CDATA[ select * from XXXXXX   ]]>   </sqlStatement>  

  • ITunes doesn't recognize iPod Touch

    I doubt that this is a Touch-specific question, but that's what I have. A couple weeks ago, I reinstalled 10.4. Since then, iTunes has not recognized my iPod touch when I plug it in. Any ideas? Thanks, Max

  • User Events Generation - TicTacToe

    Hey everybody, In order to get a better understanding of how the event structures are used, I have been playing around with making a tic tac toe game (ironically, i did not know that was a coding challenge until I just started this thread).  Anyways,

  • Printing a pdf file/drawing to an exact scale????

    I've received some drawings of buildings we are building from our contractor and would like to print them "to scale".  The drawing properties show the drawings to be on 24 x 18 inch paper and my printer can only handle 11 x 17 inch paper.  "Fit to pr

  • Lead to Opportunity Error

    Hi all, When I tried to Qualify the lead to opportunity I was getting error like