Is it possible to send the response to the client with the SOAP header containing the user information in JAX - WS?

Hello

I use JDev 11.1.1.7.0 and Weblogic 10.3.

I have a JAX - WS based web service on which authentication and authorization was in place and operational.

The SOAP request carries information of SOAP header with the token of user name and password for authentication. Similarly the SOAP response can also transport header to the client information? So that the customer who receives the answer happens to knowledge of who he actually received the answer.

Thanks in advance.

Hi Harsha,

Is quite easy to define soap headers in a response message soap envelope. No need to use handlers either. Please find the link that would be useful below.

You must use the WebParam property and set the modes for messages (IN, OUT, INOUT) and you can pass multiple values JAX WS service using "javax.xml.ws.Holder".

http://tomee.Apache.org/examples-trunk/WebService-holder/Readme.html

Please find the sample and put interfaces implement the Web service for the same.

Interface:

@WebMethod (operationName = "GetItemDetails", action = "http://xmlns.org/ItemService/GetItemDetails/V1")

Public Sub getItemDetails)

@WebParam (name = "ItemCandListServiceMessage", targetNamespace = "http://xmlns.org/ItemCandList", partName is "ItemRequest" mode = Mode.IN) ItemCandListServiceMessageCmplxType itemRequest,.

@WebParam (name = "ItemServiceMessage", targetNamespace = "http://xmlns.org/Item", partName is "ItemResponse" mode = Mode.OUT) owner itemResponse,.

@WebParam (name = "ItemSOAPHeader", targetNamespace = "http://xmlns.org/ItemSOAPHeader", "ItemSOAPHeader" = partName, header = true, mode = Mode.INOUT) holder itemSOAPHeader)

throws ItemFaultMessage

;

Implementation:

public void getItemDetails (ItemCandListServiceMessageCmplxType itemRequest, door itemResponse, door itemSOAPHeader) throw {ItemFaultMessage}

itemResponse.value = objectFactory.createItemServiceMessageCmplxType ();

itemSOAPHeader.value.setRequestId ("response");

itemResponse.value = itemServiceBean.getItemDetails (itemRequest, itemSOAPHeader.value, itemResponse.value);

}

Tags: Fusion Middleware

