Large number of http posts navigating between forms

Hi,
i'm not really a forms person (well not since v3/4 running character mode on a mainframe!), so please be patient if I'm not providing the most useful information.
An oracle forms 10 system that I have fallen into supporting has to me very poor performance in doing simple things like navigating between forms/tabs.
Looking at the java console (Running Sun JRE 1.6.0_17), and turning on network tracing, I can see a much larger number of post requests than I would expect (I looked here first as initially we had an issue with every request going via a proxy server, and I wondered if we had lost the bypass proxy setting). Only a normal number of GETS though.
Moving to one particualr detail form from a master record is generating over 300 post requests - I'v confirmed this looking at the Apache logs on the server. This is the worst one I have found, but in general the application appears to be extremely 'chatty'
The only other system I work with which uses forms doesn't generate anything like these numbers of requests, which makes me think this isn't normal (As well as the fact this particular form is very slow to open)
This is a third party application, so i don't have access to the source unfortunately.
Is there anything we should look at in our setup, or is this likely to be an application coding issue? This app is a recent conversion from a forms 6 client server application (Which itself ran ok, at least this bit of the application did with no delays in navigation between screens).
I'm happy to go back to the supplier, but it might help if I can point them into some specific directions, plus i'd like to know what's going on too!
Regards,
Carl

Sounds odd. 300 Requests is by far too much. As it was a C/S application: did they do anything else except the recompile on 10g? Moving from C/S to 10g webforms seems to be easy as you just need to recompile but in fact it isn't. There are many things which didn't matter in a C/S environment but have disastrous effects once the form is deployed over the web. The synchronize built in for example. In C/S calls to synchronize wasn't that bad; But when you are using web deployed forms...each call to synchronize is a roundtrip. The usage of timers is also best kept on a low level in webforms for example.
A good starting point for the whole do's and dont's when moving forms to the web is the forms upgrade center:
http://www.oracle.com/technetwork/developer-tools/forms/index-095046.html
If you don't have the source code available that's unfortune; but if you want to know what's happening behind the scenes there is the possibility to trace a forms session:
http://download.oracle.com/docs/cd/B14099_19/web.1012/b14032/tracing002.htm#i1035515
maybe this sheds some light upon what's going on.
cheers

