HTTP Post Method

Hi experts,
Here my scenario is ABAP proxy to PI to HTTP.
I am sending the data via proxy to PI. From PI data sent to the third party using below url using (here PI need post the data using below Url then Pi will get the response) 
https://developer.skipjackic.com/scripts/evolvcc.dll?AuthorizeAPI
Via HTTP Receiver adapter I am able to send the data but I am getting generic response.
Then posted data with client provided sample webpage. Here I am getting proper(actual)  response.
Here my question is HTTP will allow you to post the data using URL? If yes what kind of configuration I need to do in receiver adapter?
Thanks
Srini..

Hi,
Pi system sending below format
<?xml version="1.0" encoding="utf-8"?><n0:MT_OU043_CreditCardPaymentRequest_OUT xmlns:n0="http://lawsonproducts.com/FI/OU043_CreditCardPayments" xmlns:prx="urn:sap.com:proxy:ECD:/1SAI/TXS2303B401B3EFBAEDC88B:700:2009/02/10"><CreditcardPaymentRequest><SerialNumber>000014661324</SerialNumber><DeveloperSerialNumber>464787130566</DeveloperSerialNumber><SJName>Joe's Garage</SJName<StreetAddress>1234 jackson Heights</StreetAddress><City>San Francisco</City><State>CA</State><ZiPCode>94116</ZiPCode><Phone>123456737</Phone><ShipToState></ShipToState><ShipToZipCode></ShipToZipCode><ShipToCountry></ShipToCountry><ShipToPhone></ShipToPhone><OrderNumber>0000000569</OrderNumber><AccountNumber>4622254111005123</AccountNumber><Month>12</Month><Year>20</Year><TransactionAmount>       10.00</TransactionAmount><CustomerTax></CustomerTax><CustomerCode></CustomerCode><PurchaseOrderNumber></PurchaseOrderNumber><ShippingAmount></ShippingAmount><UniqueVatInvoiceNumber></UniqueVatInvoiceNumber><VatTaxAmount></VatTaxAmount><VatTaxRate></VatTaxRate><CustomerVatNumber></CustomerVatNumber><DutyAmount></DutyAmount><SummaryCommodityCode></SummaryCommodityCode><NationalTax></NationalTax><DiscountAmount></DiscountAmount><OrderString>000010Fastener 1" with threaded ends45.001.000Y~||</OrderString><orderstring_lvl3></orderstring_lvl3></CreditcardPaymentRequest></n0:MT_OU043_CreditCardPaymentRequest_OUT>
*But Receiver system expecting below format.
*<!Fixed Values> <FORM NAME="sampleauthorization" ACTION="https://developer.skipjackic.com/scripts/EvolvCC.dll?AuthorizeAPI" METHOD=POST> <INPUT NAME="serialnumber" VALUE="999888777666"> <!Card Holder Data> <INPUT NAME="sjname" VALUE=u201DJohn Doe"> <INPUT NAME="streetaddress" VALUE="123 Demo Street"> <INPUT NAME="city" VALUE="Cincinnati"> <INPUT NAME="state" VALUE="OH"> <INPUT NAME="zipcode" VALUE="12345"> <INPUT NAME="shiptophone" VALUE="9024319977"> Purchase Data> <INPUT NAME="ordernumber" VALUE="ABC123"> <INPUT NAME="orderstring" VALUE="1Sample Order1.001N~||"> <INPUT NAME="transactionamount" VALUE="1.00"> <!Credit Card Data--> <INPUT NAME="accountnumber" VALUE="4111111111111111"> <INPUT NAME="month" VALUE="08"> <INPUT NAME="year" VALUE="09">
Whhat i ahve to do

