Focus on JOptionPane - how?

hi.
in my program, when the user enters an incorrect input, i simply call JOptionPane.showMessageDialog to display an error message. I'd like for the focus to shift to the error window, so that the user can simply hit ENTER to make it go away, rather than having to tab over to the window.
oddly, when the window pops up, focus remains on the main program window. is there a simple way to make the focus shift to the new window?
i'm using swing to do all my gui stuff.
thanx in advance.
~spoongirl

You are wanting to make the dialog box modal. The answer on how to do this is contained:
http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

Similar Messages

  • How to set focus on JOptionPane

    Hello guys,
    I create a
    String options[] = {"Ok", "Cancle"};
    JOptionPane.showOptionDialog(..,..,..,YES_NO,null,options, JTextField);
    and inside this JOptionPane, there is a JTextField for receive what user input,
    when I set this JTextField to be the default focus, the Ok and cancle button don't receive
    action from Enter key, they are accepted only Mouse-clicked action.
    Do you have another idea to make the button can accept the action from Enter key?

    thank you, but I forgot to tell you that my JTextField is JPasswordField.
    And we can't add keylistener to String, can we?
    this is my code:
    JTextField acodeField = new JPasswordField(12);
    String[] buttonLabels = {"OK","Cancel"};
    do
    acodeField.setText("");
    option = pane.showOptionDialog(this,
    panel,
    super.getTitle(),
    JOptionPane.OK_CANCEL_OPTION,
    JOptionPane.PLAIN_MESSAGE,
    null,
    buttonLabels,
    acodeField);
    // Quit operation if cancel button is selected.
    if (option != 0 || option < 0) {
    return option;
    } while (authCode.compareTo(acodeField.getText()) != 0);

  • Setting focus in JOptionPane.showInputDialog

    Hi!
    For usability I want to set the focus to the dialog that pops up if i call JOptionPane.showInputDialog(...).
    Someone an idea how this works?
    cu

    Hi...
    I am facing exactly the same problem... If you have found a solution, please contact me at:
    [email protected]
    Regards.

  • Focus on JOptionPane

    I have a problem.
    If I want to change something within a table, a JOptionPane opens, in which i can enter some values.
    But if I switch to another program over the task bar while the JOptionPane is still open, and I return to my Java program over the task bar, the main window has the focus and the JOptionPane is hidden. During this, the user has no posibillity to close the program. The only possibility to get the JOptionPane back is by ALT+TAB!
    Is it possible, that the JOptionPane will over the task bar?

    Just to easy, that it is really embarassing:
    JOptionPane.showMessageDialog(frame,"Message");
    The first parameter is the parent container. If you pass your main frame, it is modal and in front of the frame!

  • JOptionPane-how to disable a single choice

    Hi
    Can someone please guide me how to disable a single hoice in the JOptionPane class.what i want is like this
    i the dropdown box i have five choices
    a
    b
    c
    d
    e
    now i want that choice b should not be highlighted and the user should not be able to select choice b but he should be able to see it.I don't have a clue how to do this,any help is welcome

    I'm thinking you might end up having to implement your own
    ListSelectionModel, perhaps extending DefaultListSelectionModel, and
    have it ignore the items you don't want selected. You would then need
    to get the list from the combo box and set this selection model on that
    list. Unfortunately, looks like you'll have to go in through the L&F
    classes to get at this list.
    : jay

  • [openbox] focus or execute - how to?

    I'd want to key-bind an execution of an application (it is geany) at a single-instanse mode: if the app is already running, just focus it instead of starting new instanse.
    How to?

    Inxsible wrote:Write a script to check if the pidof geany returns anything. if yes, then pull that pid else start a new instance of the app.
    There isn't a pid, but there is a socket:
    $ netstat -l | grep geany_socket
    unix 2 [ ACC ] STREAM LISTENING 528982 /tmp/geany_socket.cc71320d
    Unfortunately I don't know how to use it. Is there some example I can adapt?
    Last edited by student975 (2011-04-14 17:06:29)

  • Treo 755p camera is out of focus, any suggestions how to fix?

    I bought the 755p used, everything works great, but the camera photos are blurry, out of focus.  I have checked the online User Guide and I can't find any adjustment or correction for this.  Palm wants $199.00 minimum charge to look at the phone.  Has anyone had this problem and been able to fix it somehow?  Thanks for any help or suggestions.  Eric, Reno, Nevada.
    Post relates to: Treo 755p (Sprint)

    Was the phone dropped, or immersed in water?  Either of those could cause the camera to lose focus...  
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • JOptionPane en default focus issues

    Hello,
    I have written a simple class to show a login dialog, but I can't get the default focus right. My problem is that I want the first JTextField (usernameField) to be the one select when my dialog shows, but I want the first button (Ok button) to be called automatically when I press enter. What happens now that I set the first button (Ok button) default (last argument of JOptionPane.showOptionDialog), this makes sure that whenever I press enter this buttons gets called en the dialog reacts accordingly. But when the dialog is first shown this default button is also the one selected (having focus), this is not what I want. The JTextField (usernameField) should be selected (have focus) so a user can enter his username, then press enter and see what happens.
    When I don't set a default button nothings happens when I press enter but now the right JTextFields (usernameField) is selected.
    Hope anyone can help me.
    Thank you very much.
    The code:
    public class LoginDialog
        private int attempts;
        private TargetFinder controller;
        private Component parent;
        private String username;
        private String password;
        public LoginDialog(TargetFinder controller, Component parent)
            this.controller = controller;
            this.parent = parent;
            username = "";
            password = "";
        private int buildDialog()
            String dialogTitle, usernameText, passwordText, errorPart1, errorPart2;
            String[] buttonsText;
            try
                dialogTitle = LanguageParser.getText("loginTitle");
                usernameText = LanguageParser.getText("username");
                passwordText = LanguageParser.getText("password");
                buttonsText = new String[2];            
                buttonsText[0] = LanguageParser.getText("loginTitle");
                buttonsText[1] = LanguageParser.getText("cancel");
                errorPart1 = LanguageParser.getText("loginError1");     
                errorPart2 = LanguageParser.getText("loginError2");
            catch (Exception e)
                throw new RuntimeException("Login dialog could not be created", e);
            JPanel namePanel = new JPanel(false);
            namePanel.setLayout( new GridLayout(0, 1) );
            namePanel.add( new JLabel(usernameText) );
            namePanel.add( new JLabel(passwordText) );
            JPanel fieldPanel = new JPanel(false);
            fieldPanel.setLayout( new GridLayout(0, 1) );
            JTextField usernameField = new JTextField(12);
            fieldPanel.add(usernameField);
            JPasswordField passwordField = new JPasswordField(12);
            fieldPanel.add(passwordField);
            JPanel componentPanel = new JPanel(false);
            componentPanel.setLayout( new BoxLayout(componentPanel,
                    BoxLayout.X_AXIS) );       
            componentPanel.add(namePanel);
            componentPanel.add(fieldPanel);
            JPanel componentPanelError = new JPanel(false);
            componentPanelError.setLayout( new GridLayout(0, 1) );
            componentPanelError.add(componentPanel);
            JLabel errorLabel = new JLabel(
                    "<html>" +
                    errorPart1 +
                    "<br>" +
                    errorPart2 +
                    "</html>" );   
            errorLabel.setForeground(Color.RED);
            componentPanelError.add(errorLabel);
            int res;
            res = JOptionPane.showOptionDialog(
                    parent,
                    (attempts == 0) ? componentPanel : componentPanelError,
                    dialogTitle,
                    JOptionPane.OK_CANCEL_OPTION,
                    (attempts == 0) ? JOptionPane.INFORMATION_MESSAGE : JOptionPane.ERROR_MESSAGE,
                    null,
                    buttonsText,
                    buttonsText[0] );
            if (res == JOptionPane.OK_OPTION)
                username = usernameField.getText();
                password = new String( passwordField.getPassword() );
            return res;
        public boolean login()
            attempts = 0;
            Database database = controller.getDatabase();
            while ( buildDialog() == JOptionPane.OK_OPTION )
                if ( database.login(username, password) )
                    return true;
                attempts++;
            return false;
    }

    Thanks for your reaction Olek,
    But I can't request focus because JOptionPane creates a model window, so the JVM waits for the user to click one of the buttons.
    Also I don't know how to add a ButtonListers to any of the buttons because the are created dynamicly by JOptionPane.
    I use JOptionPane.OK_CANCEL_OPTION to create both an Ok and a Cancel button, and define an array (buttonsText) with names for them. I can't ask the rootPane for this buttons because they only excist after I call JOptionPane.showOptionDialog(...) and this is model window.
            int res;
            res = JOptionPane.showOptionDialog(
                    parent,
                    (attempts == 0) ? componentPanel : componentPanelError,
                    dialogTitle,
                    JOptionPane.OK_CANCEL_OPTION,
                    (attempts == 0) ? JOptionPane.INFORMATION_MESSAGE : JOptionPane.ERROR_MESSAGE,
                    null,
                    buttonsText,
                    buttonsText[0] );With kind regards,
    Eddy

  • How to judge some jcomponent whether has gotten focus?

    1.How to judge some JComponent whether has gotten focus?
    2.How to judge what JComponent has gotten focus?

    1.How to judge some JComponent whether has gotten focus?You can use a [url http://java.sun.com/docs/books/tutorial/uiswing/events/focuslistener.html]Focus Listener.
    2.How to judge what JComponent has gotten focus?FocusManager.getCurrentManager().getFocusOwner()

  • JSF: How to determine which element has the focus?

    Hi all,
    I have a JSP with some input fields and a text area. When I press "ENTER" the data I have entered should be saved. That works fine (I use JavaScript to catch the keyPressed-event). But when I want to insert a new line in the text area, I press ENTER too and this invokes the javascript function. So it�s not possible to insert a new line in the text area. And I don`t want to save the data when I�m just inserting a new line.
    is it possible to determine which element has the focus at the moment of pressing ENTER? if it`s the text area then I won�t save the data and inserting a new line is possible? Or how to say: "Insert an new line if the user presses SHIFT+ENTER" or something like that?
    I�m using JSC for my application and this is my JS-function:
    function checkIt(evt)      
    var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which : evt.keyCode);
         if (charCode == 13)
              document.getElementById('form1:bt_Save').click();
              return false;
              return true;
    I�m looking for something like that:
    if(charCode == 13) {
    if(document.getElementById('form1:textArea').hasFocus())
    doNothing...
    else {
    document.getElementById('form1:bt_Save').click();
         return false;
    thanks for any help

    Hi,
    I searched through many forums (js of course too) but
    I couldn�t find a solution. Everybody knows how to
    set the focus but not how to get it. We often use
    JSF/JSP with javascript and maybe somebody here has
    another approach to this problem (how to solve it
    using jsf itself or anything else)?Take easy. I just suggested to search in a JavaScript forum , in your question you didn't mentioned this. Good luck man.
    Cya.

  • Focus problem when JPopupMenu is shown

    I have compiled and ran the following 'JPopupTest.java' in JDK 1.4.1 on Windows. Kindly conduct the two tests as given below
    First Test :
    ============
    The class shows an editable JComboBox and a JButton when visible. Now click the down-arrow button of the JComboBox and make the drop-down popup visible. Then click on the "OK" button while the popup is visible. The popup gets hidden and a dialog is displayed as it should be.
    Second Test :
    =============
    Run the appilcation again. This time type something in the editable textfield of the JComboBox. A custom JPopupMenu with the text "Hello World" would be visible. Then click on the "OK" button while the popup is visible. The expected dialog is not shown. The custom JPopupMenu gets hidden. Now click on "OK" button again. The dialog is visible now.
    My Desire :
    ===========
    When I click on the "OK" button in the "Second Test" the JPopupMenu should get hidden and the dialog gets displayed (as it happens for the "First Test") in one click.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import javax.swing.plaf.basic.*;
    import java.util.*;
    public class JPopupTest extends JPanel implements DocumentListener, ActionListener
         JButton button;
         Vector vec;
         JComboBox jcombobox;
         JPopupMenu jpopupmenu;
         BasicComboBoxEditor _bcbe;
         JTextField jtextfield;
         public JPopupTest()
            vec = new Vector();
               vec.addElement("One");
            vec.addElement("Two");
            vec.addElement("Three");
            vec.addElement("Four");
            vec.addElement("Five");
            vec.addElement("Six");
            vec.addElement("Seven");
            vec.addElement("Eight");
            vec.addElement("Nine");
            vec.addElement("Ten");
            jcombobox = new JComboBox(vec);
            jcombobox.setEditable(true);
            _bcbe = ((BasicComboBoxEditor) jcombobox.getEditor());
            jtextfield = ((JTextField) _bcbe.getEditorComponent());
            jtextfield.getDocument().addDocumentListener(this);
            add(jcombobox);
            button = new JButton("OK");
            button.addActionListener(this);
            add(button);
            jpopupmenu = new JPopupMenu();
            jpopupmenu.add("Hello World");
         public void insertUpdate(DocumentEvent e)  {changedUpdate(e);}
         public void removeUpdate(DocumentEvent e)  {changedUpdate(e);}
            public void changedUpdate(DocumentEvent e)
            if(!jpopupmenu.isVisible())
            jpopupmenu.show(jcombobox, 0, jcombobox.getHeight());
            jtextfield.requestFocus();
         public void actionPerformed(ActionEvent e)
            JOptionPane.showMessageDialog(this, "OK button was pressed");
         public static void main(String[] args)
            JPopupTest test = new JPopupTest();
            JFrame jframe = new JFrame();
            jframe.getContentPane().add(test);
            jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            jframe.setSize(200,100);
            jframe.setVisible(true);

    See the code below with auto complete of text. When button is pressed, still TF gets focus after JOptionPane dialog is closed.
    -Pratap
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.plaf.basic.*;
    public class JPopupTest extends JPanel implements ActionListener {
         JButton button;
         Vector vec;
         JComboBox jcombobox;
         BasicComboBoxEditor _bcbe;
         JTextField jtextfield;
         MyComboUI comboUi = new MyComboUI();
         public JPopupTest() {
              vec = new Vector();
              vec.addElement("One");
              vec.addElement("Two");
              vec.addElement("Three");
              vec.addElement("Four");
              vec.addElement("Five");
              vec.addElement("Six");
              vec.addElement("Seven");
              vec.addElement("Eight");
              vec.addElement("Nine");
              vec.addElement("Ten");
              jcombobox = new JComboBox(vec);
              jcombobox.setEditable(true);
              jcombobox.setUI(comboUi);
              add(jcombobox);
              button = new JButton("OK");
              button.addActionListener(this);
              add(button);
              _bcbe = ((BasicComboBoxEditor) jcombobox.getEditor());
              jtextfield = ((JTextField) _bcbe.getEditorComponent());
              jtextfield.addCaretListener(new CaretListener() {
                        public void caretUpdate(CaretEvent e) {
                             if (!jcombobox.isPopupVisible() && jtextfield.isShowing() &&
                                       jtextfield.hasFocus()) {
                                  jcombobox.showPopup();
                             String text = jtextfield.getText().toLowerCase();
                             int index = -1;
                             for (int i = 0; i < jcombobox.getItemCount(); i++) {
                                  String item = ((String) jcombobox.getItemAt(i)).toLowerCase();
                                  if (item.startsWith(text)) {
                                       index = i;
                                       break;
                             if (index != -1) {
                                  comboUi.getList().setSelectedIndex(index);
                             } else {
                                  comboUi.getList().clearSelection();
                   jtextfield.addKeyListener(new KeyAdapter() {
                        public void keyPressed(KeyEvent e) {
                             if (e.getKeyCode() == e.VK_ENTER) {
                                  Object value = comboUi.getList().getSelectedValue();
                                  jcombobox.setSelectedItem(value);
                                  jcombobox.hidePopup();
         public void actionPerformed(ActionEvent e) {
              JOptionPane.showMessageDialog(this,"OK button was pressed");
              jtextfield.requestFocus();
         public static void main(String[] args) {
              JPopupTest test = new JPopupTest();
              JFrame jframe = new JFrame();
              jframe.getContentPane().add(test);
              jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              jframe.setSize(200,100);
              jframe.setVisible(true);
         public class MyComboUI extends BasicComboBoxUI {
              public JList getList() {
                   return listBox;

  • How can I disable prompt to ask viewers to dload Flash?

    Thanks to this forum, I now have a Flash video on my website. And I'm on a mac! Now, here' s my latest problem.
    When I added the Flash video, there was a selection in Dreamweaver where, when clicked, the page will prompt viewers who don't have the latest flash version to download it. Way cool.
    However, when I select "Insert" "Media" then "Plug in" and I add a quicktime video, I can view the quicktime video, only this prompt still appears asking viewers to download flash, and when I add the video, there doesn't appear the same selection asking if I want to prompt viewers to download Flash or Quicktime. So, what is the code to disable that function from this page?
    Also, if you know the code to prompt viewers to download quicktime, that'd rock. BUT, I posted a message on the apple message boards, 'cause I realize that's their focus.
    Thanks.

    How do I rip out the flash references? What do those look like?
    What I'm trying to do is this...
    I have one page where I have a flash video. On that page, when a user doesn't have flash installed, the page correctly asks if they'd like to install it.
    I also have a page with a quicktime video. I'd like it so that if a user doesn't have quicktime, the user is asked if they'd like to install it. As it is now, the page asks if they'd like to install flash. I don't want it to ask if they'd like flash, and don't see any settings in dreamweaver to turn off that feature. It automatically added it, even though I added a quicktime plugin to the page. How can I turn that off, that is, so it doesn't prompt viewers to download flash? If it's a matter of removing code, I can do that, but how will I know what flash code looks like? Please help.

  • JOptionPane event blocking problem

    Hi,
    JOptionPane is causing me a problem.
    I have a simple frame that contains a text field and a button.
    Pressing the button should write something to the standard output.
    When the text field loses focus a JOptionPane in poped to the user.
    The following scenario is problematic:
    1. The text field owns the focus.
    2. The user presses the button.
    Expected result:
    The JOptionPane appears due to the lost focus event on the text field.
    After closing it some text is written to the standard output due to the action event on the button.
    The actual result:
    The JOptionPane does appears but after closing it nothing is written to the standard output. The button stays in a curious state (when the mouse hovers over the button the button looks pressed, and when the mouse doesn't hover over the button the button looks unpressed).
    Probable reason for this behaviour:
    The JOptionPane blocks all awt/swing events while it is opened. Some of the button code is perfomed due to the button press, but the ActionListener's actionPerformed method is not invoked.
    I need the actionPerfomed method to be invoked.
    Can anyone help me?
    Here is the source code:
    package test;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Test {
    public Test() {
    public static void main(String[] args) {
    //Test test1 = new Test();
    final JFrame f = new JFrame("Test");
    JButton b = new JButton("Click Here");
    JTextField tField = new JTextField("Text", 10);
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    b.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    System.out.println("Button pressed!");
    tField.addFocusListener(new FocusAdapter() {
    public void focusLost(FocusEvent e) {
    if (e.isTemporary()) return;
    JOptionPane.showMessageDialog(f,
    "Focus lost",
    "Title",
    JOptionPane.INFORMATION_MESSAGE);
    JPanel content = (JPanel)f.getContentPane();
    content.setLayout(new BoxLayout(content, BoxLayout.X_AXIS));
    content.add(tField);
    content.add(Box.createHorizontalStrut(5));
    content.add(b);
    f.pack();
    f.show();
    Thanks,
    Shai

    Hello Shai.
    The JOptionPane seems to consume all events when its shown. (Check the stack after JOptionPane is shown.) I've solved a similar problem with the SwingUtilities.invokeLater() method. Maybe the following example will help:
    Runnable doDlgError = new Runnable() {
    public void run() {
    JOptionPane.showMessageDialog(this, "Error", "Error",
    JOptionPane.ERROR_MESSAGE);
    SwingUtilities.invokeLater(doDlgError);
    -Olaf

  • WCF request with utl_dbws how to add Header into SOAP envelope

    I’m trying to make WCF (Windows Communication Foundation) request and using for that utl_dbws package.
    After making request (calling utl_dbws.invoke) it will give error “ORA-29532: Java call terminated by uncaught Java exception: javax.xml.rpc.soap.SOAPFaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect t”
    I turned on logging (utl_dbws.set_logger_level) I see that system sends standard SOAP envelope and does not have Header at all. How can I use my own SOAP envelope and/or add Header.
    All info that logging give is:
    ServiceFacotory: oracle.j2ee.ws.client.ServiceFactoryImpl@eec8c59c
    WSDL: null
    Service: oracle.j2ee.ws.client.BasicService@7c110d23
    *** Created service: -677524827 - oracle.jpub.runtime.dbws.DbwsProxy$ServiceProxy@562bd0c4 ***
    ServiceProxy.get(-677524827) = oracle.jpub.runtime.dbws.DbwsProxy$ServiceProxy@562bd0c4
    getOperationInfo return NULL: port={http://tempuri.org/Service/}BasicHttpBinding_Service, operation={http://tempuri.org/Service/}GetLov
    setProperty(javax.xml.rpc.soap.http.soapaction.use, true)
    setProperty(javax.xml.rpc.soap.http.soapaction.uri, http://tempuri.org/Service/GetLov)
    setProperty(javax.xml.rpc.encodingstyle.namespace.uri, http://www.w3.org/2005/08/addressing)
    setProperty(javax.xml.rpc.security.auth.username, DefaultUser)
    setProperty(javax.xml.rpc.security.auth.password, MySecretPassword)
    <GetLOV xmlns="http://tempuri.org/"> <request xmlns:d4p1="http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <d4p1:AgentCode>AGENT</d4p1:AgentCode> <d4p1:Language>ENG</d4p1:Language> <d4p1:ProcessName>test</d4p1:ProcessName> </request></GetLOV>
    Attribute 0: http://tempuri.org/: xmlns, http://tempuri.org/
    createElement(GetLOV,null,http://tempuri.org/)
    Attribute 0: http://tempuri.org/: xmlns, http://tempuri.org/
    dbwsproxy.element.node.child.0: 1, null
    dbwsproxy.add.map: d4p1, http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request
    Attribute 0: http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request: xmlns:d4p1, http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request
    dbwsproxy.add.map: i, http://www.w3.org/2001/XMLSchema-instance
    Attribute 1: http://www.w3.org/2001/XMLSchema-instance: xmlns:i, http://www.w3.org/2001/XMLSchema-instance
    createElement(request,null,http://tempuri.org/)
    dbwsproxy.add.soap.element.namespace: d4p1, http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request
    Attribute 0: http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request: xmlns:d4p1, http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request
    dbwsproxy.add.soap.element.namespace: i, http://www.w3.org/2001/XMLSchema-instance
    Attribute 1: http://www.w3.org/2001/XMLSchema-instance: xmlns:i, http://www.w3.org/2001/XMLSchema-instance
    dbwsproxy.element.node.child.0: 1, null
    dbwsproxy.lookup.map: d4p1, http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request
    createElement(d4p1:AgentCode,null,http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request)
    dbwsproxy.text.node.child.0: 3, E01306
    dbwsproxy.element.node.child.1: 1, null
    dbwsproxy.lookup.map: d4p1, http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request
    createElement(d4p1:Language,null,http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request)
    dbwsproxy.text.node.child.0: 3, ENG
    dbwsproxy.element.node.child.2: 1, null
    dbwsproxy.lookup.map: d4p1, http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request
    createElement(d4p1:ProcessName,null,http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request)
    dbwsproxy.text.node.child.0: 3, tesr
    request:
    <GetLOV xmlns="http://tempuri.org/">
    <request xmlns:d4p1="http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
    <d4p1:AgentCode>AGENT</d4p1:AgentCode>
    <d4p1:Language>ENG</d4p1:Language>
    <d4p1:ProcessName>test</d4p1:ProcessName>
    </request>
    </GetLOV>
    13.05.2010 14:17:28 oracle.j2ee.ws.client.ClientMessages infoAboutToInvokeCallForEndpoint
    INFO: Trying to connect to URL: https://x.y.z/WS/ Service.svc
    13.05.2010 14:17:30 oracle.j2ee.ws.client.StreamingSender _sendImpl
    FINE: StreamingSender.request:<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><env:Body><GetLOV xmlns="http://tempuri.org/"><request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d4p1="http://schemas.datacontract.org/2004/07/x.y.z.LOV.Request"><d4p1:AgentCode>AGENT</d4p1:AgentCode><d4p1:Language>ENG</d4p1:Language><d4p1:ProcessName>test</d4p1:ProcessName></request></GetLOV></env:Body></env:Envelope>
    13.05.2010 14:17:30 oracle.j2ee.ws.client.StreamingSender _sendImpl
    FINE: StreamingSender.response:<?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode><faultstring xml:lang="et-EE">The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the &lt;serviceDebug&gt; configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.</faultstring></s:Fault></s:Body></s:Envelope>
    Exception in thread "Root Thread" javax.xml.rpc.soap.SOAPFaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
         at oracle.j2ee.ws.client.StreamingSender._raiseFault(StreamingSender.java:559)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
         at oracle.j2ee.ws.client.dii.CallInvokerImpl.directInvoke(CallInvokerImpl.java:705)
         at oracle.j2ee.ws.client.dii.BasicCall.directInvoke(BasicCall.java:692)
         at oracle.j2ee.ws.client.dii.BasicCall.invoke(BasicCall.java:598)
         at oracle.jpub.runtime.dbws.DbwsProxy$CallProxy.invokeProxy(Unknown Source)
         at oracle.jpub.runtime.dbws.DbwsProxy$CallProxy.access$2600(Unknown Source)
         at oracle.jpub.runtime.dbws.DbwsProxy.invokeProxy(Unknown Source)

    HTTP is HTPP... mostly.
    In other words, the application protocol is stand and specified in RFC2616 (http://www.w3.org/Protocols/rfc2616/rfc2616.html)
    The exception is specific proprietary extensions.. like for example Microsoft's NTLM authentication handshake.
    The UTL_HTTP interface supports the protocol pretty well as per the protocol's specification. So using it to interact with a a web service should not be a major issue. The protocol is standard (e.g. POST command is used to supply the payload to the web service). The only real issue is formatting the payload for that as per what the web service expect. And that has nothing to do with HTTP itself - or UTL_HTTP. It is simply the delivering mechanism.
    Getting that mechanism to work is fairly easy and should not pose a problem. Instead I suggest you focus on exactly how the HTTP payload needs to look like. Does that web service expects any specific name-values in the header? What does it expect in the body? Etc.

  • How can I create my own Print App?

    We'd like to create a Print App for our business-focused product.  How do we do that / become a Print App developer?  Who can we get in touch with to get more info?
    Thanks!

    Hello Betteroff,
    Here is a link to an idea submission form for a Print app. I do not know if this is what you are looking for exactly but its a good start. Hopefully you can receive some information back after submitting this form that can get you in touch with the correct department for your question.
    https://h30495.www3.hp.com/idea/submit
    Hope this helps.
    If I have solved your issue, please feel free to provide kudos and make sure you mark this thread as solution provided!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

Maybe you are looking for

  • Best practice on creating a managable questionnaire/survey with JSF

    Hello all, As a part of a bigger project we need to build a questionnaire with managable questions. This means that clients can add/modify/delete questions as they wish. The database side is figured out and designed, but what im really thinking is ho

  • Tooltip need to be displayed in multilines one below the other as listbox

    Hi , Let me explain my scenario. In my database i have multivalues say eg(  file1.doc, file2.doc, file3.doc). So in my front end i was fetching this concatinated filenames in the similar pattern as a tooltip. So now i am able to get this file names d

  • PO tex at item position not transfer to backend

    Hi all, Is necesary any configuration or BADI activation to transfer PO item text to backend?? all PO data is transfer correctly except this information. any suggestions? Regards José Luis

  • Podcast app auto-play on bluetooth connect, not wanted!

    I've read several threads regarding annoying behavior of audio apps while connected to bluetooth audio devices, but none directly relating the problem I have. In fact, the thing that bothers me appears to generally be considered to be desireable to m

  • Crystal Report Formula French Salutation

    I have this code below I'm not sure why it is nto running properly.  WHen i run each separately, they all work but for some reason when i put them together in a longer formula If IsNull({GfCnBio.GfCnBio_Spouse_ID}) and {GfCnBio.GfCnBio_Key_Indicator}