Similar Messages

  • Initiating an HTTPS post via Oracle Forms 6i

    Greetings all...
    Here is my problem. I would love some advise/next steps on solving it.
    We are currently using web-version of Forms 6i with the JInitiator 1.1.8.16. I have a new requirement for an existing form where it needs to initiate an HTTPS "post" (not "get") to a remote server and then receive a response of success or not and some other information that the form will then act upon. I believe this means I cannot simply use the "web.show_document" built-in because it uses the "get" method rather than the "post" method.
    Although I am a veteran Forms developer, I am new to all this java stuff. It has been recommended to me that I incorportate a JavaBean into the form to call on this remote service, but I have no idea what that means -- I've never opened JDeveloper. It was also mentioned that maybe there is already a JavaBean in existence that I can just use. I don't know what details of my situation would be useful to know to determine if one exists or not. Does this possibly existing JavaBean need to know already which URL I want to go to? Will it need to know the exact parameters I want to pass or could there be a JavaBean out there to simply "call any URL using the post method" regardless of the number of parameters to send it?
    I've looked through some of the forum for this question and since I'm clueless on java stuff, I didn't find anything that jumped out as an answer for me. Can someone (or many of you would be fine) clue me on the best approach? Thanx.
    Shane.

    Since the initial post above, I've discovered more to this situation that doesn't give me much hope of implementation.
    The "response" that I get back from the remove service is simply a "redirect" telling the initiating browser to go to a URL that I have to set up. When the response comes back, the remote service will tell the browser to go to this redirected URL with the "responses" as parameters in the URL resulting in the user's browser calling this "redirect" URL with a "get" method.
    Not sure what all that means to be honest, but am wanting to learn.
    Shane.

  • Communicate large number of parameters and variables between Verstand and Labview Model

    We have a dyno setup with a PXI-E chassis running Veristand 2014 and Inertia 2014. In order to enhance capabilities and timing of Veristand, I would like to use Labview models to perform tasks not possible by Veristand and Inertia. An example of this is to determine the maximum of a large number of thermocouples. Veristand has a compare funtion, but it compares only two values at a time. This makes for some lengthy and inflexible programming. Labview, on the other hand, has a function which aloows one to get the maximum of elements in an array in a single step. To use Labview I need to "send" the 50 or so thermocouples to the Labview model. In addition to the variables which need to be communicated between Veristand and Labview, I also need to present Labview with the threshold and confguration parameters. From the forums and user manuaIs understand that one has to use the connector pane in Labview and mapping in Veristand System Explorer to expose the inports and outports. The problem is that the Labview connector pane is limited to 27 I/O. How do I overcome that limitation?
    BTW. I am fairly new to Labview and Versitand.
    Thank you.
    Richard
    Solved!
    Go to Solution.

    @Jarrod:
    Thank you for the help. I created a simple test model and now understand how I can use clusters for a large number of variables. Regarding the mapping process: Can one map a folder of user channels to a cluster (one-step mapping)? Alternatively, I understand one can import a mapping (text) file in System Explorer. Is this import partial or does it replace all the mapping? The reason I am asking is that, if it is partial, then I can have separate mapping files for different configurations and my final mapping can be a combination of imported mapping files.
    @SteveK:
    Thank you for the hint on using a Custom Device. I understand that the Custom Device will be much more powerful and can be more generic. The problem at this stage is that my limitations in programming in Labview is far gretater than Labview models' limitations in Veristand. I'll definitely consider the Custom Device route once I am more provicient with LabView. Hopefully I'll be able to re-use some of the VI's I created for the LabView models.
    Thanks
    Richard

  • HTTP POST + Calling 10g forms

    If Jan's suggestion isn't suitable, you could try supplying the username in a HTTP POST, rather than as part of the URL - %username% in formsweb.cfg should still be able to pick it up.
    James

    Hmm, how are you populating the HTTP Post? In our application, we have a HTML login page with a standard HTML form, with the fields ir_username, ir_password and ir_dbalias. When the form is submitted, its 'action' is the URL required to start up the main Forms application.
    In our formsweb.cfg, we have:
    userid=%ir_username%/%ir_password%@%ir_dbalias%
    Of course, you could assemble the 3 parameters into one string in the calling HTML form and submit it as a single variable if you preferred.

  • WebLogic Apache bridge problems on uploading large files via HTTP post

    I have a problem uploading files larger than quarter a mega, the jsp
    page does a POST
    to a servlet which reads the input stream and writes to a file.
    Configuration: Apache webserver 1.3.12 connected to the Weblogic 5.1
    application server
    via the bridge(mod_wl_ssl.so) from WebLogic Service pack 4.
    The upload goes on for about 30 secs and throws the following error.
    "Failure of WebLogic APACHE bridge:
    IO error writing POST data to 100.12.1.2:7001; sys err#: [32] sys err
    msg [Broken pipe]
    Build date/time: Jul 10 2000 12:29:18 "
    The same upload(in fact I uploaded a 8 MEG file) using the
    Netscape(NSAPI) WebLogic
    connector.
    Any answers would be deeply appreciated.

    I have a problem uploading files larger than quarter a mega, the jsp
    page does a POST
    to a servlet which reads the input stream and writes to a file.
    Configuration: Apache webserver 1.3.12 connected to the Weblogic 5.1
    application server
    via the bridge(mod_wl_ssl.so) from WebLogic Service pack 4.
    The upload goes on for about 30 secs and throws the following error.
    "Failure of WebLogic APACHE bridge:
    IO error writing POST data to 100.12.1.2:7001; sys err#: [32] sys err
    msg [Broken pipe]
    Build date/time: Jul 10 2000 12:29:18 "
    The same upload(in fact I uploaded a 8 MEG file) using the
    Netscape(NSAPI) WebLogic
    connector.
    Any answers would be deeply appreciated.

  • Fastest way to handle and store a large number of posts in a very short time?

    I need to handle a very large number of HTTP posts in a very short period of time. The handling will consist of nothing more than storing the data posted and returning a redirect. The data will be quite small (email, postal code). I don't know exactly how
    many posts, but somewhere between 50,000 and 500,000 over the course of a minute.
    My plan is to use the traffic manager to distribute the load across several data centers, and to have a website scaled to 10-instances per data center. For storage, I thought that Azure table storage would be the ideal way to handle this, but I'm not sure
    if the latency would prevent my app from handling this much data.
    Has anyone done anything similar to this and have a suggestion for storing the data? Perhaps buffering everything into memory would be ideal and then batching from there to table storage. I'm starting to load-test the direct to table-storage solution and
    am not encouraged.

    You are talking about a website with 500,000 posts per minute with re-direction, so you are talking about designing a system that can handle at least 500,000 users? Assuming that not all users are doing posts within a one minute timeframe, then you
    are talking about designing a system that can handle millions of users at any one time.
    Event hub architecture is completely different from the HTTP post architecture, every device/user/session writes directly to the hub. I was just wondering if that actually work better for you in your situation.
    Frank
    The site has no session or page displaying. It literally will record a few form values posted from another site and issue a redirect back to that originating site. It is purely for data collection. I'll see if it is possible to write directly to the event hub/service
    bus system from a web page. If so, that might work well.

  • 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

  • Kerberos Ticket via Java to BW to access BW Querys with HTTP POST

    Hi and thanks for reading,
    im Working with 2004 and the NWDS SP10. We have a project which must show some reports from the HR system via backend and some BW Reports done with Web Application Designer 3.5.
    The user of the project application is able to select personnel numbers or org units in a tree UI element. At design time we do not know hwo many of each he might select (could be a couple of hundreds or even more).
    A URL isn't long enough to support our needs (255 characters border)
    A consultant said that we should use HTTP Post with a Form. He gave me an example like this
    <HTML>
    <BODY>
    <form name="querySelektion" action="<system name>" method="POST">
              <input type="submit" value="Formular senden" />
              <!-- Template Parameter -->
              <input name="SAP-LANGUAGE" type="hidden" value="D" />
              <input name="PAGENO" type="hidden" value="1" />
              <input name="CMD" type="hidden" value="LDOC" />
              <input name="TEMPLATE_ID" type="hidden" value="Z_TEST_AX" />
              <!-- Selektionsparameter -->
              <input name="var_name_1" type="hidden" value="H1_ORGST" /></td>
              <input name="VAR_NODE_IOBJNM_1" type="hidden" value="0ORGUNIT" />
              <input name="var_value_ext_1" type="hidden" value="50058503" />
         </form>
    </BODY>
    </HTML
    This is working beside the fact that i have to fill in my BW username and password. I translated this to Java with  the Jakarta HTTP Librarys into the following code.
    try
                HttpClient httpClient = new HttpClient();
                PostMethod post = new PostMethod("http://<system name>");
                NameValuePair[] data =
                        new NameValuePair("SAP-LANGUAGE", "D"),
                        new NameValuePair("PAGENO", "1"),
                        new NameValuePair("CMD", "LDOC"),
                        new NameValuePair("TEMPLATE_ID", "Z_TEST_AX"),
                        new NameValuePair("var_name_1", "H1_ORGST"),
                        new NameValuePair("VAR_NODE_IOBJNM_1", "0ORGUNIT"),
                        new NameValuePair("var_value_ext_1", "50058503")};
                post.setRequestBody(data);
                int iReturnCode = httpClient.executeMethod(post);
                wdContext.currentContextElement().setTextView(Integer.toString(iReturnCode ));
                post.releaseConnection();
            } catch (IOException ioe)
                wdContext.currentContextElement().setTextView(ioe.getMessage());
    All i get is an Error 401 which means "Not Authorized". The Portal (where the application is running) and the BW do both support Single Sign On and the BW System is configured in the Portal.
    I think the HTTP Post is to generic. I also think that i need to make a authorization before and post the Kereberos Ticket to the BW before.
    But how can i accomplish that? Is there a SAP HelperClass to configure or establish system connections of SSO enabled systems?
    Or is the approach with the HTTP Post in java wrong, maybe there is an easier way to do transfer a lot of personnel or orgunit numbers to the BW Query?
    Thanks in advance,
    Kai Mattern

    Since you mentioned, I now tried to modify the writeToFile method in a few ways (closing the streams, directly setting them to null...), but the "java.lang.IllegalStateException: Already connected" exception remains there
    Actually I suppose this has no effect on the originally reported cookie problem, because if I just completely remove this logwriting (+ the following URL disconnect-reconnect) from the code, the situation is the very same
    I paste my modified writeToFile method anyway, maybe you can tell what I do wrong here, and I can learn from that
        public void writeToFile ( HttpURLConnection urlConnection, String filename ) {
          try {
            BufferedReader bufferedReader = null;
            InputStreamReader inputStreamReader = null;
            // Prepare a reader to read the response from the URLConnection
            inputStreamReader = new InputStreamReader(urlConnection.getInputStream());
            bufferedReader = new BufferedReader(inputStreamReader);
            String responseLine;
            PrintStream printStream = new PrintStream(new FileOutputStream (filename));
            // Read until there is nothing left in the stream
            while ((responseLine = bufferedReader.readLine()) != null)
                printStream.println(responseLine);
            inputStreamReader.close();
            bufferedReader.close();
            inputStreamReader = null;
            bufferedReader = null;
            printStream.close();
          catch (IOException ioException) { /* Exception handling */ }
        } //writeToFile()

  • How can I form a group in address book. I need to transfer a large number of emails from an excel spread sheet to form a group to send emails to.

    I need to transfer a large number of emails from an excel spread sheet to form a group to send emails to. I can either use address book or transfer them to BTYahoo contacts and send from there.

    Hello, if you have the font that Photoshop is supposed to use to write the barcode, and each image is also listed in the spreadsheet, you can use the little known feature called variables: http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-7417a.h tml
    see this video: 
    http://www.youtube.com/watch?v=LMAeX5pexNk
    Or this one:
    http://tv.adobe.com/watch/adobe-evangelists-julieanne-kost/pscs5-working-with-variables/

  • CL_HTTP_CLIENT, HTTP POST of XML as a form field, encoding

    I am working on a couple of interfaces between a SAPsystem (NetWeaver 2004s, ABAP stack) and another system.
    On the SAP side we are using the built-in HTTP-client (CL_HTTP_CLIENT).
    For the interface from SAP to the other system, the other system expects an XML as the value of a form field in an HTTP POST request.
    In fact, it was described as doing the equivalent to this HTML-fragment in a web-browser:
    <form action="http://over.there.com/interface/import.php" method="post">
      <p>Please enter your xml data:
        <textarea name="data" cols="50" rows="10"></textarea>
        <input type="submit" value="submit">
      </p>
    </form>
    I assume I will have to do a SET_METHOD in order to get the POST method (as opposed to GET) and a SET_FORM_FIELD (for field "data").
    According to the reference I found at W3C ( http://www.w3.org/TR/html4/interact/forms.html ), the default encoding method for a POST is "application/x-www-form-urlencoded". Does this mean I have to do this encoding myself?
    Could I opt for another encoding - "text/xml" for example? If so, how? With a SET_HEADER_FIELD?

    Thank you.
    This is how we set the context-type:
        call method client->request->if_http_entity~set_content_type
            exporting
              content_type = p_contyp.
    where p_contyp contained 'text/xml'.
    This is how we set the form-field data:
    call method client->request->if_http_entity~set_form_field
            exporting
              name  = p_formfd
              value = xmlstring.
    where p_formfd contained 'data' - the name that was specified.
    This is how we make the request a POST:
    call method client->request->set_method
          exporting
            method = 'POST'.

  • 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

  • Submitting a PDF form via HTTP Post: Beginner's Questions

    Hi,
    I am completely new to PDF forms, so I have been finding the documentation and options overwhelming.
    I am hoping to get pointed to the documentation/tutorials/examples I really need.
    I would like to build a "proof of concept" for my boss.  I would like to include a screen in our Java ( JSP & Spring ) webapp where either a PDF form is embedded or is accessed via a link.
    I have
    Adobe Acrobat Distiller X standard license
    Adobe Acrobat X Standard
    Microsoft Office 2010
    I made a small, 3 field Microsoft Word form.  I then converted it via DIstiller into a PDF form.
    I then found this document about how to submit a PDF form to a server side component:
    http://acrobatusers.com/tutorials/form-submit-e-mail-demystified
    My big problem with this document it doesn't have an example nor an example showing what is going on in a full HTML page.   As I result I have some questions:
    Can I see such an example somewhere?
    Does the call to the javascript function doc.SubmitForm(urlToMyServerSideComponent) go in a script tag on the HTML page like other javascripts?
    Can I execute that submit function from an HTML button or do I need to put a "submit" button on the PDF form?
    Do I need Adobe LiveCycle in order to create a PDF form with a "submit" button?  Free versions?
    Can I send via HTTP POST ?
    Do I need Adobe LiveCycle to crate a PDF form with a digital signature?
    Is there a document/tutorial that fits where I am starting off from? ( Please no books, I am tyring to show my boss that this is something that can be done, in a reasonable amount of time, not time to get and go through a book ).
    Thanks in advance for any tips that get me pointed in the right direction
    Steve

    To answer some of your specific questions:
    2, 3. The submit form button needs to be on the PDF. You can either configure a Submit Form action or use the submitForm JavaScript method.
    4, 6: No to both questions. You can create the form in Acrobat. Such forms are knows as Acroforms, as opposed to XFA forms that are created with LiveCycle Designer. Acroforms have wider support.
    5: Yes, that's the method that's used when submitting to a web server. You have your choice of formats. The "HTML Form" option causes the form data to be submitted in the same format as an HTML form, so the same type of server-side code can be used to process the data. As Dave's tutorial shows, the server should return an FDF as the response, however, as opposed to HTML content.
    It's a mistake to try to embed the PDF in a web page. So much depends on the user's browser, PDF viewer, and how both are configured. PDF forms can be submitted directly from Adobe Reader/Acrobat, so it's not necessary for them to be viewed in a browser. Note that Adobe Reader for iOS/Android don't yet support submitting to a web server (apart from FormsCentral), but that's is supposedly being worked on.
    Since you mentioned digital signatures, be aware that for Reader users to be able to sign, the document has to be Reader-enabled, either with Acrobat Pro or LiveCycle Reader Extensions (which is not the same as LiveCycle Designer). Digital signatures in PDF forms are not yet supported on mobile devices. Also, you will want to submit the entire PDF, as opposed to just the form data, when submitting a digitally signed form.

  • Render html form & send forms's input values as params via HTTP POST

    Hello,
    I'm using appache commons http client to send HTTP post queries to a given url and receive HTTP response then process it.
    one of the requirements of my Application is the following: one of these HTTP Post requests is supposed to return an HTML form with different html types (text filed, text area etc..) that i will need to display in my swing application. one important requirement is that i can't know in advance what the html form field types will be.. it depends on a given parameters that my application send as part of HTTP Post method (using apache http client).
    I Longly searched for a simple solution to this problem . There are many solutions but each one has it's limitations :
    1-i can render the html form inside a JEditorPane .but how can I collect the user entered data inside JEditorPane ? i'm not sure this swing component offers the capability to detect its html contents and more it will be difficult to know what are the values entered by user inside html form rendered by JEditorPane.
    2-are there any Java Embedded browsers that offer some API to enable me detect the html form fields ,capture the data entered by user inside the html form ?
    3-the solution i currently opted for is : parse html & convert html form to swing dialog. currently this solution i use works well but the cost of implementing it is high : it involves difficult parsing logic. this makes me worried .I'm not sure if i'm now using the right & easiest solution.
    I need some advice on What is the simplest and clean solution to render a html form & yet be able to collect user entered inputs & send the user input values as params via java HTTP POST request ?

    dragzul wrote:
    In my opinion, your actual solution is what you need to do. You're trying to "merge" two different kinds of view. Actually, the "easiest" way may be: if you have your data to display, you decide to show it on html or swing.Yes i believe that my current solution may be the unique one for my special requirements. when doing research about this problem i found a multitude of java libraries to convert xml to swing (ex: www.swixml.org) .However i was surprised there are no java libraries to convert HTML forms to swing dialogs -as far as i know-. this is a bit strange. The Limitation is that the developers of the server API are not Java guys and are reluctant to use an xml format that i can easily convert to swing . probably they have their own reasons as they might be using the HTML Response for some other server side work. So I was obliged to deal with an HTML stream that i need to display in my client application and process its data. in my opinion the only way to do this is by developing a HTML form to swing converter package. that's what i did now. i was only worried if i'm complicating things and if there are some easier solutions to this issue.
    thanks

  • Submit Form data by Http Post

    hi,
    i created a pdf form in livecycle designer with certain fields and want to submit the data filled in the form to a java servlet in HTTP POST Manner...
    can any1 please tell how to capture the posted data from pdf to java servlet??
    i am looking for code in java which will capture the HTTP POST data ...
    moreover, if in the servlet , is it valid to write request.getParameter("FirstName") where FirstName being a field in the PDF??
    please help ASAP....thanx in advance

    Toby,
    Look at <CFHTTP>
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_g-h_09.html#3989287
    Ken Ford
    Adobe Community Expert Dreamweaver/ColdFusion
    Adobe Certified Expert - Dreamweaver CS3
    Adobe Certified Expert - ColdFusion 8
    Fordwebs, LLC
    http://www.fordwebs.com
    http://www.cfnoob.com
    "toby007" <[email protected]> wrote in
    message
    news:ge5inl$21v$[email protected]..
    > Hi there
    >
    > I need to check whether the following is possible and I
    have to find out
    > ASAP.
    >
    > I have to find out if I can pass data to another
    application on a differet
    > server,
    >
    > Basically I have been told so far that the only way that
    I can pass
    > information is by a HTTP post.
    >
    > Previously I have done something similar by posting a
    form to a URL. This
    > time I have a string which contains the information.
    >
    > How can I post a string so it can be used by the
    application which is o
    > the
    > other server.
    >
    > Thanks in advance.
    >
    >
    >
    > Toby
    >

  • Fill a Google form with http POST VI

    Dear LabVIEW forum,
    I am trying to fill a very simple Google form consisting in 4 text fields named AI0, AI1, AI2 and AI3.
    I use the http POST VI provided by LabVIEW:
    When I execute this, a new line is added to the response spreadsheet, but the values don't appear, except for the timestamp.
    What am I doing wrong?
    Thanks!
    LabVIEW 2013 SP1
    Windows 7 64bit
    Windows Server 2012 64 bit
    Windows 8.1 32 bit
    Solved!
    Go to Solution.

    Hi
    I had a quick look at the form and the text next to the input boxes is AI0 ... but the names of the input text boxes are not AI0 etc. You may have to get the page first and then parse the page for the name of the entry.
    <input type="text" name="entry.2117155241" value="" class="ss-q-short" id="entry_2117155241" dir="auto" title="">
    Mike

Maybe you are looking for

  • How big a internal hard drive can I install in a G5 Powermac

    Model Name:          Power Mac G5   Model Identifier:          PowerMac11,2   Processor Name:          PowerPC G5 (1.0)   Processor Speed:          2 GHz   Number Of CPUs:          2   L2 Cache (per CPU):          1 MB   Memory:          4.5 GB   Bus

  • How to reinstall Recovery HD after full Time Machine recover?

    I had to recover my primary Macinstoh HD to a new disk from Time Machine, but somehow I now lost my Recover HD on the Macintosh HD.  To do the initial recover I had to install Mac OS X Lion on a 2nd internal Hard Drive, but now I want to use Time Mac

  • On my macbookpro I can't eject a mini CD have tried everything

    mac bookpro - I cannot eject a mini CD

  • APO or SCM

    Hi All,           Please give the more information about APO 5.0 or SCM.How it is used on Real time and how to Optimiztion of business cost and Planning ...etc.I need How to transfer data from the R/3 to APO system. I have knowledge on SAP-ABAP and s

  • Officejet pro 8500a power saving mode

    My  Officejet Pro 8500a goes into power saving mode too soon and too frequently.  Is it possible to turn this feature, power saving mode, off?