Web service design trade-offs (TCP read mode vs headers)

If I use HTTP headers, I can stimulate and monitor my LV RT code from a web browser while my PC-based LV code is also talking to the LV RT app.  Sometimes, however, the header is the only part that is returned by the web service.  In order to fix this occasional nuisance, the headers can be eliminated so that the Read TCP data in Immediate mode doesn't exit when only the header has been returned.  Unfortunately, the browser interface (in native, non-JavaScript mode) doesn't work any longer so hitting a simple URL request is useless.
Has anyone found a way to get reliable comms with HTTP headers turned on without having to parse the entire return string line-by-line?

Zack.L wrote:
Hi Andy,
Sorry, forgot to post the Source that's use by both AL1.1.4 and AL2.0.1.
Source
begin
insert into scott.json_demo values(:title,:description);
end;
it's failing during the insert?
Yes, it failed during insert using AL2.0.1.
So the above statement produces the following error message:
The symbol "" was ignored.
ORA-06550: line 2, column 74:
PLS-00103: Encountered the symbol "" when expecting one of the following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted delimited-idThis suggests to me that an unprintable character (notice how there is nothing between the double quotes - "") has worked its way into your PL/SQL Handler. Note how the error is reported to be a column 74 on line 2, yet line 2 of the above block should only have 58 characters, so at a pure guess somehow there's extra whitespace on line 2, that is confusing the PL/SQL compiler, I suggest re-typing the PL/SQL handler manually and seeing if that cures the problem.

