Namespace in XML Payload for HTTP Sender

Hello,
I have just configured my snychronous HTTP <--> RFC Scenario. When I want to test it with some XML payload in the HTTP testing tool I get a mapping runtime exception.
After some investigation using the test tab in the message mapping I realized that missing namespace in the XML payload caused the error. I tried to add manually a namespace to the XML and then it worked
This is very strange I though that the namespace of the sender interface is automatically added to the XML payload?
Do you have any information on this?

Hi,
U need to copy the payload from Message mapping test message tab and use that payload.
or u can use the HTTP test client for testing the same.
sample HTML code to create HTTP Client:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
You can also use the Wfetch application by Microsift for the same..
download the same from below link
http://www.iisfaq.com/Default.aspx?tabid=2975
Thnx
Chirag

Similar Messages

  • Enabling SSL for HTTP Sender Adapter

    Hi Experts,
    I'd like to have a step by step process in enabling HTTPS for Plain_HTTP Sender Adapter. I've already read the enabling HTTPS on SAP Help, but it does not provide much detail. Would the steps be the same for enabling HTTPS for Plain_HTTP Receiver which are:
    1. Install the certificates using STRUST
    2. Configure an RFC Destination using SM59
    3. Call your RFC Destination in Receiver HTTP Adapter (not valid for http sender adapter)
    The connection for setting up http is http://<hostname>:port/<path>?<query string>
    but what about https? Would it be connecting to the webdispatcher first?
    Hope you can help me,
    Regards,

    Hi,
    as HTTP Adapter is on ABAB stack you will need to configure with STRUST.
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
    The URL should start then with https, but you could test with this sample client:
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    Regards
    Patrick

  • Malformed XML payload on RFC sender scenario

    Hi all,
    I'm trying to send data from RFC to XI but I got follow error in SXMB_MONI:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!--  Request Message Mapping  -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_mm_ZFI_RFC_CADASTRO_FORNECEDOR_To_~</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping
    com/sap/xi/tf/_mm_ZFI_RFC_CADASTRO_FORNECEDOR_To_~: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    When open XML payload the structure and fields are ok but data on these fields is not, some data from one field is concatenate on another field and other case data is in different field. For example on field KUNNR, data sent by RFC on R/3 is '1000000386' But on PI the XML looks like that:
    <?xml version="1.0" encoding="UTF-8" ?>
    <rfc:ZFI_RFC_CADASTRO_FORNECEDOR xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    <T_LFA1>
      <item>
        <LIFNR>0000386</LIFNR>
    And in some fields that expect telephone number, on XML is like that:
    <TELFX>        & #00;& #00;& #00;& #00;& #00;& #00;& #00;& #12;</TELFX>
    (I HAVE TO INSERT SPACE BETWEEN  & and #00; )
    These codes generate the error com.sap.engine.lib.xml.parser.Parser~ on mapping program.
    I've tried to re-import RFC and full cache refresh but I think that error is on JCO on java stack when converting RFC call to XML. I've looked for some RFC Adapter and JCO configuration on Visual Administrator but everything looks ok.
    My system is:
    SAP PI 7.0 SP13
    SAP ECC 6.0
    Any idea how to solve this issue?
    Thanks!
    Edited by: Daniel Torres on Nov 5, 2008 2:12 PM

    Hi,
    As you can see mapping is because of Mapping , Exception During Execute come because of mapping error. So if you doing some graphical mapping there as you said you are concatenating some values passed from SAP R/3 in mapping , check it. Rather you can also check your mapping is right ot wrong using Test tab in mapping editor. also you can use Interface mapping for testing your whole scenario, i will prefer Interface Mapping thing to test my scenario as it will tell you if your requeswt mapping is correct or response message is correct.
    Lets check there and you will see exact problem of mapping.
    Regards
    Aashish Sinha

  • How to pass XML payload to HTTP POST Service.

    Hi All,
    I am calling a RestFul service using Http Post method.
    If the payload type is "url-encoded" then my directly assignment of values using assign activity is working fine.
    But when i change the payload type to "xml" , It's erroring out saying the value is not provided for the parameters..
    You can also try this using below details to reproduce the issue.
    Details:
    =====
    URL : http://api.geonames.org/postalCodeSearch
    Used HttpBinding as reference in composite.
    XSD :
    <?xml version= '1.0' encoding= 'UTF-8' ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.example.org" targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="geonames">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="totalResultsCount" type="xsd:integer"/>
    <xsd:element name="code" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="postalcode" type="xsd:string"/>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:element name="countryCode" type="xsd:string"/>
    <xsd:element name="lat" type="xsd:float"/>
    <xsd:element name="lng" type="xsd:float"/>
    <xsd:element name="adminCode1" type="xsd:string"/>
    <xsd:element name="adminName1" type="xsd:string"/>
    <xsd:element name="adminCode2" type="xsd:integer"/>
    <xsd:element name="adminName2" type="xsd:string"/>
    <xsd:element name="adminCode3" type="xsd:integer"/>
    <xsd:element name="adminName3" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="Input">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="postalcode" type="xsd:string"/>
    <xsd:element name="username" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    We need to send following input values to the service.
    postalcode = 90110
    username =siddhardha
    Can someone let me know how to make it work with XML payload.Looks like i am not constructing the XML payload correctly in assign.
    Please send me the sample to [email protected].
    Thanks in advance,
    Siddhardha.

    Sid,
    I am still trying the same, here we need to change the input type to mimeXml
    have a look at this link....
    https://blogs.oracle.com/reynolds/entry/oracle_http_adapter
    I am trying multiple ways, everytime i get the same below error...
    <messages>
    <Invoke1_Request-Response_InputVariable_2>
    <part name="Input">
    <Input>
    <postalcode>90110</postalcode>
    <username>siddhardha</username>
    </Input>
    </part>
    </Invoke1_Request-Response_InputVariable_2>
    <Invoke1_Request-Response_OutputVariable>
    <part name="geonames">
    <geonames>
    <status message="Please add a username to each call in order for geonames to be able to identify the calling application and count the credits usage." value="10"/>
    </geonames>
    </part>
    </Invoke1_Request-Response_OutputVariable>
    </messages>
    Thanks,
    N

  • Passing XML String via HTTP Sender

    Hello everyone,
    currently we try to find a solution on the following requirement - maybe you have useful advice for us:
    8 different business documents can be sent via a web-interface to SAP XI via the http sender adapter. We already have a customized JCo Class that takes only one input parameter (containining the XML string of the business document).
    I think the easiest way would be to receive the XML string from the web-interface and pass it directly on to the JCo-Class in a Java Mapping.
    Is it possible to create a generic message type for all 8 types of XML documents that contains just one element holding the XML as string? By doing so we could use the same URL for all 8 different XML types and pass it directly on as input paramenter to the JCo Class.
    Do you have any idea how to do this?
    Thank you very much.

    Does the HttpURLConnection conn send the string along with the headerYes.

  • Xml code for HTTP client

    Hi all
    can anyone send me the XML code to write in HTTP client to know the structure for a table using  a scenario. I already developed the scenario for HTTP to JDBC  just post me the XML code.
    Thanks and Regards
    Raghu.

    Hi
    Go through this
    You can find a description here:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    Might be useful
    Thanks

  • QueueId for HTTP Sender Adapter.

    Hi All:
    I modified the HTTP client and sending QoS = EOIO and queueid=test_queue. But I am getting an Error  :
    <i><b><b>Result:  
    <SAP:Error><SAP:Category>XIServer</SAP:Category><SAP:Code>INTERNAL.ATTRIBUTE_INITIAL</SAP:Code><SAP:P1>QUEUE_NAME</SAP:P1><SAP:Stack>Attribute QUEUE_NAME is initial</SAP:Stack></SAP:Error></b></b></i>
    Can any one tell me what is the cause of this Error
    Thanks
    Farooq.

    Double check the URL:
    ... &QOS=EOIO&queueid=test_queue ...
    Stefan

  • Survey Parameter XML for http(s)

    Hello Gurus an Experts,
    I try to send a survey via attachment of an email. I would like to use http, but I don´t get the sendfile in the survey suite when I try to download a presentation format (It works for bsp).
    I´ve read the sap-note 836945 for generating urls and I made it work for bsp. The problem here is, that the customer needs a system access to store the survey.
    It would be much better to do this via http(s) but when I try to change the xml parameters for http(s) I don´t know what to fill in for connectorID (additional conector of external cat-server). Then I get an alert "connector . . . not(yet) defined.
    It would be great if someone could help me.
    Fabian

    Hi Alicia,
    I've got an answer to my OSS Message and they pointed me to this Pages in the CRM 5.0 Documentation:  [XML Parameters|http://help.sap.com/saphelp_crm50/helpdata/en/e2/5756cb769ae745aa2f5ca5ff95d63c/frameset.htm] and [url Usage|http://help.sap.com/saphelp_crm50/helpdata/en/bb/dc4c46cae59d45a07569cb29f7b08f/frameset.htm]. The [url Usage|http://help.sap.com/saphelp_crm50/helpdata/en/bb/dc4c46cae59d45a07569cb29f7b08f/frameset.htm] is interesting because of the last sentences:
    "Here, the survey results are first sent to a Survey Mailer. In this case, the Survey Mailer receives the http request and then mails the results to the CRM Server Mail User, where they can be processed. The Survey Mailer needs to be set up the administrator at the customer."
    So I think the solution I've posted on the SCN Wiki: [Survey processing without opening a connection to the CRM Backend from the Internet |https://wiki.sdn.sap.com/wiki/x/ioAQB] is the way to go. I've now also added an PHP Script Example Code which shows how to the POST parameters can be extracted sent via E-Mail on the Server and not on the client side.
    I hope that helps.
    Best regards
    Gregor

  • Amend XML payload Error for Processing

    I have an issue where I need to amend the XML payload for a message that is stuck in a queue.  I am on PI 7.0, SP10 and I know I have seen this in the runtime workbench where you select the message in error and select Message Editor in Message monitoring.
    For some reason, when I click the Message Editor, I get the log in, enter this, and the pop up window with the Message Display Tool (Detail Display) but I am unable to change the XML and process.,,,  I have corrected the XML but cannot seem to process this...
    Normally it wouldn't be an issue but I have 145 items in the queue and I am bound to get Serialisation issues...
    I have seen this and used it before - in this version...

    I amended the Idoc at source system via WE19 and processed that way... 
    The serialisation issues resolved themselves...

  • Reading XML payload from text file

    Hello,
    I have a text file with XML payload in it. The text file has some header information and then the XML payload. How do I read only the XML payload for processing in PI?
    the structure of the text file is something like this..
    Header Information
    Payload
    Sample:
    #Datetime: 20140318-09:28:50.129
    #MessageID: sample123
    #Sender: TEST
    #SenderParty: TEST
    #ReceiverService:
    #ReceiverParty: Test
    #Interface: Test123
    #InterfaceNamespace: http://test.com
    <?xml version="1.0" encoding="UTF-8"?>
    <Sample ><Header>......
    Please advise.
    Thank you.
    Larry.

    package com.learning.utils;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.Reader;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    public class FetchPayload extends AbstractTransformation {
      String strData = null;
      @Override
      public void transform(TransformationInput arg0, TransformationOutput arg1)
      throws StreamTransformationException {
      // TODO Auto-generated method stub
      getTrace().addInfo("File Reading started ");
      String strData = convertStreamToString(arg0.getInputPayload()
      .getInputStream());
      getTrace().addInfo("File Reading successfully completed ");
      try {
      getTrace().addInfo("Generating XML started");
      strData.substring(strData.indexOf("<?xml"), strData.length());
      arg1.getOutputPayload().getOutputStream().write(
      strData.getBytes("UTF-8"));
      getTrace().addInfo("Generating XML started");
      } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      public String convertStreamToString(InputStream in) {
      StringBuffer sb = new StringBuffer();
      try {
      InputStreamReader isr = new InputStreamReader(in);
      Reader reader = new BufferedReader(isr);
      int ch;
      while ((ch = in.read()) > -1) {
      sb.append((char) ch);
      reader.close();
      } catch (Exception exception) {
      return sb.toString();
    and u can get  the xml as a resultant which  u can use as input for next message mapping.
    thanks and regards,
    Praveen T

  • Http sender adapater

    Hi All
    when I am trying to send request through url for http sender adapter configuration between CLM(E-sourcing) system and PI, I am getting the following error.
    Can any body help me out to resolve this issue.
    The scenario is CLM - PI - SRM (HTTP - RFC scenario). CLM is the sender system and SRM is the receiver system.
    I have checked each and every parameter in the url.
    URL:
    http://usaoadbld004:50000/sap/xi/adapter_plain?namespace=http://frictionless.esource.com/v2.0&interface=MI_ESI_OA&service=CLM_BUSINESS_COMPONENT&QOS=BE&sap-user=PIAPPLUSER&sap-password=&sap-client=001&sap-language=EN.
    Error:
    E-Sourcing was unable to publish Red Book Agreement to SRM. class java.io.IOException Server returned HTTP response code: 500 for URL: 
    Thanks & Regards
    MGREDDY

    Can u check following:-
    1. URL used for sending message to PI.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/frameset.htm
    2. check HTTP port from SMICM tcode - Go- Services and use the same one.
    chirag

  • Logging the XML payload in Oracle Sales Cloud

    How can xml payloads for inbound and outbound web service call be logged in Oracle Sales Cloud?
    We need to capture the xml payloads as part of web service calls (inbound/outbound) and store it on server/objects.
    Is it possible to achieve this and if so how can this be done?
    Thanks,
    Abhishek

    For outbound invocations from Sales Cloud, how are you invoking the web services today?
    If you are using groovy scripts to invoke, you can using a println after the invocation and view the messages through the "Runtime logging" feature.
    This should work if you want to view the payload for debugging purposes
    However, I also see that you need to store the response. Are you trying to implement auditing?

  • Issue with the configuration of http xml port for sending the idoc

    Hello,
          I am planning to send multiple idocs in a single file using http xml port.
    Presently I am trying to send a single idoc, but am having the issue.
    I am trying to create a RFC for HTTP XML port of type H i.e. HTTP Connection to ABAP System
    In the how to guide for - How Tou2026 Send Multiple IDocs Within One XI Message
    ( https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30ea2fdf-f047-2a10-d3a2-955a634bde6b )
    the following parameters are defined for the path prefix -
    RFC destination of type H (HTTP Connection to R/3 System).
    Specify the path prefix as follows:
    /sap/xi/adapter_plain/
    ?namespace=< your namespace>
    &interface=<IDoc_Type>
    &service=<Sender System>
    &qos=EO (or EOIO).
    I am trying to use the following prefix -
    /sap/xi/adapter_plain/
    ?namespace=urn:sap-com:document:sap:idoc:messages ( this is the standard namespace of SAP for all the idocs)
    &interface=DEBMAS05 (Idoc type )
    &service=SNDLS100 ( ECC system name )
    &qos=EOIO
    On testing the RFC connection, I am getting the error of page not found.
    Can anyone please give me pointers for the issue.
    Regards,
    Mayank

    Thanks Barry!!!
    Now I am getting a different message.
    In RFC...it is giving me the following message ->
    Status HTTP Response     204
    Status Text     Body is empty
    In case of Idoc, the status is till 02...
    the error description for the idoc is --
    "When transferring the IDoc by HTTP, the return code with the message '500<SAP:Error><SAP:Category>XIServer</SAP:Category><S' has occurred.
    The target address was: http://emgeccsnd1:8001/sap/xi/adapter_plain/?namespace=urn:sap-com:document:sap:idoc:messages&interf
    Check whether the IDoc can be sent again.
    It is unfortunately not possible to determine automatically whether the IDoc has in fact arrived in the target system and the error occurred afterwards"
    I am still not able to resolve the issue.
    Regards,
    Mayank

  • In PI how do I convert the XML payload (input) to a text file and send out

    I am extracting data from SAP and sending thru XI / PI to a file (non-sap system).
    On the receiving end, I need the file to be a text file, with one row for each "FTZ_Row concatenated_data" tag in the input.  It needs to be just a plain text file with no XML tags.
    Currently the file gets one record which matches exactly to the XML payload below.
    I want it to create a file that looks like this :
               CONCATENATED DATA 1
               CONCATENATED DATA 2
                012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12
    here is the payload going thru XI
      <?xml version="1.0" encoding="utf-8" ?>
    - <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
      <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
      <FTZ_Row concatenated_data="CONCATENATED DATA 2" />
      <FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
      </n0:FTZ_Concatenated_Row>
    thanks
    jay

    thanks for the input but I am still having issues - I get an empty file when I use the content conversion option.
    My payload coming into XI is :
            <?xml version="1.0" encoding="utf-8" ?>
    - <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
    <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
    <FTZ_Row concatenated_data="CONCATENATED DATA 2" />
    <FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
    </n0:FTZ_Concatenated_Row>
    Here is the layout of my data type - I am using the same for input & output
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" targetNamespace="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone">
       <xsd:complexType name="FTZ_Concatenated_Row">
          <xsd:sequence>
             <xsd:element name="FTZ_Row" maxOccurs="unbounded">
                <xsd:complexType>
                   <xsd:attribute name="concatenated_data" type="xsd:string" />
                </xsd:complexType>
             </xsd:element>
          </xsd:sequence>
       </xsd:complexType>
    </xsd:schema>
    I mapped these items :  FTZ_Concatenated_Row & FTZ_Row & concatenated_data
    I set up my content convesion with :
      recordset structure   FTZ_Row
    FTZ_Row.fieldSeparator     #
    FTZ_Row.endSeparator     'nl'
    I am not sure why the following row looks like this ??
        <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
    I thought FTZ_Row would be one tag and "concatenated_data" would be another one.
    any help would be appreciated.
    I have read many entries/blogs/etc in SDN but and tried many different setups, but nothing is working.
    thanks

  • XML Payload does not have namespace and prefix.

    Hello
    I have created a consumer business service which will be called from JDEdwards EOne, pulls data from database and send it to Fusion Middleware.
    SO, I have created proxy using JAX-WS option. And suggested in oracle doc, I created proxy outside OMW and then copied it to my project. XML payload is getting generated without namespace and prefix. After some research, I modified package-info.java. Now, I am able to send the payload and if test it locally from Jdeveloper and take xml output using marshaller I can see it has namespace and prefix as well. BUt, when I run this from server it does not have namespace and prefix.
    Please help.
    Thanks
    TK

    Hi Naresh,
    The "rejectedMessage" property is for 10G, I am not 100% sure about its implementation in 11G.
    In 10G the faulted XML file moves to this location "Oracle_Home\bpel\domains\domain_name\jca\project_directory\rejectedMessages".
    This property is used to move the files which are not valid XML or which are not schema compliant. For DB polling I don't think this property is used.
    -Yatan

Maybe you are looking for

  • Issue while starting a workflow using a form submission cq5

    Hi, I have followed the below mentioned tutorial and completed it. http://dev.day.com/docs/en/cq/current/workflows/create-models.html#par_reference Once done, I did try to start the workflow using a normal form submission, by giving workflow name in

  • RSS feed INTO iweb account

    I can't use the blog in iWeb because I live at school and the IT department has a firewall up all over campus. So I use livejournal instead. I'm wondering if there is a way to feed my livejournal into my iWeb, or at least have a link at the top that

  • JSF select one menu keeps giving me summary=Validation Error: Value is not

    Hi all, I'm using five select menus in a JSP file. the other four are populated whenever the first menu changes its value (ValueChange event). after the menus are populated, i select a item in each menu and submit it. but when i submit the form i get

  • Assign instances in a big organization

    Hi, I have a questions about how do you implement a big organizational unit with Fuego BPM. For example, - A bank with some offices (Example: 50 offices) - With Director and Subdirector (Different Roles) When I want to send an instance to the Directo

  • Download error ios 5

    After downloading I get an error when it's processing the new software. It says the software on my iPhone was demaged during the download. Unhook the cable and try again. Check your network settings. Can anyone help me with this? I tried already seve