Can we support Map/HashMap in the webservice as one of internal parameters?

Hi all,
I have written a simple webservice. Which just prints the content of the input.
public class ServiceClass {
     public MyVO printContents(MyVO vo) {
          System.out.println(vo.getName());
          System.out.println(vo.getParams());
          return vo;
public class MyVO {
     private String name;
     private HashMap<String, Serializable> params;
     public String getName() {
          return name;
     public void setName(String name) {
          this.name = name;
     public HashMap<String, Serializable> getParams() {
          return params;
     public void setParams(HashMap<String, Serializable> params) {
          this.params = params;
I am using Eclipse Java EE IDE for Web Developers.(Version: Helios Service Release 1) for generating stubs like this :
New wizard , webservice, Selecting the server runtime (tomcat 6) and webruntime as Axis2. And clicking finish.
It generates the project with name TestClient. And inside that 2 classes : ServiceClassCallbackHandler and ServiceClassStub.
Once WebService is generated its also opening one JSP (WebService explorer) . In that I can see the WebService and clicking on basicwebservice it shows UI where I can input my data.
But its not showing if I can add key/value for map.
I am not sure how to test this?
More importantly can I test my webservice that it prints the passed data?
How to pass the test data to this webservice?
Or how to pass MyVO object to the webservice?
Thanks in advance.

Hi Ronni
This forum is not the right place where you can find your answer easily. To catch more answers you can try posting your question to one of the following forums:
1. <a href="https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode1-1&contenttype=url&content=https%3A%2F%2Fforums.sdn.sap.com%2Fforum.jspa%3FforumID%3D41">EP Content Development Forum</a>
2. <a href="https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode2-4&contenttype=url&content=https%3A%2F%2Fforums.sdn.sap.com%2Fforum.jspa%3FforumID%3D59">Java Programming Forum</a>
*--Serdar
Moved the post to Java Programming.
Thanks for the post, Mark. 
Message was edited by: Mark Finnern

Similar Messages

  • I am creating an aperture book from my photos. How do I change the default map provided in the theme to one of my choice e.g. satellite view?

    I am creating an aperture book from my photos. How do I change the default map provided in the theme to one of my choice e.g. satellite view?

    Kyle,
    Thanks for your response. To be clear, the way I am importing the PDF is by going to New in LiveCycle, and selecting Import a PDF document, and selecting Create and Interactive Form with Fixed Pages.
    I cannot change the forms or pages, as they are created by our local Board. In otherwords, I have tryed used the flowable content, and upon import, not only are the fonts slightly different, but all the important artwork (trade-related) is gone, and is not in the exact positions it was in. The forms must meet the standards to which they were approved by the regional board, and there are state-mandated forms as well.
    What surprises me is that you say this method of Fixed Content isn't used much any more. I would think that a lot of people would have PDF files they would wish to make into fillable, interactive forms without needing to reconstruct the entire document. Perhaps a company that has always done things on paper, and now wishes to use those exact same forms on the computer, with no deviations to looks so they can be printed and match up perfectly.
    I thought about using Acrobat's internal form creation system. However, some of these forms have sophisticated options and the calculation scripts and systems within LiveCycle are very useful. Not to mention that it has a much larger scalability, should we chose to utilize it.
    Any other suggestions? I am so confused why Adobe would force medium-quality import of a PDF, but be so incredibly flexible about every other option in their program.

  • How can I make two copies of the same picture one with my watermark and one without for printing for clients?

    how can I make two copies of the same picture one with my watermark and one without for printing for clients?

    Export the photo twice, once with a watermark and once without a watermark.

  • Can i change event alert in the calender to one month before

    can i change event alert in the calender to one month before

    Vamsi,
    <b><i>Then Dispaly name Has been Changed But In My Postings my old name is Remains Same</i></b>
    Where u are seeing ur old name in ur thread? Please make sure only the display will change not the contents which u wrote in ur questions/replies. Like Best regards Vamsi, this one u are referring to? If yes then it won't changes.
    Best regards,
    raj.

  • Is there any reason that Apple can't support iOS4.3 on the second generation iPod touch?

    I have a number of Apps that can no longer run on my iPod touch second generation because these Apps now requires iOS to be v4.3 or later.  For example, I used to be able to run Skype on this iPod touch, but it failed a couple of weeks ago.  I could not download it from App Store again since it requires v4.3 iOS and Apple does not support v4.3 upgrade on this iPod touch.  The hardware is perfectly fine - I don't see any reason that it cannot support v4.3 upgrade other than Apple wants us to buy newer products.  If that's the case, it leaves a very bad taste on customers' mouth.  How can Apple force their customers to dump what they bought a little over 2 yrs ago because Apple doesn't allow iOS upgrade and customers can no longer run the Apps they need on this device as a result?  There is no way that I am going to buy another Apple product based on this bully behavior!

    I am not sure that I buy that.  Even if that's the case, why can I not continue to run the Apps that used to be supported on v4.2?  I should be able to run the version of Skype App that is compatible with iOS v4.2.  Since Apple controls the App Store content, they should allow those who stay on v4.2 continue to access the Apps that they used to run on v4.2. 
    Becuase App Store continues to push for updates, now it has pushed my iPod to a point of no return as those Apps are no longer supported on v4.2.  I cannot go back to the versions of the Apps that could run on v4.2 - I was happy with Skype (and other Apps) running on my iPod but that version of Skype is no longer available because App Store does not allow that.  It renders my iPod touch useless due to Apple's monopoly control! 
    If anyone knows how to download the older versions of Apps that can run on v4.2, please advise - many thanks!

  • I can't open Maps, iBooks, or the App Store on my Mac

    I just installed OS X 10.9 Mavericks on my Mac (specs below). The install went fairly smoothly with no hiccups. After installing, I ran CleanMyMac, which cleared my cache, language files, etc. I've run this program millions of times before with no problems.
    I've now discovered that I cannot open Maps, iBooks, or the App Store on my Mac. I can open and run iTunes, but when prompted by iTunes to update to the latest version, I click 'OK' and see no response (i.e., the App Store does not open).
    Can anyone provide any guidance?
    Specs:
    Mid-2009 MBP 13.3
    2.26 GHz Intel Core 2 Duo
    4GB RAM
    750GB 7200RPM HDD

    Yesterday was the first time I use the CleanMyMac and thanks it damaged my OS.
    My solution was Reinstalling OS X
    How?
    Restart your Mac while holding down the Command + R keys. From there you should be able to access the built in utilities to restore OS X using OS X Recovery
    Note: be sure that your Mac is connected to the Internet.
    I did it today, it's finally working without any loss!

  • Can SOA validate invoice data before the webservice sends a response?

    I'm working with another branch of the company, and they're having trouble getting SOA to validate invoice data before it goes into Oracle financials.  They claim that SOA can't validate the invoices according to our business rules, and can only validate the input data based on the schema defined in the webservice.  Even the validation from the schema is useless because it produces schema violation rules that I can't return to a user. 
    After the webservice lets go of the data, there's a multi-step scheduled process where the data is handed off from scheduled process to scheduled process, so SOA can't guarantee in any way to the client end that invoices will get into the database. and worse, the data could get "stuck" at any one of these stages far after a user has submitted it.
    Is any of this true?  Is there no programming language within SOA that can perform validation of the business rules, and insert the data into Oracle all on it's own?  I've little or no familiarity with Oracle, but it's kind of incredible to believe that this is how Oracle designed the major interface to interact with 3rd party applications.

    People insist on using HTTP because it is the easiest to get through forward proxies, reverse proxies, and firewalls.
    If you don't have to deal with those devices, then there are other protocol options.
    As far as the amount of data, that is what my customers want to upload...
    I suppose I could break it down into multiple requests, use compression etc.
    I could also have the server reset the connection on a fatal error like this. (one which occurs within the POST body)
    That would eliminate the keep-alive also since I do not want to waste another 10 minutes to resync the messages.
    Regards,
    Tim

  • Regarding exception in the WebService(Business One)

    Hi all,
        I have installed Business One in my system.My requirement is to display the sales order details.I am using java connector and SAP NetWeaver Developer Studio for this purpose.
    process:
    --I've also included external jar files sboapi.jar and sbowrapper.jar
    --I've written a query to get salesorder details from ORDR table.
    --I am handling the IRecordSet object.
    --I have written a method which returns an object array of SalesOrder class which i have created for this purpose only.
    By writing normal java program it is working fine and records are displaying form that SalesOrder object which i've created.
    I've created a webservice with the same code and deployed in the WAS of SAP.While testing it is showing an exception
    "Exception in method getSalesOrderDetails()".
    Any one please guide me in this issue.
    Thanks and Regards
       Madhu

    Hi Madhu,
    I don't know details about WAS, but regarding Java connector (JCo) for DI API please note the following:
    JCo is just a thin wrapper around the DI API COM library to facilitate using DI API in a Java enviroment.
    Therefore the DLL file which encapsulates the business logic (i.e. OBServerDLL.DLL) will be copied into a local temporary directory on the file system as well - ready to be loaded from the webservice then.
    I could imagine that you would need to apply some settings in WAS to enable creating a directory, copying files into it + loading files from there, but this is beyond what I know.
    ...I assume getSalesOrderDertails() does handle the Logon as well?
    For usage in a WebService, DI Server (DI API exposed as a SOAP capable Windows service = WebService to be built on top of it) may be the better alternative... - though it also works like DI API, but inside the DI Server process - not in your WebService...
    ...despite some limitations (no DB structure can be changed through it etc.) ...
    HTH,
    Frank

  • Can a pluggable mapping be used by more than one project.

    I have a common mapping which 2 projects use it. If I deploy in one project the otherprojects mapping is getting Invalid. Can I make this mapping a pluggable mapping and then use it in 2 projects will this concept work.
    Thanks

    I have a common mapping which 2 projects use it. I donot think mapping can be common across the project . You can create the same mapping twice in both project.
    So donot know how you are using same mapping which 2 projects use it.
    If I deploy in one project the otherprojects mapping is getting InvalidAs i told create the same mapping in Both the project and use it.
    Can I make this mapping a pluggable mapping and then use it in 2 projects will this concept work.You can not share Pluggable mapping across the Project.
    Cheers
    Nawneet
    Edited by: Nawneet on Apr 12, 2010 10:51 AM

  • How can I scan multiple pages from the ADF to one pdf file?

    I wirelessly scan double-sided multiple-page documents, typically 37 pages, using an ADF (Automatic Document Feeder) from my HP Officejet Pro 8600 N911g to my MacBook Pro. The scanner works fine except it tries to save the files as 37 separate files and either it or the MacBook runs out of memory as it turns it into a massive file, 300mb or so. How can I get it to just scan it as one file? I have the quality setting at 300dpi.
    Webbo51
    This question was solved.
    View Solution.

    Hello again webbo51,
    Thanks for the information I requested.
    I am going to add a screen shot of what you should be seeing when scanning with the HP software.
    You must have PDF selected to be able to scan a multiple page document into one folder.
    Once you select PDF, you will see the option to Save as one file.
    Please feel free to write me back if you have any other questions.
    Thanks again for your time.
    Cheers, 
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • How can I get Apple to send the invoice of one of my orders?

    I ordered a MacBook Air 13 at apple store online but I haven't get the invoice of the product. How can I ask apple to send it to me?
    Thank you,
    Luiza

    Thank you for your response, Dominic. I'm in Brazil now and unfortunately I'm not able to call the 1-800 number. There is another problem, I can't solve this by viewing my order online, as I haven't inserted my apple ID to the order ...it doesn't allow me to print the invoice or do anything else about it...
    Do you know if there's any online support that I can contact?
    Thank you again!

  • How can I delete multiple emails in the mailbox in one time?

    How can I delete multiple emails in one time in the mailbox?

    When inside a folder, listing your emails, tap the Edit button, then select as many emails as you want to then tap trash.

  • While trying  to execute the Webservice in webdynpro giving Internal server

    Hi  All
                 I am trying to execute a Webservice in Webdynpro but it is giving me
      an error : "Internal Server Error"  , why I am not understanding.
      plese below the piece of code what I wrote.  Please reply at the very earliest.
    //@@begin onActionGo(ServerEvent)
         Request_ZDUMMYPortType_ZDUMMY req = new Request_ZDUMMYPortType_ZDUMMY();
         wdContext.nodeRequest_ZDUMMYPortType_ZDUMMY().bind(req);
         req._setUser("xxxxx");
         req._setPassword("******");
        wdContext.nodeRequest_ZDUMMYPortType_ZDUMMY().currentRequest_ZDUMMYPortType_ZDUMMYElement().setP1("");
         wdThis.wdGetDummyModelCustController().executeRequest_ZDUMMYPortType_ZDUMMY();
    regards
    jalandhar.

    Hi Sudip
                  I am using general webservice model only  not adaptive.
                 please reply me asap
    regards
    jalandhar
    What kind of model you used to import the web service? If you used adaptive
    Webservice model then you require to configure the end point destination in Visual Admin.

  • How can I have multiple fields on the left and one large field on the right?

    I'm trying to conserve space on a form.  I have five "pass/fail" fields on the left and would like a large free text field to the right.  This will be an area to comment on the "pass/fail" section.  When I add the multi-line text box, it moves all my "pass/fail" mulitple selection boxes.
    Any advice?

    Sorry FormsCentral doesn't allow a fields to spam over multiple rows.
    Gen

  • HT4623 My IPad 1 does not show software update under setting/general. How can I update my iOS to the most recent one?

    How can I update my iOS to ios5 and latest when I do not have software under setting/general?

    Connect iPad to computer and use iTunes to update.
    Your iPad 1 is not capable of being upgraded to iOS 6.
    Allan

Maybe you are looking for

  • What is happening in the program?

    Hi friends, i was going through this program, and i could not understand why its not printing anything. class A {      String str1 = "";      String str2 = "";      String getA() {           return str1;      void setA(String s) {           str1 = s;

  • Anybody know where the default templates are stored?

    I'd like to access the location where the default templates are stored. I've checked in: "Macintosh HD/Library/Application Support/Logic" but did not find anything. I see that user templates are in: "Macintosh HD/Users/PROFILE/Library/Application Sup

  • Revel_PSE8?

    Revel? Why?  Oh well here is my question.  I use Adobe Photoshop Elements 8.  I have read the FAQ at least twice, and unless I have misread the FAQ it seems PSE8 will not work with Revel.  The only other version mentioned in the FAQ was version 11. 

  • Quicktime Pro needed for .AVI?

    Is Quicktime Pro necessary to view .AVI videos? I'm troubleshooting my dad's Intel iMac (Core 2 Duo, 2.4GHz, running Leopard) and he only gets audio when playing back .avi files from a flash camcorder. I have an older G5 with Quicktime Pro and can pl

  • VKOA screen

    Dear all, At VKOA screen (Table:001>Cust.Grp/MaterialGrp/AcctKey) there are  Account Assigment Group and Account Key. In these coloumns there are data to configure. I want to learn where we are configuring Account Assigment Group and Account Key diff