Ant, Axis and WSDL2Java via https

Hello fellow programmers !
I am using the Ant Axis command "axis-wsdl2java", which used to point to an "http" URL. I now have to point it to an "https" url and am getting Hanshake exception errors.
I've seen these before and I actually have a keystore file which I exported and specify at startup to the main program.
So the problem I have is that I want to specify this same keystore file at build time in order to get the command working again. I've seen quite a few suggestions on Google about importing the certificate directly in to the JDK, but I don't have that option available to me (the system is locked down).
Does anybody know how to specify my file at build time?? Please ??!

try to restore the web services specifc libraries - then should not prevent you from using Axis 1.2 or 1.3 on DP4.
At least, it works for me.
All the best,
Eric

Similar Messages

  • How to block youtube and facebook via HTTPs in CX on ASA-X ?

    How to block youtube and facebook via HTTPs in CX on ASA-X ?
    now i use decrypt feature on CX module but can not block https traffic. Could you help me.

    Hi,
    Double-check your CX configuration with this guide:
    http://tools.cisco.com/squish/fCA6D
    And make sure you are redirecting HTTPS traffic to the CX
    Luis Silva
    "If you need PDI (Planning, Design, Implement) assistance feel free to reach us"
    http://www.cisco.com/web/partners/tools/pdihd.html

  • Cannot connect Ipad and B1IF via HTTPS (B1 8.81 PL4)

    Hello
    I have installed sap business one 8.81 PL4 on a windows 7 x64 with integration services (AKA B1if) to access by iPad.
    I follow the installation manual to access by https required by 8.81 but, when starting the application on iPad, after inserting password, the appllication remains in stand by waiting the server connection.
    The same configuration on sap business one 8.8 PL 20 without https works properly.

    Same Problem here.
    the B1AuthLog says
    Execution Status: Cancelled
    Level  SEVERE
    Logger com.sap.b1i.xcellerator
    Class/Method com.sap.b1i.bizprocessor.BizProcException, dumpBPEx
    Thread 96
    com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.utilities.UtilException: UTE001 Nested exception: com.sap.engine.lib.xml.util.NestedException:  -> com.sap.engine.lib.xml.util.NestedException: Exception while sending warning. in 'document' - function -> javax.xml.transform.TransformerException: java.io.IOException
    Maybe it isnt important but i even cant see the server adress inputfield in the B1 cockpit settings but i can see the dashboard widged ?!

  • Disk Utility, restore image via HTTP, and error 22 (invalid argument)

    I'm trying to restore a properly-created and prepared (i.e. volume checksum applied) Apple Software Restore disk image to a volume on a target computer. The source image is hosted on a Web server and accessible via HTTP.
    The image restoration process appears to succeed for the most part, but at the end, I get an error 22 (invalid argument). This may be after the image restoration has finished, and when the resulting volume is being mounted. (I wonder if the problem is automount-related?)
    The same image, so far, restores to the same volume successfully when restored locally, mounting the drive in target disk mode on the host Mac.
    I am curious if anyone else has seen this same behavior and found a solution. Or is everyone else having the same kinds of problems with HTTP-based restores?
    MacBook Pro   Mac OS X (10.4.9)   15-inch, Core 2 Duo 2.16 GHz, 2 GB RAM

    Visit http://www.bombich.com/. See if you find any related info on that site. If not email Mike Bombich about the problem. If anyone knows the answer I would think he should.

  • Running via https and/or http ?

    Hi all,
    The applications you are all working on, do you run them in a secure link? I have just read that Oracle recommends running Apex app's using https which is definitely what I need to do for most of my pages. Is that possible with the embedded webserver or will I need to configure a separate webserver? Is it straightforward/recommended to run some pages via http and others via https?
    I'm using 11g and 3.2.
    regards,
    Malcolm.

    This in the online help:
    "Utilizing Secure Sockets Layer (SSL)
    Secure Sockets Layer (SSL) is a protocol for managing the security of data transmitted on the Internet. For Web applications, SSL is implemented by using the HTTPS protocol. Oracle recommends that you run Oracle Application Express applications using SSL (HTTPS protocol) to prevent any sensitive data from being sent over an unencrypted (cleartext) communication channel."
    but I suppose you could read that as only applying to pages containing sensitive data, as anyone would recommend.
    Thanks Andrew - you've answered my question that it is possible to use the embedded/bundled server to switch from http to https depending on the page ID, that's what I want to do. It's a public facing app. yes, and will contain some pages of sensitive data that the users would expect to use via a secure link.

  • Invoking scheduled/bursted reports via HTTP... documentation?

    Hi all - I am looking for documentation regarding the HTTP "API" for BI Publisher Scheduler. There is an HTTP interface for which I can find no documentation. For instance by POSTing a URL such as http://<site>:<port>/xmlpserver/servlet/scheduler?ujobname=DirectDeliveryReport.xdo&d_printerd_p_gname0=direct&show_conf_page=true&d_method0=d_printer0&job_locale=en_US&save_output=off
    ...you can "schedule" a job for immediate execution and output to a printer.
    This is the method of execution for Oracle SIM 13 and is vaguely described in the SIM 13 Implementation Guide but not apparently in the BIP docs. I am wondering:
    a) what is the API for this web interface? What are the parameters?
    b) can this interface be used for bursting reports? If so it would seem to be a much easier way to schedule burst reports when an external scheduling system is required. More straightforward, like a shell script for Oracle Reports, rather than having to write a Java app to call BIP twice, first to get the XML data, second to burst/deliver that data.

    Hi Tim -
    By 'run now' mode via HTTP, are you referring to a direct call to the XDO or a one-time run via the scheduler servlet? I am not looking to set up a repeating schedule via HTTP, simply to kick off a one-time job with an output destination of email or printer. I cannot find any documentation for the one-time scheduled execution through the scheduler via HTTP. I have searched all the 10.1.3.3.3 docs, the blog, and the message boards for some of those parameters being defined in the SIM URL and there's no mention of them.
    SIM may use some internal logic to construct the URL, but by looking at the SIM, Apache, and BIP log I can see what it's doing. It's a series of GETs and POSTs via HTTP. Using this same logic, I have constructed some PL/SQL (http_utl package) to call BIP in the same fashion from a trigger and it works fine. The HTTP interface that SIM is using certainly seems to be fully-fledged; it seems to have parameters that would allow you to define the output format and destination. I just want to know what they are =)
    All I'm trying to do is automate some of the SIM printing by making it trigger-based rather than GUI-based. If the client wants to, say, autoemail instead of autoprint, I would have no idea how to change the URL params to do this. Secondly, if such a URL could specify that bursting, per the XDO, take place, we can use this HTTP method to invoke BIP from an external scheduler which will be easier for us than using web services.
    Thanks in advance,
    -eric

  • OSB call to remote Web Service via https proxy and https CONNECT problem

    Hi
    I have a service that calls a web service on another server as a web service. This call is via https and the certificate validation raises no errors.
    I now want this call to go via a squid httpd proxy on port 3128 on some machine. So I would like to use HTTP CONNECT (RFC 2817) proxying,. But when I set up this as a proxy, I am getting "Certificate chain" error messages. The certifcate chains is no different now from when I called without the http proxy, so what am I doing wrong? Does OSB support HTTP CONNECT?
    -Johan

    The exeption we are getting is BEA-380000
    General runtime error: [Security:090477]Certificate chain received from XXX - 123.123.123.123 --> test.salesforce.com was not trusted causing SSL handshake failure.
    This is of course not relevant if the callout were using CONNECT. In the CONNECT scenario, OSB would not care about XXX's certificate.

  • Cisco Network Assistant and add to comunity problem via HTTPS

    hello,
    i have big network of cisco switches and all is in my cisco network assistant in comunity connected via HTTPS. if i add new switch to network (all for HTTPS access is configured good: domain name, ip http secure-server, authenticate locale ...) and if i can add this switch to comunity (right click on icon and ADD TO COMUNITY), CNA say "Unable to Connect", because it can connect to switch via HTTP (i have disable it on switch), not via HTTPS. i have never version of CNA ... where is problem? why it not connect to switch via HTTPS? hmmm? thank you ... Peter

    "The HTTP server interface must be enabled to display the network assistant. " Source.
    You can put an access-list on the http server if you are concerned about security exposure.

  • Incompatibility axis and oracle libraries

    Hi,
    I have built an application with JDeveloper 10.1.3.4. Include several Web Services Clients generated with JDeveloper. Besides, I have to include a several "jars" to realize an invocation to axis web service. These "jar" posses an embedded Web Service client axis.
    I have read that a single application (EAR) cannot contain one Web service that uses Axis, and another that uses Oracle. Specifically, an Axis Web service calling out to another Web service via a Web services client created using JAX-RPC implementation is not support.
    http://oracledoc.boyko.biz/web.1013/b14433/opensrc.htm
    The problematic classes are:
    Oracle Axis
    jaxrpc-api.jar jax-rpc.jar
    saaj-api.jar saaj.jar
    orawsdl.jar wsdl4j-1.5.1.jar
    In JDeveloper, I have not included the jar from axis (jax-rpc.jar, saaj.jar, wsdl4j-1.5.1.jar) and the application realize all invocations (Oracle an Axis) in a right way.
    When I deploy de application in OAS 10.1.2 or OAS 10.1.3.4, application fails in any invocation. I have tested several posibilities but at the end deployed application failed.
    a) Including only "jaxrpc-api.jar", "saaj-api.jar", "orawsdl.jar"
    b) Including only "jax-rpc.jar", "saaj.jar", "wsdl4j-1.5.1.jar"
    c) The six jars (axis and oracle)
    ¿Could you say me as the way to avoid this problem in an OAS? ¿Why runs perfectly in JDeveloper althoug I haven't set the jar required by axis?
    Thank you,

    yes we have a standalone version of 10g being converted to RAC mode..
    old version
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    converted to
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    i understand the binaries would be different, but are the libraries different too?

  • Using ADFS authentication to perform SSO via HTTP GET request

    Hi,
    Can i authenticate users (those users are clients, at home) to a web application using ADFS without SAML tokens?
    The situation is that i want the clients to perform SSO to the website via a link they receive in their mailboxes. 
    I thought about a solution that combines JWT in a URL link that each user will get to his private mail. this link will contain the users' claim (such as ID Num, given from AD DS Server dedicated especially for them).
    Thus, the user will receive an email with a link that already contains a short period of time JWT to perform SSO to the webapp.
    Is it possible ? anybody heard about a similar solution ?

    Sandra
    Thanks for your message
    Here is the my requirment
    The basic flow of a Where 2 Get It REST API call is:
    1) create the required XML structure,
    2) URI encode it,
    3) make a HTTP GET request,
    4) then parse the return XML document.
    Currently i have some data in ABAP structure with 5 fields, i need to create XML from the those 5 fields,and needs to be URI
    encode it, and then needs to make a HTTP get request to connect Where to Get It REST API, finally it will return XML document via HTTP Get request , and then needs to convert the return XML to  ABAP structure for further processing .the above 4 points will be implemented in my report.
    Any  body could help on this

  • Try expose svn via http, but Location directive does not work.

    Hello everyone,
    I used svn exposed via http in OSX 10.6 and 10.7 using collabnet.
    Now I take OSX server 10.8 and installed svn inside XCode.
    SVN is correctly installed, apache respond to default site.
    I copied the modules dav_svn_module and authz_svn_module compiled on my machine with same svn version of XCode [version 1.6.18 (r1303927)] .
    I created a file into /etc/apache2/other called svn.conf that contain follow code:
    LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so
    LoadModule authz_svn_module libexec/apache2/mod_authz_svn.so
    <Location /repo>
      DAV svn
      SVNPath '/Volumes/VMware HD/svn/repository'
    </Location>
    Checking if module are loaded with sudo apachectl -t -D DUMP_MODULES i obtain:
    Loaded Modules:
    dav_svn_module (shared)
    authz_svn_module (shared)
    Syntax OK
    So file svn.conf is loaded and the module too.
    When I try to check via browser with http://localhost/repo I obtain in /var/log/apache2/error_log the following error:
    [Wed Feb 13 12:41:12 2013] [error] [client 192.168.1.114] File does not exist: /Library/Server/Web/Data/Sites/Default/repo
    Is Location directive failing?!
    How can I expose the right repository location instead of default site?

    Oeren,
    I stumbled across this little tidbit buried in the BI Publisher forum: Dynamic Images in rtf
    Glad you are up and running!
    Joshua

  • Office Web Apps - Preview not appearing when acccessing via HTTPS

    I have installed Sharepoint 2013 and Office Web Apps, set the wopibinding, and set the wopizone to be https-external. Everything seems to work fine if accessing the web app using HTTP (can open, edit, preview office web app (WAC) documents)... but if
    I access via HTTPS then I run into a mixed content error when trying to preview the WAC documents... I can open them and edit them without issue using office web apps inside the browser though just not preview.
    If I select "New document" it also takes a while to load and displays a blank pop up window... assume it must be related
    Error message:
    XMLHttpRequest cannot load http://xxxx.org.nz/Docs/_layouts/15/inplview.aspx?List={6E…65723B96E}&ViewCount=1&IsXslView=TRUE&IsCSR=TRUE&IsRibbon=TRUE&Cmd=EcbView.
    No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://xxxxxx' is therefore not allowed access.
    [blocked] The page at 'https://xxxxx.org.nz/xx.aspx' was loaded over HTTPS, but ran insecure content from 'http://xxxxxx/Docs/_layouts/15/WopiFrame.aspx?sourced…%20big%20wide%20inter%20web%2Edocx&action=interactivepreview&wdSmallView=1':
    this content should also be loaded over HTTPS.

    Hi  ,
    Before you configure SharePoint 2013 to use Office Web Apps Server via HTTPS, make sure that you have set up Office Web Apps Server by following the steps in Deploy
    a single-server Office Web Apps Server farm that uses HTTPS or Deploy a multi-server, load-balanced Office Web Apps Server farm
    that uses HTTPS.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Apple Mail and GoogleMail via IMAP

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    _*Apple Mail and GoogleMail via IMAP*_
    As posts concerning the setup of Apple Mail for GoogleMail IMAP access become more frequent on Apple Discussions, I decided to collect some of the most asked-for info in one place. The following hints are intended to provide enough info for anyone who wants to get started with Google Mail IMAP and Mail.app.
    As you might have noticed already, GoogleMail behaves differently from other IMAP accounts in some respects. One of the underlying reasons is its use of labels instead of folders (i.e. instead of moving messages to different folders – like e.g. Private and Work – in order to establish some order, rather there are labels tagged to the messages). Because of this a particular setup of Apple’s Mail client is required.
    *Activating IMAP for Google Mail*
    If you haven’t activated access via IMAP for Google Mail already, follow the instructions given by Google [here|http://mail.google.com/support/bin/answer.py?answer=77695&topic=13294]. It boils down to this:
    1) Sign in to Gmail.
    2) Click "Settings" at the top of any Gmail page,
    3) click "Forwarding and POP/IMAP",
    4) select "Enable IMAP".
    5) Click "Save Changes".
    *Creating a new account in Apple Mail*
    To add a Google Mail IMAP account in Mail.app, go to File > Add Account. A wizard will open which prompts you to insert your Name, the eMail-address of the new account and the password. Don’t use the option for automatic configuration if it’s available. Info on what to type into the different fields can be obtained from Google [here|http://mail.google.com/support/bin/answer.py?answer=78799&topic=12814]. The most important are:
    1) Incoming Server: imap.gmail.com, port 993 (using SSL)
    2) Outgoing Server: smtp.gmail.com, port 465 or 587 (using SSL)
    3) Your account name is your full email address including "@gmail.com" (without the quotation marks)
    *Configuring the Google Mail account in Apple Mail*
    After you have added your Google Mail IMAP account to Mail.app, you’ll find a section for Google Mail in Mail.app’s sidebar with subfolders like "All Mail" (which has in turn several subfolders) and folders for each label you created with GoogleMail. Now you have to configure the account properly. Despite what [Google recommends|http://mail.google.com/support/bin/answer.py?answer=78892&topic=1281 4], I found the following settings to work best for me.
    In the sidebar, navigate to the subfolders Trash/Sent/Drafts/Junk of "Google Mail" (the one with the white folder icon instead of a blue one) in turn and go to "Mailbox" menu > "Use this mailbox for..." > Trash/Sent/Drafts/Junk respectively. Afterwards these folders show up as subfolders to the main Trash/Sent/Drafts/Junk folders in the sidebar (and at the same time disappear from the GMail section). Among others this step is necessary because of Google Mail’s implementation of labels. E.g., as Google states [here|http://mail.google.com/support/bin/answer.py?answer=78892&topic=12814]:
    Messages that are deleted from an IMAP folder (...) only have that label removed and still exist in All Mail
    So if you want to delete a message you have to set the option to "Use this mailbox for… Trash" as described above. Same applies to sent messages etc.
    Furthermore, make sure every checkbox in Mail's Preferences > Accounts > GoogleMail > Behavior is checked . (Some will already and automatically be checked when you apply the option "Use this mailbox for..." as described above).
    *Some basic troubleshooting tips*
    1) If your counter for unread messages in Mail.app doesn’t refresh properly, go to "Mailbox" menu > "Sync all accounts".
    2) If you have set up a Smart Mailbox in Mail e.g. for unread messages and every unread message of Google Mail shows up twice, then add the criterion "Message is not in mailbox" > "All Mail", and set the requirement for messages to comply with ALL conditions (instead of ANY). This is necessary because of every message there is a copy stored in All Mail.
    I hope these info will be regarded as helpful by anyone who tries to get started with Google Mail and experiences some problems on the way.
    The links given were accessible as of September, 3rd, 2008. The setup was tested on a MacBook with OS X 10.5.4 Leopard and Mail 3.4 (928/928.1).
    Good computing.
    floba
    (Note: the above given hints are personal suggestions and I don’t assume liability for any disorders that might occur after applying the described steps.)
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    _*Apple Mail and GoogleMail via IMAP*_
    As posts concerning the setup of Apple Mail for GoogleMail IMAP access become more frequent on Apple Discussions, I decided to collect some of the most asked-for info in one place. The following hints are intended to provide enough info for anyone who wants to get started with Google Mail IMAP and Mail.app.
    As you might have noticed already, GoogleMail behaves differently from other IMAP accounts in some respects. One of the underlying reasons is its use of labels instead of folders (i.e. instead of moving messages to different folders – like e.g. Private and Work – in order to establish some order, rather there are labels tagged to the messages). Because of this a particular setup of Apple’s Mail client is required.
    *Activating IMAP for Google Mail*
    If you haven’t activated access via IMAP for Google Mail already, follow the instructions given by Google [here|http://mail.google.com/support/bin/answer.py?answer=77695&topic=13294]. It boils down to this:
    1) Sign in to Gmail.
    2) Click "Settings" at the top of any Gmail page,
    3) click "Forwarding and POP/IMAP",
    4) select "Enable IMAP".
    5) Click "Save Changes".
    *Creating a new account in Apple Mail*
    To add a Google Mail IMAP account in Mail.app, go to File > Add Account. A wizard will open which prompts you to insert your Name, the eMail-address of the new account and the password. Don’t use the option for automatic configuration if it’s available. Info on what to type into the different fields can be obtained from Google [here|http://mail.google.com/support/bin/answer.py?answer=78799&topic=12814]. The most important are:
    1) Incoming Server: imap.gmail.com, port 993 (using SSL)
    2) Outgoing Server: smtp.gmail.com, port 465 or 587 (using SSL)
    3) Your account name is your full email address including "@gmail.com" (without the quotation marks)
    *Configuring the Google Mail account in Apple Mail*
    After you have added your Google Mail IMAP account to Mail.app, you’ll find a section for Google Mail in Mail.app’s sidebar with subfolders like "All Mail" (which has in turn several subfolders) and folders for each label you created with GoogleMail. Now you have to configure the account properly. Despite what [Google recommends|http://mail.google.com/support/bin/answer.py?answer=78892&topic=1281 4], I found the following settings to work best for me.
    In the sidebar, navigate to the subfolders Trash/Sent/Drafts/Junk of "Google Mail" (the one with the white folder icon instead of a blue one) in turn and go to "Mailbox" menu > "Use this mailbox for..." > Trash/Sent/Drafts/Junk respectively. Afterwards these folders show up as subfolders to the main Trash/Sent/Drafts/Junk folders in the sidebar (and at the same time disappear from the GMail section). Among others this step is necessary because of Google Mail’s implementation of labels. E.g., as Google states [here|http://mail.google.com/support/bin/answer.py?answer=78892&topic=12814]:
    Messages that are deleted from an IMAP folder (...) only have that label removed and still exist in All Mail
    So if you want to delete a message you have to set the option to "Use this mailbox for… Trash" as described above. Same applies to sent messages etc.
    Furthermore, make sure every checkbox in Mail's Preferences > Accounts > GoogleMail > Behavior is checked . (Some will already and automatically be checked when you apply the option "Use this mailbox for..." as described above).
    *Some basic troubleshooting tips*
    1) If your counter for unread messages in Mail.app doesn’t refresh properly, go to "Mailbox" menu > "Sync all accounts".
    2) If you have set up a Smart Mailbox in Mail e.g. for unread messages and every unread message of Google Mail shows up twice, then add the criterion "Message is not in mailbox" > "All Mail", and set the requirement for messages to comply with ALL conditions (instead of ANY). This is necessary because of every message there is a copy stored in All Mail.
    I hope these info will be regarded as helpful by anyone who tries to get started with Google Mail and experiences some problems on the way.
    The links given were accessible as of September, 3rd, 2008. The setup was tested on a MacBook with OS X 10.5.4 Leopard and Mail 3.4 (928/928.1).
    Good computing.
    floba
    (Note: the above given hints are personal suggestions and I don’t assume liability for any disorders that might occur after applying the described steps.)
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

  • Sending a dom via http Post

    Hi,
    for some reason unknown to me whenever I try to send a dom via http Post I get the following error:
    org.xml.sax.SAXParseException: The root element is required in a well-formed document.
    This is the source code:
    package com.cyberrein.payunion.transaction;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    //xml lib
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    //weblogic xml lib
    import weblogic.apache.xerces.dom.DocumentImpl;
    import weblogic.apache.xml.serialize.DOMSerializer;
    import weblogic.apache.xml.serialize.XMLSerializer;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    public class Xmltest extends HttpServlet {
    //Initialize global variables
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    //Process the HTTP Request
    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    // Retrieve transaction data from HttpServletRequest.
    try {
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    dbf.setValidating(false);
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document docIn = db.parse(request.getInputStream());
    String code = "XX";
    String tranID = "000000";
    String message = "This Card Is Invalid. Transaction Discontinued";
    //Output dom
    Document docOut = new DocumentImpl();
    Element e = (Element)docOut.createElement("TransactionResponseData");
    e.setAttribute("Code", code);
    e.setAttribute("TransactionID", tranID);
    e.setAttribute("Message", message);
    docOut.appendChild(e);
    FileOutputStream fos;
    fos = new FileOutputStream("/victory");
    DOMSerializer serX = new XMLSerializer(fos,null);
    serX.serialize(docIn);
    DOMSerializer ser = new XMLSerializer(response.getOutputStream(), null);
         ser.serialize(docOut);
         } catch (Throwable e) {e.printStackTrace();}
    //Get Servlet information
    public String getServletInfo() {
    return "com.cyberrein.payunion.transaction.Xmltest Information";
    package com.cyberrein.payunion.transaction;
    import org.w3c.dom.*;
    import org.apache.xerces.*;
    import org.apache.xerces.dom.*;
    import org.apache.xerces.parsers.*;
    import org.apache.xml.serialize.*;
    import org.xml.sax.*;
    import java.net.*;
    import java.io.*;
    public class CardClient {
    private String sURI;
    public BufferedReader in
    = new BufferedReader(new InputStreamReader(System.in));
    public CardClient(String serverURI) {
    sURI = serverURI;
    public Document test(){
    Document docIn = null;
    try
    //XML Document impl
         docIn = new DocumentImpl();
    //Create the root element
         Element t = docIn.createElement("TransactionData");
    Element k = docIn.createElement("Payunion.com");
    k.appendChild( docIn.createTextNode("North American server") );
    t.appendChild(k);
    //Set attributes
    t.setAttribute("cardnumber", "4444444444444444");
    t.setAttribute("amount", "3000.67");
    t.setAttribute("name", "tolu agbeja");
    t.setAttribute("cvv2", "001");
    t.setAttribute("pu_number", "ejs:pupk:23456");
    t.setAttribute("expirydate", "0903");
    t.setAttribute("address", "100 peachtree industrial");
    t.setAttribute("zipcode", "30329");
    docIn.appendChild(t);
    catch (Throwable te)
    te.printStackTrace();
    return docIn;
    public Document sendRequest(Document doc) {
         Document docOut = null;
         try {
         URL url = new URL("http://" + sURI);
         HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    conn.setRequestMethod("POST");
         conn.setDoInput(true);
         conn.setDoOutput(true);
         OutputStream out = conn.getOutputStream();
    BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    XMLSerializer ser = new XMLSerializer( out, new OutputFormat("xml", "UTF-8", false) );
    ser.serialize(doc);
    while(!br.ready()){}
         DOMParser parser = new DOMParser();
         parser.parse(new InputSource(br));
         docOut = parser.getDocument();
    catch (Throwable et)
         et.printStackTrace();
         return docOut;
    public static void main(String []args)
    CardClient c = new CardClient("cyber1:7001/xmltest");
    try
    Document doc = c.sendRequest(c.test());
    Element responseMessage = (Element)doc.getElementsByTagName("TransactionResponseData").item(0);
    String message = responseMessage.getAttribute("Message");
    String tranID = responseMessage.getAttribute("TransactionID");
    String code = responseMessage.getAttribute("Code");
    System.out.println(message);
    System.out.println("");
    System.out.println("The Response Code Is: "+code);
    System.out.println("");
    System.out.println("The Transaction ID Is: "+tranID);
    catch(Exception ex)
    ex.printStackTrace();
    All comments will be appreciated!!

    Hi, thanks for your reply i knew the FileUplaod was the way forward.
    I read topics advising to use the FileUpload and tried the following but it did not seem to work ( i get an HTTP Internal Server error when i try that):
    try
    DiskFileUpload upload = new DiskFileUpload();
    boolean isMultipart = FileUpload.isMultipartContent(request);
    if( isMultipart )
    List items = upload.parseRequest( request );
    Iterator iter = items.iterator();
    while( iter.hasNext() )
    FileItem fileItem = ( FileItem ) iter.next();
    File uploadedFile = new File("myreceivedfile.zip");
    fileItem.write( uploadedFile );
    }catch (Exception e)
    System.out.println("RECEIVER: " + e.getMessage());
    Also DiskFileUpload,isMultipartContent and parseRequest have a line going through the middle (horizontal middle).
    Edited by: Overmars08 on Jun 23, 2009 5:35 AM
    Edited by: Overmars08 on Jun 23, 2009 5:36 AM

  • Problem downloading a file via http

    Hi
    I'm just getting started with WLS (sp5) and am having a problem downloading
    a file via http. The document is stored in the main html docs directory and
    whenever I link to it or try to download it directly (eg:
    http://<host>:<port>/myfile.doc) I get the following error in a message box:
    Your current security settings do not allow this file to be downloaded.
    Can anyone point me in the right direction as to where I grant permissions
    to do this - I've tried using the weblogic.security.URLAclFile and adding
    the directory as a weblogic.io.fileSystem (a desperation move, I know).
    Thanks in advance,
    Peter Villiers

    PLEASE IGNORE THIS POST
    The problem was caused by someone (me though I honestly don't remember doing
    it), setting the content security level to high in my web browser which
    stopped this type of download.
    Peter

Maybe you are looking for

  • Error while installing the SAP

    i'm having an error poped up everytime i try to install..the error is saying SQL error 942.. Cannot install anymore wht could be the possible solution to continue witht the installation without making it from the start again.

  • Deleting photo's from iphone

    How can I delete photos on my phone from photo stream and/or camera roll without having to do it one by one from my iphone? I have hundreds of photo's that I have transferred onto my computer and I really need to free up some space on my phone. All t

  • Optimum Image Sizes for iWeb 08?

    I'm trying to find an optimum size for images for an online portfolio. . I have the photos in their native resolution, and I'm wondering what size should I downsize them to for the slideshow view. . . any and all suggestions are welcome and appreciat

  • ARTISTS SECTION OF IPOD

    When I go to 'Artists' in the section that has Playlists, Artists, Albums, Songs etc. instead of having all my different artists listed alphabetically I have all the songs from my ipod listed alphabetically like in the 'Songs' section. I hope that ma

  • Best backup solution

    I need to find the easiest way to completely backup my system. I'd prefer ghosting it to an external drive. I have some USB drives available. I'd also like if theres a way to selectively restore parts of that ghost image. I'm sure this involves a thi