JAX-WS contract first solution help needed

Hi,
I am trying to create a bunch of web services using jax-ws which I will deploy on Jboss. I would like to create xml schemas and wsdl files before I create my solution because I want a clearer contract betweent client and server that is not defined by the server code.
I have managed to create an xml schema and generated the message files. I also created a wsdl file and implemented a service endpoint which refers to the wsdl file.
My problem now is that I cannot seem to get the mapping (marshalling) to the Java objects to work correctly. When I create a simple client that calls the service defined in the wsdl file I have managed to get the request to map to the webmethod in my endpoint. But I cannot seem to figure out how to get my message validated against the schema, which means that I can call the method with any type of request without getting an error message. This is also true for the return object. The solution doesn't seem to care whether I return a string or the object defined in the wsdl file.
I created my solution as a "regular" jar which I deploy on Jboss.
@Stateless
@WebService(name = "Test", portName = "TestPort", targetNamespace = "http://www.company.com/test-service/", wsdlLocation = "META-INF/wsdl/test-service.wsdl")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public class TestBean {
     @WebMethod(operationName = "PerformOperation")
     public Response newOperation(Request request) {
          return response;
}Could you give me some tips and advice to help me finish my solution. It would also good if anyone could tell me how to turn message validation on.
Regards,
Leo

Hi Nico,
In multithreading, all the threads are independent. Here the threads miao and bau are independent.
There is no guarantee which thread executes first. In your program for miao you explisitly called sleep and hence bau thread executed.
Explanation:
========
When you start both the threads miao and bau both are in runnable start. Only one thread can go to running. Lets consider miao goes to running state. Because you called sleep miao goes to sleeping and bau goes to running state and once the sleep completed for miao it goes to runnable state and as bau is in running and once bau completes miao again goes to running state and then it also completes.
Thanks & Regards,
Murali.
===========

Similar Messages

  • Site solution help needed

    Hi, I have a potential client who needs a site that his
    clients can securely
    log on to and access information that he has uploaded for
    them. He doesn't
    need a merchant account but does require a secure interface
    and site. Does
    anyone know of a ready made solution that would fit this
    need?
    Many thanks for any help.

    > Hi, I have a potential client who needs a site that his
    clients can
    > securely log on to and access information that he has
    uploaded for them.
    > He doesn't need a merchant account but does require a
    secure interface and
    > site. Does anyone know of a ready made solution that
    would fit this need?
    >
    > Many thanks for any help.
    'collaboration portal' sounds like the type of application
    he'd be looking
    for.
    -Darrel

  • Contract Analysis Report - Help needed pls.

    Hi Gurus,
    I have below requirement.
    To analyze the contracts created in purchasing(in SAP). The report shall help to analyse the Contracts that are due to expire in next 12 months.
    Now I need a suitable datasource and business content ods/cube.
    Required characters are: Contract no, Vendor, Purchasing group, created on,start date,end date etc.
    Report to run for contract end date between today's date and next year. For ex if user is running report on 05-oct-2007, the report should display all the contracts having end date between 05-oct-2007 and 04-oct-2008.
    Please help me.
    Thanks,
    Sasi

    Hi
    Take the <b>VBRK-KNUMV field  and pass it to KONV-KNUMV</b> table field along with all the Condition types (KSCHL) fields to get the amounts (KBETR and KWERT) fields
    Regards
    Anji

  • XML Gurus -My first request -Help needed urgently

    Hi XML gurus,
    I have a requirement to convert the following XML into two oracle tables.This is the first time I am looking at an XML script this closely....Could any of the gurus study the pattern of the xml and convert this into oracle tables with the constraints and post the script.After some thorough look I am able to conclude that the data has to be pushed into two tables.Appreciate your help!!
    XML file is as below
    - <Batch BatchCreated="633479274856698434" TransType="EISendCATProfile">
    - <SiebelMessage>
    - <CATProfiles>
    - <CATProfile Id="1-6XCMTV3">
    <CATCode>SE0</CATCode>
    <LegacyHandled>N</LegacyHandled>
    <DOLStart>05/31/2008</DOLStart>
    <DOLEnd>06/02/2008</DOLEnd>
    <Status>New</Status>
    <TransStatus>Pending</TransStatus>
    <Description>CAT SE0 MN Auto Wind and Hail Prop Wind, Hail and Other Weather 5/31 - 6/2</Description>
    <GMTCreated>06/01/2008 14:23:26</GMTCreated>
    <GMTUpdated>06/01/2008 14:31:21</GMTUpdated>
    - <Details>
    - <Detail Id="1-6XCMTV5">
    <State>MN</State>
    <PolicyType>Auto</PolicyType>
    <ClaimType>Comprehensive</ClaimType>
    <CauseOfLoss>Hail</CauseOfLoss>
    <Status>New</Status>
    <GMTCreated>06/01/2008 14:23:47</GMTCreated>
    <GMTUpdated>06/01/2008 14:24:11</GMTUpdated>
    </Detail>
    - <Detail Id="1-6XCMTV9">
    <State>MN</State>
    <PolicyType>Auto</PolicyType>
    <ClaimType>Comprehensive</ClaimType>
    <CauseOfLoss>Wind</CauseOfLoss>
    <Status>New</Status>
    <GMTCreated>06/01/2008 14:24:11</GMTCreated>
    <GMTUpdated>06/01/2008 14:24:28</GMTUpdated>
    </Detail>
    - <Detail Id="1-6XCMTVC">
    <State>MN</State>
    <PolicyType>Commercial Auto</PolicyType>
    <ClaimType>Comprehensive</ClaimType>
    <CauseOfLoss>Hail</CauseOfLoss>
    <Status>New</Status>
    <GMTCreated>06/01/2008 14:24:29</GMTCreated>
    <GMTUpdated>06/01/2008 14:24:45</GMTUpdated>
    </Detail>
    - <Detail Id="1-6XCMTVF">
    <State>MN</State>
    <PolicyType>Commercial Auto</PolicyType>
    <ClaimType>Comprehensive</ClaimType>
    <CauseOfLoss>Wind</CauseOfLoss>
    <Status>New</Status>
    <GMTCreated>06/01/2008 14:24:47</GMTCreated>
    <GMTUpdated>06/01/2008 14:25:10</GMTUpdated>
    </Detail>
    - <Detail Id="1-6XCMTVI">
    <State>MN</State>
    <PolicyType>Commercial Property</PolicyType>
    <ClaimType>Commercial Property</ClaimType>
    <CauseOfLoss>Windstorm & Hail</CauseOfLoss>
    <Status>New</Status>
    <GMTCreated>06/01/2008 14:25:13</GMTCreated>
    <GMTUpdated>06/01/2008 14:25:55</GMTUpdated>
    </Detail>
    - <Detail Id="1-6XCMTVL">
    <State>MN</State>
    <PolicyType>Homeowners</PolicyType>
    <ClaimType>Property</ClaimType>
    <CauseOfLoss>Hail</CauseOfLoss>
    <Status>New</Status>
    <GMTCreated>06/01/2008 14:25:57</GMTCreated>
    <GMTUpdated>06/01/2008 14:26:14</GMTUpdated>
    </Detail>
    - <Detail Id="1-6XCMTVO">
    <State>MN</State>
    <PolicyType>Homeowners</PolicyType>
    <ClaimType>Property</ClaimType>
    <CauseOfLoss>Wind</CauseOfLoss>
    <Status>New</Status>
    <GMTCreated>06/01/2008 14:26:16</GMTCreated>
    <GMTUpdated>06/01/2008 14:27:06</GMTUpdated>
    </Detail>
    - <Detail Id="1-6XCMTVU">
    <State>MN</State>
    <PolicyType>Homeowners</PolicyType>
    <ClaimType>Property</ClaimType>
    <CauseOfLoss>Other Weather Related</CauseOfLoss>
    <Status>New</Status>
    <GMTCreated>06/01/2008 14:29:35</GMTCreated>
    <GMTUpdated>06/01/2008 14:29:52</GMTUpdated>
    </Detail>
    </Details>
    </CATProfile>
    </CATProfiles>
    </SiebelMessage>
    </Batch>
    Thanks Much!
    Sridhar

    I tried what you told AnanSmriti.
    But still Server cannot find the page .
    I have saved JSP pages in DefaultWebApp and Java class files in WEB-INF /classes under DefaultWebApp dir.
    Also I have given the same URl in web.xml as in my first page.
    Please tell me where am I going wrong.
    Thanx in advance for any help.

  • First GUI help needed - replace JPanel?

    Hello guys,
    I'm trying to develop my first GUI and I'm using Netbeans to create the GUI
    here's an image of what I have: http://www.imagebullet.com/i/Sv3FrBmURS6V.gif
    the central part of the GUI is a JPanel (the big part that contains "welcome to ...")
    now I'd like to create a new JPanel with Netbeans to replace the current one when I click store new password from the tasks menu (see the image)
    how can I do it? is this the correct approach at developing a GUI? or is there something I'm completely missing?
    Edited by: Icecube on Mar 8, 2008 6:35 AM

    Icecube wrote:
    I'm trying to develop my first GUI and I'm using Netbeans to create the GUIThat may be your first mistake. The more you offload code creation to another program (the NetBeans GUI builder), the less you understand about the concepts. If you really want to learn about coding a GUI, learn to do it without code generation software by going through the Sun Swing tutorials.
    now I'd like to create a new JPanel with Netbeans to replace the current one when I click store new password from the tasks menu (see the image)
    how can I do it? is this the correct approach at developing a GUI? or is there something I'm completely missing?You could use a CardLayout as one way to solve this. Again, check out the tutorials for this (you can search the tutorial), and also check the API. Good luck.

  • Encountered an error when attempting to open Lightroom for the first time. Went to Lightroom Help and searched for the error "An error occurred when attempting to change modules". Non of the solutions helped. what now?

    Encountered an error when attempting to open Lightroom for the first time. Went to Lightroom Help and searched for the error "An error occurred when attempting to change modules". Non of the solutions helped. What now?

    I am getting this error message as well. I have just downloaded Lightroom recently. I try to click on Lightroom / preferences....and nothing happens. I tried to uninstall and it is greyed out so I can't do that either. Suggestions? Please help?

  • This is my first Mac, I need on best site for Help me.

    This is my first Mac, I need on best site for Help me. Video is Better.

    http://www.apple.com/support/mac101/
    http://www.apple.com/support/switch101/ (for PC-Windows switcher)
    http://www.apple.com/findouthow/mac/ (videos)
    Stefan

  • Hi help needed. Just updated my I phone 4 for first time since I bought it (I know, I know). Lost everything. What I really want back is my notes. Any ideas. Please. Somewhat desperate!!!!

    Help needed. Just updated my I phone 4 and lost all my notes, and no I didn't put them in the I cloud. Please help. Need those notes!

    You could always check to make sure itunes is updated to 10.7 but im sure gdgmacdude is
    right.
    thanks
    gdgmacdude
    Hey dude
    are there anymore hardware failure errors u know of
    im kinda a novice apple man and could use all the help i can get
    capp

  • Help needed in constructing a tree

    Help needed in constructing a tree. I was wondering if some one can suggest me how to add messages in the second column for both the parent node and child elements.
    I was able to create a tree succefully, but want to add some description in the second column for the first column elements, for both parent and child elements.
    Please suggest me how to add the arrays to second column for parent and child nodes.
    Solved!
    Go to Solution.
    Attachments:
    Tree_fix.vi ‏15 KB

    The Child Text parameter is the one you are searching for. It accepts a 1D string array for the following columns.
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Urgent help needed with un-removable junk mail that froze Mail!!

    Urgent help needed with un-removable junk mail that froze Mail?
    I had 7 junk mails come in this morning, 5 went straight to junk and 2 more I junked.
    When I clicked on the Junk folder to empty it, it froze Mail and I can't click on anything, I had to force quit Mail and re-open it. When it re-opens the Junk folder is selected and it is froze, I can't do anything.
    I repaired permissions, it did nothing.
    I re-booted my computer, on opening Mail the In folder was selected, when I selected Junk, again, it locks up Mail and I can't select them to delete them?
    Anyone know how I can delete these Junk mails from my Junk folder without having to open Mail to do it as it would appear this will be the only solution to the problem.

    Hi Nigel
    If you hold the Shift key when opening the mail app, it will start up without any folders selected & no emails showing. Hopefully this will enable you to start Mail ok.
    Then from the Mail menus - choose Mailbox-Erase Junk Mail . The problem mail should now be in the trash. If there's nothing you want to retain from the Trash, you should now choose Mailbox- Erase Deleted Messages....
    If you need to double-check the Trash for anything you might want to retain, then view the Trash folder first, before using Erase Junk Mail & move anything you wish to keep to another folder.
    The shift key starts Mail in a sort of Safe mode.

  • Help need to switch Muse site to BC on a allready hosted plan

    Hi,  i also posted on BC forum...
    I have a client that was in a hurry to have his emails accounts before the entire website.
    So i went on and bought the email marketing plan (cos he will also need to do email campains) an pointed his domain everything is working fine, at this moment he has his accounts the domain is live.
    The site would be just a small 7-10 pages not to complicated.
    Has a graphic designer (who has venture into Business catalyst cos it had all the solutions i needed, well that's what the promotional videos said anyway) I made a site in Muse.
    First i did a temporary page thats says "comming soon", and then i made the entire site, all the design and menu but with blank pages cos the client didnt have all the content yet (and still dont have). I uploaded that site to a sub directory so he could see the evolution.
    He approved the design, yay!
    At the end of the process, he told me he needed to have full control with the editor. (style, images, bulleted list, need to put downloadable document like pdf etc.) i told him that he could only modify what was allready there with the Muse in Browser editing (that he saw when i made the pitch using another site) he was impress with the way it worked.
    so i told him i would have to remake "template".
    I thought of using a BC template, and modify the looks to adapt to my client image, Of course, use a responsive theme so he could make the change at one place only. (cos in Muse you need to make the changes on the 3 layouts).
    Now, i created a new temporary site using one of the new responsive template available.
    How can i import that new site onto his live domain? In other words, how can a switch from a theme made in Muse, to a BC template?
    cant i just delete everything in the root folder, and upload the entire new site via ftp?
    please help me find the solution. i am a bit in a panic here
    hope you could understand my lousy English.
    Sincerely,
    i.d.

    This would need to be transparent for m'y client...
    Y
    Envoyé de mon iPhone
    Le 2014-04-20 à 15:29, Sanjit_Das <[email protected]> a écrit :
    Re: help need to switch Muse site to BC on a allready hosted plan
    created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion
    Thanks for additional details.
    Unfortunately we cannot change site template of a live site in BC , but as a workaround Create a site from BC using the template you wish to use then publish the site from Muse to the site created from BC and transfer the contents stored from live site to trial site. Ater final transition is done , you can delete the already paid site and make live the new trial site which includes new site template.
    Thanks,
    Sanjit
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6314730#6314730
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6314730#6314730
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6314730#6314730. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • T61 - Help needed to re-attach the "Shift" key

    I accidentally popped off the shift key when cleaning my keyboard.  Unlike most other keys on the keyboard, underneath the actual "shift" key cover is a raised point made of a blue rubber-like material.  I cannot figure out to re-attach the cover to the shift key and hoping someone can help me out!
    Solved!
    Go to Solution.

    You need a pair of tool tweezers and sober pair of hands or a small screwdriver like the jewelers driver included in those eyeglass repair clips on grocery store endcaps.
    The blue cone you're referring to is often called a "chute" and black and white scissors is sometimes referred to as a "pantograph"
    Use your tool to snap the pegs into the plastic brace on your deck and it should stand erectly over the blue chute.
    The important part is installing the scissors with correct orientation because it can still snap fit but upside down and prevent proper key attachment before overwhelming frustration. On the bottom of your Shift key is likely the scissors and this should be snapped off the key. The white half of the scissors should be oriented north to the LCD
    Then snap the scissors into the brace, the shift keys have a metal U bracket and this should be unfurled as far as possible towards the bottom / mousepad.
    The shift keys are the hardest keys to reinstall but not impossible, if you become frustrated and break it,, you can buy replacement keys from third parties and we use http://www.machinaelectronics.com/store/  (no affiliation except always satisfied)  for $6 replacements shipped first class.
    Don't just sit there, take a second and use the Kudo's button to compliment the people who help you.

  • Data uload to ODS ending up with an error. URGENT HELP NEEDED!!!!!!

    Hi
    My Sceniro is Full load from ODS1 to 5 other ODS. Iam uploading the data to other 5 ODS by selecting 1 ODS at a time.
    Problem i am facing is upload is ending up with error mesg. Error Mesg are
    <b>Error 8 when starting the extraction program - R3019
    Error in Source System - RSM340
    Req xxx in ODS2 must have QM ststus green before it is activated - RSM1110</b>
    I have seen the the OSS notes for given error no, but they are not applicable to me. what could be the other possible solution.
    In detail tab of the monitor i see red light at Extraction step and Subseq. processing.
    Its quite urgent bcoz this error is occuring in Production system.
    Plzzzz urgent help needed.
    Thanks
    Rohini
    Message was edited by: Rohini Garg

    rohini,
    go to RSA1->Modeling->Source Systems and right-click on your BW system, and click on 'Replicate Datasources'.
    also, go to the ODS that's causing the problem (via RSA1->InfoProvider and go to your ODS), right click and click on 'Generate Export Datasource'.
    one more thing, make sure that all your record/s in the source ODS is active. if you're not sure manage its contents and click on 'Activate'. if there are any entries in the the next screen that comes up, you need to activate it first, then try everything again.
    let me know what happens. also try to look for error messages in ST22 and SM21 that may be related to this and post whatever possible error you see there here.
    ryan.

  • G5 iMac won't start! Help needed.

    Got a new intel iMac. Gave my husband my old G5 iMac (not intel). It was working perfectly. For some reason unknown to me, he decided he was going to reinstall everything from scratch so he grabbed the first disk he saw and put it in the computer. It was the startup disk for an intel computer & NOT for the iMac G5.
    Did he fry the computer? It won't start up. Keypad & mouse won't respond.
    The screen can't find the driver (no surprise) and says "panic: we are hanging here...." I can't get the disk out of the drive. Service contract is up. Is there a way I can connect my laptop to it and get it to respond & spit out that intel disk? Perhaps if I open the cover up, I can into the CD drive and get the disk out. All ideas appreciated.

    Quote
    J.C posted "Re: G5 iMac won't start! Help needed." on Feb 4, 2008 4:53:20 PM.
    Hi Mel Kev
    Have you tried holding down the left mouse button when you turn the computer on. Holding down the left mouse button should force eject the disk.
    Hope this helps
    J.C
    UNQUOTE
    And it WORKED! (I really wasn't in the mood to do surgery on the computer this evening). Thanks all!!! You are awesome!
    Now, if I can just find the original installation disks.... They are in this drawer somewhere....

  • Pricing Help - Need Complex Scenario Approach

    Hello All,
    Need your advice on the following scenario using seeded function as much as possible
    We have three basis on which we can price our customer - Kind of 3 price lists - OEM Price list, Resale price list, Customer Special rate price list and an item can be on all three lists.
    Based on the contract with customer value can be picked from either one - like
    Customer 1 + Ship From 1 + OEM1 (Item Attribute) = OEM Price - 5%
    Customer 1 + Ship From 2 + OEM2 (Item Attribute) = Resale Price + 10%
    So say 3 parts in SO, each have different price basis (price list) based on customer contract.
    The challenge is users DO NOT want to select 'SO Line Price List'. They would not know which 'Line Pricelist' to select for the item. They want price to auto populate due to high number of lines.
    1. Is there a way, that during SO creation, can the price list be auto selected based on modifier/certain conditions ?
    2. Any other way, price can be arrived at, if not using 3 price list?
    3. Can we have a 4th price list, with custom pricing attribute, which sources price from either of the 3 price lists?
    Any pointers would be of great help.
    Thanks & regards,
    Bhaskar

    Thanks for the options...
    The issue is that Business wants to store the 'Customer Contract' details somewhere - and is trying to use pricing to do that. In effect there are many possible prices, but based on the qualifing conditions, select the right amt.
    In oracle, first price list needs to be selected in line, and then modifiers are applied. Here they want first all qualifiers to run, and then select appoprate price list.
    Can we select a price list at run time based on some logic ?
    Thanks & regards
    Bhaskar

Maybe you are looking for

  • Why can't I get my icloud email on my computer?

    I cannot get my icloud email on my iMac intel computer - I always get a message to go to "preferences" and see if there is a yellow something there and if so, uncheck the box and then recheck - well this does not work.  The yellow thingy goes away, b

  • Report output in XML format

    Is it possible to save (or export) report output in XML format, it is ok with either WebI or DeskI report, here we are concerned about output format not what type of report we can use to produce the output in XML format. Thank you, Srini

  • Issues changing the lettering on the main menu

    Hello I created a website www.franciscobulgarelli.com a year ago, I went back and added some new pages but I'm having a hard time making the letter size uniform, I go on the main menu to change it but it doesnt seem to respond, the 2 new pages, narra

  • The application quit unexpectedly how can i retrieve it?

    my iwork application just quit unexpectedly i already re installed the iwork dvd but still it wont work.. help

  • How to refresh a view on click of a link in UI5

    Hi, I have created an SAPUI5 application with 1 view (main.view.js) in  Eclipse. I have a link in the view along with some input fields and buttons, on click of the link, I need to refresh view (main.view.js) . Can some one please help me on this? Re