Similar Questions

  • In SQL Developer, is it possible to send the results of a sql statement?

    In SQL Developer, is it possible to send the results of a sql statement?

    Right-click on the query results pane, select "Export data" in the context menu, then select "xls".

  • Get the message: it is not possible to load the user profile after Windows updates

    Original title: Windows won't let me sign after updates

    Last night when I turned off my computer I saw that he had a few updates to do let him - now it won't let me login and when I try to it says that it is not possible to load the user's profile (it's the only one)...

    Recently, I installed Office and Windows 7. My anti-virus is the one that is provided by microsoft. Help!

    Hi romanista,.

    You can read the following article and check if it helps to solve the problem:

    Error message when you log a computer Windows Vista-based or Windows 7 by using a temporary profile: "the user profile Service has no logon. Unable to load the user profile.

    http://support.Microsoft.com/kb/947215

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Is it possible to limit the user to a session?

    Hello
    We have Oracle apps R 12.0.6, single node installation. Due to performance issues, I want to prevent the user not to have only a single session. Is it possible to limit the user to a session?

    Concerning
    Arizuddin

    Hello

    Is it possible to back out if necessary? We have to bounce the server applications after the loading event, subscriptions, or can it be implemented while the instance is up & running?

    You can return back (mentioned in the other thread). I think you have to bounce the application services once you are finished.

    Kind regards
    Hussein

  • How to pre-fill the user information during the operation to assign tasks

    Hello

    I have a requrirement to pre-fill fields of the form (name, Email, phone etc) when a task is assigned to a user. Users are dynamically specified, so I use the user to find and services to assign tasks to locate and assign them to the user. Since I was a user variable that is the result of the operation of the user to find, I was hoping to get the user information with the attributes of the type of user.

    I tried to use the service to set the value to set the form field (Email) with the email of the user that is object type attribute

    / process_data/MyForm/Object/Data/XDP/datasets/Data/Form/User/email-> /process_data/facilityAuthority/object/@email

    However I get the following error when I try to do - com.adobe.idp.dsc.util.InvalidCoercionException: can not compel object: [B@335d of the type: [B type: interface org.w3c.dom.Document.]]

    Is it possible to retrieve information from the user to the user object? If yes how values for the attributes of the user (name, Email and phone etc...) so that I can fill in the form?

    Thank you
    Nicolas

    Hello

    Please cast chain e-mail before you assign it.

    Example of

    / process_data/MyForm/Object/Data/XDP/datasets/Data/Form/User / email-> string (process_data/facilityAuthority/object/@email)

    For more details, please refer to the forum http://forums.adobe.com/thread/492826

    Thank you

  • How to check the possibility to send the PIN message?

    Hello

    Is it possible to verify that a device is able to send a PIN message without sending the message to the PIN and check its status? I cover all possible cases, such as devices with WIFI and without, company activated devices and is not active and etc., devices with antenna radio off the coast.

    Best regards.

    I think you need to BIS to send PIN messages.

    If this is the case, you can use CoverageInfo to check for this.

  • Purchase Adobe Acrobat Pro DC has the possibility to send the signatures?

    I did a 30 day trial of the product and knew that it would work so I ordered the product.  When I load on my computer and start working, it doesn't have the ability to send the signatures.  Why is this lack?

    Hi coc530,

    It's a subscription for Acrobat Pro DC or is a perpetual license?

    Subscription Pro DC Acrobat has send to the option of Signature electronic signature, electronic signatures online | Adobe Acrobat DC

    Kind regards

    Nicos

  • UTL_MAIL. SEND the log information

    Hello
    I use utl_mail package to send email in html format.
    I am able to send emails successfully, but there is a delay in the completion of my procedure utl_mail and mail delivery.
    I guess that the utl_mail.send will not wait for the mail to be completely delivered to mailbox recipients / or this package returns an output parameter.
    How can I determine if the mail has been sent successfully to the concerned recipient?
    Is there a newspaper or an oracle table where in I can track/monitor emails sent through utl_mail.send.
    Please also let me know if there are specific exceptions defined for utl_mail package(ex: utl_file.invalid_mode)

    I was Searchin' for the information in the books and documentation, but with minimal use.
    Please throw some light on this or direct me to documents in possession of that information.


    Kind regards
    Hemant

    user13321434 wrote:

    What can I confirm that post a single e-mail would be the operation of utl_mail.send?

    Yes. This procedure connects to an SMTP server, said helo , provides the sender and the recipient e-mail addresses, and then it sends the mail message real itself.

    If this is the case an exception when_others, what possible use for the block holding the call to utl_mail.send

    When the conversation with the mail server fails. For example, the server is unable to accept connections to the Oracle database server. You may have incorrectly formatted e-mail recipient or sender addresses. The mail server can expect authentication (username and password). The mail server can judge that you attempt to e-mail relay (unlawful according to standards of the Internet these days, in order to reduce spam holes). Etc.

    Such an error will result in the return of an error code in response to a mail server's SMTP command. The UTL_MAIL package allows to detect that the SMTP command it send failed and then throws an exception accordingly.

    Will be any kind of errors produced by SMTP sent the mailers Inbox?, as I say an incorrect email address had been forwarded to the utl_mail package?

    The SMTP server sends only the errors in sender Inbox when there mail delivery problems. In other words, it is accepted the mail of the customer - in this case, from using UTL_MAILPL/SQL code. He had no problem with the conversation SMTP itself. However, he ran into a form of delivery/transmission trying to process this mail - and which (should) problem will result in the release of an e-mail message to the sender to inform the sender of the problem.

    Not all mail received from the mail server like that are failures - it could be a simple warning. For example, if the mail server must connect to the domain foo.com for the delivery of your mail and e-mail in foo.com server is unresponsive, the mail as the mail server queue and retry later transmission. It can (usually do) the sender of the e-mail to inform the sender that there is a problem with the transmission, it is not an error, and that it would again seek the further transmission. It's called a soft bounce (not an error).

    A difficult bounce, for example, will receive a mail from the mail server informing you that the mailbox of the recipient is full and that it can not accept any mail. In this case, it is a mistake - your mail to this recipient has failed. Or you can receive an e-mail saying that the recipient does not exist in this area (no mailbox found to accept mail). Or you can hit a spam filter and mail server by saying he doesn't accept email from your mail server. All of these errors are hard rebounds resulting in the e-mail of origin being rejected for delivery somewhere along the line.

    Also don't forget that you don't know if your e-mail has arrived at its destination mailbox. There is no mechanism in SMTP that allows this. You can mark an e-mail header with a label that indicates the mail reader used by the recipient, to trigger an e-mail response to you when the recipient receives or open the e-mail message. But it depends on this mail reader to honor the request. I always turn off this option in my mail readers.

    The only way to determine the delivery of the electronic mail is to send a URL in the mail and asking the recipient to click on it when receiving mail - for example the approach used for the registration of an address e-mail as an account with a web site. Send the same email again in 24 hours when not receive only not URL clicks in response. After another 24 hours to consider the recipient are not interested or not accessible.

  • Web form send the user not

    Is it possible to have a web form send the workflow directly to an email that is not implemented as a user or an admin? i.e. ' [email protected] '

    Site settings > manage the workflow > (choose a proper Workflow) > not add to a Workflow > checkbox "also send Notification Workflow (separated by semicolons):" > e-mail address entered.

    Here is a screenshot:

    (Click to enlarge)

  • Is it possible to identify the font information when the type was converted to the outline?

    I frequently receive art where the type was converted into contour... and then a review type needs. The artist remembers that the font has been used rarely, and trial and error will eventually be used to find a similar font. Is it possible that Illustrator retains this information?

    Katrina,

    Alas, no.

    The possibility to implement a special preventive measure was at least once in this forum: electric shock through the keyboard when the user attempts to outline a font without having saved the direct type in the document (the failure because of the countermeasure of the use of rubber gloves is also mentioned) first.

  • Is it possible to skip the user selection screen and go directly to the login screen

    I don't have a single account username on my computer windows 7, but after a timeout of the screen or at startup, the system come with icon associated with my account, I have to click on before that I can enter name of user and password.  How can I get to ignore the screen / icon of the user's selection and present the login window?

    Hello rimrock,.

    Go to start search screen.
    Type Control userpasswords2, and then click the Enter key.
    Now, you will see the display of user accounts.
    Select the user you want to change and then you account uncheck you the
    "Users must enter a user name and password to use this computer."
    Click on the button apply.
    This will automaticall open the logon window.
    Enter the password to confirm and add to the system so that you don't need input to the
    login screen.

    Let us know if that helps.

  • My C drive is nearly full, can I send the 'Users' folder to 'C' on another disk "D"?

    I am usiinf Windows 7 Professional, my 'C' drive is an SSD with 'only' 56 Gig. My hard drive "D" is a one terabyte with more than 900 GB of space left on it.

    My file 'Users' is 13 Gig.

    DAVID BROOKER

    I don't think you can move the Users folder, but you can disable Hibernate and move your pagefile to free space, and you can move your Documents, music, pictures and videos folders.  You can uninstall some programs, and then reinstall them using the custom option and put them on the D: drive too.

    Good luck.

  • To pay Paypal now option is possible to allow the user to enter the amount of the payment rather than having a predetermined amount?

    I ask that my client, which provides a service to a Paypal button where a customer can enter any amount of the payment. The button pay now seems to require a fixed amount. When the user clicks on the button pay now Paypal window will appear showing a payment instruction that is not editable. Appreciate any suggestions, thanks

    In the options of the Paypal button, you can select 'Gift' and add your own button image, if you wish.

    Visitors will be redirected to the paypal site where they can enter any value for the quantity they want and process the payment.

    Thank you

    Sanjit

  • column of a link with the ability to send the user on several different pages

    using apex 4.0

    In my example:
    User: Secretary for a large company in charge of the HR database, enter new employees, reorganizing the employees, managers, etc.).
    Employee: A person working for the company whose information is in the database.

    The problem: my client wants the data divided into several subcategories, so, for example, it would be like sales, managers, etc., using the human resources database. The main page of this project contains a table that lists all the company employees, low to high. There is a column of navigation with several links to predefined reports filter that filters data on the question whether the employee in the database is a seller, Manager, etc.. If the user clicks on the link change, it will take them to a page master detail where the upper part is general information and background tasks of the employee. The problem is that, according to his level, there may be additional details that the user will want to change, such as if the employee is responsible for, the user will also want to see another table a list of employees by the Manager. There is also a second level of managers who will have a table of managers of this person manages. The dream is that there is a list of links above the tabular presentation, which will allow the user to choose what table they want to see. I thought about the following:

    1. create several copies of the home page, one for each subcategory, so that she will be the link change correct.
    Positives - Simple, easy, I know how to.
    Negative - would like it to appear on the same page, such that if the user deletes / adds a column in a single page, this change would occur on all other pages. I also have to make the same changes on several pages, one is required.

    2. create a text field hidden on the page that records the last link, what they clicked. When the user clicks on the link change, some kind of javascript selects the right page to go to in view of what is in the box.
    Positives - seems simple enough, but I have not tapped into javascript a lot
    Negative - not for sure if it is even feasible, would need help

    3. create a subpage of master-detail, that holds all the necessary tables and hide those that are not. When the user clicks on a link, the link triggers the current table to hide and another to appear.
    good points - all in the same place, that one page to link to main page
    negatives - it would require at least 5 tables on one page and I do not know how the apex would like that. I also don't like the idea of the page calling itself when the user is looking at senior managers and to display a lower Manager / employee.

    4. a creative method / useful / incredibly simple bore by a user of this forum.

    Because I'm in a very short, customer review period next week, I implémenterai #1 because it is the easiest and most straight forward, but I would like to know your thoughts to make much cleaner.

    Published by: rabbitman June 4, 2012 08:07

    I don't know if it's the best way to accomplish what you want, but it worked for me.

    Change the link in the column to specify the following for a target URL, where EMP_NO and EMP_TYPE are columns of the report.

    JavaScript:apex. Submit('#EMP_NO##EMP_TYPE#')

    In the processing of the page after several branches to different pages depending on the type of employee. For example,.

    Branch to Page 2: Condition = instr (: REQUEST, 'SALES') > 0
    Branch to Page 3: Condition = instr (: REQUEST, "MANAGER") > 0
    Branch to Page 5: Condition = instr (: REQUEST, 'PRÉSIDENT') > 0

    Since the: APPLICATION also has the EMP_NO, you can use this to set the value of the EMP_NO for the target page, pull up to the employee's file.

    Natasha

  • Registration of the user information

    Hello
    I have a task to save all changes made to the data in a table.
    Can be changed by the application of the apex and directly in the database.
    To do this, I created a trigger, a get the user making changes to the select statement
    select nvl (Htmldb_Util.get_session_state ('APP_USER'), htmldb_utils.get_user_machine | | '\' | | user)
    from dual
    Is it possible, when the changes are made directly in the database (USER = htmldb_utils.get_user_machine |) '\' | | the user), unless the machine and the scheme of the DB to get also the user_name that has logged on to the computer of the user?

    Kind regards
    Slavi

    Published by: Patricia, the 2010-10-11 09:50

    SYS_CONTEXT research.
    http://psoug.org/reference/sys_context.html
    http://download.Oracle.com/docs/CD/B14117_01/server.101/b10759/functions150.htm

    URL added: Johan on October 11, 2010 12:07 AM

Maybe you are looking for

  • Non-administrator iTunes install

    Hi all I am a network administrator and all our users have no administrator rights. Also, it is not possible to give them Admin rights. With the latest version of iTunes, the installation seems to require a little final configuration at the start of

  • ICAN can't uninstall Justcloud. I tried Control Panel, add/remove, but he did not remove it. What can I do?

    Very well... I downloaded Justcloud but failed to read the terms and policies. I want either, so I tried to uninstall it by going into the control panel and clicking Add/Remove, but Justcloud would not uninstall. I'm a novice at this and I don't real

  • (Redirected) Terrible Customer Service-Assistance is requested

    I ordered a TV last week and he received Monday.  The box was damaged.  I sent an email to Dell and I have yet to receive a response.  I was on a chat session where I had to wait 1 hour, automated message came this Department was closed.  I called De

  • Regarding the installation of McAfee

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: When trying to install McAfee on my laptop I get an error that the installation failed because the webreboot spyware.  I can't find webre

  • HP care pack certificate print number.

    Hello I received an e-mail from services hp care pack telling that your certificate of warranty or any other certificate is ready to be printed.  I am only able to view the certificate in android.the the "view certificates" button does not work when