How to Confiure Route Node to do HTTP Post?

Hi All,
I am trying to create a messge flow that could do HTTP POST.
I have a business service that can do HTTP POST.
In the Messge flow of the proxy service, I created Route node.
With in the route node, I have created an Assign request action to assign to content to $body variable.
The problem here is content of the body variable should have <soap:Body> as the top level element otherwise it throws an exception.
I don't want to use service callout because service call outs are synchornous. How can we solve this issue with route node?
Thanks in adavance for the response.

In the assign to $body xquery either use:
<soap-env:Body>
{$payload}
</soap-env:Body>
or
<soap-env:Body>
<ns1:myOperation>
{$payload}
</ns1:myOperation>
</soap-env:Body>
where soap-env is a predefined prefix and you have defined ns1.
Also if you your services mix soap1.1 and soap1.2 you can get a similar error.
For example if your proxy is soap1.1 and you assign a soap1.2 body in the main pipeline (and vice-versa) then you will get that error. In that case you would need to create the soap1.2 body inside the route node. Otherwise you can do it anywhere in the pipeline.

Similar Messages

  • How to send plain text body in HTTP Post method ?

    Hi Exeperts,
    I have a scenario http post - ptoxy. Sender sending the data in http post in plain text body (only field values will be in the body).
    how should i capture this plain text for receiver to map..
    is any udf or xsl code ?
    please guide me for achieving this requirement .
    find the attachment for http post body value.
    Regards
    Ravi

    Hi Mark,
    Thanks for your reply,
    Please share you have any udf  for this .
    can you explain me how should i map to target side.
    what are the configuration should i done in communication channel level
    Regards
    Ravinder.s

  • How to send te XML data using HTTPS post call & receiving response in ML

    ur present design does the HTTP post for XML data using PL/SQL stored procedure call to a Java program embedded in Oracle database as Oracle Java Stored procedure. The limitation with this is that we are able to do HTTP post; but with HTTPS post; we are not able to achieve because of certificates are not installed on Oracle database.
    we fiond that the certificates need to be installed on Oracle apps server; not on database server. As we have to go ultimately with HTTPS post in Production environment; we are planning to shift this part of program(sending XML through HTTPS post call & receiving response in middle layer-Apps server in this case).
    how i can do this plz give some solution

    If you can make the source app to an HTTP Post to the Oracle XML DB repository, and POST contains a schema based XML document you can use a trigger on the default table to validate the XML that is posted. The return message would need to be managed using a database trigger. You could raise an HTTP error which the source App would trap....

  • How to blink TreeView Nodes based on condition c#

    suppose i am populating my tree view with data from database and i want to blink those nodes which has a specific data. now guide me with code how can i efficiently blink multiple tree view nodes  based on condition in winform application.

    Hi Mou_kolkata,
    >> anyone can give me small working code for tree node blinking
    Thank Armin for the details about blinking TreeView Nodes.
    For a simple demo to blink TreeView nodes, you could refer the link below:
    # Treeview control - How to make a node blink?
    https://social.msdn.microsoft.com/Forums/en-US/64e7a4d7-3098-4370-990f-390cb3a640a1/treeview-control-how-to-make-a-node-blink
    If you have issues when you blink Treeview nodes, please feel free to post a new thread in this forum, then you would get more help.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to send SOAP request by HTTP POST?

    I want to access a SOAP webservice using mx.rpc.soap.mxml.WebService.
    Following is my code:
    <mx:WebService id="miner_service" wsdl="http://localhost:8080">        <mx:operation name="hello" result="echoResultHandler(event);"></mx:operation></mx:WebService>
    When debugging with that, I got such error message:
    [Fault] exception, information=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://localhost:8080)"]
    Then I use Fiddler try to capture the response returned by server, it's like this:
    Error responseError code 501. Message: Unsupported method ('GET'). Error code explanation: 501 = Server does not support this operation.
    But when I use python to send SOAP request by HTTP POST, the server will return correct response.
    So how can I send SOAP request by HTTP POST?
    (I tried <mx:WebService wsdl="http://localhost:8080" method="POST">, but no luck..)

    Sorry for my late reply..
    There's no WSDL for that SOAP service

  • How to set up a RFC - HTTP Post scenario?

    Hi all,
    I've seen a scenario using a HTTP -> RFC but i didn`t found the other way, an RFC -> HTTP scenario.
    I have a scenario that consists of a RFC that will pass the parameters to XI and then, i've to map the parameters of this RFC into a XML message, zip this xml message, convert it to BASE 64 string, post this "binary" message thru HTTP POST and finally, send the XML HTTP response back to my RFC .
    My questions are:
    - How to map the RESPONSE of the http request to my RFC?
    - How to deal with the transformations of the data, from xml to zip and from zip to a base64 string.
    - How to set the URL of the HTTP POST dynamically?
    Thanks in advance!

    > Hi all,
    >
    > I've seen a scenario using a HTTP -> RFC but i didn`t
    > found the other way, an RFC -> HTTP scenario.
    >
    > I have a scenario that consists of a RFC that will
    > pass the parameters to XI and then, i've to map the
    > parameters of this RFC into a XML message, zip this
    > xml message, convert it to BASE 64 string, post this
    > "binary" message thru HTTP POST and finally, send the
    > XML HTTP response back to my RFC .
    >
    > My questions are:
    >
    > - How to map the RESPONSE of the http request to my
    > RFC?
    hmmm.. Maybe a Java Mapping?
    > - How to deal with the transformations of the data,
    > from xml to zip and from zip to a base64 string.
    Either Java Mapping or a Java Proxy.
    > - How to set the URL of the HTTP POST dynamically?
    >
    Use Adapter Specicif Identifiers and set it in the mapping dynamically.
    Regards
    Bhavesh

  • How to receive XML from Flex HTTP POST

    Hi,
    We curreontly have a setup where we have a FLEX frontend send an XML through a HTTP POST and awaiting a response also in XML. On the backend this is handled relatively simply by a PHP script that basically does the following:
    read data (in XML)from FlEX HTTP POST into a new temp XML file.
    execute a c++ program with the XML file as one of the parameter.
    return the result to FLEX
    We have decided to move to BlazeDS for various reasons.
    Looking at the examples bundled with BlazeDS they have a jsp example that returns an XML result to FLEX so that part is fine. I am trying to find an example of JSP (or Servlet) that is able to read the XML data from FLEX and write it into a temp XML file. I would then try to use runtime.exec to invoke a local C++ program to process the XML file the result of which will be sent back to FLEX.
    Any help will be very much appreciated!

    <div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>I&#8217;d avoid calling an executable just to process XML &#8211;your<br />application server would provide enough support for reading and writing XML, no?<br />Also, if you&#8217;re only planning on working with XML then even BlazeDS might<br />be overkill because its focus is on sending strongly typed ActionScript data efficiently<br />to and from a client (it&#8217;s true that it does have a proxy service, but<br />that is not involved with processing the actual XML data).<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>How complex is your XML? Do you need to resolve ids and<br />references or can you parse it top down in a single pass? There are several<br />well known libraries in Java for dealing with XML &#8211; the choice depends on<br />how you need to interact with the XML. Most of them take an InputStream as a<br />source for reading XML and you can get the InputStream from the servlet<br />request. Googling should turn up numerous examples.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Pete<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><br /><br /><div><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> khwong<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Sunday, September 28, 2008 12:09 PM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> How to receive XML from Flex HTTP POST<o:p></o:p></span></p><br /><br /></div><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new discussion was started by<br />khwong in <br><br /><br><br /><b>General Discussion</b> --<br><br />  How to receive XML from Flex HTTP POST<br><br /><br><br />Hi, <br><br /><br><br />We curreontly have a setup where we have a FLEX frontend send an XML through a<br />HTTP POST and awaiting a response also in XML. On the backend this is handled<br />relatively simply by a PHP script that basically does the following: <br><br /><br><br />read data (in XML)from FlEX HTTP POST into a new temp XML file. <br><br />execute a c++ program with the XML file as one of the parameter. <br><br />return the result to FLEX <br><br /><br><br />We have decided to move to BlazeDS for various reasons. <br><br /><br><br />Looking at the examples bundled with BlazeDS they have a jsp example that<br />returns an XML result to FLEX so that part is fine. I am trying to find an<br />example of JSP (or Servlet) that is able to read the XML data from FLEX and<br />write it into a temp XML file. I would then try to use runtime.exec to invoke a<br />local C++ program to process the XML file the result of which will be sent back<br />to FLEX. <br><br /><br><br />Any help will be very much appreciated! <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b69b23">How to receive XML from<br />Flex HTTP POST</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b69b23!folder=.3c061a83">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div><br /><br /></div>

  • How can I use HTTP POST?

    Dear,
    I need to take a test using the object http post for calling a webservice developed in. Net.
    I have the following information from the webservice. Net:
    POST /Level3Communication.asmx HTTP/1.1
    Host: 10.110.70.129
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://tempuri.org/ReceiveMessageFromMES"
    How do I fit this information in HTTP POST object?
    What should I fill in the URL field?
    What should I fill in the Document to Post field?
    What should I fill in the PostData field?
    how do I declare the soap action using http post?
    I did not find any example.
    Could you help me?
    Regards,
    Sérgio Salomã

    Hi,
    check the blogs..
    for recieving..
    [Receiving E-Mail and processing it with ABAP - Version 610 and Higher]
    for Sending
    [Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface]
    Regards,
    Sathish Reddy.

  • Get file from HTTP POST (upload image)

    Hello,
    I would like to integrate http://www.plupload.com flash component to my APEX 4.1 website. I need it because I want to resize image and transform image before upload on client side, upload multiple files etc..
    But I don't know how to read image binary data from POST method.
    When I hit "Start upload" button on plupload component it makes some transformations and creates POST method like this:
    ------pluploadboundary1334433145869
    Content-Disposition: form-data; name="name"
    p16qp6jm3nhan1ca46me1ocr3tu1.jpg
    ------pluploadboundary1334433145869
    Content-Disposition: form-data; name="chunks"
    1
    ------pluploadboundary1334433145869
    Content-Disposition: form-data; name="chunk" 0
    ------pluploadboundary1334433145869
    Content-Disposition: form-data; name="file"; filename="centerd.jpg"
    Content-Type: image/jpeg
    ÿØÿà�JFIF������ÿÛ�„�
    image content
       now I would like to read content of this HTTP POST and read sended image and store it to DB.
    Question is... how can I read file sended with HTTP POST in APEX pl/sql process or pl/sql procedure?
    Thank you...
    Edited by: cardel on Apr 14, 2012 11:17 PM

    Hi,
    here are my two cents ...
    this will be a bit difficult. When you use the standard APEX File upload it is not PL/SQL handling the POST request. The request is handled by the webserver - depending on the variant you are using it is either mod_plsql, the C code of the Embedded Gateway or the APEX Listener. The webserver is also doint the insert into APEX' file repository. So I see two options:
    It might be possible to configure your plugin (don't know about it) the behave the same as a standard browser upload. Then for APEX there would be no difference - mod_plsql should handle the files accordingly.
    If you want to handle the POST request yourself, as said, you can't do this in PL/SQL. It would be possible to write a Java servlet doing this and deploy that servlet on the same container as the APEX Listener (when using Apache with mod_plsql you would need an additional Java server for that) ....
    Hope this helps ...
    Best regards
    -Carsten

  • HTTP Post MIME

    Hello,
    I have requirement to post and XML document to an URL , I have been doing that using HTTP POST method ,
    But now, I have to send and attachment along with the message, ( how can I implement MIME Message using HTTP Post methodology)
    currently I am using
    URLConnection conn = url.openConnection();     
                conn.setDoOutput(true);     
                OutputStreamWriter wr =     
                    new OutputStreamWriter(conn.getOutputStream());     
                wr.write(data);     
                wr.flush();     
       I need to use MIME now.
    Please let me know
    Thanks
    sur

    863709 wrote:
    Basically , we have to upload a Excel document to an External Client , we used to do that using Excel directly by logging into their website and uploading the excel file,
    Now we want to automate this, by using XML . but still have the Excel attachment
    The guide says, I can post the following documents to an URL using MIME, I am not sure what they mean by that.
    "The following example shows a Catalog Upload document. It contains two documents enclosed in a MIME
    envelope: a CatalogUploadRequest document and a CIF 3.0 catalog."
    --kdflkajfdksadjfklasdjfkljdfdsfdkf
    Content-type: text/xml; charset=UTF-8
    Content-ID: <[email protected]>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.014/cXML.dtd">
    <cXML timestamp="2006-12-28T16:56:03-08:00"
    payloadID="[email protected]">
    <Header>
    <From>
    <Credential domain="DUNS">
    <Identity>123456789</Identity>
    </Credential>
    </From>
    <To>
    <Credential domain="NetworkID">
    <Identity>AN01000000001</Identity>
    </Credential>
    </To>
    <Sender>
    <Credential domain="DUNS">
    <Identity>123456789</Identity>
    <SharedSecret>abracadabra</SharedSecret>
    </Credential>
    <UserAgent>MyHomemadeCatalogManager</UserAgent>
    </Sender>
    </Header>
    <Request>
    <CatalogUploadRequest operation="update">
    <CatalogName xml:lang="en">Winter Prices</CatalogName>
    <Description xml:lang="en">This catalog contains our premiere-level prices for office
    chairs and other durable furniture.</Description>
    <Attachment>
    <URL>cid: [email protected]</URL>
    </Attachment>
    <Commodities>
    <CommodityCode>52</CommodityCode>
    </Commodities>
    <AutoPublish enabled="true"/>
    <Notification>
    <Email>[email protected]</Email>
    <URLPost enabled="true"/>
    </Notification>
    </CatalogUploadRequest>
    </Request>
    </cXML>
    --kdflkajfdksadjfklasdjfkljdfdsfdkf
    Content-type: text/plain; charset=US-ASCII
    Content-Disposition: attachment; filename=PremiereCatalog.cif
    Content-ID: <[email protected]>
    Content-length: 364
    CIF_I_V3.0
    LOADMODE: F
    CODEFORMAT: UNSPSC
    CURRENCY: USD
    SUPPLIERID_DOMAIN: DUNS
    ITEMCOUNT: 3
    TIMESTAMP: 2006-01-15 15:25:04
    DATA
    942888710,34A11,C11,"Eames Chair",11116767,400.00,EA,3,"Fast MFG",,,400.00
    942888710,56A12,C12,"Eames Ottoman",11116767,100.00,EA,3,"Fast MFG",,,100.00
    942888710,78A13,C13,"Folding Chair",11116767,25.95,EA,3,"Fast MFG",,,25.95
    ENDOFDATA
    --kdflkajfdksadjfklasdjfkljdfdsfdkf--Now my question is , even if I use Apache or any other thing, how can I actually send 2 files, ( one which is header and one Excel file or cif file what ever it is)I suggest you look at the HTTP MIME sectiona t http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.2 and after that look at http://hc.apache.org/httpcomponents-client-ga/httpmime/examples/org/apache/http/examples/entity/mime/ClientMultipartFormPost.java for an e.g. You can also add multiple attachments, just google for it. Now that i think about it, it probably might be possible to do it with native JDK components, but not 100% sure of it.
    Edited by: maheshguruswamy on Aug 26, 2011 8:50 AM

  • Need JDeveloper Web Service with HTTP POST method

    Hello all,
    I am creating a Web Service from a java class using JDeveloper. The wsdl created uses a SOAP binding. When I test the web service, either through JDeveloper or by deploying to OAS, the HTTP request created uses the HTTP GET protocol. I am assuming that this would be the same for anybody doing this.
    I need to know how to change it to be an HTTP POST protocol instead.
    The reason that I need to try and use the POST method is that the xml needed by the service holds a lot of data and the http server is giving me a "URI too long" error. I have read and been told that using POST instead of GET would help this, but I can't figure out what to change to make this happen. I am not sure if I have to make a change in the generated wsdl or somewhere else. Or if it just won't work that way.
    Any help you can provide would be appreciated.
    Thanks,
    rob

    Hi Ayush,
    Please refer -
    http://biemond.blogspot.com/2010/08/http-basic-authentication-with-soa.html
    Regards,
    Anuj

  • How to insert function nodes in routing service xsl mapping?

    I have been struggling with this for some days now.
    I have requestId, versionNumber coming in as a part of xml.
    I accept this xml(xsd) in one routing node, But on the way out, I want to assign a value requestId+versionNumber(basically concatenate)+randomNumber to transitionId(a new variable).
    How do I introduce this function node in xsl mapping that can concatenate different values that come through?
    Also, how do I generate random numbers?
    Thanks in advance,
    vena

    This is fairly straight forward.
    First of all create a random number. You can do this inyour translation. On the Component Palette select Advanced Functions. There you have an option generate-id or generate-guid. Either of these will be unique. Drag this to the middle.
    You can now drag this to the transactionid. Now you need to create a concatanation. In the Component palatte go to String and drage concat to the middle. Create a link between this concat and the generate-id function. Now you should be able to drag an link from requestid and versionNumber to the concat. If if they are in the wrong order just cut and past in the code by double clicking the concat icon.
    Hope this helps
    cheers
    James

  • Doubts in Route node OSB

    Hi all,
    Service callout creates two variables for Request and Response , so when I use a Service callout I do a Xquery transform and assign it to the Request
    variable. Now how do I do this in a route node
    when I tried to assign using x query transform i get an error +"BEA-382040: Failed to set the value of context variable "body". Value must be an instance of+
    +{http://schemas.xmlsoap.org/soap/envelope/}Body".+ Do I have to manually type the xml and use replace activity and replace the body ?
    Thank You
    Arun

    Hi all,
    Actually i am also getting the same error and i have changed the node entire body to node contents, but it is not working for me..
    Scenario :
    Proxy build on my local WSDL, then Pipeline with 2 stages on request side,
    1st stage : I am doing transformation to change the request,which i am getting from the portal into the format understandable by the System, i will call in 2nd Stage, I am doing this by using Replace action XPath ( ./* ) in body with my Xquery.
    2nd Stage : I am assigning the same Xquery to a varable SAOPRequest and then I am calling the External Service using Service Callout and configuring SOAP Body, In that i am passing SOAPRequest variable which i created earlier as a SOAP Request Body and Response as a SOAP Response.
    Save all and when i test it it gives me the error +"BEA-382040: Failed to set the value of context variable "body". Value must be an instance of+ {http://schemas.xmlsoap.org/soap/envelope/}Body"
    Waiting for your valuable suggestion
    Thanks and Regards
    Piyush
    Edited by: user13140590 on Jun 3, 2010 6:30 AM

  • How to edit the node value of a tree in webdynpro java

    Hi ALL
    I have Tree UI element where i got displayed all the nodes by calling the BAPI
    Now my requirement is when i put the cursor at any node in the Tree struture then on click of insert button i need to insert the new node with the text  , the user has to be option to give new text for the new node dynamically  , so while adding the new node in a tree the tree has to choose the text for new node , like how to edit the node of a tree to add new text.
    If any one can send the sample code on the same then it would be great help to me.
    Similar requirement like in table UI Like however we are adding the new row in a table when we click on the insert button then cursor will go to that new row in a table where user can enter his details in the table.. now i am looking for the same requirement in a Tree UI element.
    is it possible the same requirement in tree UI element in webdynpro for Java??
    Thanks
    kallki reddy

    Hi kallki reddy
    In general I think this is not possible in the form you'd like. It seems the Tree control is read-only thing always. It cannot provide editing capabilities.
    Table is different thing. You can select within many different cell editors including Input Fields.
    I guess that you scenario could be implemented not with Tree control, but with Table with Master Column. The master column allows to bring up a hierarchy into a plain table. So it's just a tree inside a table.
    Here you can find further details: [TreeByNestingTableColumn API|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/92/12a74046033913e10000000a155106/content.htm]
    BR, Siarhei

  • How to remove target node if source field value is empty SAP PI Mapping

    Hello,
    how to remove target node if source field value is empty in graphical Mapping.
    Like if
    MIddle name in source filed is empty, I would like to eliminate target field from out put XML.
    Thank you
    John

    Hi Jhon,
    If you want to remove all empty tags and you dont to complicate your message mapping, you can use a XSL, after the message mapping,  to remove all the empty tags:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:template match="node()|@*">
            <xsl:copy>
                <xsl:apply-templates select="node()|@*"/>
            </xsl:copy>
        </xsl:template>
        <xsl:template match="*[not(@*|*|comment()|processing-instruction())
         and normalize-space()='' ]"/>
    </xsl:stylesheet>
    Regards

Maybe you are looking for