Similar Messages

  • How to call HTTP Post Method URL in SOA 10g

    Hi,
    I have a requirement where i need to call a HTTP Post Method, I have a URL, if i hit it in the browser, i am getting the response details. I know there is a HTTP Binding Adapter in 11g, but we are on 10g. Can anyone please let me know whether we can do it in 10g and how ?
    Thanks Always
    N

    You will need to write the WSDL by yourself. Just make sure you have the end point detail, operation name(if required) and the schema available to write the WSDL.

  • How to call HTTP POST method in SOA 10g

    Hi,
    I have a requirement where i need to call a HTTP Post Method, I have a URL, if i hit it in the browser, i am getting the response details. I know there is a HTTP Binding Adapter in 11g, but we are on 10g. Can anyone please let me know whether we can do it in 10g and how. ?
    Thanks Always
    N

    Look at 10g samples under tutorials/702.bindings.

  • JAX-WS -- Force a wsimport generated ws client to use http POST method

    I've used wsimport to generate a JAX-WS client for a wsdl and xsd bindings that were provided to me.
    The basic implementation goes something like this.
    URL serviceUrl = ...url to the live web service's wsdl (this will change often and needs to be data driven)
    QName qname = new QName("thenamespace", "MyService")
    MyService myService = new MyService(serviceUrl, qname);
    At this point a http GET request is sent to the server which promptly spits back a "405: method not allowed" because it is only configured to accept the http POST method.
    Unfortunately i cannot change this behavior and need a way to get the web service client to generate http POST requests.
    Setting the following seemed to have no effect.
    System.setProperty("javax.xml.ws.http.request.method", "POST");
    Thanks!

    so, keep the wsdl as a local resource and use a url for the local resource. then the service will not request the remote wsdl.

  • Can i call a HTTP Post method in ABAP or XI?

    Hi All,
    Can you please let me know how to call a HTTP Post method in ABAP or XI?
    my HTTP Post is looks like (HTML form)
    <form action="http://111.111.111.1:8080/sample_url" method="POST">
    <table>
    <tr><th>applicationId</th><td><input type="text" name="applicationId" value="test"></td></tr>
    <tr><th>authCode</th><td><input type="text" name="authCode" value="test"></td></tr>
    <tr><th>message</th><td><input type="text" name="message" value="Hello"></td></tr>
    <!--<tr><th>version</th><td><input type="text" name="version" value="3.1"></td></tr> -->
    <tr><th>contractId</th><td><input type="text" name="contractId" value="test"></td></tr>
    <tr><th>receiverMobileNumber</th><td><input type="text" name="receiver" value="11111111111"></td></tr>
    <tr><td colspan="2"><input type="submit" name="send" value="send"></td></tr>
    </table>
    </form>
    I have a requirement to send a message to the above mention URL using the POST method.
    Please let me know the possibility of sending it from ABAP or XI adaptor.
    Thanks & Regards,
    Chaminda

    Hi Prateek,
    shoul we send the below code as the payload?
    <tr><th>applicationId</th><td><input type="text" name="applicationId" value="test"></td></tr>
    <tr><th>authCode</th><td><input type="text" name="authCode" value="test"></td></tr>
    <tr><th>message</th><td><input type="text" name="message" value="Hello"></td></tr>
    <!--<tr><th>version</th><td><input type="text" name="version" value="3.1"></td></tr> -->
    <tr><th>contractId</th><td><input type="text" name="contractId" value="test"></td></tr>
    <tr><th>receiverMobileNumber</th><td><input type="text" name="receiver" value="11111111111"></td></tr>
    Thanks.
    Chaminda

  • Http POST method related

    What type of data we can send using http POST method apart from text(string) ? Is it possible to send some video or file or image through http POST method ?

    Consider the way you upload a file as an email attachment. Or when using a web-interface to upload a file to a web host. The only restriction you might encounter is a size limit.

  • Example of sending the po request to my partner using https post method

    I need to send the po request to my partner using https post method.
    Is there any example for my scenario in oracle b2b?
    Usecase:
    mycompany
    othercompany
    mycompany -> Posts xml document with no namespace -> othercompany
    Protocol: https

    I need to send the po request to my partner using https post method.It is possible. FYI, by default HTTPS uses post method.
    Is there any example for my scenario in oracle b2b?Not exact sample is available but yes, similar samples are available here -
    http://www.oracle.com/technology/sample_code/products/b2b/index.html
    I would suggest you to go through below tutorial to have better understanding -
    http://www.oracle.com/technology/products/soa/b2b/collateral/B2B_TU003_ebxml.pdf
    Namespace is not an issue. It's upto you whether you like to keep it or not. From XML technology point of view, it is always recommended to have a namespace to bind each and every node with it, but I have seem cases where people don't use them.
    Regards,
    Anuj

  • 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 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

  • Issue with Remove Namespace HTTP POST method

    I am working on an integration where cXML from the Partner will be posted to SOA and from SOA another HTTP post to end partner. its basically
    HTTP Post(partner 1)----------------->SOA--------------->HTTP Post(Partner 2).
    I have cXML its in dtd format which i have converted to Native format using file-adapter and added namespace schema. so My question is while cXML is post to SOA i have added namespace schema and consumed it to my BPEL, while it leaves out Partner2 through HTTP post again the namespace should be removed and sent to partner 2. I am stuck at this Point. need Urgent help. please. how to remove name space.

    Hi,
    Create xsl style sheet file (xml) from you jdeveloper. Path to go File->New. go to all technogloy tab and select All Items catagory and select XSL style sheet.
    Remove content in the generated xml file and copy and paste the below code
    <?xml version='1.0' encoding='UTF-8'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xsl ns1">
    <xsl:template match="comment()|processing-instruction()|/">
    <xsl:copy>
    <xsl:apply-templates/>
    </xsl:copy>
    </xsl:template>
    <xsl:template match="*">
    <xsl:element name="{local-name()}">
    <xsl:apply-templates select="@*|node()"/>
    </xsl:element>
    </xsl:template>
    <xsl:template match="@*">
    <xsl:choose>
    <xsl:when test="name() != 'xmlns'">
    <xsl:attribute name="{local-name()}">
    <xsl:value-of select="."/>
    </xsl:attribute>
    </xsl:when>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>
    In Your bpel process under assign activity give it as below
    <copy>
    ora:getContentAsString( ora:processXSLT( 'xsl/removeNamespaces.xsl', bpws:getVariableData('variable name','rootelement')))
    <to variable="String"/>
    </copy>
    String variable contains your xml message with out namespaces in string format.
    You can pass this string content to your partnerlink 2.
    Regards,
    Tarak.

  • HTTP POST method does not pass parameters to the server

    Hi ,
    I am using SSO using VSJ product and implemented using a filter.
    I have problems as below
    1. Every request to the web server will be intercepted by this vsj filter and if sso does not succeed it will send 403
    2. my system will detect 403 in web.xml and redirect to login page
    3. user key in username and password and log in
    4. after successful login set the HttpSession and redirect to homepage
    Problem is subsquent form submit / ajax call using "POST" method cannot pass any parameters to the servers ( parameters sent using POST will be null in the servers )  ? GET is okay
    If i comment out the vsj filter altogether , everything works as per normal.
    My Question is
    1. Is there anyway to overcome come ?
    2. Is there any method to clear off whatever this sso vsj has set ( clear cookies / start new browser instance / etc ) in order to forget the state
    Any idea?
    Thanks

    Yes.
    here to illustrate
    public MyFilter extends VSJAuthFilter
    *public void doFilter(){*
    *if(session.getAttribute("loginSucces") != true){*
    super.doFilter(); //call VSJ Auth filter to perform SSO in order to get User Principal populated.
    *}else{*
    chain.doFilter(); // normal filter
    My Filter only intercepts *.jsp and *.do
    Basically here is the pattern that i observe
    1. If i hit default url (homepage.do) for the first time it will trigger the super.doFilter() , it will then throw 403 and redirect to login.html , after success and go to homepage , subsequent POST parameter is missing
    2. if i hit the external login page directly just to simulate ( eg : login.html ) it wont trigger this filter , after success and go to homepage , subsequenet POST parameter is okay
    3. GET is always ok
    I am using weblogic server 10.x btw
    Thanks

  • Using perl with the HTTP POST method to exchange XML with the Auth service

    Has anyone written a perl script to do this yet?
    I've been trying all day and keep getting "Content is not allowed in prolog.
    I've used the example xml from the docs
    <?xml version="1.0" encoding="UTF-8"?>
    <AuthContext version="1.0">
    <Request authIdentifier="0">
    <NewAuthContext orgName="dc=exampleorg,dc=com">
    </NewAuthContext>
    </Request>
    </AuthContext>
    Then I read the python post at http://swforum.sun.com/jive/thread.jspa?forumID=79&threadID=22370
    and the error changed to Premature end of file.
    this is the portion of perl that is getting the error:
    use strict;
    use LWP::UserAgent;
    use HTTP::Request::Common;
    my $browser = LWP::UserAgent->new(agent => 'xml client');
    my $greeting = <<GREETING;
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <RequestSet vers="1.0" svcid="auth" reqid="1">
         <Request>
         <![CDATA[<?xml version="1.0" encoding="UTF-8"?>
         <AuthContext version="1.0">
              <Request authIdentifier="0">
                   <NewAuthContext orgName="dc=belo,dc=com">
                   </NewAuthContext>
              </Request>
         </AuthContext>]]></Request>
    </RequestSet>
    GREETING
    my $response = $browser->request(POST 'http://idpoc1.test.belo.com/amserver/authservice',
                        Content_Type => 'text/xml',
                        Content     => [xmlRequest => $greeting]
    print $response->error_as_HTML unless $response->is_success;

    Your problem seems to lie in the build of the request. Here you use the "sample=$data" which will invalidate the XML itself. I've tested your code changing only the build of the Request and this works fine! Given an XML like this :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <data>
         <txnInfo sourcePartnerCode="6" txnDate="2005.09.08"/>
         <unitOfWorkInfo sourceTicketID="SourceTicket_1" diaryEntry="Diray_1" Status="Status_OK"/>
    </data>
    The Server Stub should look like this :
    #!/usr/bin/perl
    use XML::Simple;
    use Data::Dumper;
    print qq{Content-type: text/xml\n\n};
    if($ENV{'REQUEST_METHOD'} eq "GET"){
         $my_data = $ENV{'QUERY_STRING'};
         print "jfghdsfjghsdg$my_data";
    } else {
         $data_length = $ENV{'CONTENT_LENGTH'};
         $bytes_read = read(STDIN, $my_data, $data_length);
         print "$bytes_read, $my_data";
         $xml = new XML::Simple (KeyAttr=>[]);
         print "have passed XML::Simple creation\n";
         $data = $xml->XMLin("$my_data");
         print "i want to be here \n";
         $transcode=$data->{txnInfo}->{sourcePartnerCode};
         #print "$data->{txnInfo}->{sourcePartnerCode}";
         print $transcode;
         CASE: {
              ($transcode==6) && do {
                   print "i am here";
                   $lstmoddat=$data->{txnInfo}->{txnDate};
                   $srctktid=$data->{unitOfWorkInfo}->{sourceTicketID};
                   $actvtylogdesc=$data->{unitOfWorkInfo}->{diaryEntry};
                   $status=$data->{unitOfWorkInfo}->{Status};
                   $command='bop_cmd -f update1.frg "upd_stats("""Administrator""","""'.$srctktid.'""","""FIP""","""what is this???""")"';
                   print "$lstmoddat $srctktid $status \n";
                   print "$command";
                   system("$command");
                   print "i am done";
                   last CASE;
    And the client stub should look like this :
    use LWP::UserAgent;
    use HTTP::Request;
    use IO;
    #use XML::Writer;
    my $ua = LWP::UserAgent->new(env_proxy => 1, keep_alive => 1, timeout => 30, );
    open INPUT, "<AcceptIncident.xml";
    my @greeting = <INPUT>; #-- Read file containing XML struct to send
    print "Hello World\n";
    my $data_to_send; #-- And build a string of it
    foreach my $newItem (@greeting) {
         $data_to_send = "$data_to_send$newItem";
    print "Sending \n";
    my $head = HTTP::Headers->new(Content_Type => "text/xml", "ID" => "sample");
    my $req = HTTP::Request->new('POST', 'http://matrix/cgi-bin/test1.pl', $head, "$data_to_send");
    my $response = $ua->request($req);
    print $response->as_string; Also you should make sure you have both HTTP::Request amd XML::Simple installed, orelse this will not work.
    Hope this is of some help to you.

  • Where does firefox cache the form parameters to be used in the reload event of a page that was the resposne of a HTTP POST request?

    Suppose there is form in a web page and it submits data in HTTP POST method. After submitting the form, if I reload the page [either by the refresh button or back button; whichever applicable], firefox asks permission to resend the form data by saying "To display this page, Firefox must send information that will repeat any action...". Now if the user clicks on the resend, firefox resubmits the form data.
    So where does firefox store this from data for such future resending/resubmission?
    Is it possible to retrieve/manipulate those stored form data?

    I thought I'd tried that, as tried lots of other things like encoding URL, but obviously not as this works.
    Thanks for the quick reply.
    We also have an issue with the people results not being able to be refined by Department or Job Title now we have connected the SP2010 farm to use the service applications from a SP2013 farm.
    Any ideas on this?  I've started a new thread as its unrelated though:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c89d5463-4531-4a28-9586-1f690c7b580d/can-you-refine-people-search-results-using-a-sharepoint-2013-search-service-application-connected-in?forum=sharepointsearch

  • File upload using http-post in OSB

    Hi All,
    I am trying to upload a file using http-post method in OSB.
    I have created a business service pointing to the service url, with http method post.
    and calling this business service from a proxy service.
    I am unable to send the form data to the business service.
    Please let me know how to send trhe form data and the file information.
    The error given by Business Service is-
    the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is text/plain
    Thanks in advance.
    Seemant
    Edited by: Seemant Srivastava on Oct 12, 2010 12:28 PM

    Hi Anuj,
    A sample HTML form code for. Post HTTP service-
    <html>
    <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>CSV File</title>
    </head>
    <body>
    <form method="post" enctype="multipart/form-data" action="http://xyz/UploadFile">
    <table>
    <tr>
    <td> Feed id </td>
    <td><input type="text" name="refid" value="" size="20"></td>
    </tr>
    <tr>
    <td> Username (optional)</td>
    <td><input type="text" name="username" value="" size="20"></td>
    </tr>
    <tr>
    <td> Password (optional)</td>
    <td><input type="password" name="password" value="" size="20"></td>
    </tr>
    <tr><td> Select CSV File </td>
    <td> <input type="file" name="upload" value="" width="30"/></td>
    </tr>
    <tr>
    <td><input type="submit" name="Ok" value="Go"> <input type="reset" name="reset" value="Reset"> </td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    I need to pass all these information to OSB business service.

  • Sending UTF-8 data via http post

    Hello,
    I'm generating an xml to be sent via http post method. Before sending, I'd like to convert it to utf-8, but Oracle converts it to utf-16, no matter what I do.
    This is what I send with utl_http.write_text:
       convert(l_clob,'AL32UTF8')...but I see utf-16 encoded output on the server side.
    NLS_RDBMS_VERSION is 10.2.0.1.0
    NLS_CHARACTERSET is EE8ISO8859P2
    NLS_NCHAR_CHARACTERSET is AL16UTF16
    But I do not use NCHAR variables.
    Is http post considered like exporting, where the os's NLS_LANG is important?
    Earlier, I managed to save utf-8 xml-files without setting any NLS% params. It was with:
            UTL_FILE.PUT_RAW(
                file   => file_handle,
                buffer => UTL_RAW.CONVERT(utl_raw.cast_to_raw(buffer),
                                          'AMERICAN_AMERICA.AL32UTF8',
                                          'AMERICAN_AMERICA.'||charset
              );But this does not seem to work here, since I have to send 'text/xml'...
    Any help is appreciated.
    Thanks,
    Laszlo

    Not really the correct forum.. The methods you are using are more a PL/SQL issue than an XML DB issue. In general Oracle will convert the response into the character set requested by the client, are you sure your client is not requesting UTF-16.
    Edited by: mdrake on Nov 27, 2010 5:42 PM

Maybe you are looking for

  • Firewire 800 conflict with Firewire 400 port

    hi everyone, i've been having an issue with the firewire ports where they can't be used simultaneously. when my camcorder is attached via FW400 and an external harddrive is attached via FW800, i can not simultaneously capture footage from the camcord

  • No sound in hp mini 1047tu

    I have a hp mini 110-1047TU. I reloded the windows XP prof. Used drivers from hp site. But sound did not get activated. In speakers, sound in control panel, shows no device. Please help me to solve this problem. This question was solved. View Solutio

  • How to find files and subdirectories in a directory

    can anyone tell me how to find files and subdirectories in a directory .

  • Smartforms table and page brake

    Hi experts, Iu2019ve got some plain questions about smartsforms, I need to print data from a table containing some header data  and linked detailed items on  each row (so header and related item on the same line). My layout ought to work this way: A

  • Disable User on Active Directory in a Workflow

    I have to disable a user on AD. I must disable it in a Workflow calling the Disable User or Disable User Primitive. I have two questions: 1. Do I have to use Disable User or Disable User Primitive? 2. What do I have to pass in arguments?