A web service design question

Hello,
I�d like to ask for your help in the following design issue:
I need to create an email sending web service (with Axis). Only just one method which returns with an integer return code. This handles the following:
- based on the given parameters gets the email addresses from an
LDAP server (with netscape ldap for java)
-     makes a cache from them (only after a timeout period will be the cache
refreshed) (don�t know what tool to use for this)
-     selects html templates which to be sent based on the given parameters
-     sends emails with the appropriate templates (with Velocity)
-     the whole process is logged (with log4j)
I have to write the code as generic as possible. I know that some design pattern should be used for this. (some from GoF , and I know there exists design patterns specially created for web services as well).
Could you enumerate me which patterns (and for what part of the program) would be the best choice to solve this problem? I have read through some books about patterns, but don�t have the knowledge to pick up the right one for a concrete problem like this..
Thank you in advance,
nagybaly

This sounds like a known issue which is tracked in ADAPT01103681. Code from a .NET DataProvider is executed twice if the provider has input parameters.
At this time there's no known solution for this. This was submitted to the development team and a fix is expected in Service Pack 2. At this time we have not announced a release date for SP2.
Edited by: David Hilton on Jun 18, 2009 3:02 PM
Corrected spelling.

Similar Messages

  • Web service design question

    we have to create a web service that will be deployed to oas 10.1.3.0
    the web service has to consume a lot of parameters describing a membership iof a motorclub. the incoming data has to be validated and if all the validations pass, stored in the database. we already have some logic implemented in plsql, but the code cannot be reused completely because some rules get changed for the project. a membership can have 0-n associates
    what would be a preferable approach (performance, flexibility, maintenance, etc) to design such an application:
    1. create a stored procedure that consumes an sql object and wrap it into a web service using jpublisher or jdev wizard
    or
    2. design the wsdl and create the web service using top->down approach, use O-R mapping framework (toplink or jpa) to insert data into the underlying tables.
    thank you

    Hi,
    actually from a data perspective it doesn't matter if you display the app on iPad or smart phone. The Service could be easily build with EJB and ADF BC (your choice as both support nested objects (for ADF BC you need to ensure you set it on the view link as explained in the documentation)). Here are some design considerations
    1. expose a method on the service that takes an input argument for the order to display (usually Long or Integer)
    2. The service should return a collection (List)
    3. The compoent on the mobile to allow master/detail views is the list item. In your case though you only have a single master record (order) and multiple detail records so that I would a read only form for the order and a panelList for the details. On click on a detail item in the list you can then navigate to the detailed detail information
    Frank

  • Errors when compiling the web service (SAP Web Service Design Tool)

    After downloading and installing the SAP de Web Service Design Tool (for Crystal Reports Server) I created a connection, a simple query and was able to deploy a web services. I tested the web service with an Xcelsius dashboard within InfoView. Thereafter I created a second connection (other name but same ODBC connection / server) and created another simple query with two date(range) parameters and a group by year and month function in order to do a select count(). It executes fine, but when I try to publish the web service I get an error.
    There are errors when compiling the web service.
    Is does not say whatu2019s wrong or how I can solve this problem.
    Who can help me?
    Some notes:
    1) Within expert mode I used a MONTH() SQL function which does not show in the normal mode.
    2) It seams that the u2018administrationu2019 of Web Service Design Tool got u2018corruptedu2019 after only creating the two connections, queries and services mentioned above. I believe so because I could select one of two queries when I created the second service, but within the current connection I had only one query.
    Thanks for any help,
    Ron
    ADDITIONAL INFO: The parameters seam to be the problem. After removing the parameters I can publish the service. But without parameters it is NO SOLOTION.
    Edited by: RonKoudijs on Aug 26, 2010 6:28 PM

    Hello Taylan,
    I think the error that you received was due to packaging issues.I placed the
    UtilClass.java file under a directory called data which was present under
    the project directory.
    When you want to access a java class, you can either place the compiled
    class file in the WEB-INF/classes folder or you can place the java file
    under the project directory.
    I have attached the sample project that I created with your files.
    Let me know if you have any other questions.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "taylan" <[email protected]> wrote in message
    news:3d6351b0$[email protected]..
    >
    I am trying to write a simpe web service in WebLogic Workshop, but havingan error
    which I could not understand. Could you please help me? Thanks in advance.
    Regards,
    Taylan
    My web service code is like belows:
    import weblogic.jws.control.JwsContext;
    import data.*;
    public class WebService1
    /** @jws:context */
    JwsContext context;
    * @jws:operation
    public UtilClass testType(UtilClass tTest){
    UtilClass returnObj=new UtilClass();
    if(tTest.getName()!= null){
    returnObj.setName(tTest.getName());
    return returnObj;
    and my UtilClass is placed in the data directory under the same directorywith
    my web service code. It is a simpe class as belows:
    package data;
    public class UtilClass
    private String name;
    public void setName(String name){
    this.name=name;
    public String getName(){
    return name;
    However I got an error when I try to compile the webservice class. Theerror is
    like belows:
    File Line Message
    WebService1.jws 0 Resource found on system classpath: data.UtilClass
    Build complete - 1 error(s), 0 warning(s)
    [ngroup.zip]

  • Web Service Design Document Template

    Hi Experts,
    Can anyone please send me the good "Web Service Design Document (Tech Spec) Template" please?
    Thanks,
    Shriram.

    Hi,
    I was also getting same error once...However i was able to see my web service definition in F4. Selecting from F4 list was working fine but if i entered the name mannually, i was getting the same message as you got...may be its a Bug..
    Just to assist you, Have to activated the webservice from SICF before going for deployment using template or Adobe ?
    Just check if you have maintained the webservice in SICF.
    Thanks & Regards,
    Suchita

  • SAP Web Services Design Tool on Windows 7 64-bit

    Hi,
    I have:
    - Windows 7 Pro 64-bit
    - Crystal Reports 2008 Build 12.3.0.601
    - Crystal Reports Server 2008 V1 SP3
    I want to install the SAP Web Service Design Tool, but during the installation I get an error message :
    Error 1920. Service SAPLicenseService failed to start. Verify that you have sufficient privileges to start system services
    I'm administrator of this machine - be sure.
    Any idea?
    Best regards,
    Mike

    Scott,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Web Service/ JDBC question

    Hi,
    I have to design an automatic -and periodic- process that performs next tasks:
    1) Read Oracle table to build a XML file
    2) Connect with a Web Service and send the XML. (In the specification says that SOAP with attachments is not supported , so we have to use a "proxy J2EE client" to interact with this web service)
    3) Also this web service uses security sign with a X.509 v3 certificate in BASE64, which must be passed as a 'string' parameter when is invoked.
    I'm new in these subjects, and I need some help, my questions:
    1) Is it possible to define an automatic process with JDEVELOPER that connects to the DB, build the XML file and invoke the Web service?
    2) How could I make this proccess automatic and periodic, for example every friday.
    3) What are the tools I have to use:
    3.1.- To Connect with DB -> JDBC?
    3.2.- To Build XML, programmatically? or is there any tool?
    3.3.- To define it as a periodic proccess??
    4) Others alternatives? Is it possible to develope this directly in PL/SQL as a job in ORACLE?
    thanks in advance...

    This is what we call "Database Web Services" covered in chapter 15 of my book http://db360.blogspot.com/2006/08/oracle-database-programming-using-java_01.html
    See also
    a) Oracle Application Server Web Services Developer’s Guide 10g Release 3 (10.1.3.x) for a complete coverage of Oracle AS Web Services Security.
    b) Calling External Web services from stored procedure (it contains an example of batch scheduling for call-out but you are looking for call-in): http://www.oracle.com/technology/sample_code/tech/java/jsp/samples/wsclient/Readme.html
    Kuassi

  • Web service simple question

    I am using a Web Service to publish some data, and this question is, I'm sure, stemming from my limited knowledge and use of web servers.
    I am able to set up an "add" method, pass 2 numbers to the web server, and have the web server return a value. Simple. But, I am not sure what to do when I want to get the current value of something that is being updated in a loop.
    For example, let's say I have a VI like the one below, and the user wants to display the current loop iteration in their browser, not continuously, but only when they ask for it. I don't want to use this VI as the method to call. Instead, I'd rather this VI pass the current value to a VI designated only to return the numeric control value to the webserver. But, I have no idea how (or if) I can pass the iteration value to a method to be called. Does this make sense?
    I have thought about using session variables, but this requires continually writing to the session variable in my code, which probably isn't a big deal, but it would be nice if it only queried the current iteration when the user asked for it (much like 2 numbers are only added when the user asks for it in the NI example). I'm looking for a way to just return the current value, only when the user asks for it. 
    CLA, LabVIEW Versions 2010-2013
    Solved!
    Go to Solution.
    Attachments:
    loop.png ‏14 KB

    You'll probably want to go through more LabVIEW basics before trying this, or consider another means of communication between your VIs such as shared variables.
    A functional global variable is a VI that stores data in an uninitialized shift register.  The simplest implementation has a boolean input indicating whether to read or write, an input for data (when writing), and an output for data (when reading).  Search this forum for more information.  You will also see the term "Action Engine" which is a more sophisticated version of a functional global that implements additional actions that manipulate the data.
    The LabVIEW web server runs in its own application instance - almost a separate program.  That means it cannot directly share data with the application that hosts the web server.  VI Server is a mechanism to allow one LabVIEW instance to access VIs in another instance.  In your main program, you would store the data in a functional global variable.  In the web server, use VI Server to get access to the same functional global.  You can then run that VI remotely, within the web server instance, and read data from it.  See the help and examples for VI Server.

  • Web service basic question

    Well I am new to web services. I have a small doubt. We are trying to develop a tool which uses web service that standards the communication between my tool and different surveillance
    systems.
    What my tools should do is, it needs to get data from different surveillance
    system using common API.
    My first question is
    1) Should I implement a web service or a client. I guess the answer should be, implement a client. if so, should I make my WSDL public and tell them and if you want to provide me the data you have implement a web service definition corresponding to my client. I am a bit confused here. So pleeeeeeeease help. I need to submit my design to my professor by the end of the week.

    If your tool needs to be called from the surveillance systems, you could publish a web service and give the wsdl to the various surveilance systems. Then when they need to contact you they can invoke your web service.

  • Web service-design

    Hi,
    I am developing an application which interacts with LDAP. Once I develop this application, I should have wrap the sesion bean as web service.
    My questions are
    (1). Do we need to represents LDAP containers as value objects? Like if the tree has Printers, Files, Accounts then shld we create PrinterValueObject, FilesValueObject ,AccountValueObject and associations?
    (2). Do we have any design patterns to interact with LDAP and expose them as web service?

    Wanted to understand a bit more : currently I have a command line utility which runs on PI server. I want to make a GUI verison of it (it should use same credentials as a user would use to log on to SAP) and basically send a url of this GUI to the SAP users. This will be regarded as publishing or consuming of web serives ? or is it something else?
    Secondly ,I have PI 7.1 with EHP 1 : how will I accomplish this process?
    If you could provide details ,it would be appreciated.
    Thank you

  • Adobe Interactive Form / Web Service - Connection question

    Hi
    We have CRM 2007 and want to use Adobe Interactive forms for our sales managers to upload customer information when they're out in the field. Before they leave all information about the customer will be downloaded to an Adobe Interactive Form. The client sees the customer and then enters the information required to e.g. create a sales order. He has an Internet connection but is not neccessarily logged into CRM 2007. He is a registered user in CRM 2007.
    My question is: if we create the web services to send and receive data to the CRM 2007 system, does the sales manager have to be online and signed into the CRM system to upload the Adobe Interactive Forms back to the server, or does the web service handle this?
    Kind regards
    Declan

    Hello Declan,
    You can send the information captured in an SAP Interactive Form by Adobe to your CRM system in two ways based on the way in which your form is designed -
    1] By making a direct web service call : A typical use case is that the user fills out all the necessary fields in the form and simply clicks a submit button; on clicking, the particular web service is called and the input data is transferred to SAP CRM. It should be noted that the web service authorizations should be in place to enable this kind of usage.
    2] By utilizing SAP CRM via Email scenario : A typical use case here would be that the user fills out all the necessary fields in the form and simply clicks a submit via email button; on clicking, an email is composed with all the form input infomration added as an attachment. The user can then send this email to the SAP CRM system. It should be noted that SAP CRM via Email application should be setup on the SAP CRM system and the particular SAP CRM via Email service & web service should have proper authorizations.
    An interesting point to note here is that while scenario 1] would require the user to have just internet access for this to work, scenario 2] could work in a fashion such that if the user isn't having internet access, he/she could still fill out the forms thereby creating emails which would then reside in the outbox of the user's email client. Once the user is having internet acces, the email client would send these emails automatically, thereby achieving a different flavour of "offline functionality".
    Hope this info helps!
    Best regards,
    Sandeep.

  • Web Service Security Question

    I have created a web service in the NetWeaver portal using a Portal Service.  I have marked the service as requiring basic http authentication.  However, when I call the web service from the Enterprise Portal Web Services Checker in NWDS it just let's me supply the params of the web service and no authentication.  Any ideas?
    I also noticed that my web service does not appear under the Web Services Container or Web Services Security section in Visual Administrator.  Anybody have any idea why this is?
    Thanks in advance.
    Curtis

    Hi Curtis,
    My guess is that since you are logged into the Portal while calling this web service, it will use the current session cookie to authenticate automatically. I'm not sure on the second question, tried a restart?
    Regards,
    Raj

  • A web service design issue with patterns

    Hello,
    I�d like to ask for your help in the following design issue:
    I need to create an email sending web service (with Axis). Only just one method which returns with an integer return code. This handles the following:
    - based on the given parameters gets the email addresses from an
    LDAP server (with netscape ldap for java)
    -     makes a cache from them (only after a timeout period will be the cache
    refreshed) (don�t know what tool to use for this)
    -     selects html templates which to be sent based on the given parameters
    -     sends emails with the appropriate templates (with Velocity)
    -     the whole process is logged (with log4j)
    I have to write the code as generic as possible. I know that some design pattern should be used for this. (some from GoF , and I know there exists design patterns specially created for web services as well).
    Could you enumerate me which patterns (and for what part of the program) would be the best choice to solve this problem? I have read through some books about patterns, but don�t have the knowledge to pick up the right one for a concrete problem like this..
    Thank you in advance,
    nagybaly

    Hello,
    I�d like to ask for your help in the following design
    issue:
    I need to create an email sending web service (with
    Axis). Only just one method which returns with an
    integer return code. This handles the following:Lots of responsibilities here. You would do well to break this up into several classes that you can test separately.
    I would also advise that you not embed all this in a servlet. Make a service that collaborates with several objects to accomplish the task and let the serlvet just call it.
    .> - based on the given parameters gets the email
    addresses from an
    LDAP server (with netscape ldap for java)I'd recommend Spring's LDAP module. Pretty terrific stuff.
    cache from them (only after a timeout period will be
    the cache
    refreshed) (don�t know what tool to use for
    this)Maybe EhCache or OsCache or something like that.
    -     selects html templates which to be sent based on
    the given parametersWhere does this come from? Certainly not the LDAP. A relational database? Write a DAO for the document template.
    -     sends emails with the appropriate templates (with
    Velocity)Have an e-mail sender service using Java Mail.
    -     the whole process is logged (with log4j)Easily done.
    I have to write the code as generic as possible. I
    know that some design pattern should be used for
    this. No pattern. There might be patterns, if you say that the DAOs to access the LDAP and RDB are patterns.
    Stop thinking patterns and start thinking objects.
    (some from GoF , and I know there exists design
    patterns specially created for web services as
    well).Nope.
    Could you enumerate me which patterns (and for what
    part of the program) would be the best choice to
    solve this problem? I have read through some books
    about patterns, but don�t have the knowledge to pick
    up the right one for a concrete problem like this..
    Thank you in advance,
    nagybalyYou haven't read them because they aren't there. Your problem is pretty specific, even if it's common.
    %

  • Web Services General Question

    Hi All,
    Does web services in Java mean to simply provide a SOAP container that wraps around an EJB (or even a web container)?
    If this is true, all of the work that's been done with the development of EJBs can be preserved, and other system will make calls to the SOAP container in order to get access to the web services provided.
    I'm trying to understand the big picture and slowly get into Web Services in Java.
    Thanks

    I don�t know if this answers your question, but I think that SOAP indeed can be used to expose existing EJB�s to non-Java-Systems.

  • Securing Web Service--Beginner question

    Hi--
    I am trying to follow the document "Securing WelbLogic Web Service 10g Release 3" and can't get past the initial steps to verify that my service has been deployed with the Wssp1.2-2007-Wss1.1-UsernameToken-Plain-X509-Basic256.xml policy
    I have a basic question.
    I add the aforementioned policy to my web service using :
    *@WebService*
    *@Policy(uri = "policy:Wssp1.2-2007-Wss1.1-UsernameToken-Plain-X509-Basic256.xml",attachToWsdl=true)*
    and then rebuild and redeploy.
    If I then access the URL for the web service with "?wsdl" apppended, shouldn't the WSDL returned now include policy information?
    Karl

    Thanks, that's what I've come to understand. Is this restiction due to the fact the the @Policy annotations are not standard or is this a limitation on the Weblogic eclipse plugin
    What I've had to due is generate the JWS from the WSDL and then go back to the bottom up approach with the generated JWS source files. A bit of a pain but what can you do.
    I tried adding the security policies as suggested by Bethune but they don't seem to "stick" after a restart of weblogic server. This may be due to running weblogic server under Eclipse. I havent had time to investigate this further
    Once again thanks all for the help
    Karl

  • Web Service Object Questions

    Hello;
    I believe I may be using improper terminology but I will try to explain as best as I can.
    I have been working on a web service form, with 2 methods. One is a get, where I put in parameters and it returns a result. Another is a form to input data into a database app.
    The get method has two routines, a validation of parameters (essentially a login) and the results object. The validation is able to be dragged onto the form, it appears completely and works perfectly. However; the results object cannot be dragged onto the form, it appears in design (as a subform) but will not display on the .pdf. Additionally; it contains only one segment of the data it is supposed to return. It would contain approximately 100 records, but only returns the first. If I drag each field onto the form separately, it comes in and appears on the .pdf. I can get it to work by copying the 4 fields repeatedly, and when I process the validation the additional records populate the copies. This is tedious work and I have forms for multiple services to design. I just wish I could drag the whole object and have the results display as a table with each row as a record.
    The input form has the same validation and approximately 30 fields for input, I have the same problem where dragging the entire method (creates a subform) doesn't display on the .pdf. Once again I can individually drag each field but it doesn't seen might that it appears in design but won't appear on the .pdf.
    Yes, they are set as visible, and they are already at the front of the form...
    Any help or suggestions are greatly appreciated
    -Tim

    Thanks for your help, I have a much greter understanding of subforms as a result. Your suggestions seem logical and I can understand how designer should work (flow,repeat,fill parent...)if I could get it to behave.
    Howerver, I cannot seem to get it to work right. The method has 4 levels in the hierarchy.
    Method; Body>Response>Result>Objects(fields that will repeat)
    I have tried every combination of settings, and I can only get it to work if I copy the individual fields over and over and make sure they are not contained in any subform. I have tried unwrapping the subforms one by one, creating my own subforms and applying the settings you sugggested, binding the individual fields to the full path to data, incrementally assigning the path to the appropriate subform level...
    One thing that happens is the initial drag-n-drop doesn't reveal the contents of the sub form, (they are set as 'visible', and I have tried repeatedly to move the fields to the front etc.). Even when I unwrap from the top down, I only see the fields when I unwrap the last one ( and then I have to bind to the full path to the data).
    A different method within the web service (a validation) displays under 3 subforms without any manipulating.
    If anyone has been able to work through a similar situation please let me know!

