How to submit both HTTP post and a PDF

I would like to know how to submit HTTP post and a PDF to a HTTPS web server that will have a php code to parse. Any ideas would be great.
-Dev

If you drop a regular button on the form and make it a submit button. In teh Submit panel you can control what is being submitted. One of the options is a PDF and another is an XDP (XML Data Package) where you can control what is in th epackage. One of the options for the package is the completed PDF (base64 encoded). If you use the XDP option you will get all of your data in XML and you will get the completed PDF in a separate node. I believe the node is Chunk. Then you can get the Chunk node an decode it and voila there is your data and completed PDF in a single transmission.

Similar Messages

  • How to get both OTF data and spool at a time

    Hi Experts,
        My requirement is to get both OTF data and spool.
    In 'OPEN_FORM' i tried passing itcpo-TDGETOTF = 'X'. itcpo- TDNEWID = 'X'.
    I was able to get OTF data but spool is not getting generated.
    IF i pass only itcpo- TDNEWID = 'X'. the spool is getting generated but not OTF data.
    when both the fields are set i.e. itcpo-TDGETOTF = 'X'. itcpo- TDNEWID = 'X'.
    the spool is generation is getting supressed.
    Similarly when i tried to get OTF data by passing itcpo-TDGETOTF = 'X'. to 'OPEN_FORM' as i need to convert it to PDF and send it to vendors as email ,
    The print preview in TCODE ME23n was not getting generated for 'MESSAGE' option 'External send'.
    Please suggest me how to get both OTF data and spool at a time.

    Hi Kartik,
    This one is similar to my question to print and email invoice at same time.  I pass itcpo-tdgetotf = 'X' in order to get otfdata and send email with the attachment of otfdata.
    Now I have data in otfdata, but when I call print_otf function, I clear out itcpo-tdgetotf, and passed
    itcpo-tddest = device_type but I still get error message said 'Handler not valid for open spool request'.
    Can you give me a working example that you have otfdata table and print data from that table.  I also post my question on other thread
    submit report and export to memory
    thanks

  • Difference between HTTP Post and Webservice call

    Hi,
    Can anybody let me know the difference between HTTP Post and Webservice Calls and also how each one of them is acheived through BPEL.
    Thanks,
    Adi

    Hi Adi,
    The protocol may be the same but the "idea" is different...
    I recommend you reading this:
    http://www.w3schools.com/webservices/ws_intro.asp
    Cheers,
    Vlad
    Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question. If you think this is helpful, please consider giving points.

  • How to submit a HTTP Request from a Java Program

    I am working on an web based application where in I need to submit the HttpRequest through a Java Program and not through browser. Moreover my intent is just to submit the HttpRequest. I donot want to wait for the response to come back. I have used the URL Connection class to do the same and I am trying to post this request. The contents of the methods that I am using are as below:-
    public void doPost(URL url, String inputXMLString) throws IOException
              //Create URLConnection based on the passed URL
              URLConnection connection = url.openConnection();
              connection.setDoOutput(true);
              connection.setDoInput(false);
              connection.setUseCaches(false);
              connection.setAllowUserInteraction(false);
              connection.setRequestProperty("Content-type", "application/x-www-form-
    urlencoded");
              //Get the Connection's output stream and write the request to it.
              PrintWriter out = new PrintWriter(connection.getOutputStream());
              out.print("&ena-request-input=" + URLEncoder.encode(inputXMLString));
              out.flush();
              out.close();
    Call to the above method does not invoke the URL I am intending to submit the request at.
    Can anybody give me the clue....................................................?

    I agree with the advice to launch a new thread to read and ignore the response. I don't think you should have to do it to make it work, but it's worth trying for two reasons:
    1) If it turns out it does make it work, well, then either you can leave it that way, or use that as a clue to help figure out how to make it work the way you want.
    2) There may be an error message there that will give you an idea why it's not working.
    When you say it's not invoking the servlet, what does that mean, and how do you know? Is it just that the final results aren't being seen? Put a bunch of logging statements in the servlet. It could be that it's getting hit, but you're corrupting the string you're building, or sending some extra junk that it can't handle. Spit out a log statement from the start of doPost, to see if it's even getting there. Then log the parameter. Enclose the output in quotes or braces or something to make sure there's not extra junk. I've had XML docs not parse because there was a blank line at the beginning.
    If it works in the browser but not from your standalone app, then you need to have the servlet tell what difference it sees in the two cases. Print out headers, other params, everything you can think of.
    Re-read the docs for URL, HttpURL, whatever, to make sure you're doing all the right steps in the right order. Make a servlet that just takes a single, simple param=value via POST and see if you can get that to work.

  • How can I use HTTP POST?

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

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

  • How to use both ojdbc14.jar and ojdbc6.jar in same weblogic domain(weblogic12C)

    Hi all,
    I 'm having issue of using both ojdbc14.jar and ojdbc6.jar in same weblogic application and same weblogic domain in weblogic 12C environment.
    how can i do that?
    i'm currently having application developed using jdk 1.6 and ojdbc6.jar, application developed using jdk 1.4 and ojdbc14.jar.both are currently installed at same domain.
    i want to use the both ojdbc14.jar and ojdbc6.jar in same domain.
    what i previously did was renaming /usr/weblogic/wls_server10.3.4/lib/ojdbc6.jar to /usr/weblogic/wls_server10.3.4/lib/ojdbc6.jar.bak and put ojdbc14.jar in the same path when i wanna use ojdbc14.jar.
    i haven't use both in same environment before, but to go live i wanna match about requirement.pls help.
    i know the way use this by having two domains, but in the same domain i could not find a solution yet.
    Please help

    Hey
    I have the similar requirement.. Did you managed to get an option of doing it? If yes, please provide some insights
    Thanks in Advance

  • How to enable both WS Security and MTOM

    I am trying to call a web service running in JBoss. The web service is enabled with both ws
    security and MTOM as per the requirement. When i am trying to call the web method from my
    java client, i am getting the below exception
    Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Endpoint
    {http://wsg.hpos.om.hp.com/}HPOSGatewayPort does not contain operation meta data for:
    {http://www.w3.org/2001/04/xmlenc#}EncryptedData
    at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException
    (SOAPFaultHelperJAXWS.java:72)
    at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException
    (SOAP11BindingJAXWS.java:109)
    at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage
    (CommonSOAPBinding.java:579)
    at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:381)
    at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:300)
    at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:166)
    at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
    at $Proxy17.getName(Unknown Source)
    at wsclient.TestHPOSClient.main(TestHPOSClient.java:106)
    my client code is:
    URL endpoint_new = new URL("http://15.70.176.190:9000/HPOSGateway/HPOSGateway?wsdl");
    QName qname = new QName("http://wsg.hpos.om.hp.com/", "HPOSGatewayService");
    HPOSGateway port = new HPOSGatewayService(endpoint_new,qname).getHPOSGatewayPort();
    BindingProvider bp=(BindingProvider)port;
    SOAPBinding binding = (SOAPBinding)bp.getBinding();
    binding.setMTOMEnabled(true);
    Map<String,Object> map = bp.getRequestContext();
    map.put(BindingProvider.USERNAME_PROPERTY,"administrator");
    map.put(BindingProvider.PASSWORD_PROPERTY,"da1sy");
    URL securityURL = new File("c://jboss-wsse-client.xml").toURL();
    ((StubExt)port).setSecurityConfig(securityURL.toExternalForm());
    ((StubExt)port).setConfigName("Standard WSSecurity Client");
    map.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
    "http://15.70.176.190:9000/HPOSGateway/HPOSGateway");
    System.setProperty("org.jboss.ws.wsse.keyStore", "c:\\wsse.keystore");
    System.setProperty("org.jboss.ws.wsse.trustStore", "c:\\wsse.truststore");
    System.setProperty("org.jboss.ws.wsse.keyStorePassword", "jbossws");
    System.setProperty("org.jboss.ws.wsse.trustStorePassword", "jbossws");
    System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks");
    System.setProperty("org.jboss.ws.wsse.trustStoreType", "jks");
    System.out.println(port.getName("Welcome to this testing part."));
    ,, my jboss.wsse.client.xml is...
    <?xml version="1.0" encoding="UTF-8" ?>
    <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-
    security/schema/jboss-ws-security_1_0.xsd">
    <config>
    <encrypt type="x509v3" alias="wsse" />
    <requires>
    <encryption />
    </requires>
    </config>
    </jboss-ws-security>
    and my jboss-wsse-server.xml is ...
    <?xml version="1.0" encoding="UTF-8"?>
    <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-
    security/schema/jboss-ws-security_1_0.xsd">
    <key-store-file>WEB-INF/wsse.keystore</key-store-file>
    <key-store-password>jbossws</key-store-password>
    <trust-store-file>WEB-INF/wsse.truststore</trust-store-file>
    <trust-store-password>jbossws</trust-store-password>
    <config>
    <encrypt type="x509v3" alias="wsse"/>
    <requires>
    <encryption/>
    </requires>
    </config>
    </jboss-ws-security>
    i have my web service annotations like below.
    @WebService(name="HPOSGateway",targetNamespace="http://wsg.hpos.om.hp.com/")
    @EndpointConfig(configName = "Standard WSSecurity Endpoint")
    @BindingType(javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING)
    @HandlerChain(name = "HPOSGateway_handlerChain", file = "HPOSGateway_handler.xml")
    public class HPOSGateway{
    Can any one help me what is the problem and where i need to change? Please it is very
    urgent.
    Regards
    Ramchand

    Welcome to the forum!
    Even if it were physically possible, you wouldn't be able to use both Ethernet ports at the same time, because the motherboard doesn't support more than one connection at the time.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • How to load both 32 bit and 64 bit version of addon on same machine

    Hi,
    When deploying an addon using SAP Business One Extension Manager, how can we install both 32 bit and 64 bit version of the addon for same machine?
    If the OS is 64 bit, SAP allows to install and use both 32 bit SBO client and 64 bit SBO client. I want that when the 32 bit SBO client is used, my 32 bit addon should get loaded, and when 64 bit client is used, my 64 bit addon should get loaded.
    But the SBO Extension Manager loads the addon for a given company; there seems to be no option to specify different addon files for 32 bit and 64 bit.
    Is there a way?
    Thanks.

    Hi Rajesh,
    There might be the problem while creating the add-on.
    It is the system behavior that once you login to 32 bit SAP Client, you can use only 32 bit Add-on. Means 32 bit add-on will be loaded automatically.
    Same is in the case of 64 Bit.
    What you have to do is:
    If OS is 64 Bit and you have installed both 32 and 64 Bit SAP Client then once open 32 bit client and install only 32 bit add-on
    Then open 64 Bit SAP Client and  install only 64 bit add-on.
    By doing this you will be able to use 32 bit add-on on 32 bit SAP Client and vice versa.
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • How do I follow my posts and replies?

    Hi,
    I tried searching this, but was unsure what to search on.
    Where do I go to see a list of my posts and replies, so I can follow those discussions I have participated in?
    Thanks,
    Sean

    Hi,
    I don't want this content in my email inbox (I've enough emails ).
    What I hope to achieve is to log on to forums.adobe.com and see a list of threads I've posted in, including ones I've started. Is that doable?
    For example, I took a chance and "Bookmarked" a topic. So, how do I find my bookmarks?
    Cheers.

  • How to get both, the ResultSet and Output (return value) from Oracle Stored Procedure

    Hi! I am doing a conversion from MSSQL to Oracle with C++ and MFC ODBC. Any comment is appreciated!! I have Oracle 8i and Oracle ODBC 8.1.6 installed.
    My question is how to retrieve the return value AND ALSO the resultSet at the same time by using Oracle function without modifying my souce codes (except puttting mypackage. string infron of my procedure name, see below).
    -- My source code in C++ with MSSQL ....
    sqlStr.Format("{? = call ListOfCustomers(%i)}", nNameID);
    RcOpen = CustomerList.Open(CRecordset::forwardOnly, sqlStr, CRecordset::readOnly );
    Where CustoemrList is a Crecordset object...
    IN DoFieldExchange(CFieldExchange* pFX) I have ...
    //{{AFX_FIELD_MAP(CQOSDB_Group)
    pFX->SetFieldType(CFieldExchange::outputColumn);
    RFX_Long(pFX, T("Name"), mCustoemrName);
    //}}AFX_FIELD_MAP
    // output parameter
    pFX->SetFieldType( CFieldExchange::outputParam );
    RFX_Int( pFX, T("IndexCount"), mCustomerNumber);
    -- m_CustomerNumber is where i store the return value!!!
    -- In Oracle Version, i have similar codes with ...
    sqlStr.Format("{? = call mypackage.ListOfCustomers(%i)}", nNameID);
    RcOpen = CustomerList.Open(CRecordset::forwardOnly, sqlStr, CRecordset::readOnly );
    -- I have oracle package/Body codes as following...
    create or replace package mypackage
    as
    type group_rct is ref cursor;
    Function listgroups(
    nameID NUMBER ,
    RC1 IN OUT Mypackage.group_rct ) return int;
    end;
    Create or replace package body mypackage
    as
    Function listgroups(
    NameID NUMBER ,
    RC1 IN OUT Mypackage.group_rct )return int
    IS
    BEGIN
    OPEN RC1 FOR SELECT Name
    from Customer
    WHERE ID = NameIDEND ListGroups;
    END
    return 7;
    END listgroups;
    END MyPackage;
    Ive simplified my codes a bit....
    null

    yes, it is exactly what i want to do and I am using Oracle ODBC driver.
    I tried using procedure with 1 OUT var fo numeric value and the other IN OUT ref cursor var instead of function, but error occurs when I called it from the application. It give me a memory ecxception error!!
    sqlStr.Format("{? = call ListOfCustomers(%i)}", nNameID);
    RcOpen = CustomerList.Open(CRecordset::forwardOnly, sqlStr, CRecordset::readOnly );
    it seems to me that the ? marker var is making all the trouble... can you please give me any more comment on this?? thanks!
    null

  • How to?? show smartform and generate pdf at the same time

    hi experts,
    how can i show the smartform and generate  a pdf at the same time?? i have a control parameter gtotf in X and i generate the pdf but i want to show the smartform at the same time??
    thx in advance

    Hi...
    call fm <sf function name>
    exporting...
    importing..
    tables..
    now in the outputparam set the getotf as 'X'.
    call the same FM again and get the otf data.
    call fm <sf fm name>

  • How do I download in Safari and read pdf documents on ipad?

    Have brand new iPad and want to download a pdf document using Safari as browser and read on the iPad.  I have Adobe Reader app and Files app.  iCloud is enabled.  Reading List only shows download page.  I can download this document quickly on my Laptop.  How can I access and read the  document on my iPad without sending it to myself?

    Tap on the pdf document in order to open it, When you have the PDF file open on the screen - tap anywhere on the open document and an arrow will apper in the upper right corner of the screen - tap that arrow and a window will popup for Open In options. Select Open In Adobe Reader and the PDF will open in Adobe Reader and it will be saved in that app.

  • HTTP POST and Internet Explorer

    Sorry for the cross post, but after reading through this newsgroup, it
              seems that this audience is better suited to answer this question...
              ===========================
              We're running across a very strange bug that is happening only in
              Internet Explorer and only when posting form data. Netscape works
              completely fine every single time.
              The user experience is this:
              Using IE, I get to a JSP that's got a form. I click a button on said
              form that performs either a "Save" or a "Cancel" action and am
              immediately hit with the wonderful "This page cannot be displayed(Cannot
              find server or DNS Error)" IE error message.
              What happens on the server side is this:
              User posts a form to a JSP. The JSP does any processing that it needs
              to, which in the case of "Cancel" is nothing, and issues these commands:
              response.sendRedirect("/some/page.jsp");
              return; //exit program immediately!
              I've verified that the server is executing as expected, sending the
              response and returning out of the program. That's where things seem to
              go awry in Internet Explorer. It's as if IE is not interpreting the
              HTTP response header correctly and just dies not knowing where to go.
              The even stranger thing is that, when running WLS on our internal
              network, this does not happen unless your dialed up. However, when
              hitting our servers that are colocated, this happens on a regular basis.
              One more thing to note is that this does not happen every time. It
              happens more than 90% of the time, but not every time, which is why it's
              very hard for me to recreate.
              Another strange thing is that this error seems to depend on the content
              of the form
              variables, for instance I can have a form with check boxes that errors
              out when the
              check boxes are unchecked, but is fine when the boxes are checked, and
              in both
              cases I'm not doing anything at all with the data that is getting
              posted.
              I've tried everything from changing the http headers to changing the
              post to be
              multipart encoded, and nothing works.
              If you've got a clue or a hint or any suggestions where I should be
              looking, then please let me know. I've got a few more things to check
              out, but I'm running out of ideas.
              Our platform:
              - RedHat Linux 6.0
              - WebLogic Server 4.5.1 Service Pack 5
              - JDK 1.2.2 (Sun/Blackdown)
              These JSPs:
              - Are posting form data ("GET" works for some reason)
              - Are not using any JavaScript
              

    Hi Chris/All,
              Following on from this I contacted WebLogic support (Frederic). They
              suggested I downgrade from 4.5.1 sp8 to 4.5.1 sp7. They also suggested I
              use HttpResponse.encodeURL()...
              This did not solve my problem but I went on to discover the following...
              Hi Frederic,
              We tried with sp7
              I thought HttpResponse.encodeURL just encoded session data where no cookie
              support was in the browser, but I tried it anyway.
              Also tried the following to the page I'm redirecting back to (to prevent
              browser cacheing)
              resp.setHeader("Cache-Control","no-cache"); file://HTTP 1.1
              resp.setHeader("Pragma","no-cache"); file://HTTP 1.0
              resp.setDateHeader ("Expires", 0); file://prevents caching at the proxy
              server
              Also added the following to override the standard implementation
              protected long getLastModified(HttpServletRequest req)
              System.out.println("ServletA.getLastModified"); // ensure lastModified is
              always in the future requiring a reload
              return Long.MAX_VALUE;
              The only way I've been able to force this to work is a bit of a cludge and
              is as follows...
              // add time to queryString to fool IE5 into thinking this is a new web page.
              String parentURL = HttpUtils.getRequestURL(req) + "?" + req.getQueryString()
              + "&t=" + System.currentTimeMillis();
              The following is also of interest
              http://forum.java.sun.com/forum?14@@.787c19c1
              HTH, Let me know
              Thanks, Gary
              Gary <[email protected]> wrote in message
              news:[email protected]...
              > This sounds similar to a problem I'm having with straight Servlets.
              >
              > I have a servlet (ServletA) that has a link to another servlet via <a
              href>
              > tags (ServletB). ServletB does some processing and calls ServletA with
              > original parameters to show the user the changed details. This is done as
              > follows...
              >
              > respose.sendRedirect(ServletA?params);
              > return;
              >
              > Once again this is fine in Netscape 4.07 but only works on IE5 machine
              here
              > to date (which unfortunately happens to be mine, leading to my late
              > discovery of this problem).
              >
              > My IE version is 5.00.2314.1003 if that helps.
              >
              >
              > Chris Fraser <[email protected]> wrote in message
              > news:[email protected]...
              > > Sorry for the cross post, but after reading through this newsgroup, it
              > > seems that this audience is better suited to answer this question...
              > > ===========================
              > > We're running across a very strange bug that is happening only in
              > > Internet Explorer and only when posting form data. Netscape works
              > > completely fine every single time.
              > >
              > > The user experience is this:
              > > Using IE, I get to a JSP that's got a form. I click a button on said
              > > form that performs either a "Save" or a "Cancel" action and am
              > > immediately hit with the wonderful "This page cannot be displayed(Cannot
              > >
              > > find server or DNS Error)" IE error message.
              > >
              > > What happens on the server side is this:
              > > User posts a form to a JSP. The JSP does any processing that it needs
              > > to, which in the case of "Cancel" is nothing, and issues these commands:
              > >
              > > response.sendRedirect("/some/page.jsp");
              > > return; file://exit program immediately!
              > >
              > > I've verified that the server is executing as expected, sending the
              > > response and returning out of the program. That's where things seem to
              > > go awry in Internet Explorer. It's as if IE is not interpreting the
              > > HTTP response header correctly and just dies not knowing where to go.
              > >
              > > The even stranger thing is that, when running WLS on our internal
              > > network, this does not happen unless your dialed up. However, when
              > > hitting our servers that are colocated, this happens on a regular basis.
              > >
              > > One more thing to note is that this does not happen every time. It
              > > happens more than 90% of the time, but not every time, which is why it's
              > >
              > > very hard for me to recreate.
              > >
              > > Another strange thing is that this error seems to depend on the content
              > > of the form
              > > variables, for instance I can have a form with check boxes that errors
              > > out when the
              > > check boxes are unchecked, but is fine when the boxes are checked, and
              > > in both
              > > cases I'm not doing anything at all with the data that is getting
              > > posted.
              > >
              > > I've tried everything from changing the http headers to changing the
              > > post to be
              > > multipart encoded, and nothing works.
              > >
              > > If you've got a clue or a hint or any suggestions where I should be
              > > looking, then please let me know. I've got a few more things to check
              > > out, but I'm running out of ideas.
              > >
              > > Our platform:
              > > - RedHat Linux 6.0
              > > - WebLogic Server 4.5.1 Service Pack 5
              > > - JDK 1.2.2 (Sun/Blackdown)
              > >
              > > These JSPs:
              > > - Are posting form data ("GET" works for some reason)
              > > - Are not using any JavaScript
              > >
              >
              >
              

  • How to make a HTTP Post request to a remote server ?

    Hi Guys,
    I'm new to java technology. I've a small problem with my code. All i need is to send a request to the remote server whose control is not at all in my hands with the POST method, which includes few of the parameters along with one of them is a xml formatted variable. The result of this request is an xml generated out which i want to fetch in my jsp code. I've tried it with the HTTPUrlConnection method and code for the same is below :
    <%
    try {
    String xmlString = "<FARES><AGENCY_ID>TFI</AGENCY_ID><DEP_CITY>NYC</DEP_CITY><ARR_CITY>LON</ARR_CITY><DEP_DATE>12</DEP_DATE><DEP_MONTH>DEC</DEP_MONTH><OWRT>RT</OWRT></FARES>";
    URL url = new URL("http://www.lowestairprice.com/Canada/mars.asp?WCI=Start&WCE=XMLFARES&reqMsg=Yes&");
    HttpURLConnection con = (HttpURLConnection)url.openConnection();
    con.setInstanceFollowRedirects(true);
    con.setFollowRedirects(true);
    con.setRequestMethod("POST");
    con.setDoOutput(true);
    out.println("Testing...");
    BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(con.getOutputStream()));
    bw.write("xmltekst=" + xmlString);
    bw.flush();
    bw.close();
    BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream()));
    String line = br.readLine();
    String result ="";
    while (line !=null) {
    result += line;
    line = br.readLine();
    br.close();
    out.println("Resultat: " + result);
    } catch(Exception exc) {
    exc.printStackTrace();
    out.println(exc);
    %>
    But when i run this on browser it gives me the following error.
    java.net.MalformedURLException: unknown protocol: https
    Now the response they provide is thrown back with the https protocol instead of the http. How can i fetch their response in my jsp code and store it in a local variable.
    If anybody can help me out in this, i would be thankful for the same.
    Thanking You,
    Rgds,
    Gaurav
    (Software Engineer)
    Ultra Infotech.

    Have you tried to use HttpsURLConnection instead ?

  • Http post and Alfresco web script

    Hi all,
    I'm wondering how to send the content of an XFA form into an Alfresco ECM instance. So far, I've been using "email submit buttons" by mail, but I think submitting the xml content directly into an Alfresco space could be feasible without too much trouble.
    I'm trying to adapt the online script fromLiveCycle documentation
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/common/ht ml/wwhelp.htm?context=sdkHelp&file=001677.html
    same in version 9 : http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=001303.html
    which are about the same docs as the ones on Alfresco wiki (http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload) although LiveCycle is only based on Alfresco AFAIK.
    I don't want to use an HTML form, but directly send my form from my pdf xfa form. I made a small test using a fixed url on an HttpSubmitButton
    http://localhost:8080/alfresco/s/upload?guest=true&fileName=liveCycleDocument&title=myTitl e&description=myDescription&content=myContent
    On Alfresco, the document is created with the correct args values. But I still don't know how to send the real form content to the URL.
    I checked on this document http://partners.adobe.com/public/developer/en/livecycle/lc_understanding_submit_tip.pdf where I discovered I can use a custom submit button to send the datasets, but still cannot get my form xml data.
    I hope someone will have a clue about LiveCycle/Alfresco communication.
    Thx
    Best regards,
    jgrd

    @Srini
    Yes of course :
    in Data Dictionary/Web Scripts (or Web Scripts extensions): create the 3 files
    You may use spaces for package/subpackages:
    - pdfform.post.desc.xml
         <webscript>
         <shortname>pdf form</shortname>
         <description>processing pdf form</description>
         <url>/pdfform</url>
         <authentication>guest</authentication>
         </webscript>
    - pdfform.post.js :
    upload = companyhome.createFile("form." + companyhome.children.length + "." + args.fileName) ;
    upload.properties.content.content = requestbody.content;
    upload.properties.encoding = "UTF-8";
    upload.properties.title = args.title;
    upload.properties.description = args.description;
    upload.save();
    model.upload = upload
    -pdfform.post.html.ftl (freemarker)
    <html>
    <head>
       <title>Test pdf form</title>
      </head>
    <body>
    done !
    </body>
    </html>
    - Register the script by refreshing the page http://localhost:8080/alfresco/s/index
    or with curl -X POST "-uadmin:admin" -d "reset=on" http://localhost:8080/alfresco/s/index (as mentioned by Jeff Potts)
    - try it with from a pdf
    use a plain button, select "Submit", Submit to URL = "http://localhost:8080/alfresco/s/pdfform?guest=true&fileName=myFileName.xml&title=myTitle& description=myDescription", Sumit As = XDP
    Test done with Alfresco 3.3CE, LiveCycle 8.2.1/Adobe 9.3
    Hope all this will is correct as I'm learning web scripts,
    Regards,
    jgrd

Maybe you are looking for

  • Adobe Acrobat submit button feature not working

    Hello, I just  created a new time card using Adobe Acrobat. I'd like to make it so when  the user enters their hours, they click on the submit button and it  routes the form to the e-mail I've provided. Following the directions provided by adobe (htt

  • JS CS4 splitting the document path

    I'm trying to split the document file path so I may navigate up one or two folders and then into a specific subfolder. When I try to split the "myDoc.filePath" it errors. If I split "myDoc.name" it works correctly. var myDoc = app.activeDocument; var

  • I want to use extarnal display in i mac

    dear sir madam i have imac desktop i want to connet normal desktop throu hdmi cabal i have mini display port to hdmi adapter but i m not abel to connect pls help me

  • LR beta released - new features for ACR 7

    I was just reading about the LR beta for version 4: http://www.dpreview.com/articles/7481161037/lightroom-4-public-beta-whats-new Although I'm not a LR user, I was excited to see the new editing features, as they will be essentially the same as the n

  • XML output Function module

    Hi All, Is there any function module in ABAP to generate an xml structure? I want to generate an xml output in a string for the input structure (internal table) Thanks Ricky