HTTP POST using JSP

Is it possible to submit a data using HTTP POST from a JSP. In a JSP I am generating a XML. For example JSP URL is http://www.test/xml.jsp
In the xml.jsp:-
<test>
<test1>
Testing 1
</test1>
<test2>
Testing 2
</test2>
</test>
When I call http://www.test/xml.jsp, I should receive the content in the xml.jsp as a HTTP POST. Is this possible using JSP or do I have to use only servlet?
Thanks

Hi,
yes, it's possible to submit data from JSP using POST method.
It is even possible to do it from HTML. Set <form method="post"...>, that's all. You can't submit data using POST by typing any specific address etc. in Your browser, only GET parameters can be sent in such a way.
Regards, M

Similar Messages

  • HTTPS post using SOAP

    All,
    I have to make a HTTPS post to an URL https://.......
    Can I do it using SOAP receiver adapter - using - "Dont Use SOAP envelope" option.
    Please advice...
    reg

    Bhavesh,
    Could you please share your thoughts on the following....
    1. Enabled SSL on JAVA engine. - can access https://server:httpsprot(50001)/index.html - but gives a warning that cerficate expired.
    2. We have messages coming from a vendor - outside our firewall. - We have not exchanged any certs or keys.
    I have configured a sender SOAP with -
    Transprot Protocol - HTTP
    Message Protocol - SOAP 1.1
    HTTPS security Level - HTTPS Without Client Authentication.
    I have generated a webservice, used SOAP UI - to send a SOAP request to XI. I can see the message in moni. The end point in the SOAP UI is -
    https://<SERVER>:<HTTPS Port>/XISOAPAdapter/MessageServlet?channel=party:service:channel
    Is there anything that I will have to do to accept the messages from the vendor.
    I am trying to skip the ssl enablement on ABAP engine - so using SOAP adapter.
    When tried to post some data from a webmethods server, it is giving error for some SSL certificatie. As a part of SSL enablement on JAVA, I dont think basis team did install any certificate.
    reg

  • Reading Parameters of a http post in JSP

    I am migrating a Data Web Bean that extends EditCurrentRecord from JDev 3.1 to 3.2
    In old 3.1 days, one could read the HTTP parameters using request.getParameter(). Now, the implementation of EditCurrentRecord uses an OrdHttpUploadRequest to read the parameters, which is not (!) documentated nor included as source file. Given the library.ini configuration, it belongs to some intermedia stuff ???
    I somewhat understand the need for OrdHttpUploadRequest to deal with large files, but why doesn't request.getParameter work any more ? Has it something to do with Serverl 2.1 / 2.2 API ?
    Pascal

    The EditCurrentRecord now uses the multipart mime type in order to support interMedia. This causes the Http parameters to be in a different format that the OrdHttpRequest can decode.
    null

  • Help!!!.....HTTP Post to JSP with parameters in URL also....

    I am trying to emulate a webpage that is POSTing info to a URL which is a JSP that also has parameters in the URL. I am having problems getting my java code to emulate doing this task manually through a web browser.
    The webpage has the following HTML code:
    <form method=post action=hello.jsp?y=60245&x=698>
    <input type="text" name="name" value="jim">
    <input type=submit name=submit value="Now">
    </form>
    ...notice that the jsp referenced above has some parameters appended to the url, but the method is post.
    Here's my code to try to do the same thing as if I manually pressed the submit button in a browser:
    URL url = new URL("hello.jsp?y=60245&x=698");
    httpConnection = (HttpURLConnection)url.openConnection();
    httpConnection.setRequestMethod("POST");
    httpConnection.setDoOutput(true);
    httpConnection.setDoInput(true);
    httpConnection.setUseCaches(false);
    httpConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    DataOutputStream output = new DataOutputStream(httpConnection.getOutputStream());
    output.writeBytes("name=jim&submit=Now");
    output.flush();
    BufferedReader is = new BufferedReader(new InputStreamReader(httpConnection.getInputStream()));
    Writer w = new BufferedWriter(new FileWriter("CapturedHTML.html"));
    int data=0,count=0;
    while(data!=-1){
          data = is.read();
          w.write(data);
          count++;
    System.out.println(count + " bytes read");
    w.flush();
    w.close();
    is.close();
    output.close();I write out the result to a file so that I can see the HTML returned by the JSP. It's a completely different webpage than if I were to have manually clicked the submit button on a browser.
    WHY???????? How is a browser actually sending the info to the jsp when it has info both in its URL and in the post data?

    I might be wrong, but the browser could have some sort of mechanism built into it which makes sure that the parameters appended to the url are actually passed as a part of a POST requst, while a Java program might not pass them at all.
    Have you tried passing these params: y=60245&x=698 as a part of a POST request, rather than adding them to the URL.
    Also, how do u know which response from JSP is correct? They might be different but do u know which one is the correct one? Do you know what the response should look like? that would make things a lot easier as u could figure out what parameters are causing the differences in the responses u r getting.

  • How to send/receive XML using JSP

    Hi,
    I'm new to all this JSP/XML stuff so apologies if this is trivial.
    I'm trying to send an XML file via HTTP POST using JSP. Anyone know how to do this?
    Once the XML has been sent, how do you use JSP to request the XML file? I've figured out how to parse it already.
    Also, is it possible to call xsql directly within JSP?
    Thanks!

    I'm trying to send an XML file via HTTP POST using JSP. Anyone know how to do this?The question is, does anybody understand what you mean by this. Let me take a guess. You want to upload an XML file to a server. If this guess is right, then the answer is don't use JSP to do that. JSP is for generating output to be sent to a client. Use a servlet to handle an upload. And you don't need to write it yourself, there are already several file-upload servlets available on the web.
    Second guess: you have a POST request that asks your server to send an XML file back to the client. If it's a static XML file you don't need a JSP or a servlet or anything, just let your web server handle it just like any other static file. If it's dynamically generated then there's an answer worth giving, but I doubt that this is your question. But if it is, let us know.

  • HTTP POST with XML with HTTPService

    Hi,
    I need to be able to send an HTTP POST request to a server I
    have on Tomcat. In the body of the POST Request I need to have the
    following:
    <setView domain="someDomain" view="macro" />
    We have tried the following using the HTTPService, but with
    no such luck
    <mx:HTTPService id="setViewHTTPService" url="{serverURL}"
    resultFormat="object" contentType="application/xml"
    method="POST">
    <mx:request>
    <setView domain="abc" view="xyz" />
    </mx:request>
    </mx:HTTPService>
    Is there a way for us to specify the body of the HTTP Post
    using HTTPService, or a different class for that matter.

    var variables:URLVariables = new
    URLVariables("name=Franklin");
    //or variables.name = "Franklin";
    var request:URLRequest = new URLRequest();
    request.url = "
    http://www.[yourdomain
    request.method = URLRequestMethod.POST;
    request.data = variables;
    var loader:URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    loader.addEventListener(Event.COMPLETE, completeHandler);
    try
    loader.load(request);
    catch (error:Error)
    trace("Unable to load URL");
    function completeHandler(event:Event):void
    trace(event.target.data.welcomeMessage);
    This is in the help documentation and what I generally use.

  • HTTP Post Outbound scenario - Error 110 - Timeouts in SMICM Tracefile

    HI There
    We have a scenario where we do a HTTP post using the HTTP Plain Adapter to a SMS service provider from a message received from a BW system via RFC, It works perfectly in our development system but we cannot get it working in our production system
    In SXI_MONITOR the message fails with the error
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_CLIENT</SAP:Code>
      <SAP:P1>110</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>HTTP client code 110 reason</SAP:Stack>
      <SAP:Retry>A</SAP:Retry>
      </SAP:Error>
    Running a trace in SMICM shows the following in the tracelog
    [Thr 4632] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 4632] IcmReadFromConn(id=9/140033): request new MPI (0/0)
    [Thr 4632] MPI<3018f>19#4 GetOutbuf -1 cb2250 65536 (0) -> 0DE122B0 0
    [Thr 4632] NiIRead: hdl 43 recv would block (errno=EAGAIN)
    [Thr 4632] NiIPeek: peek for hdl 43 timed out (r; 500ms)
    [Thr 4632] NiIRead: raw read for hdl 43 timed out (500ms)
    [Thr 4632] IcmReadFromConn: read failed with timeout: 500 -> roll out
    [Thr 4632] MPI<3018f>19#5 WriteOOB 00000000 02000000 09000000 01
    [Thr 4632] MPI<30190>15#11 ReadOOB 01000000 01000000 2D000000 00 -> 0
    [Thr 4632] IcmHandleOOBData: Received data on 1st MPI (seqno: 1, type=1, reason=1): 45/14512/0
    [Thr 4632] MPI<3018f>19#10 ReadOOB 01000000 01000000 2D000000 00 -> 0
    [Thr 4632] IcmHandleOOBData: Received data on 2nd MPI (seqno: 1, type=1, reason=1): 45/14512/0
    [Thr 4632] IcmHandleOOBData: Received context key (type=1, reason=1): 45/14512/0
    [Thr 4632] NiWakeupExec: send wakeup signal to 64997 (sock 16992)
    [Thr 4632] IcmConnRollOut: connection (id=9/140033) rolled out:
    [Thr 4632] CONNECTION (id=9/140033):
        used: 1, type: 1, role: 2, stateful: 0
        NI_HDL: 43, protocol: HTTP(1)
        local host:  200.1.1.100:3405 ()
        remote host: 196.30.220.242:80 ()
        status: READ_RESPONSE
        connect time: 23.07.2008 07:13:10
        WP-status: ROLLED OUT (Context: 9, Role: 2)
                  tid: 45, mode: 0, uid: 14512, roll-reason: ICM_ROLL_NETTIMEOUT
    With the following 2 lines ir differs from our development system  - this is the point where it goes wrong
    [Thr 4632] NiIRead: raw read for hdl 43 timed out (500ms)
    [Thr 4632] IcmReadFromConn: read failed with timeout: 500 -> roll out
    We have already checked the following between the 2 systems
    1. Configuration in Netweaver Administrator is Consistent
    2. Communication channel and Mapping is consistent
    3. Profile parameters for ICM are consistent
    Any ideas as to what this problem could be
    Many Thanks

    Hi
    after you download the html client.
    go to view -> source
    and enter the present xiusername & pwd which you using and save.
    Enter the below details in http client.
    Servername : XIServername
    Port : 80<instancenumber>
    Client : XI server client number
    Server : Sender service (business service or busienss system or integration process...when it comes to the HTTP adapter you need to create the business service that business service name you need to enter )
    Interface name : outbound interface name
    namespace : name for interface.
    If you doing Party scenario enter the Party, Agency and Schema details also else optional.
    Enter the Input xml data while enter the input data remove the first xml version line and paste the other data.
    click on send message.
    check the exchange profile set the httpport or not
    check these links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    The specified item was not found.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/http%2bto%2brfc%2bsynchronous%2bscenario%2b-%2bfaqs
    HTTP to RFC - A Starter Kit
    /people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
    Regards,
    Suryanarayana

  • HTTP Post WSDL in J2EE/HOME ?

    A customer created a BPEL process which has a partner-link defined for a WSDL located in the same directory as the project's bpel.xml file. The partner-link is to perform a http post using http binding. (basically the WSDL points to a deployed Servlet)
    When the process is initiated via the BPEL Console an error in the domain.log occurs stating that the WSDL cannot be found in j2ee/home.
    The customer can use "wsdlLocation" and "wsdlRuntimeLocation" in bpel.xml, to work past the error but why are we searching for the WSDL in j2ee/home ?
    The error:
    <summary>Failed to read wsdl. Error happened when reading wsdl at
    "HTTPPostService.wsdl", because "WSDLException: faultCode=PARSER_ERROR: Error
    reading file at: file:/D:/AS/ORA10122MID/j2ee/home/HTTPPostService.wsdl:
    D:\AS\ORA10122MID\j2ee\home\HTTPPostService.wsdl (The system cannot find the
    file specified)". Make sure wsdl exists at that URL and is valid. </summary>
    Thanks
    Michael.

    this sounds strange, and I never heard of it ..
    can you get us a step by step tutorial to see if our support can reproduce this ..
    which version are you using?
    thank you,

  • Can any one provide an web service technique that supports http post...?

    hi,
    i'm working with servlets. i need a webservice technique that supports http-post.
    is it possible to work http-post using servlet & axis2 webservice....?

    hi, if you are about to use axis2, consider trying JAXWS since its very fast to startup, it will then take care of everything what is beyond your business objects (so transforming in into XML etc) moreover, you're going to use web services, thus you ll be working with SOAP, which will wrap your business representation...
    here a sample for a time -service. The Date object will automatically be trasinformed into appropriate xsd type by the axis2 engine
    @WebService
    public class Clock {
    public Date getCurrentTime(){
      return new Date();
    }

  • How to send HTTP Post to URL (third party software) in JSP/JSPDynpage

    Hello,
    we want to integrate a third party application in our Portal Component (JSPDynpage using JSP and HTMLB). This third party component is called like this:
    http://servername:port/cgi-bin/cgi.exe?request=map&format=html&swldy_ace=GDF&swldy_image_format=p n g&width=525&height=375
    How can we do this in the JSP using HTMLB?
    Thanks for your help.
    Best regards,
    Daniel

    Hi Detlev,
    thanks for your hint regarding the App. Integrator, but it seemn not to be what we want to do: We call a CGI and get a JEPG Image back as request.
    Now we used the java.net.URLConnection to do the HTTP post in the JSPDynpage:
    // send HTTP POST
    try {
      u = new URL("http://server/path/ourcgi.exe");
    } catch(MalformedURLException ex) {
      System.err.println("MalformedURLException");
    // build query sting      
    String query = "request=plot&format=jpeg&template_name=......."
    int cl = query.length();
    try {
      // open the connection and prepare it to POST
      URLConnection uc = u.openConnection();
      uc.setDoOutput(true);
      uc.setDoInput(true);
      uc.setAllowUserInteraction(false);
      DataOutputStream dos = new DataOutputStream(uc.getOutputStream());
      dos.writeBytes(query);
      dos.close();
    } catch ...
    Best regards,
    Daniel

  • Interesting! JDeveloper deploy to remote server uses HTTP POST

    The documentation clearly mentions that the bpelc ant task only deploys to local server using a file copy. I was wondering how JDeveloper is able to deploy to remote servers. Turns out is just does a HTTP POST of multipart/form-data to upload the BPEL suitcase jar file. Given below is the trace of the POST. Of course, it is all proprietary for now and is not documented. Maybe Oracle can wrap this as a custom ant task?
    --Nizam
    POST /integration/services/deploy/deployProcess.jsp HTTP/1.1
    Host: bpel.server.com:9700
    Connection: Keep-Alive, TE
    TE: trailers, deflate, gzip, compress
    User-Agent: RPT-HTTPClient/0.3-3
    BPELDomain: default
    BPELPassword: bpel
    Accept-Language: en
    Accept-Encoding: gzip, x-gzip, compress, x-compress
    Content-type: multipart/form-data;boundary=*****
    Content-length: 10690
    Content-Disposition: form-data; name="upload";BPELDomain="default"; filename="E:\work\MyBPELWS\HelloWorld\output\bpel_HelloWorld_1.0.jar"
    PK..
    ........3................META-INF/....PK..
    ........3...#............META-INF/MANIFEST.MFManifest-Version: 1.0
    Process-GUID: MD5{9d2c0a4b850da042548cc6bdf1c04d68}
    Created-By: 1.4.2_06 (Sun Microsystems Inc.)
    Process-Id: HelloWorld
    Timestamp: 1124360790893
    Process-Class: BPEL
    Implementation-Package: bpel.p0
    Revision-Tag: 1.0
    PK..
    ........3................BPEL-INF/PK..
    ........3.\.Z............bpel.xml<?xml version="1.0" encoding="UTF-8"?>
    <BPELSuitcase guid="MD5{9d2c0a4b850da042548cc6bdf1c04d68}" timestamp="1124360790893" revision="1.0">
    <BPELProcess process-impl="bpel.p0.BPEL_BIN" src="HelloWorld.bpel" id="HelloWorld">
    <partnerLinkBindings>
    <partnerLinkBinding name="client">
    <property name="wsdlLocation">HelloWorld.wsdl</property>
    </partnerLinkBinding>
    </partnerLinkBindings>
    </BPELProcess>
    </BPELSuitcase>
    PK..
    ........3[...5...5.......build.xml<?xml version="1.0" ?>
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Run cxant on this file to build, package and deploy the
    HelloWorld BPEL process
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <project name="HelloWorld" default="main" basedir=".">
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Name of the domain the generated BPEL suitcase will be deployed to
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <property name="deploy" value="default" />
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    What version number should be used to tag the generated BPEL archive?
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <property name="rev" value="1.0" />
    <target name="main">
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    the bpelc task compiles and package BPEL processes into versioned BPEL
    archives (bpel_...jar). See the "Programming BPEL" guide for more
    information on the options of this task.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    <bpelc input="${basedir}/bpel.xml" rev="${rev}" deploy="${deploy}" />
    </target>
    </project>PK..
    ........3,.JaZ...Z.......graphics.xml<?xml version = '1.0' encoding = 'UTF-8'?>
    <graphics>
    <partnerlink_locations>
    <partnerlink name="client" x="15" y="215" side="left"/>
    </partnerlink_locations>
    <diagram popupeditor="false" centerzoom="true" validateonload="true" confirmbeforedelete="true" SELECTED_PARTNERLINK_COLOR="0,0,153" SWIMLANE_BACKGROUND="255,255,225" SWIMLANE_DIVIDER_BACKGROUND="236,233,216" GRAPH_BACKGROUND="255,255,255" SELECTED_BORDER_BACKGROUND="204,255,204" CONNECTED_PARTNERLINK_COLOR="204,204,255" CONNECTABLE_PARTNERLINK_COLOR="0,0,255" UNCONNECTED_PARTNERLINK_COLOR="192,192,192"/>
    </graphics>
    PK..
    ........3O ..............HelloService.wsdl<definitions
    targetNamespace="http://tempuri.org/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:s0="http://tempuri.org/"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    >
    <import namespace="http://tempuri.org/" location="http://localhost/HelloEnglish/Service1.asmx?WSDL"/>
    <plnk:partnerLinkType name="Service1Soap_PL">
    <plnk:role name="Service1Soap_Role">
    <plnk:portType name="s0:Service1Soap"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>
    PK..
    ........3.....
    ......HelloWorld.bpel<!--
    // Oracle JDeveloper BPEL Designer
    // Created: Fri Aug 05 00:05:52 IST 2005
    // Author: nizam
    // Purpose: Synchronous BPEL Process
    -->
    <process name="HelloWorld" targetNamespace="http://xmlns.oracle.com/HelloWorld" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:client="http://xmlns.oracle.com/HelloWorld" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
    <partnerLinks><!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:HelloWorld" myRole="HelloWorldProvider"/>
    </partnerLinks><!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
    <variables><!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:HelloWorldRequestMessage"/><!--
    Reference to the message that will be returned to the requester
    -->
    <variable name="outputVariable" messageType="client:HelloWorldResponseMessage"/>
    </variables><!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
    <sequence name="main"><!-- Receive input from requestor.
    Note: This maps to operation defined in HelloWorld.wsdl
    -->
    <receive name="receiveInput" partnerLink="client" portType="client:HelloWorld" operation="process" variable="inputVariable" createInstance="yes"/><!-- Generate reply to synchronous request -->
    <assign name="Assign_1">
    <copy>
    <from expression="concat("v1.1: Hello ", bpws:getVariableData('inputVariable','payload','/client:HelloWorldProcessRequest/client:input'))"/>
    <to variable="outputVariable" part="payload" query="/client:HelloWorldProcessResponse/client:result"/>
    </copy>
    </assign>
    <reply name="replyOutput" partnerLink="client" portType="client:HelloWorld" operation="process" variable="outputVariable"/>
    </sequence>
    </process>PK..
    ........3.....
    ......HelloWorld.wsdl<?xml version="1.0" encoding="UTF-8"?>
    <definitions name="HelloWorld"
    targetNamespace="http://xmlns.oracle.com/HelloWorld"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:client="http://xmlns.oracle.com/HelloWorld"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
    .<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    .TYPE DEFINITION - List of services participating in this BPEL process
    .The default output of the BPEL designer uses strings as input and
    .output to the BPEL Process. But you can define or import any XML
    .Schema type and us them as part of the message types.
    .~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    .<types>
    ..<schema attributeFormDefault="qualified"
    ...elementFormDefault="qualified"
    ...targetNamespace="http://xmlns.oracle.com/HelloWorld"
    ...xmlns="http://www.w3.org/2001/XMLSchema">
    ...<element name="HelloWorldProcessRequest">
    ....<complexType>
    .....<sequence>
    ......<element name="input" type="string"/>
    .....</sequence>
    ....</complexType>
    ...</element>
    ...<element name="HelloWorldProcessResponse">
    ....<complexType>
    .....<sequence>
    ......<element name="result" type="string"/>
    .....</sequence>
    ....</complexType>
    ...</element>
    ..</schema>
    .</types>
    .<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    .MESSAGE TYPE DEFINITION - Definition of the message types used as
    .part of the port type defintions
    .~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    .<message name="HelloWorldRequestMessage">
    ..<part name="payload" element="client:HelloWorldProcessRequest"/>
    .</message>
    .<message name="HelloWorldResponseMessage">
    ..<part name="payload" element="client:HelloWorldProcessResponse"/>
    .</message>
    .<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    .PORT TYPE DEFINITION - A port type groups a set of operations into
    .a logical service unit.
    .~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    .<!-- portType implemented by the HelloWorld BPEL process -->
    .<portType name="HelloWorld">
    ..<operation name="process">
    ...<input message="client:HelloWorldRequestMessage" />
    ...<output message="client:HelloWorldResponseMessage"/>
    ..</operation>
    .</portType>
    .<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    .PARTNER LINK TYPE DEFINITION
    .~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    .<plnk:partnerLinkType name="HelloWorld">
    ..<plnk:role name="HelloWorldProvider">
    ...<plnk:portType name="client:HelloWorld"/>
    ..</plnk:role>
    .</plnk:partnerLinkType>
    </definitions>
    PK..
    ........3..............................META-INF/....PK..
    ........3...#......................+...META-INF/MANIFEST.MFPK..
    ........3..........................T...BPEL-INF/PK..
    ........3.\.Z......................{...bpel.xmlPK..
    ........3[...5...5.................i...build.xmlPK..
    ........3,.JaZ...Z.....................graphics.xmlPK..
    ........3O ........................I...HelloService.wsdlPK..
    ........3.....
    ....................HelloWorld.bpelPK..
    ........3.....
    ....................HelloWorld.wsdlPK...............&....
    *****

    If anyone is interested, I've created a custom ant taks to leverage this HTTP post for deploying the BPEL suitcase jar to remote servers. We didn't want to use FTP, as we'd have to change permissions on the files.
    To do this, I've leveraged the oracle.tip.pc.infra.deploy.DeployRemote class. You just have to pass it the path the the jar, server url (http://host:port/deploy/deployProcess.jsp), domain, and password.
    This seems to work fine for us.
    -Mike

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

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

  • How to send a String to a Servlet using a HTTP POST

    Well, I have designed a servlet that receives a HTTP POST, I was testing it using an HTML form to send (using POST) information, now, I have coded a Java App to send it a string, I don't know how to make the servlet recognize that info so it can make its work, I am posting both codes (Servlet & API) so anyone can guide me and tell me how and where to modify them
    Servlet:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class xmlwriter extends HttpServlet
    public void service(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    ServletOutputStream salida = res.getOutputStream();
    res.setContentType("text/HTML");
    String cadena = req.getParameter("cadena");
    File f1 = new File ("c:/salida.xml");
    FileWriter out = new FileWriter(f1);
    f1.createNewFile();
    out.write(cadena);
    out.close();
    salida.println("OK");
    Now, the JAVA API is:
    import java.io.*;
    import java.net.*;
    public class HTTPSender {
    public static void main(String[] args) throws Exception {
    URL url1 = new URL
    ("http://localhost:8080/XMLSender/xmlwriter");//internal site
    URLConnection UrlConnObj1 = url1.openConnection();
    HttpURLConnection huc1 = (HttpURLConnection)UrlConnObj1;
    huc1.setRequestMethod("POST");
    huc1.setDoOutput(true);
    huc1.setDoInput(true);
    huc1.setUseCaches(false);
    huc1.setDefaultUseCaches(false);
    String cadena = ""
    + "<root>\n"
    + "<tlf>$TLF$</tlf>\n"
    + "<op>$OP$</op>\n"
    + "<sc>$SC$</sc>\n"
    + "<body>$BODY$</body>\n"
    + "</root>";
         PrintWriter out = new PrintWriter(huc1.getOutputStream());
    System.out.println("string="+cadena);
    out.write(cadena);
    out.close();
    I'm a JAVA newbie, so, maybe I'm getting a bad idea of what I need to do, anyway, every (detailed) help is welcome. What my servlet should do (and it doesn't when I send the message through the API) is to write a file with the info received.

    I'm not trying to send a string from a WEB Page, I'm tryring to send it using a JAVA program, I mean, using a HTTPSender, in fact, I already have made the code to do that:
    import java.io.*;
    import java.net.*;
    public class HTTPSender {
    public static void main(String[] args) throws Exception {
    try {
    String cadena = "Message to be written";
    // Send data
    URL url = new URL("http://localhost:8080/XMLSender/xmlwriter");
    URLConnection conn = url.openConnection();
    conn.setDoOutput(true);
    OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
    wr.write(cadena);
    wr.flush();
    // Get the response
    BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    String line;
    while ((line = rd.readLine()) != null) {
    // Process line...
    wr.close();
    rd.close();
    } catch (Exception e) {
    And modified my servlet so it can receive anything:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class xmlwriter extends HttpServlet
    public void service(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    ServletOutputStream salida = res.getOutputStream();
    res.setContentType("text/HTML");
    String cadena = req.toString();
    File f1 = new File ("c:/salida.xml");
    FileWriter out = new FileWriter(f1);
    f1.createNewFile();
    out.write(cadena);
    out.close();
    salida.println("OK");
    Now the problem is that, the servlet in fact DOES create the file, but....the file is empty, that means that no info is arriving to the servlet, why?, how should I send it then? I repeat FORGET about a Web Page Form, that is in the past and I don't need that.

Maybe you are looking for

  • Downloads Folder No Longer Jumps Up When Saving Attachments

    When saving attachments in Mail, my downloads folder on the Doc used to jump up a couple of times when I hit "save" from within an email that I received to signify that I just saved it into that folder. However, for no rhyme or reason, the downloads

  • Can't compile package body

    hello. i ran in to little issue today. After patch 13839550 was applied to one of our test enviroments, we get one invalid package body. but when i try to compile it shows warrning! SQL> alter package APPS.AP_ACCTG_DATA_FIX_PKG compile body; Warning:

  • ABAP Table for Integration Directory Objects

    Hi Is there any ABAP table, which stores the runtime objects, communication channel, It's status, Service etc. Where you can find out status of each channel and the channel type used within the ABAP stack in Data Dictionary table. Replies apprecriate

  • Name of an int ( e.g. java.sql.Types )

    I have the sql.Types code as an int number and want to display the name. Is there a straightforward method or do I have to search it in a loop like here ? String getName(int i) { for (Field f: java.sql.Types.class.getFields()) {      if (f.getType().

  • Lightroom 2 & Wacom Intuos 3 Tablet

    Hi all My Wacom Tablet worked fine with LR1.4. Having installed LR2 the pen only works when over the image. As soon as I go to any of the side or top panels it changes to a double ended arrow and freezes. My wacom or MS mouse can then get me back to