Maybe you are looking for

  • Error while running report in oracle apps

    While running the report in oracle apps, i am getting below error Arguments AS_ON_DATE='2013/03/21 00:00:00' sdate='2012/04/01 00:00:00' edate='2013/03/31 00:00:00' Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing APPLLCSP Environment Varia

  • IE8 crashes when iTunes is installed

    Hi I have tried to download iTunes several times recently, and each time it installs OK, but when I tried to load up IE8, this doesn't work and gets a exception window. Each time, I have done a system restore, and it then IE8 works fine. Has anyone h

  • How Do I Secure an Emailed PDF to the Recipient's PC?

    Hi All, How can an emailed PDF be tied to a recipient's PC so that it can only be viewed on that PC? I do not want to use password control or high-end 3rd party systems, e.g. FileOpen, LockLizard, etc. I only care about restricting access (viewing),

  • When I sync my 3rd gen nano, there is no longer a games option tab. What happened?

    Every time I sync it, there's no longer any games option, and I can't figure out what happened. Anyone know how I can fix it? Should I just try to restore it?

  • Trouble connecting existing iphone content to new imac

    Hi Everyone, Not exactly sure im posting this in the right section however i recently purchased the new i5 27" imac (previously had a stand ol PC) which i had itunes on and my iphone sync'd to. I can get my iphone to now sync with itunes on my mac ho