Similar Messages

  • 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]

  • What does this mean, " Web service is turned off. An administrator can turn it on using the Server application?"

    I'm attempting to connect to a website I've being using for 5 years plus. Now Firefox reports that the certificate is improper, and the message, " Web service is turned off. An administrator can turn it on using the Server application.", is given.
    I don't know what to do with this information. Web service is on for other websites. What is the "server application?" How can I take control and connect? I am the administrator.

    I cannot replicate on another browser. In fact, I now cannot replicate on my Firefox browser. I can only assume that the certificate problem was taken care of by the website involved. But in case this problem returns, I wonder what server application I am to use in order to turn my (?) web service on?
    Cryptic, unexplained error messages are a pet peeve of mine. It seems that Microsoft does not have a lock on such frustrating messages.

  • 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 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

  • Web services design issues.... for a newbie

    I have to develop several web services (JDev 9.0.2.822 and 9iAS R2). Almost all examples that can be downloaded from OTN expose simple web services that user java datatype like strings, ints and the like. In my case, the web services I should develop transfer custom information which are modeled as value classes or entity EJB's in my app. We deal with complex objects which contain collections/arrays/lists of other objects, and although most of the bussiness logic of the app is exposed via stateless session beanss and clases, I can not select their nethods since there ar no custom serializers for them.
    By reviewing the sample newsfeed web service I noticed that int their implementation they decided to "hard-code" the data by doing an XML-query to the db and constructing a custom XML document. this document is returned as a java string so the web-service is, at the end a very simple one, which uses no custom serializers. Of course there is code to create the XML doc, and there should be some XML parsing at the client in order to deserialize the XML into java in order to do something with it.
    My question is, is this the "preferred" method to deal with custom complex datatypes. should I include code in my beans and value classes so they "serialize" itself to XML so my web services have to deal with simple java strings? I have no experience in developing serializers, and I can't see why they are used? I am not sure which path should I follow, for example, should I use an array serializer to serialize a collection/array of object or should I better develop a method which will create a custom XML document repesenting the array? Are there any trade-off?
    I have to start development right away, so please give me some insinght.
    Thanks,
    Fedro.

    Yes, Oracle9iAS is currently production on 9.0.2. The target for OC4J 9.0.3 was end of summer but I have not seen it arrive yet. It is supposed to work in conjunction with 9.0.2 - i.e. you can use the OC4J 9.0.3 with the rest of your Oracle9iAS implementation. I think you are reasonably safe assuming it will be here by year end. I sit on the JDev side of the house so don't have specifics on what their actual delivery dates are but would guess sometime during September. The developer preview of OC4J 9.0.3 is currently available here on OTN as per the headline in the Web services Center at: http://otn.oracle.com/tech/webservices.
    There are two big advantages of OC4J 9.0.3:
    1. Interoperability testing ... it has been put through the SOAPBuilder's interoperability tests and includes a test suite for you to try it out 9.0.2 is fine here but you have evidence in 9.0.3;
    2. Feature/functionality - support for Web services based on JMS, document style Web service support, testing harness at the end-point, J2EE 1.3 certification, custom serialization support (not there in 9.0.2), cleaner PL/SQL based Web services and more - see:
    http://otn.oracle.com/products/ias/daily/jul22.html
    The development environment that goes along with it is JDeveloper 9.0.3. While OC4J 9.02/9.03 comes with what is called the Web services assembly tool for those who like scripting/command-driven approaches, JDev puts a traditional visual dev environment on top of the OC4J 9.0.3 environment (and also Apache SOAP 2.2/2.3.1, incidently) The developer preview of JDev 9.03 is due out within days here on OTN ... probably Tuesday based on what I understand. JDev 9.0.3 production is scheduled to arrive probably in late September mid-October.
    Hope this gives some background to help with your decision.
    Mike.

  • 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.

  • 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 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

  • Web service does not work in production mode

    Hi!
    I created a small web service with the WorkShop in BEA Weblogiv 7.0.
    If I start the server in production mode, then my service is not visible. It can
    not be accessed, neither its WSDL. In development mode it works. I tried to create
    an EAR file and deploy it, but when I do that in the web console, it all says
    that it is deployed, but I can not access the WSDL or anything else.
    Does the WSDL URL change in production mode ?
    Help !
    Best regards,
    David

    Thanks for reply.
    It seems nothing matters.
    I changed wlw-config file:
         <hostname>localhost</hostname>
         <protocol>http</protocol>
         <http-port>8002</http-port>
         <service>
              <class-name>com.mycom.MyWS</class-name>
              <protocol>http</protocol>
         </service>
    I changed wsdl soap address
    to
    http://localhost:8002/MyWS/com/mycom/MyWS.jws
    I deployed it to managed server at port 8002 and admin server at 7001. but still, admin server works and the other one does not.

  • Web Services spontaneous turning off on Color LaserJet CM4540 MFP

    We are using ePrint on four seperate Color LaserJet CM4540 Multifunction printers in a business environment where we elected to activate ePrint in order to allow wireless printing for our iPhone and iPad users. We were able to set it up and get it working, and for the most part it works great! Users testing the functionality are using the HP ePrint for Home and Biz app and so far they've reported no loss of formatting for the documents they are printing - but there is one problem:
    So far two of the printers have dropped (turned off) Web Services for no apparent reason.
    Administrative functioning on the machines is password protected so it isn't possible for one of the clients to just come in and turn off Webservices. Only IT team members have the access password. I don't believe that any of us are turning off web services, so the impression is that they are spontaneously deactivating.
    Two other bits of relevant information:
    1) I am able to easily re-activate web services and assign a new eprint email address to the printer...
    2)  I'm not able to reassign the first eprint email address to the printer because the HP ePrint website automatically places lost/disgarded email addresses on hold for 6 months to reduce the chance of people mistakenly sending documents to someone else's printer.
    Therein lies the crux of the problem: because we are in a business user environment, every time I have to assign a new email address to the printer, I'm forced to update the documentation for the end users reflecting the addresses of the printers, and to inform the users who are already using the service of the new address.
    I need to figure out a way to either 1) prevent the web service from shutting down, or 2) retain the same email address in the event that it does shut down, or both.
    Any suggestions?

    Hi Sumiko, With pleasure
    Frankly, i am not familier with the secondary DHCP structure of the device as i am more focused on consumer products, however the logic still remains the same... As long as DHCP can be maintaned, i cannot see any reason why the static IP will fail as the connectivity remain the same, therefore i would recommend you to disable the secondary DHCP in order to avoid any firewall blocks after forwarding the ports.
    The port forwarding should be assigned from the router or the server, depanding on your network structure.
    If you are using a more complex network envoirnment by using any server, VPN, switch, etc. you will need to contact your IT administrator to configure the port forwarding
    However if you are using a simpler network , please let me know the router model, i will gladly try to assist you locating the steps for your envoirnment.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • 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

  • Updated Web Services and Pageflow design view available via eclipse update

    All,
    An eclipse update to Workshop for WebLogic Platform 9.2 is now available.
    The new features available in this update are listed below
    <b>Web Service Design View:</b> The web service Design View lets you design all of the major features of a web service using a graphical development environment. The following features are included:
    * Creation of web methods, callbacks, and event handlers
    * Direct configuration of conversational and buffering properties
    * Inline method signature editing, with syntax highlighting and code completion
    * Simultaneous editing of separate interface and implementation files
    * Improved error detection and messaging
    <b>Page Flow Overview. </b>The Page Flow Overview gives a graphical overview of an entire page flow, including its JSP pages, actions, and navigational relationships. This high-level view of a page flow gives the developer a total picture of how a page flow is structured. The following features are included:
    * Continuous automatic graph layout
    * Improved layout algorithm
    * Selection is synchronized with the Page Flow Editor
    * Graph Tracing mode makes reading complex graphs easier
    * Print graphs or export them as images
    <b>
    Improved Test Client functionality. </b>The Test Client now supports directly testing services that have callbacks as well as services that have only JMS as a transport. The Test Client is downloaded along with the Workshop for WebLogic 9.2.1 update, but it must be installed manually. For details on installing and using the Test Client to test web services, see Testing Web Services with the Test Client.
    <b>Cheat Sheets. </b>A variety of cheat sheets are now available to get you started with Workshop for WebLogic.
    The following cheat sheets are available:
    * NetUI Web Application: Hello World
    * Web Service Application: Hello World
    * Using XMLBeans
    Additional information is available at http://e-docs.bea.com/workshop/docs92/ws_platform/introduction/conWhatsNew.html
    cheers
    Raj

    Hi Geoff,
    I have placed a zip file which contains the Workshop 9.2.1 update on a ftp server at ftp://support:[email protected]/pub/w4wp/w4wpUpdate.zip
    Make sure you download the file and follow the instructions listed below
    Launch workshop
    Help>Software Updates>Find and Install...
    Select "Search for new features to install" and hit Next
    Click on the New Archived Site button
    Wait for the "Select Local Site Archive" dialog to appear
    Enter, or browse to, the location of the archive file (it can be referenced using either http:// or file path syntax depending on where it was placed by the user or their sys admin) and hit Open
    Hit Finish
    Select BEA Workshop for WebLogic Platform 9.2.1.0 and hit Next
    Select "I accept the terms in the license agreement" and hit Next
    Hit Finish
    Wait for the Feature Verification dialog to appear
    Hit Install All
    Hit Yes when prompted to restart the workbench
    Cheers
    Raj

  • Reader and Web Services

    Hi, I'm developing forms in Designer 7 and wish to use ASP.NET 2.0 + Web Services to both prepopulate fields & to receive user entered data as XML upon submit. My web users will only have access to Adobe Reader... so my questions are: can Designer 7 forms, opened in Reader, interact with web services WITHOUT LC Reader Extensions? Second, has anyone come across good examples of doing this without resorting to an Enterprise ASN developer license? Thanks in advanced! Brian

    Hi,
    As per your first question:
    No you cannot have Reader ti interact with a Web Service, unless the form is Reader Extended through LCRE.
    But, you might be able to leverage a HTTP connection through GET and POST methods, instead. This could work. Read page 2 from this document:
    "Combining LiveCycle 6.x server products with LiveCycle Designer 7.0 and Acrobat 7.0 or Reader 7.0"
    http://partners.adobe.com/public/developer/en/tips/lc_combine_server_tip.pdf
    Another handy tool would be this:
    "XML/PDF Access API for Java"
    http://partners.adobe.com/public/developer/livecycle/topic_xpaaj.html
    HTH,
    Evangelos

  • Accessing SOAP Web Services: Running on Acrobat 9, But NOT on Adobe Reader 9.

    Hi All,
    I am using webservice to populate form control. It is working fine in Acrobat 9 but When I am opening form in Adobe Reader 9 its NOT WORKING. Its niether giving any error nor any respone. Do Adobe Reader need some extra code to access/run web services or where I am wrong? Please help.
    Thanks.
    Abhinav

    Hi Anhinav,
    Because reader is not "extended" Web Services will not work on Reader.  They do however (as you've noted) work in Acrobat, which is "extended".
    To make web services work in Reader, you will need to purchase the LiveCycle Reader Extensions.
    Hope that helps.
    Jay

Maybe you are looking for