HTTP Post Action Block

Greetings all,
I am using a HTTP Post Action in BLS - Vs 11.5. 
The objective is to return a HTTP string from a jsp page, so I can scrap the page. 
The URL:  http://mospublic.ercot.com/ercot/jsp/balancing_services_mcp.jsp?marketdate=2008-06-16   (obviously you might have to change the date to Yesterdays Date)
I have set up the HTTP Post Action with
URL Address of:   http://mospublic.ercot.com/ercot/jsp/balancing_services_mcp.jsp
Post Document:   marketdate=2008-06-16
Encoding: UTF-8
ID and Password are provided
Content Type:   application/x-www-form-urlencoded
Post_0.ReturnAsString comes back with typical HTML content for Today's Date.
Testing has shown that on a fresh IE window.  Using the above url will show today's data. 
Hitting this url again the second time will get the browser to yesterday's data.
So any suggestions on how to make this happen. 
(btw, I have no control over the external public ERCOT website so changing thier jsp page isn't an option.)
Anyway we could emulate that action in BLS - v11.5?
Thanks
Dennis

It's not working for me???
Did that work for you?
I have attached my sample... It's a repeater, a http Post and a tracer. 
<?xml version="1.0" encoding="UTF-8"?>
<Transaction xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <TransactionAttributes>
          <ContextItem>
               <Name>Description</Name>
               <Description>Transaction Description</Description>
               <MinRange>0</MinRange>
               <MaxRange>0</MaxRange>
               <Value xsi:type="xsd:string"/>
               <ReadOnly>true</ReadOnly>
          </ContextItem>
     </TransactionAttributes>
     <Name>west_test/html Post Question</Name>
     <Version>1</Version>
     <WriterRoles/>
     <ReaderRoles/>
     <Context/>
     <Local/>
     <Layout>
          <GUILayoutItem>
               <Name>Sequence</Name>
               <X>8</X>
               <Y>8</Y>
               <Width>120</Width>
               <SpacingWidth>120</SpacingWidth>
               <DescendantWidth>120</DescendantWidth>
               <Height>96</Height>
          </GUILayoutItem>
          <GUILayoutItem>
               <Name>Post_0</Name>
               <X>16</X>
               <Y>24</Y>
               <Width>104</Width>
               <SpacingWidth>0</SpacingWidth>
               <DescendantWidth>0</DescendantWidth>
               <Height>72</Height>
          </GUILayoutItem>
          <GUILayoutItem>
               <Name>Sequence_0</Name>
               <X>8</X>
               <Y>136</Y>
               <Width>120</Width>
               <SpacingWidth>120</SpacingWidth>
               <DescendantWidth>0</DescendantWidth>
               <Height>96</Height>
          </GUILayoutItem>
          <GUILayoutItem>
               <Name>Tracer_0</Name>
               <X>16</X>
               <Y>152</Y>
               <Width>104</Width>
               <SpacingWidth>0</SpacingWidth>
               <DescendantWidth>0</DescendantWidth>
               <Height>72</Height>
          </GUILayoutItem>
     </Layout>
     <Actions>
          <ContextItem>
               <Name>Post_0</Name>
               <Description/>
               <MinRange>0</MinRange>
               <MaxRange>0</MaxRange>
               <Value xsi:type="Post">
                    <URL>http://mospublic.ercot.com/ercot/jsp/balancing_services_mcp.jsp?marketdate=2008-06-18</URL>
                    <Encoding>UTF-8</Encoding>
                    <ContentType>text/html</ContentType>
                    <Timeout>60</Timeout>
                    <UserName>YOUSUPPLY</UserName>
                    <PostData/>
                    <UserPassword>YOUROWN</UserPassword>
                    <ReturnAsString/>
                    <ReturnAsXML>
                         <ReferenceDocumentSource/>
                    </ReturnAsXML>
               </Value>
               <ReadOnly>false</ReadOnly>
          </ContextItem>
          <ContextItem>
               <Name>Tracer_0</Name>
               <Description/>
               <MinRange>0</MinRange>
               <MaxRange>0</MaxRange>
               <Value xsi:type="Tracer">
                    <Level>INFO</Level>
                    <Message/>
               </Value>
               <ReadOnly>false</ReadOnly>
          </ContextItem>
     </Actions>
     <Steps>
          <Step xsi:type="ActionSequence">
               <Name>Sequence</Name>
               <Description/>
               <Steps>
                    <Step xsi:type="ActionSequence">
                         <Name>Sequence_0</Name>
                         <Description/>
                         <Steps/>
                         <Actions>
                              <Action>
                                   <Name>Tracer_0</Name>
                                   <Description/>
                                   <IncomingLinks>
                                        <Assign xsi:type="Assign">
                                             <Name/>
                                             <Description/>
                                             <To>Tracer_0.Message</To>
                                             <From>Post_0.ReturnAsString</From>
                                        </Assign>
                                   </IncomingLinks>
                                   <OutgoingLinks/>
                              </Action>
                         </Actions>
                    </Step>
               </Steps>
               <Actions>
                    <Action>
                         <Name>Post_0</Name>
                         <Description/>
                         <IncomingLinks>
                              <Assign xsi:type="Assign">
                                   <Name/>
                                   <Description/>
                                   <To>Post_0.URL</To>
                                   <From>"http://mospublic.ercot.com/ercot/jsp/balancing_services_mcp.jsp?marketdate=" &amp; datefromxmlformat( datenow, "yyyy-MM-dd")"</From>
                              </Assign>
                         </IncomingLinks>
                         <OutgoingLinks/>
                    </Action>
               </Actions>
          </Step>
     </Steps>
</Transaction>

Similar Messages

  • How to create a Post String in HTTP Post Action - 11.5 SR3

    Hi Guys,
    I am trying to post a string to a servlet using HTTP Post. The servlet excepts a Parameter with name b2mml. I am trying to send the Post String in the HTTP Post actions as a name value pair b2mml=xmlencode("my xml here"). Is this the way that I am supposed to send the HTTP Post. In Java, I url encode the key and value and send it to the servlet in a Post.
    What should be my post string in this case? does a simple name value pair suffice, which I think is not working in the test. I put the debugger on the servlet and I have seen that no data is coming in the request.
    Thanks,
    Ravi.

    Thanks Sam. But that doesnot seem to solve the problem.
    The transaction has the input 'b2mml' with is a xml. In  the http post action, I configured the 'PostData' property using the link editor as
    "b2mml="&Transaction.b2mml
    The servlet is trying to read parameter b2mml but it is not there in the request object.
    Ravi.

  • Web Service Action Block

    I'm attempting to call a web service that we have developed. I'm able to configure the webservice block without any problems. However, when I attempt to execute the block I get a "Internal server error" message. When I look in the general log I have the following message:
    <b>Classname:</b> IntrospectionUtilities
    <b>Mesage:</b> Generic Reflection error (Set): java.lang.NoSuchMethodException: com.lighthammer.xacute.actions.webservice.WebServiceAction.setSoapService(java.lang.String) -> setSoapService
    Does anyone know what this message means ?
    Thanks
    Glenn

    Glenn,
    Unfortunately its not easy to tell why the Web Service call is failing without knowing what the Web Service is doing.  But I can explaing what the SoapService is in xMII and maybe this will help....
    The Soap Service to xMII is a helper class that parses the WSDL for the various ports and operations that are defined.  It gets the transport URI of the service and also the SOAP Body to be used as a reference. 
    If your WebService fails to return these or they are malformed then the SoapService object will not create properly and cause this method to fail.  My suggestion is to either examine your Web Service to make sure it meets proper W3 standards OR to use the POST action block to perform the HTTP operation. 
    Hope this helps.
    -Sam

  • XI - HTTP Action Block Error !

    Hi Guys!
    I have problem when using XI HTTP Action block.
    Everthy worked fine few days back , now i get below error strange
    [ERROR]: Error: Status (502): Proxy Error ( The specified network name is no longer available.  )
    [ERROR]: ACTION FAILED: End Action HTTP_XI_0 : ( )
    Any reason , i have not changed any settings
    rgds
    Savy

    Hi,
    You have to do the Proxy settings in System Management----->System Administration.
    Go to the below link for help:
    http://help.sap.com/saphelp_xmii120/helpdata/en/45/59840fe39065d1e10000000a1553f6/content.htm
    -Suresh

  • Getting error while using HTTP connector and calling POST action to a Web API which is deployed as website on Azure

    I have create Logic App under Azure App Services, I am getting
    error while using HTTP connector and calling POST action to a Web API which is deployed as website on Azure.
    Following are the screen shots:
    Login App Connector Diagram:
    hema

    Marking as answered since no response on request for more information - assuming that you found what was wrong in the inputs. Let us know if you're still having trouble.
    http://twitter.com/joshtwist

  • Not able to send message - http post from MII 12.1.4.53 to PI 7.1

    Hi ,
    Question
    u2022     Is there any configuration to set up in MII and PI to do posting to PI as a web service? If YES, please guide.
    Situation
    u2022     We are with MII version 12.1.4.53 and trying to send message through http post to PI 7.1 server.
    u2022     We are getting the following error HTTP 500 Internal Error Issue.
    u2022     However we are able to post messages from SOAPUI through the same URL and with the MII system which is running on version 12.1.6.91 and 12.1.9.116
    u2022     HTTP Response received as below points to PI Configuration issue.
    Error
        <SOAP:Fault>
          <faultcode>SOAP:Server</faultcode>
          <faultstring>Server Error</faultstring>
          <detail>
            <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
              <context>XIAdapter</context>
              <code>ADAPTER.JAVA_EXCEPTION</code>
              <text><![CDATA[
    com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve inbound binding for the given P/S/A values: FP=senderService;TP=;FS=null;TS=;AN=null;ANS=null;
    thanks
    Rajesh

    Hi Anudeep,
    The question isNOT ABOUT the format of the URL which MII should use.
    Using the same URL we are able to post the message from other MII versions with in the landscape( MII version 12.1.6 and MII version12.1.9) and through SOAP UI.
    500 Internal server error Problem arises when the message is sent through the same URL from MII 12,1.4 Build(53) to PI 7.1 ( we tried https Post, XI Webservice, WebService action blocks)
    Question:
    Are thre any configuration settings specific to MII version12.1.4 Build 53 which needds to be set in MII to communicate to PI 7.1.
    Thanks
    Rajesh

  • XMII v12 - JRA Action Blocks Question

    We are implementing v12 (AIX) and require ECC server load balancing for our production environment. Production environment we have multiple xMII servers and multiple ECC servers. (our development environment is standalone, single xMII server, single ECC server). I understand that the JRA action blocks should be used for ECC load balancing instead of the JCO action blocks.
    Could not find any information concerning the 3 choices available in the JRA Start Session action block. We do not know which deployed adapter to use.
    1. nonGlobalTx/eis
    2. shareable/eis
    3. unshareable/eis
    From a previous post, found the following link, but did not go into detail on the 3 adapter choices:
    http://help.sap.com/saphelp_erp2005/helpdata/en/6f/1bd5caa85b11d6b28500508b5d5211/content.htm

    Here's what it was supposed to say...
    David,
    Just for completeness on the earlier part of the thread here are the connection definitions:
    "Non-shareable" - means that inside a transaction 2 or more physical connections will be created if applications wants to acquire 2 or more connections from one resource adapter. Each connection which is acquired from application will use separate physical connection.
    "Shareable" -   means that inside a transaction 1 physical connection will be created even if the applications wants to acquire 2 or more connections from one resource adapter. All connections that are returned to the application will share one physical connection. This is the default configuration.
    Non-global TX - connections which are acquired from connection factory with this setting will not be enlisted into distributed(JTA) transactions. This is SAP specific setting.
    Global TX - Connections are enlisted into transaction. This is the default/standard configuration.
    As for SSO, I may have misspoken earlier about this still trying to find a good answer for you.  In the mean time here's the best that I can do:
    Application authorization - application is responsible to provide user/password during get connection request. Or  user/password is specified into resource adapter properties. This is the default configuration in SAP.
    Container authorization - means that server is responsible to provide user/psw based on specific configuration which is done on the server.  For example SSO is done with container authorization.
    The Container Authorization has a bunch of SAP Help ([http://help.sap.com|http://help.sap.com]) on the security configuration here:
    ([https://help.sap.com/javadocs/NW04S/current/jr/index.html|https://help.sap.com/javadocs/NW04S/current/jr/index.html])
    I will continue to follow-up on this but if you keep me updated on your progress it will help me along as well.
    Sam

  • Changing database credentials of action block SQL Query

    Hi,
           I have created a SQL Query with command mode for inserting data in database. But I would like to change the database credentials of this SQL Query dynamically. How can I do this? I have seen one property of this action block as Connector. What is format of the value it expects. Can any one help me on this?
    Thanks
    Shaji

    Can you please specify exactly what you're trying to do?
    You mention credentials in your subject line and earlier post, which to me would indicate that you might want your query activity to be done on behalf of the logged in user?  This was an option in 11.5 (no idea how often it was used, or what 12.0/12.1 do since the documentation is void of the setting) http://help.sap.com/saphelp_xmii115/helpdata/en/Connectors/IDBCConnector.htm#Capabilities 
    You would have to formulate an /XMII/Illuminator?QueryTemplate=xxx/yyyy type query to include these properties, since they are not applet or template parameters they won't show up in the link editor.
    The User / Pwd properties you see are not for this - they are leftovers from older versions for authenticating applets.

  • Web Service Action block throws Internal Server Error 500

    Please forgive the lengthy message!
    Web service Action block authenticates the user as confirmed from the web service logs.  Now I get an Internal Server Error 500.  Is this a bug in MII?  The WS does execute correctly from a .Net Client.
    Here is the Message from the error in MII NetWeaver log:
    SOAP Invoke Error. Status: 500 Message: Internal Server Error
    [EXCEPTION]
    java.lang.Exception: Status (500): Internal Server Error
    at com.sap.lhcommon.webservice.SoapClient.invoke(SoapClient.java:81)
    at com.sap.xmii.bls.executables.actions.webservice.WebServiceActions.callWebService(WebServiceActions.java:319)
    at com.sap.xmii.bls.executables.actions.webservice.WebServiceActions.webService(WebServiceActions.java:408)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sap.xmii.bls.engine.DataBufferPayload.execute(DataBufferPayload.java:157)
    at com.sap.xmii.bls.engine.ReflectiveAction.doExecute(ReflectiveAction.java:629)
    at com.sap.xmii.bls.engine.BaseNode.executeNode(BaseNode.java:195)
    at com.sap.xmii.bls.engine.BaseAction.execute(BaseAction.java:75)
    at com.sap.xmii.bls.engine.runners.ProductionRunner.runAction(ProductionRunner.java:121)
    at com.sap.xmii.bls.executables.sequences.Sequence.execute(Sequence.java:50)
    at com.sap.xmii.bls.engine.runners.ProductionRunner.runSequence(ProductionRunner.java:102)
    at com.sap.xmii.bls.executables.sequences.Sequence.execute(Sequence.java:59)
    at com.sap.xmii.bls.engine.runners.ProductionRunner.runSequence(ProductionRunner.java:102)
    at com.sap.xmii.bls.executables.sequences.RootNode.execute(RootNode.java:39)
    at com.sap.xmii.bls.engine.TransactionInstance.execute(TransactionInstance.java:879)
    at com.sap.xmii.bls.engine.TransactionInstance.run(TransactionInstance.java:586)
    at com.sap.xmii.bls.engine.TransactionExecuter.runTransactionInstance(TransactionExecuter.java:613)
    at com.sap.xmii.bls.engine.TransactionExecuter.executeFromHttpRequest(TransactionExecuter.java:258)
    at com.sap.xmii.servlet.Runner.service(Runner.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sap.xmii.servlet.ServletRunner.run(ServletRunner.java:80)
    at com.sap.xmii.common.LocalServiceConnection.post(LocalServiceConnection.java:137)
    at com.sap.xmii.xacute.common.ClientCatalogUtilities.postServiceConnection(ClientCatalogUtilities.java:1946)
    at com.sap.xmii.xacute.transaction.TransactionUtilities.ExecuteTransaction(TransactionUtilities.java:432)
    at com.sap.xmii.servlet.Catalog.handleExecuteTempTrx(Catalog.java:254)
    at com.sap.xmii.servlet.Catalog.service(Catalog.java:210)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)
    at com.sap.xmii.system.SecurityFilter.doFilter(SecurityFilter.java:96)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:441)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:291)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
    at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:76)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:240)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:425)
    at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:250)
    at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:109)
    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
    --Steve

    Steve,
    The 500 error is what we get back from the target server. 
    This is probably not a bug since I don't think that MII has ever supported the SOAP-Fault node to build the response XML.
    Sam
    PS: For those of you reading this we had an offline discussion about this.

  • 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

  • FTP Get File List Action Block, It's double listing files!  ver 11.5

    Hi guys.. I have a good one!   I have an FTP Get File List action block in my BLS transaction.  Occasionally, it double lists the files in its output.   For testing I put a repeater with a logevent output where I log the filename, date, and size.  Heres what I saw for my action block output.
    2009-02-13 00:38:00,963  [UserEvent] : File Name: DMM_Export_0010056.txt, File Date 2009-02-13T00:36:00, File Size 339
    2009-02-13 00:38:00,963  [UserEvent] : File Name: DMM_Export_0010056.txt, File Date 2009-02-13T00:36:00, File Size 339
    This is xMII  version 11.5.6 b73  with java 1.4.2_07
    I have a workaround by putting in a distinct action block, after the filelist, but anybody have an idea why this might happen?   My theory is that something might be occuring if the file is being written to while we try to process it, but not sure. 
    I've been building BLS parsers since 2003, (Remember those fun times with Jeremy?)   I've never seen this happen.

    My example is a sample log file before the distinct action.  The general log shows nothing other than the subsequent transaction errors I get as a result of running the same error twice (Tcode return from BAPI calls etc)
    Here is something else interesting..  my userlog file is acting funny, like its trying to write on top of itself.  could it be the transaction is actually running twice or parts of it? 
    For example look at the following log entries
    This is how my log file entry for a production confirmation should look
    2009-02-13 00:38:06,854 [LHScheduler-Int10_NestingWOProdConf] INFO   UserLog - [UserEvent] :
    However sometimes... its looking like this...
    2009-02-13 2009-02-13 00:38:11,854 [LHScheduler-Int10_NestingWOProdConf] INFO   UserLog - [UserEvent] :
    Like it started writing to the log, then started again.
    The problem we are having is that we have JCO calls to SAP in this transaction that does goods movement, we get locking / block errors back from our  saying that we (our sap account) is already updating the information.   Sometimes the information would be posted twice!  You can see how this has become a HUGE issue posting data to a LIVE system twice.
    This is happening on 2 xMII servers.

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

  • Uploading big files via http post to XDB table

    Hello,
    I ve created a web form for to upload files as blobs to the database using XML DB, DBPS_EPG package and preconfigured DAD.
    The issue is that small files (~10kb) are being uploaded ok, but file which is 100K during http post returns connection reset from the server side.
    To my opinion there might be some max file size parameter for oracle server to accept during oracle listener tcp connection (as apach has maxrequestlimit).
    Is there any workaround for to load large files to the XDB table via webform?
    Here is a piece of code:
    CREATE USER web IDENTIFIED BY web_upload;
    ALTER USER web DEFAULT TABLESPACE XML_DATA;
    ALTER USER web QUOTA UNLIMITED ON XML_DATA;
    ALTER USER web TEMPORARY TABLESPACE TEMP;
    GRANT CONNECT, ALTER SESSION TO web;
    GRANT CREATE TABLE, CREATE PROCEDURE TO web;
    ALTER SESSION SET CURRENT_SCHEMA = XDB;
    BEGIN DBMS_EPG.CREATE_DAD('WEB', '/upload/*'); END;
    BEGIN
        DBMS_EPG.SET_DAD_ATTRIBUTE('WEB', 'database-username', 'WEB');
        DBMS_EPG.SET_DAD_ATTRIBUTE('WEB', 'document-table-name', 'uploads');
        DBMS_EPG.SET_DAD_ATTRIBUTE('WEB', 'nls-language', '.al32utf8');
        DBMS_EPG.SET_DAD_ATTRIBUTE('WEB', 'default-page', 'upload');
        COMMIT;
    END; 
    ALTER SESSION SET CURRENT_SCHEMA = SYS;
    CREATE TABLE web.uploads (
        name VARCHAR2(256) NOT NULL
            CONSTRAINT pk_uploads PRIMARY KEY,
        mime_type VARCHAR2(128),
        doc_size NUMBER,
        dad_charset VARCHAR2(128),
        last_updated DATE,
        content_type VARCHAR2(128) DEFAULT 'BLOB',
        blob_content BLOB
    CREATE OR REPLACE PROCEDURE web.upload
    AS
      url VARCHAR2(256) := 'http://demo.test.com:9090/upload/uploaded';
    BEGIN
        HTP.P('<html>');
        HTP.P('<head>');
        HTP.P('  <title>Upload</title>');
        HTP.P('</head>');
        HTP.P('<body>');
        HTP.P('  <h1>Upload</h1>');
        HTP.P('  <form method="post"');
        HTP.P('      action="' || url || '"');
        HTP.P('      enctype="multipart/form-data">');
        HTP.P('    <p><input type="file" name="binaryfile" /></p>');
        HTP.P('    <p><input type="file" name="binaryfile" /></p>');
        HTP.P('    <p><button type="submit">Upload</button></p>');
        HTP.P('  </form>');
        HTP.P('</body>');
        HTP.P('</html>');
    END;
    CREATE OR REPLACE PROCEDURE web.uploaded (
        binaryfile OWA.VC_ARR
    AS
    BEGIN
        HTP.P('<html>');
        HTP.P('<head>');
        HTP.P('  <title>Uploaded</title>');
        HTP.P('</head>');
        HTP.P('<body>');
        HTP.P('  <h1>Uploaded</h1>');
        FOR i IN 1 .. binaryfile.COUNT LOOP
            IF binaryfile(i) IS NOT NULL THEN
                HTP.P('  <p>File: ' || binaryfile(i) || '</p>');
            END IF;
        END LOOP;
        HTP.P('</body>');
        HTP.P('</html>');
    END;
    /帖子经 anatoly编辑过

    Welcome to Apple Discussions!
    Much of what is available on Bittorrent is not legal, beta, or improperly labelled versions. If you want public domain software, see my FAQ*:
    http://www.macmaps.com/macosxnative.html#NATIVE
    for search engines of legitimate public domain sites.
    http://www.rbrowser.com/ has a light mode that supports binary without SSH security.
    http://rsug.itd.umich.edu/software/fugu/ has ssh secure FTP.
    Both I find are quick and a lot more reliable than Fetch. I know Fetch used to be the staple FTP program, but it grew too big for my use.
    - * Links to my pages may give me compensation.

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

  • Http get to Http post

    Hello.
    Currently the Http receiver adapter is configured as HTTP get . We need to change it to HTTP Post and put the parameters in the URL in the body.
    Can someone please give an example on how to conevert a http get to http post. Is it a simple thing to do or does it need some java programming?
    Thanks for your help.
    Best Regards,
    Teresa

    Thanks Baskar. I am on SAP PI 7.1 Currently they have a HTTP_DESTINATION that is defined in SM59 and a Prolog. We want to change it to HTTP Post.
    Below is how it is configured currently -
    addressing type : HTTP Destination
    HTTP Destination : UPS_DESTINATION
    Content Type : application/x-www-form-urlencoded
    XML Code : UTF-8
    Prolog : arg1=
    Epilog = &action=generateUPSShippingLabel&format=xml
    How would I change above to HTTP post ?
    Teresa

Maybe you are looking for

  • Software Update crashes when I open it?

    Whenever I open Software Update to update my computer, it looks for new software but whenever I try to download it, it crashes Process:         Software Update [5894] Path:            /System/Library/CoreServices/Software Update.app/Contents/MacOS/So

  • Nokia N93 and copying music from a Mac with Nokia ...

    I recently just got a Nokia N93. I am able to use iSync with it thanks to a plug-in. I have had some success using syncTunes v1.6 to copy music files over to the memory card when the phone is connected with the USB cable. But the playlists do not wor

  • Custom widget triggers - or call widget functions

    The title says it ! Take for example three scenarios: 1. We have a lightbox display with several slides. Each slide has interactive content like buttons. Some of the buttons will cause the lightbox to close but at the same time we need the close butt

  • Problem Importing Entourage into iCal

    I've had several problems with iCal recently but the most frustrating one is that I can't import from Entourage. I've selected File > Import > Import Entourage Data but the application essentially locks up and no data is imported. When I Force Quit i

  • Does The Apple TV Need To Be Asleep For All Of My Content To Be Synced?

    For some reason, it is taking forever to load my content on to the Apple TV? Do I need to have the Apple TV asleep while my iTunes is syncing the content or does it matter? Oh and another thing... All of my music and movies are on the Apple TV but fo