Webservice to Idoc Scenario

Hi,
1. I need to create a interface where a webservice call will be made to XI and XI will create an Idoc on SAP and sent back a response message.  The interface is working fine where the webservice call is creating the Idoc but I am unable to get a response back for the Webservice call.  Is there any way to do this, without using a BMP?
2. I have been looking for BLOG's or examples of Idoc to a Webservice, using the Receiver SOAP adapter and Webservice to Idoc, using the Sender SOAP adapter but haven't found any.  Please let me know if you know of such documents.
Thanks
Rudi

Hi Rudi,
using IDoc u can't get the response. u can get only acknowledgement in case of idoc.And the rcvr SAP system will send the Idoc acknoledgement to XI system ,not to the sender system.
So in ur case i think u have to go for 2 diffrent scenario..
SOAP to IDoc
IDoc to SAP.
or u can do 1 thing.. using BPM u can send the acknowledgement from XI to sendersystem incase if u need to only route the acknowledgement to sender sys.
Regards
Biplab

Similar Messages

  • Error in Webservice to IDoc Scenario

    Dear All,
    Iam dealing with Web Service to IDoc Scenario . I have used Exactly Once in the Quality Of Service (QOS) in sender communication channel .
    I got the following error:
    ResponseCode: 200 (OK)
    content-type:text/xml;charset=utf-8
    content-length:458
    x-xmb_ws_encoded:version=1%2e0&Sender.Party=%3a%3a&Sender.Service=bs_kalyan_ws&Interface=urn%3asap-com%3adocument%3asap%3aidoc%3amessages%5eDEBMAS%2eDEBMAS05&Receiver.Party=%3a%3a&Receiver.Service=bs_kalyan_ws&To.Interface=htttp%3a%2f%2fkalyan%5emi_kalyan_ws&MessageClass=SE&ProcessingMode=S&ConversationId=&MessageId=30B49C89-9E75-DA40-B1D8-C5416903FE7A&RefToMessageId=A1A63B08-51B6-524A-8386-98235D7A7834&QualityOfService=BestEffort&TimeSent=2007-08-30T05%3a58%3a41Z
    soapaction:'http://sap.com/xi/XI/Message/30'
    content-id:<[email protected]>
    server:SAP Web Application Server (1.0;640)
    <?xml version="1.0" encoding="utf-16"?>
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP:Body>
        <SOAP:Fault>
          <faultcode>SOAP:Server</faultcode>
          <faultstring>System Error</faultstring>
          <detail>
            <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
              <context>
              </context>
              <code>IDOC_ADAPTER.ATTRIBUTE_BE_NOT_SUPP</code>
              <text>Only asynchronous processing supported for IDoc adapter outbound processing</text>
            </s:SystemError>
          </detail>
        </SOAP:Fault>
      </SOAP:Body>
    </SOAP:Envelope>
    Please do the needful.
    Thanks in Advance,
    Sarat

    Hi Jai Shankar,
    Ya what you told is correct just see the message that i got in sxmb_moni :
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:ReliableMessaging xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:QualityOfService>BestEffort</SAP:QualityOfService>
      </SAP:ReliableMessaging>
    But in ID part in Sender side communication channel QOS is EO only. How can this happen ?
    Regards,
    Sarat

  • Idoc to Webservice to Idoc scenario- is this possible without BPM?

    Hi guys
    We have a scenario where we need to send an IDoc to webservice and get the response back into another IDoc.
    Questions:
    1. Is this scenario possible without a BPM? or do we need to use BPM (Sync-Async bridge).
    2. Is there a Async to Sync bridge in BPM?
    3. How do I use this bridge in my scenario and customize it?
    Appreciate your quick response
    Regards
    Satya

    Hi Satya,
    >>1. Is this scenario possible without a BPM? or do we need to use BPM (Sync-Async bridge?
    You need BPM
    2. Is there a Async to Sync bridge in BPM?
    You dont need a "bridge", just take a synchronous send step
    3. How do I use this bridge in my scenario and customize it?
    Map the IDoc to request container and the response container to the second IDoc.
    Your need 4 container, receive step, transformation, send step (synchronous), transformation, send step (asyncronous)
    Regards,
    Udo

  • Tool required to test webservice regarding  Webservice to IDoc

    Dear All,
    Iam dealing with Webservice to IDoc Scenario . I require a tool to test my Web service . Please Do the needful
    Thanks & Regards,
    Kalyan

    Hi kalyan,
    u can test using "Altova XML spy" or "Soapui".
    Download  "Altova XML spy"  from the below link.
    http://www.altova.com/download/xmlspy/xml_editor_enterprise.html
    <u><b>Using XML SPY:</b></u>
    Now open XML spy->go to FILE->OPEN->(select ur WSDL)->click on text(see below)->goto SOAP(see above)->create new SOAP request->ok->select MI->ok...
    now u will get soap request in XML format.Now again goto SOAP->send request to server.if evrything is correct ...wait smtime u will get ur desire output.
    Download SoapUi here below
    http://sourceforge.net/projects/soapui/
    <u><b>Using SoapUi:</b></u>
    Open SoapUi....goto FILE->New WSDL Project->give any suitable name and browse the WSDL->Now drill down ->u will see  "request1"->double click on that(here request gets create automatically.->click on the small green triange shape icon above.
    Regards
    biplab
    <i>**reward with points if helpful</i>

  • SOAP-IDOC scenario- HTTP 500 error

    Hi All,
    We are working on SOAP- IDOC scenario.
    We are getting a request from Sender which should come via Reverse Proxy server to PI.
    We generated WebService on PI and the URL(X) is shared with Proxy team, wherein they mapped that URL (X)with other URL(Y). This URL (Y)is shared to sender and he is trying to send some requests now.But below is the error message.
    [09/02/13 15:26:12] ID=app01 (trace) Delivered HTTP Direct outbound message, containing details...
            Destination URL=https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
            User=ZZZZZZZ
            Status Code=500
            [req]Content-Length=7148
            [req]X-HTTPS-ClientAuthCertificate=/AAAAAAAAAAAAAAAA
            [req]X-HTTPS-ClientAuthCertificateForm=PKCS12
            [req]Authorization=Basic RjRGSU5GWEQxMDA6c3luZ2VudGEx
            [req]X-HTTPS-CACertificatePath=/BBBBBBBBBBBB
            [req]X-HTTPS-PrivateKey=/CCCCCCCCCCCCCCCCC
            [req]JMSReplyTo=sga.ws.test.response
            [req]messageuniqueid=6d65d89f-ffff-ffc0-00ee-3aa7032c3299
            [req]adpnextmlemarkersequence=3
            [req]X-HTTPS-PrivateKeyPassword=ZZZZZ[maid
            [req]Content-Type=text/plain
            [resp]content-type=text/xml; charset=utf-8
            [resp]set-cookie=saplb_*=(SERVERNAME)226695750; version=1; path=/
            [resp]set-cookie=saplb_*=(SERVERNAME)226695750; version=1; path=/
    Any Clue

    Hi,
    Check this
    HTTP 500
    o Internal error in J2EE
    o Check SAP Note 807000 - Http requests are not fully read
    after timeout
    Regards,
    Sreenivas

  • SOAP to IDOC scenario:  java.lang.NullPointerException

    Our trading partners currently post their xml files directly to our Integration Engine, where they are converted to idocs and posted to ECC.  I am now trying to change this scenario to a SOAP to IDoc scenario so that we can process the files through the Adapter Engine using HTTPS.  But I am running into an error when trying to post an xml file and I'm wondering what I am missing.
    My SOAP communication channel is configured as follows:
    Transport protocol:  HTTP
    Message protocol:  SOAP 1.1
    Adapter engine:  Integration Server
    HTTP Security Level:  HTTP
    Do Not Use Soap Envelope:  *Checked*
    Default interface and namespace have been specified
    QoS:  Exactly Once
    If I post an xml file to this channel using the RWB test tool, I receive message java.lang.NullPointerException.  However, I can find the message via the Message Monitoring in the RWB, with versions for both the AE and IE, each with status Successful.  The idoc is created and successfully posted to ECC.
    If I post this same file to the same URL using a third-party tool, I get the same error message along with more details (listed below).  Futhermore, a message does *not* show up in the RWB and thus does not get converted to an idoc and posted to ECC.
    Any ideas???  Thank you.
      <?xml version="1.0" ?>
    - <!--  see the documentation
      -->
    - <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    - <SOAP:Body>
    - <SOAP:Fault>
      <faultcode>SOAP:Server</faultcode>
      <faultstring>Server Error</faultstring>
    - <detail>
    - <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
      <context>XIAdapter</context>
      <code>ADAPTER.JAVA_EXCEPTION</code>
    - <text>
    - <![CDATA[
    java.lang.NullPointerException
         at com.sap.aii.messaging.net.MIMEInputSource.decodeContentType(MIMEInputSource.java:425)
         at com.sap.aii.messaging.net.MIMEInputSource.readBody(MIMEInputSource.java:323)
         at com.sap.aii.messaging.net.MIMEServletInputSource.parse(MIMEServletInputSource.java:58)
         at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:381)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
      ]]>
      </text>
      </s:SystemError>
      </detail>
      </SOAP:Fault>
      </SOAP:Body>
      </SOAP:Envelope>

    Here's the message log found in End-to-End monitoring from RWB test post (different from third-party tool message):
    java.lang.NullPointerException
         at com.sap.plaf.frog.FrogScrollPaneUI$1.propertyChange(FrogScrollPaneUI.java:113)
         at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
         at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
         at java.awt.Component.firePropertyChange(Unknown Source)
         at javax.swing.JScrollPane.setHorizontalScrollBar(Unknown Source)
         at javax.swing.plaf.basic.BasicComboPopup.createScroller(Unknown Source)
         at javax.swing.plaf.basic.BasicComboPopup.<init>(Unknown Source)
         at com.sap.plaf.frog.FrogComboPopup.<init>(FrogComboPopup.java:21)
         at com.sap.plaf.frog.FrogComboBoxUI.createPopup(FrogComboBoxUI.java:410)
         at com.sap.plaf.frog.FrogComboBoxUI.installUI(FrogComboBoxUI.java:178)
         at javax.swing.JComponent.setUI(Unknown Source)
         at javax.swing.JComboBox.setUI(Unknown Source)
         at javax.swing.JComboBox.updateUI(Unknown Source)
         at javax.swing.JComboBox.init(Unknown Source)
         at javax.swing.JComboBox.<init>(Unknown Source)
         at com.sap.jnet.clib.JNcToolBar$ComboBox.<init>(JNcToolBar.java:64)
         at com.sap.jnet.clib.JNcToolBar.addComboBox(JNcToolBar.java:192)
         at com.sap.jnet.clib.JNcAppWindow.newUI(JNcAppWindow.java:607)
         at com.sap.jnet.clib.JNcAppWindow.newData(JNcAppWindow.java:1097)
         at com.sap.jnet.JNetData.createGraphFromDOM(JNetData.java:512)
         at com.sap.jnet.JNetData.load(JNetData.java:709)
         at com.sap.jnet.JNetApplet.initJNetApplet(JNetApplet.java:524)
         at com.sap.jnet.JNetApplet.access$000(JNetApplet.java:40)
         at com.sap.jnet.JNetApplet$1.run(JNetApplet.java:265)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

  • Webservice to IDOC : Bridge sync/async

    Hi,
    I have a simple scenario where we send data synchronously via webservices and idoc would be created in target system.
    So I need to create a sync/async bridge.
    But i have a doubt in first receiver step and its properties:
    Syncronous interfaces --> it must be a SYNC and abstract message interface
    Message --> It must be an element of container. When i create element in container, only abstract ASYNC message interface could be selected.
    Then,  with this configuration,  error  " Message to be received and synchronous interface do not have identical types " is returned.
    How to do it?
    Thanks, in advance
    Carme.

    Hi Carme,
    Just make sure you are making a SYNC/ASYNC bridge in BPM as explained in the following doc's
    saptechnical. com/Tutorials/XI/SYNCASYNC/Page2.htm
    Alternatively you can use the BPM pattern; BpmPatternSyncAsyncBridge for the same.
    http://help.sap.com/saphelp_nw04/helpdata/en/83/d2a84028c9e469e10000000a1550b0/frameset.htm

  • SOAP to IDoc scenario without BPM

    Hi,
    I have 2 scenario's
    1) IDoc-SOAP - -response -- IDoc scenario -- (have found some links  to do it without BPM)
    2) SOAP -- RFC request -- RFC response -- e-mail (no links found)
    how can i achive both these scenario's without BPM. Currently i have these 2 scenarios in our 7.1 version with BPM. but our requirement is to migrate this scenario into 7.4 without BPM(No PO).
    please help us to achive this scenario without BPM.
    Your help is highly appreciated.
    thanks,
    Praveen

    Hi Kiran,
    Could you please let us know the exact requirement. How do you want to send the response back to IDOC?
    ASync - Sync Bridge with IDOC sender is not possible in PI 7.0.
    If It is something like IDOC --> SOAP --> IDOC , And If the SOAP request is small then you can use SOAP Lookup in IDOC to IDOC Scenario.
    In The mapping You can do a lookup and get the response from SOAP(Webservice) and map that to your Target IDOC.
    This is one possible way for you without BPM in PI7.0.
    Please let me know if you need more details about this.
    Thanks
    Jyothi A

  • Error while executing a JDBC to Idoc scenario : No standard agreement found

    Hello SAP PI Gurus, 
    I am having a JDBC to idoc Scenario .And the interface is running at 10 min of duration. 
    <SAP:AdditionalText>No standard agreement found for ,
    BS_EXT_CTBSREPDB, , BS_ERPQAS_QE1_320, http://XYZ.com/FI/FI_FI_01/Charges, FIDCC2</SAP:AdditionalText>.
    While i test the configuration...i get an error in reciever agreement as mentioned above.
    Can you pls help me in resolving this issue.
    Regards,
    Ravi

    Hi,
        I think the problem is with namespace....for IDOC the namespace will be "urn:sap-com:document:sap:idoc:messages"...but in your case it is different.....i.e http:....etc.....please check whether you 've used the same IDOC withe above mentioned namespace in all the configuration objects like interface determination, receiveragreement etc.....
    Thanks
    Priyanka

  • Idoc-XI-Idoc Scenario

    Dear All,
    I am working on Idoc-XI-Idoc scenario in which I am getting ORDRSP Idoc in input. In one of its segment I am getting value as either A or B. If value is coming as A in input then in the output we want PORDCR101 Idoc but if we have B as value in the source idoc then we should have multiple PORDCR102 Idocs ie for each line item there will be different idocs.
    Please guide me on how we can implement BPM in this scenario as required two MM i have created and they are working fine.
    Regards,
    NJ

    Hi,
    If value is coming as A in input then in the output we want PORDCR101 Idoc but if we
    have B as value in the source idoc then we should have multiple PORDCR102 Idocs ie for
    each line item there will be different idocs.
    For Source = A:
    SourceField----
                          -----equalS ----ifwithoutElse ----then Constant(blank) ---> PORDCR101
    Constant(A)---
    Assuming that A in input then in the output we want PORDCR101 Idoc means that you need only one occurence of the IDOC
    For Source = B:
    SourceField----
                          -----equalS ----ifwithoutElse ----then LineItem ---> PORDCR102
    Constant(B)---
    Regards,
    ABhishek.

  • XI 3 File to IDoc scenario - Still referencing Old Logical system

    Hi
    Dont know if you can help. I have a file to idoc scenario  using XI 3 to R/3 4.6c system.
    I had the interface working from a third party system XMLHUB to SAP R/3. The Logical system name for the XMLHUB was XMLHUB01 in the SLD which I have set up as a partner profile in R/3. I have recently changed the logical system name to XMLHUBDEV01 in the SLD and created that logical system in R/3 and changed the partner profile to XMLHUBDEV01.
    Unfortunately in the sender information of the IDoc the partner number is still XMLHUB01 and not XMLHUBDEV01. I don't understand where this partner is sent from to get into the control record of the IDoc.
    I have cleared the SLD cache in both the Repository and the directory. Is there somewhere else I should be looking? Any help would be appreciated.
    Regards
    Daniel

    hi daniel...
    this thread wud answer ur query....
    Re: IDOC Payload
    regards..
    vishal

  • Issue in IDOC-XI-IDOC scenario

    Hi,
    We are facing a strange issue in an IDOC-XI-IDOC scenario. We are using a SAX parser to parse the code here.
    The error we are getting in 'sxmb_moni' is
    <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/abc/def/dev/sapxi/clfmas/Idoc2IdocMapperCLFMAS</SAP:P1>
      <SAP:P2>java.lang.RuntimeException</SAP:P2>
      <SAP:P3>For input string: ""</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>During the application mapping com/abc/def/dev/sapxi/clfmas/Idoc2IdocMapperCLFMAS a java.lang.RuntimeException was thrown: For input string: &quot;&quot;</SAP:Stack>
    The strange thing is, when I restart the message, it gets processed successfully. Also, when I copy the payload, and test the same on a different environment, it gets processed successfully.
    Would really appreciate some pointers here!
    cheers,
    Prashanth

    Hi,
    This related to mapping error check it once again.Check in Interface mapping Test tab.see the result.check the sxmb_moni and get the source of mapping come back to interfcae mapping and test .
    See the below links
    Hi I got EXCEPTION_DURING_EXECUTE in RWB->Message Monitoring
    I am getting MAPPING  EXCEPTION_DURING_EXECUTE
    EXCEPTION_DURING_EXECUTE- Error in Mapping. Doubt about IE and AE
    EXCEPTION_DURING_EXECUTE
    Mapping problem - EXCEPTION_DURING_EXECUTE
    ERR: EXCEPTION_DURING_EXECUTE while using FILE CONTENT CONVERSION
    Regards
    Chilla..

  • Error in IDOC-XI-IDOC scenario

    Hi folks,
    Let me explain the issue. This is an IDOC-XI-IDOC scenario. No BPM’s involved. SAX parsing used to parse the IDOCs.
    We had around 35000 IDOCs coming in from Brazil system, and they are all stuck in SMQ2 (Inbound queue) in XI. The first message of every queue is in SYSFAIL status, with the status text as <b>‘Problems found during the EXPORT to specified keyin table’</b>.
    When I try to execute the queue manually, nothing happens, but an error comes at the bottom of the screen, saying <b>‘Function module does not exist or EXCEPTION raised’</b>.
    I checked the dump on ST22, and it shows 130 runtime errors yesterday. The name of the runtime error is<b> ‘EXPORT_TABLE_UPDATE_CONFLICT’</b>.
    In the ‘what happened?’ part of the dump, it says ‘Error in ABAP application program. The current ABAP program <b>“CL_XMS_PERSIST=============CP”</b> had to be terminated because one of the statements could not be executed. This is probably due to an error in the ABAP program.’
    Even SXMB_MONI is not opening (for yesterday’s date). When I try to open it, it hangs for a long time, and finally opens an ‘ABAP Runtime Errors’ page with the runtime error titled as<b> ‘SNAP_NO_NEW_ENTRY’</b> and the error short text as ‘ Runtime error: Unable to write short dump’
    Please advise.Thanks a ton!
    cheers,
    Prashanth

    Hello Prashanth,
    First of all this is an XI issue and belongs in that forum.
    The export problem is typical to situations where your XI DB is out of space/out of table space. Please check with your Basis team.
    ‘Function module does not exist or EXCEPTION raised’- This message is a standard ABAP RFC message. For an RFC function call to succeed, you need the same RFC function to exist on both systems. However this is probably not the case- it is more likely that you're out of DB space as I already wrote.
    Good Luck (don't forget to award points)
    Ofer

  • Message has error status at outbound side File To Idoc Scenario

    hi ,
    In my File to Idoc scenario , when i go to sxmb_moni , i found that its showing red flag at Outbound Status Tab and showing message "Message has error status at outbound side".
    When i go to IDX5 and and select my idoc and click on Transaction Id it shows "Password logon no longer possible - too many faile" .
    Please suggest what may be the problem ?
    Regards,
    Rohit

    1. First check the RFC destination name used in receiver Idoc adapter communication channel.
    2. As i said earlier, in sm59 transaction in XI gui, u can check same rfc destination under type 3. There check the logon credentials and the username.
    3. Now goto the R3 system GUI and check in su01 that same user is locked or not. If locked unlock it.
    4. And if u change the password of that user, then do the similar change in XI -> sm59 -> rfc destination logon credential
    Regards,
    Prateek

  • Deleting data from a table(JDBC to IDOC scenario).

    Hi,
    For JDBC to IDOC scenario, the requirement is as explained below:
    1: There are 2 tables-> GDDB and CHANGES
    2: Poll the CHANGES table every 30 mins everyday.
    3: a)Publish the records for which the 'published' flag status is 'N'
       b)Update the status as 'Y' after publishing.
    4: On the first day of every month, delete the records from the CHANGES table if the record is 3 months old and 'published' status is 'Y'
    I would like to know how  update and delete can be done using one JDBC adapter?
    Regards,
    Vishal.P.Kulkarni

    Hi,
    update:
    there is a field in the sender jdbc adapter - SQL statement for update - put it there
    delete - On the first day of every mont
    create a job on the database which will trigger the delete statement
    it does not/ should not have to be done with XI
    Regards,
    Michal Krawczyk

Maybe you are looking for