Quick questions on the topic of Web Services and EJB POJOs

I have been reading about Web Services and the data types that are aloud as operation parameters and return types. I was wondering what the standard practice for return types; is it to use the Entity classes straight and customize the WSDL instead of letting the EE container do it (avoid cyclic problems in the schema that can occur when using entity 1-to-many and many-to-1 mappings) or; is it to off load the data into a DTO/VO/Bean and let the EE container take care of all the schema mapping for the WSDL? I look at the EE tutorial and bought a EE book both use very basic examples that do not include connecting to a database or using EJB3 for the data store.
Thanks for any information

bump

Similar Messages

  • Newbie question about the viability of web services.

    Hello All,
    I have never dealt with web services, and have only cursory knowledge of the technology, so forgive my ignorance in advance.
    I have a situation that I wonder if Web Services might help me solve.
    I have built a Java/JSP application that resides on a server that is inside our firewall. It has been successful, and management wants to make the data and functionality available to our customers outside the firewall.
    The problem is that our organization tightly controls the "public" applications. And the UI for my system does not meet their standards. Nor will they punch a hole in the firewall to allow access to my server.
    The solution we have been working on is to create a new UI using their approved methods, and copy the needed java classes to the "public" server.
    As you can see, if I do this, I will have to maintain two instances of the same class on two different servers.
    Can I avoid this by using web services to make those classes available to other applications from my internal server?
    Thanks in advance for your help.
    James.

    The solution we have been working on is to create a
    new UI using their approved methods, and copy the
    needed java classes to the "public" server.
    As you can see, if I do this, I will have to maintain
    two instances of the same class on two different
    servers. Okay, first, yes - webservices can help you if you MUST maintain two seperate UI's for some reason using the same backend data code or if you want to provide a datafeed only to your external users. It will take care of having to maintain seperate but identical class files, but it will create other overhead such as interfacing the existing files and the like, but if you must enable the UI then you will have two versions of this to maintain. If you are looking to just enable the data feeds and not the UI then it would seem a very logical fit.
    If you must maintain the UI, then why can't you convert your app over to the approved UI and host it on the "public" server for all users (internal and external)? Then you only have one set of data to maintain - period and webservices aren't necessary. If you proceed with either your current implementation or even with a webservices based implementation, you will have at least two seperate UI's to maintain as well as whatever the resulting support code - be it webservice interfaces to existing code or replicates of existing code - to also maintain.

  • Question about the distribution of web service or servlet

    Hello,
    I don not know how to distribute a web servcie or servlet on the web server. I can only use this web service with the open state of the glassfish. If I close the glassfish server, the servlet cannot be accessed.
    I just want the web service or the servlet to be disributed on the web server. Web service and the servlet are available when the web server is on.
    anybody can help me?
    thank you in advance.
    MyJ2EE

    If u choose one of the smart phone once you upgrade your equipment you will have to select a data package of Unlimited Email & web for $29.99/mo.. It will not go towards your minutes the purpose of the plan is to give you unlimited use of the internet and email on your device.If you choose to change your calling plan minutes make sure you review the plan that you're already on and the mins being used to make sure if you decide to go higher or lower in minutes that you choose the plan fits your minutes used.. 

  • Are there any shortcuts to connecting the printer with web services and/or the eprint server?

    (HP Officejet Pro 8600 Plus, IE, Windows 7)
     As I am unable to execute the instructions given by
    by Ryamond 1411, I'm looking for  other avenues to connect my printer to web services and/or
    the eprint server so I can release 4 emails for printout now stuck in que.

    Hello MurrayJ,
    The first thing I would do is follow step six in this document to set a static IP: http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02817031&cc=us&dlc=en&lc=en&product=4023246&tmp...
    When it askes for DNS information, enter in Google's DNS. Preferred DNS = 8.8.8.8 Alt DNS = 8.8.4.4
    If that does not help, if you could provide me with the following information it would help me out. First, who is your ISP( Internet Service Provider, i.e. Comcast, AT&T, Verizon, ect.)? Second, who is the maker of your router? Lastly, what is the model number and firmware version of your router?
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Question - Putting a Face on Web Services and SOA

    Hi,
    I have attempted to use the example (http://java.sys-con.com/read/192427.htm)with JDeveloper 10.1.3, and I keep running into the same error when I compile the
    BPEL, it complains regarding the "soc_security" global variable - "make sure variable with messageType definition is used" this is just a local variable to pass
    a value around?
    Any comments/suggestions regarding how I can fix this issue would be most appreciated.
    Details from JDeveloper below.
    Error(84):
    [Error ORABPEL-10032]: missing messageType
    [Description]: in line 84 of "C:\002_DEV\loanMark1\loanMark1\bpel\loanMark1.bpel",
    variable "soc_security" of invoke does not have a messageType definition..
    [Potential fix]: make sure variable with messageType definition is used in incoming
    and outgoing activities.
    Error(84):
    [Error ORABPEL-10032]: missing messageType
    [Description]: in line 84 of "C:\002_DEV\loanMark1\loanMark1\bpel\loanMark1.bpel",
    variable "soc_security" of invoke does not have a messageType definition..
    [Potential fix]: make sure variable with messageType definition is used in incoming      and outgoing activities.
    <scope name="compareloans">
    <sequence name="Sequence_2">
    <flow name="Flow_1">
    <sequence name="Sequence_1">
    <invoke name="CheapLoans" partnerLink="CheapLoansWS"
    portType="ns1:CheapLoansWS" operation="getLoanRate"
    inputVariable="soc_security"
    outputVariable="CheapLoansOut"/>
    </sequence>
    <sequence name="Sequence_1">
    <invoke name="EzLoan" partnerLink="EzLoanWS" portType="ns1:EzLoanWS"
    operation="getDailyRate" inputVariable="soc_security"
    outputVariable="EzLoanOut"/>
    </sequence>
    </flow>
    <switch name="Switch_1">
    <case condition="bpws:getVariableData('EzLoanOut','parameters','/ns1:getDailyRateResponse/ns1:return')&lt;bpws:getVariableData('CheapLoansOut','parameters','/ns1:getLoanRateResponse/ns1:return')">
    <assign name="EzOut">
    Thank you

    hi user572206
    If you don't get an answer here, there is also a "BPEL" forum:
    BPEL
    (tip : You can use "Your Control Panel" to make your name visible in forum posts.)
    success
    Jan Vervecken

  • Quick Question About the GS70 Stealth Pro-099 and Kensington Locks

    Does the GS70 Stealth Pro-099 work with Kensington Locks (Does it have the Security Slot)?

    Quote from: rhradacut on 16-December-14, 09:57:49
    It should be on the right side along with the card reader slot and USB ports, between the power connector and ventilation slots.
    Thanks! I just wanted to be sure before purchasing one of the locks.

  • SQL 2012 R2 - SSRS with the Report Server Web Service URL, can't access

    Hello:
    I am installing Dynamics CRM 2013.  When I am on RS Configuration manager; I am running into the SSRS (SQL 2012 on Server 2012)SQL issue, can't access the
    http://servername/:80/ReportsServer or
    http://servername/:Reports web pages
    The database server has SSRS native mode installed, it is using a domain account for the service credentials.  This account also has permission to log on a service in the GPO
    Account is a domain admin and is a local administrator
    SQL server is 2012 R2 on Windows Server 2012.  User base is less than 60 people and they have SharePoint 13 on the same SQL server.  Server more than enough resources.
    Any assistance would be appreciated.
    Thanks..Dan

    Hi DCas1,
    According to your description, you could not access
    http://servername/:80/ReportsServer or http://servername/:Reports web pages from Reporting Services configuration manager, SSRS in configured in native mode and the account you used is a local administrator.
    In Reporting Services, URLs are used to access the Report Server Web service and Report Manager. Before we can use either application, we need to configure at least one URL each for the Web service and Report Manager. If we are using the Reporting Services
    Configuration tool to create or modify the URLs, we can accept the default values for a URL or specify custom values. When we create a report server URL, we must specify the following parts: Host name, port and Virtual directory. In order to improve the efficiency
    of troubleshooting, I need to ask several questions:
    Since the default URL is http://<computername>/reportserver, did you type the URLs manually? or the URLs configured in Reporting Services configuration manager are
    http://servername/:80/ReportServer and
    http://servername/:Reports?
    Could you provide detailed information of error log(default location: %programfiles%\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\LogFiles)?
    For more information about Configuring a URL, please refer to the following documents:
    http://msdn.microsoft.com/en-us/library/ms159261(v=sql.110).aspx
    http://msdn.microsoft.com/en-us/library/bb630447(v=sql.110).aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • MDM web services and the MDM BP services

    Hi *,
    I need to know what is the difference between the standard MDM web services and the MDM BP services.  How do I decide which set to use?
    - Kris

    Sorry but what are BP services? Do you mean Business package?
    If yes the approaches are completely different - you use Web Services when you have to customise the application and build your logic/functionality into the app. CRUD operations are procided by Web Services - you need to form your wrapper application from scratch and develop!
    With BP - it involves least development effort bearing in mind that its all standard content and not yet completely customizable. So based on your requirements plan whether to go for Business Package or Web Services or Java API completely...

  • Diff b/w Web service and window service

    What is the difference between web service and window service, whether the both are same or not, Give some explain about that each one and give some examples also.

    An XML Web service is a component that implements program
    logic and provides functionality for diseparate
    applications. These applications use standard protocols,
    such as HTTP, XML, and SOAP, to access the functionality.
    XML Web services use XML-based messaging to send and
    receive data, which enables heterogeneous applications to
    interoperate with each other. You can use XML Web services
    to integrate applications that are written in different
    programming languages and deployed on different platforms.
    In addition, you can deploy XML Web services within an
    intranet as well as on the Internet. While the Internet
    brings users closer to organizations, XML Web services
    allow organizations to integrate their applications.
    A Windows service starts much before any user logs in to
    the system (if it has been setup to start at boot up
    process). A Windows service can also be setup in such a way
    that it requires a user to start it manually ? the ultimate
    customization!
    Windows services run as background processes. These
    applications do not have a user interface, which makes them
    ideal for tasks that do not require any user interaction.
    You can install a Windows service on any server or computer
    that is running Windows 2000, Windows XP, or Windows NT.
    You can also specify a Windows service to run in the
    security context of a specific user account that is
    different from the logged on user account or the default
    computer account. For example, you can create a Windows
    service to monitor performance counter data and react to
    threshold values in a database.

  • Adaptative web service or EJB ?

    Hi everybody,
    I want consume a web service from  a system SAP R/3.
    Apparently, we can consume with component EJB ...
    What is the difference between a adaptative web service and EJB ?
    More security with EJB ?
    Thanks
    Rodolphe.

    Hi,
    We use for ejbs when we have to store data in database..
    if ejbs r like a medium for data transfer..where session bean contain ur business logic..
    u cn use webdynpro interface as well as jsp interface wid ejb..
    if u r using ejb u'll have to create an ejb projct first then u'll hav to create java proct which will contain ur wrapper class for fields.later on u'll have to create one application project tht wud b an Ear projct.nw u create a web service for session bean ..aftr doin this all u can test webservice which will b executed for ur business method.
    for more security u can use ejb security model :[http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Security.html]
    Web services r created for session bean..so that u cn directly access ur methods via url..
    for a detailed description of web service go through :- [http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/content.htm]
    for ejb project go through this1 :[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca4a9c90-0201-0010-c389-8738cd51a88e]
    Regards,
    Khushboo

  • RESTFUL Web Services and Classic Reports....

    NEVERMIND...... Setting in our instance was NOT enabled...
    Thank you,
    Tony Miller
    Ruckersville, VA

    ayberkcansever wrote:
    Hi guys,
    I will have an application which will have a service serving about to 30 million users/day and a mean of 5 requests/user.
    It means that there will be about 150 million requests per day. I will have two servers behind a load balancer and my clients will be both Java and C++.
    I think to implement RESTFUL Web Services but afraid of performance issues.
    Did you have a knowledge about the performances of web service and socket programming in such a high loaded project?It depends on the CPUs, RAM, disks, and network configurations of those servers.
    It depends on how the requests are distributed throughout the day.
    It depends on how big the requests are and how big the responses are.

  • Difference between Web Services and RFC (both Advantages & Disadvantage)

    Hi All,
    will you please explain the difference between  Web Services and RFC (both Advantages & Disadvantage)
    Thanks,
    jyothi.

    Hi,
    If you want have a communications between SAP systems within a network, we can go for an RFC.
    If you want have communication between SAP systems through a medium like internet, we can probably go for a webservice.
    Please refer the following links:
    What is the difference between RFC vs. Web service ?
    Webservice
    If you want to convert an RFC fuction module to an webservice, you can refer the following link,
    Using RFC as WebService in WebDynpro
    Hope this will help you.
    Regards,
    Jithin

  • How do I set up Mozilla to accept connections on port "The World Wide Web service (HTTP)"?

    When attempting to embed a video in PowerPoint 2013, the message "Sorry we are having some temporary service issues" appears.
    In researching the problem at Microsoft. com, the following message was received: Mozilla is not set up to accept connections on port "The World Wide Web service (HTTP)."

    Hmm... PowerPoint should use Windows to connect to the internet and not Firefox.
    Which method are you using?
    (1) Insert > Video > Online Video
    Apparently there was an update this month that enables this, as described in this support post (see top Answer just after the question): [http://answers.microsoft.com/en-us/office/forum/office_2013_release-powerpoint/embedding-online-you-tube-video-in-powerpoint-2013/0bc00dde-420c-4c6a-bd47-3fb105ce40fc Embedding online you tube video in powerpoint 2013 - Microsoft Community]
    Here's how it should work after the update: [http://office.microsoft.com/en-us/powerpoint-help/insert-or-link-to-a-video-on-youtube-HA104192855.aspx Insert or link to a video on YouTube - PowerPoint]
    (2) Developer > More Controls > Shockwave Flash Object
    As documented on other sites, such as: https://www2.palomar.edu/pages/atrc/2013/09/17/how-to-embed-youtube-video-in-powerpoint-2013/

  • My mom helped me to create my iTunes account and load it with a 50$ gift card and now I wanted to purchase a one month subscription at the AYI dating web service but apple never let them take money from my account and I was declined,don't know why?

    My mom helped me to create my iTunes account and load it with a 50$ gift card and now I wanted to purchase a one month subscription at the AYI dating web service but apple never let them take money from my account and I was declined,don't know why?

    You have posted to the iTunes Match forum, which your question is not related to. I suggest you contact the web site from whom you wish to purchase the subscription.

  • WSGEN question on WLS 6.1 / Web Services

    I am just starting out with Web Services and I am trying to
    build some examples from the WebLogic 6.1 Bible step-by-step
    using Ant 1.3.
    I get this error when I execute Ant with the -verbose option:
    allen @ olc301 [5] ant -verbose rpc.ws
    Ant version 1.3 compiled on March 2 2001
    Buildfile: build.xml
    Detected Java Version: 1.2
    Detected OS: SunOS
    parsing buildfile /lopt/local/tmp/src/code/webservices/build.xml with URI = file:/lopt/local/tmp/src/code/webservices/build.xml
    Project base dir set to: /lopt/local/tmp/src/code/webservices
    Build sequence for target `rpc.ws' is [rpc.ws]
    Complete build sequence is [rpc.ws, producer.ws, consumer.build, consumer.ws,
    ejb.build, help, producer.build, rpc.build]
    rpc.ws:
    BUILD FAILED
    /lopt/local/tmp/src/code/webservices/build.xml:30:
    Could not create task of type: wsgen.
    Common solutions are to use taskdef to declare your task,
    or, if this is an optional task, to put the optional.jar in
    the lib directory of your ant installation (ANT_HOME).
    Can anybody help me ? I see several similar questions in the
    newsgroups but no answers - I am missing something simple I
    think !!
    Thanks in advance -

    Don, thanks for the reply !
    I was using a different version of Ant and using the BEA version helped. Maybe
    this is something I missed in the documentation ?
    Don Ferguson <[email protected]> wrote:
    Are you using the version of ant that comes with WLS (which has the
    taskdefs in the defaults.properties file) or your own copy of ant?
    Ethan Allen wrote:
    I am just starting out with Web Services and I am trying to
    build some examples from the WebLogic 6.1 Bible step-by-step
    using Ant 1.3.
    I get this error when I execute Ant with the -verbose option:
    allen @ olc301 [5] ant -verbose rpc.ws
    Ant version 1.3 compiled on March 2 2001
    Buildfile: build.xml
    Detected Java Version: 1.2
    Detected OS: SunOS
    parsing buildfile /lopt/local/tmp/src/code/webservices/build.xml withURI = file:/lopt/local/tmp/src/code/webservices/build.xml
    Project base dir set to: /lopt/local/tmp/src/code/webservices
    Build sequence for target `rpc.ws' is [rpc.ws]
    Complete build sequence is [rpc.ws, producer.ws, consumer.build, consumer.ws,
    ejb.build, help, producer.build, rpc.build]
    rpc.ws:
    BUILD FAILED
    /lopt/local/tmp/src/code/webservices/build.xml:30:
    Could not create task of type: wsgen.
    Common solutions are to use taskdef to declare your task,
    or, if this is an optional task, to put the optional.jar in
    the lib directory of your ant installation (ANT_HOME).
    Can anybody help me ? I see several similar questions in the
    newsgroups but no answers - I am missing something simple I
    think !!
    Thanks in advance -

Maybe you are looking for

  • IPhoto 2.0.1 hangs shortly after launch

    I have been using iPhoto 2.0.1 for some time on MacOS X 10.2.8 with no problems. Recently, the program launches and the main window appears but within a few seconds of launch, the program freezes with the spinning beachball. It takes two passes at "f

  • Syntax for filter

    Hi I am trying to recon users in an OU and i want to write a filter who have employee id = 46633; OIM 11g R2 i wrote the following filter = equalsTo('EmpID', '46633') Its not working. help please. regards

  • Problem in IDOC generation

    Hi Freinds, I am facing some problem in IDOC creation . We have used MATMAS03 as basic  type. And activated the chang poineter. But for some materials it is not generating IDOC. When we saw table BDCPS with the change pointer number from BDCP it is s

  • Creating an abstract datatype

    hi i am facing problem during creating datatpe. EX: create type address_ty as object ( 1 Street VARCHAR2(50), 2 Zip NUMBER ) ; 3 when i wrote those code in SQL promt its not creating any object its giving me line 3 to write something. so i need help

  • Error in XRPM Portfolio Management- My Portfolio Object screen

    Hi All, The upgradation has been done from XRPM 4.0 to XRPM 4.5. In, XRPM 4.0, in the Portal screen, under Portfolio management role the workset name was Item Management but after the upgradation to XRPM 4.5, this workset has been changed and named a