Process for adding a boolean option to the web service API

Hey guys,
Here's a little background:
I'm currently working on adding an optional "strict" mode to some of the unmarshalling functions in SchemaMarshaller that will throw exceptions when receiving bad data for certain fields, and also improving the date handling while I'm at it (I want null instead of mangled dates when receiving bad data when strict mode is off).
This is for my benefit at the moment as I'm tired of spending time debugging Flex code when XFire and Oracle are spitting out rubbish (like empty xsd:DateTime nodes, DateTimes in xsd:Date nodes, etc) - but I'm sure other people would like to use it too while we don't have a response validator, so I'd like to do it in a way that I can submit as a feature request (with patch) on Jira.
My questions are about the procedure for stuff like this- where should this option be made public in the API, and who would I talk to about it? Or would it be best for it to always be strict? - That's how I'd like it :) Perhaps it should just log errors when it encounters bad data?
This is the first thing I'd like to "add" to the SDK rather than a simple bug-fix, so I just want to do things in a kosher manner. Sorry if I come across like a total noob :)
Cheers,
-Josh
"Therefore, send not to know For whom the bell tolls. It tolls for thee."
:: Josh 'G-Funk' McDonald
:: 0437 221 380 ::
[email protected]

Hey Josh,<br /><br />I'm swamped at the moment but appreciate your interest and your<br />contributions to Flex and WebServices thus far. I'll try and get some<br />time to look into your specific request and what you're hoping to do at<br />the code level, but to answer your question about test cases, you should<br />consider the NIST testsuite for XML Schema datatypes.<br /><br />BlazeDS has historically maintained the WebService implementation, so it<br />appears their test case for NIST based schema tests starts out here (and<br />refers to many data type test cases in the /nist subdirectory).<br /><br />http://opensource.adobe.com/svn/opensource/blazeds/branches/3.0.x/qa/app<br />s/qa-regress/testsuites/flexunit/src/tests/flexunit/xml/NISTXMLSchemaTes<br />t.as<br /><br />Pete <br /><br />________________________________<br /><br />From: [email protected] [mailto:[email protected]] On Behalf Of Josh<br />McDonald<br />Sent: Tuesday, July 08, 2008 8:21 PM<br />To: [email protected]<br />Subject: Re: Process for adding a boolean option to the web service API<br /><br /><br />A new message was posted by Josh McDonald in <br /><br />Developers --<br />  Process for adding a boolean option to the web service API<br /><br />Yeah I knew it'd have to be somewhere outside of SchemaMarshaller, as<br />it's [ExcludeClass] anyway so end users don't see it, nor is it<br />documented in the api docs. Just wasn't sure where it should be. I'll<br />have a think about it some more when I get some down time to work on it,<br />but webservice was where I was thinking it should be too. Didn't think<br />about having it settable on operation as well though, so thanks for that<br />:)<br /><br />Anybody know a good source of valid values for various XSI types (date<br />and DateTime mainly) for testing purposes? Or even who I should contact<br />to get access to that sort of thing? I assume the W3C will take 6 months<br />to answer me, and the answer will be "buy our $10,000 compliance testing<br />suite" or something along those lines.<br /><br />-Josh<br /><br />On Wed, Jul 9, 2008 at 9:46 AM, Matt Chotin <[email protected]><br />wrote:<br /><br /><br />     A new message was posted by Matt Chotin in<br />     <br />     Developers --<br />      Process for adding a boolean option to the web service API<br />     <br />     I think for a top-level user option I would put the new option<br />on the mx.rpc.soap.Operation class (I think that's the name).  You'd<br />then have that propagate through to the underlying schema classes as<br />they are used.  I'd then also add an option to the WebService class<br />itself, and basically in the Operation it should see if it has its own<br />value set and if not check the value on the WebService.  We do this for<br />a couple of other flags too I think.<br />     <br />     End users in general wouldn't look at any classes other than the<br />WebService and maybe the Operation classes, so asking them to set<br />options on the schema classes themselves probably wouldn't work.<br />     <br />     Matt<br />     <br />     <br /><br /><br /><br />-- <br />"Therefore, send not to know For whom the bell tolls. It tolls for<br />thee."<br /><br />:: Josh 'G-Funk' McDonald<br />:: 0437 221 380 :: [email protected] <br /><br /><br />________________________________<br /><br />View/reply at Process for adding a boolean option to the web service API<br /><a href=http://www.adobeforums.com/webx?13@@.59b5be89/1> <br />Replies by email are OK.<br />Use the unsubscribe<br /><a href=http://www.adobeforums.com/webx?280@@.59b5be89!folder=.3c060fa3>  form<br />to cancel your email subscription.

Similar Messages

  • Implement the web-service API on an external service desk

    Hi,
    I want to implement the web-service API on an external service desk
    system.
    I am working with the IMG and got to the point where I define a logical
    port. At this point I need the web-service to be implemented on the
    external system.
    I have web-service API documentation and also read note 962383 - but I
    did not find any specific instructions how to implement the web-service.
    Can you assist me with documentation for the web-service implementation
    on external system procedure?
    or if someone can share a step-by-step - it would be great.
    Thanks,
    Shelly

    Hello Shelly,
    Please use the following link to Read a blog Service Desk Implementation Guide Part II
    Service Desk Implementation Guide Part II
    This blog describes the following.
    1) Integrate New data in the Service Transaction
    2) Implement new action: send mail to creator on message modification.
    3) Configure an interface to an external service Desk
    4)Implement a new action that send the message to the external system and change automatically the status.
    Hope it helps.
    Cheers,
    Satish.

  • Have the web service API URLs changed?

    I'm currently in the beginning stages of working with the iTunes U Web Service API, and I'm running into an issue.
    Step 2 of uploading a web services document (pg 50 of the admin guide) says to request an upload URL. The base URL for this request:
    https://deimos.apple.com/WebObjects/Core.woa/API/GetUploadURL
    doesn't seem to be valid. I am receiving 404 errors:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>404 Not Found</title>
    <meta name="generator" content="Indigo">
    </head>
    <body>
    Not Found
    The requested URL /WebObjects/Core.woa/API/GetUploadURL was not found on this server.
    </body>
    </html>
    I've tried added the identifier path but still no luck. Just to be clear, I am generating and sending a proper authorization token; the issue is that the destination URL seems to be invalid.
    Have the API URLs changed or am I missing something?
    Thanks

    Hi Chris,
    A couple of things ...
    First is that you want to read page 54 of latest admin guide.
    Nextly, the basic way to access the API hasn't changed ... Apple has changed the XSD and the specifics of the API itself ... but not the way you call it. That's been pretty steady since I've been messing with it.
    The base URL should look like this:
    https://deimos.apple.com/WebObjects/Core.woa/API/GetUploadURL/your-university.ed u.111.222.333
    "111.222.333" is called a "handle" and it uniquely specifies a resource (track, cover image, etc.) within iTunes U. "111.222" is a path to the resource "333".
    After the base URL, you have to add the same kind of token string that you would for "Browsing" iTunes U ... that is a string in the form ...
    credentials=foo&identity=user&time=123456&signature =abc123abc&type=XMLControlFile
    A question mark "?" separates the base URL from the token string. Whatever you do, do -not- forget the type=XMLControlFile! The manual does not emphasize that you need to add this token, but you must to use the API.

  • How do I use the Web Services API to query orders?

    The help doc states, "you can retrieve details for purchases including products purchased, payments received, and their status." The only additional info is at the link to eCommerce-Related Web Service, which does not include any information about retrieving "products purchased, payments received, and their status."

    Hey if you read over that again you have two links, the other is this one:
    https://worldsecuresystems.com/catalystwebservice/catalystcrmwebservice.asmx

  • Adding transaction layer to Web service API

    Our company, an ISP, recently invested in the BroadHop Enterprise Service Manager platform. The platform enables us to provision Internet services via the Web. We were able to write, largely from scratch, a "registration process" by which our users subscribe to service, and then sign-in to use their Internet access.
    To create the data representing these new customers, the registration process utilizes several Web service APIs provided by BroadHop. There is one Web service to create the customer's account, another to provision his/her services, and another to facilitate the authentication process.
    What I am interested in is a means of creating a transaction for these Web service calls, with the intention of "rolling back" in the middle of the process. The Web services are consumed thusly:
    1. User enters data into session beans via a JSP-driven, multi-page, collection phase.
    2. The data stored in those beans is disseminated into a special "bean" used to represent the customer's account information. This bean object is then submitted through the Web service API to create the account.
    3. The data stored in the session is further disseminated into a product subscription object, which is then submitted through its own Web service.
    4. Upon success returned by both Web service calls (the absence of an exception), the user is taken to the sign-in page.
    If an error is thrown between steps 2 and 3, our present handler dumps all session data into an XML file and forwards the user to an error page. Although we could eventually automate the process, the data in the XML dump is then manually inserted into the system. Until this is done, however, the data stored in BroadHop is somewhat corrupt, because an account exists but is an orphan (without product subscription information).
    What I am looking for is a generic means of representing the entire transaction as it is to take place, and programmatically "resuming" or "rolling back" the transaction so that orphan data does not hang around in our system.

    My mistake...
    on [http://download.oracle.com/docs/cd/E11081_01/doc/web.21/e14979/toc.htm|http://download.oracle.com/docs/cd/E11081_01/doc/web.21/e14979/toc.htm] , the method
    void      createPropertiesFileOnVirtualMachine(java.util.Properties props, VirtualMachine vm, java.lang.String propFileName)seems to do what I need...
    Now, because my test environment only allow PV Guests, I'd like to know if that also work for HW Guests?

  • Operations not sorted in the drop list of the web service endpoint

    Hello,
    Since the beginning of oc4j standalone till the last release 10.1.3.5.0, the operations in the drop list of the web service endpoint are not alphabetically sorted,
    they are in a random order.
    If a web service contains a lot of operations, it's always difficult to find one operation in the list.
    How can this list be sorted ?
    I don't see any sort option in the web service properties (in Jdevelopper) or in the deployment descriptor (in Jdevlopper).
    Best regards
    Laurent

    You are correct...the above code is useful only when debugging in Visual Studio.  You should have better luck with either of the following two options:
    Option 1: Retrieve the id from the response of SaveChanges()
    sc.AddToSampleList(new ServiceReference.SampleListItem { Title= "Hello World" });
    System.Data.Services.Client.ChangeOperationResponse response = sc.SaveChanges().FirstOrDefault() as System.Data.Services.Client.ChangeOperationResponse;
    int id = ((ServiceReference.SampleListItem)((System.Data.Services.Client.EntityDescriptor)response.Descriptor).Entity).Id;
    Option 2: Create the list item and access its properties after calling SaveChanges()
    ServiceReference.SampleListItem li = new ServiceReference.SampleListItem { Title= "Hello World" };
    sc.AddToSampleList(li);
    sc.SaveChanges();
    int id = li.Id;

  • Web Service API for KVM

    Dou you know if KWm supports Web Services clients?
    Thanks

    [becatelvent],
    Dou you know if KWm supports Web Services clients?
    ThanksThere is a JSR (JSR-172) with an expert group working to define the web services APIs for J2ME. Sun is the spec lead for this JSR. You can take a look at this JSR at:
    http://www.jcp.org/jsr/detail/172.jsp
    HTH.
    Rgds,
    Allen Lai
    Developer Technical Support
    Sun Microsystems
    http://access1.sun.com

  • Process for Adding Additional WAE to 4.0.11 Cluster with CIFS

    I will be adding an additional WAE 612 W/ 4GB of memory to an existing single WAE 612/4GB cluster in the future. What is the best practice process for adding the second WAE to the cluster. I would like to do the WCCP configuration last. Whats the easiest way to move the policies from the existing WAE to the second wae. Is it as simple as just creating a Cluster Device Group and then adding both devices to the group. Will the second WAE inherit the settings for WAFS as well? I am not concerned about the WAAS setup.
    I don't have access to the credentials for the CIFS connection on the core WAE today so i would really like to know if i can complete this install by just copying settings from the existing WAE using the device group settings.
    I am also going to reverse the 61 and 62 settings to ensure that the inbound client connections get load balanced across the WAE properly.
    Any other things to consider?
    Thanks in advance
    Mike

    Mike,
    The edges will always reconnect to the same core unless it's not available. In 4.0.x, WCCP does not effect CIFS connections (4050 connections), only load balancing the TCP connections outside the 4050 connections. I have manually load balanced edges before via expert mode on the edge GUI, but it's fairly unwieldy. How many edges do you have? I can dig up the procedure if you want to use it.
    You can get decent load balancing by setting up both cores so they are both taking edge connections, take the old core offline (stopping the service in the GUI) for several minutes and then bringing it back up. A good number of your edges should now be on the new core and some will still be on the old core.
    Also, remember it's best practice to try and keep N+1 at your core. If you loose a core WAE in your cluster and a single Core can't handle the CIFS traffic, you will continue to get CIFS optimization.
    Hope that helps,
    Dan

  • Changes to the Web Service publishing process (Operationalization)

    With the new release of Azure ML features, we are updating the web service publishing workflow. Below are the list of changes:
    Web Service Input / Output modules: these replace the input and output ports previously used to create web services. You can now drag and drop them on the experiment from the left pane under Web Services (instead of right-clicking on the module).
    Generation of Scoring experiment from Training experiment: We have automated the steps in creating a Scoring experiment by adding the Web service input and output modules, and automated the saving of the Trained model. With this feature, you no longer need
    to manually save a trained model and add it to a Scoring Experiment. The "Create Scoring Experiment" button will trigger these events and generate the Scoring Experiment for you. The resulting Scoring experiment can be published as a web service
    as is, or user can make modifications to the generated workflow including location of input/output modules.
    To use this feature:
      ○ Create a Training Experiment (includes an algorithm such as Boosted Decision Tree and a Train Module)
      ○ Click Run
      ○ Click Create Scoring Experiment
      ○ Review the resulting Experiment, then Click Run
      ○ Then click Publish Web Service
    A sample Training Experiment:
    Publishing a Training experiment as a web service:Similar to the Scoring experiment, we have now automated the steps to create a web service from the Training experiment using the "Prepare web service" command button. This action adds Web service
    input and output modules to the training experiment. The experiment can then be published as a web service. This  approach to creating a web service is needed for setting up the Trained model for retraining using the Retraining APIs. But is not the recommended
    approach for creating web services - Scoring experiment should be used for that purpose.
    Publishing an experiment as a web service: in cases where the experiment does not involve training, such as when processing, transforming and cleaning up data, it can also be published as a web service using the "Prepare web service" button.
    We will publish more detailed documentation for this and other features shortly. Please let us know if you have any questions.
    Thanks,
    The Azure ML Team

    Hey Freppas, can you give some more information about your first ask? For classifiers, we already output the scored probability along with the scored label. You can limit the output to just the probability using the Project Columns module to exclude unwanted
    columns. The web service is not concerned with domain-specific functionality - it will output exactly what you see being output in Studio when you set up the web service ports
    The second ask is something we're working on bringing to our product - feature importance. Again, you would have to make it happen in the Studio before you publish the web service for the web service to have that functionality

  • Error in Deploying the web service process

    Hi all,
    I will working on web service process in ebs server. In this server i had executed the web service process successfully.
    After Restarting my ebs server i checked again the web service process , but it throws following error running the "Asant deploy-war" command.
    Error is :
    The following error occurred while executing this line:
    /p01/oracle/pixcomn/java/oracle/apps/webservice/j2eetutorial15/examples/common/targets.xml:56:
    An exception occurred while running the command. The exception message is: CLI171 Command deploy failed :
    Application hello-jaxrpc is already deployed on other targets. Please use create-application-ref command to create reference to the specified target;
    requested operation cannot be completed.
    Please help how to solve this web service issue.
    Thanks
    Prabu

    Hi Hussein,
    I checked the Server log , i got the followinf log file.
    [#|2012-02-03T13:11:34.993+0530|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WEB0200: Configuration error in web module [hello-jaxrpc] (while initializing virtual server [server])
    com.sun.enterprise.config.ConfigException: I/O error while loading deployment descriptor for: hello-jaxrpc
    cause: The archive null does not contain deployment descriptor file WEB-INF/web.xml
         at com.sun.enterprise.instance.WebModulesManager.getDescriptor(WebModulesManager.java:398)
         at com.sun.enterprise.instance.WebModulesManager.getDescriptor(WebModulesManager.java:343)
         at com.sun.enterprise.web.VirtualServer.loadWebModuleConfig(VirtualServer.java:518)
         at com.sun.enterprise.web.VirtualServer.getWebModules(VirtualServer.java:365)
         at com.sun.enterprise.web.WebContainer.loadWebModules(WebContainer.java:837)
         at com.sun.enterprise.web.WebContainer.start(WebContainer.java:722)
         at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:515)
         at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:54)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    Caused by: java.io.IOException: The archive null does not contain deployment descriptor file WEB-INF/web.xml
         at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:233)
         at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:195)
         at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:131)
         at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:673)
         at com.sun.enterprise.instance.WebModulesManager.getDescriptor(WebModulesManager.java:387)
    Thanks
    Prabu

  • Top down approach for creating the web services in NWDS 7.1

    I am trying to develop a web service in top down approach.
    1) I created a Dynamic web project.
    2) Created a WSDL File using the WSDL Graphic editor.
    3) Now i am trying to create the Webservice from the WSDL file ,  i am getting the following error
    The SAP Netweaver Web service runtime does not support the service project type Dynamic Web Project.
    How do i created the web service from here on.
    Regards
    ABS

    In NWDS 7.1 i used to create webservice.I followed the process given in sap help.
    steps:
    1.      In the SAP NetWeaver Developer Studio, you create an EJB Project and an enterprise application project for the Web service.
    2.      In the EJB Project, you create an EJB Session Bean 3.0 and implement the business logic of the Web service.
    3.      You expose the EJB Session Bean 3.0 as a Web service, using the Web service wizard in the SAP NetWeaver Developer Studio.
    4.    You deploy the Web service endpoint on the application server.
    Thanks,
    Murthy.

  • Hiding options in the web gallery in iWeb?

    How do I hide the options in the web gallery in my iWeb? I want people to see my images but dont want to show the Download or the Subscribe buttons.
    Is there anyway to turn these off.
    I'm using iWeb 8 and have a mobileme account

    ddauray wrote:
    Just to be clear, I inserted the photos from my MobileMe Gallery homepage and not from iphoto.
    Sorry, the above isn't particularly clear to me. By "MobileMe Gallery homepage" do you mean via http://me.com or http://gallery.me.com/membername ?
    Into which iWeb template did you insert your photos? ...For example, the Photos page template or the +My Albums+ page template, etc.
    How exactly did you insert the photos from your MobileMe Gallery homepage? ...Did you click on the Web Widgets button in iWeb's lower toolbar and select +MobileMe Gallery+ and an +Album name+ ?
    If you don't mind providing the URL of your iWeb page and MobileMe Gallery, we can then see what you're referring to.

  • Getting complete WSDL for the web services created in J2EE

    Hi,
    I have created a web service using Netweaver developer studio for a J2EE project (complete EJB, WEB and Appln Project) similar to CAR rental application.
    I also have tested the web service in web service perspective and it is working fine. Now i want to call this web service from XI. Therefore i need the WSDL for the same. The testing screen also gives the WSDL for the web service. But it has got number of links inside in the forms of import.
    Editing all those documents and forming the complete wSDL is very difficult..
    How do i do it??
    Abhijeet

    Hi,
    When I opened the wsdl it has number has a wsdl:import location tag..which refers to binding.
    when opened this import location we have one more import location for porttypes.
    When combined all thhree e.g. service, binding and porttype we get the complete WSDL which i could comofortably import in XI and further process.
    This way i coudl succesfully call a web service from XI.
    I used Stylus studio for editing WSDL.
    Thanx

  • Updating the web-services.xml for WS-Security

    If I wanted to change my webservice from encryption of both the request and response to just encryption of the request how do I manually change the web-services.xml file ??? Do I have to un-archive the ear and re-archive the ear everytime I want to make security changes to the web-services.xml file ?

    It works. Thanks,
    Ioana
    "Neal Yin" <[email protected]> wrote:
    The error means your EJB is not deployed.
    Adding a EJB module to your application.xml file of the ear should fixe
    it.
    <application>
    <display-name />
    <module>
    <web>
    <web-uri>dox_sdi.war</web-uri>
    </web>
    </module>
    <module>
    <ejb>DocumentService.jar</ejb>
    </module>
    </application>
    "Ioana Meissner" <[email protected]> wrote in message
    news:3cf640cc$[email protected]..
    I have used the following example for my own web service with EJBcomponent and SOAP
    Message Handler Chain:
    http://e-docs.bea.com/wls/docs70/webServices/dd.html#1058208
    I have a deployment error:
    javax.naming.NameNotFoundException: Unable to resolve'app/ejb/DocumentService.j
    ar#DocumentService/home' Resolved: 'app/ejb'Unresolved:'DocumentService.jar#Doc
    umentService' ; remaining name 'DocumentService.jar#DocumentService/home'
    In attachement is the ear file.
    Is there a problem in web-services.xml?
    Thanks

  • For forum: re: Tools Options Network Offline Web Content and User Data, see Details below, thanks in advance!

    For forum: re: Tools>Options>Network>Offline Web Content and User Data, (Help) says in part, '..If you have previously blocked a website from storing data for offline use..', If this refers to the times I have 'denied' a web service from storing data on my machine, then something is wrong. I have 'denied' many such requests, yet there is nothing in the box (Exceptions) 'Offline Data'. Why is there nothing in the box, and/or how do I manually add a service to the 'blocked' box? For me, this is a real problem as I have spent as much as 5 minutes clicking on the little 'Deny' box in the request before it goes away and allows me to watch the video I wanted to watch (the little 'request' box sits right in the middle of the video box, blocking viewing of the video). Is this a problem with Adobe Flash Player Settings (whos 'request' box it appears to belong to) or a problem with the Firefox> Tools (Local Storage) settings? (a picture of this 'request box' available on request)

    Note that Offline Web Content is different then local DOM storage and is only used on a few websites that run an application like the mega.co.nz website.
    You can inspect and manage the permissions for all domains on the <b>about:permissions</b> page or for the domain in the currently selected tab via these steps:
    *Click the "Site Identity Button" (globe/padlock) on the location bar
    *Click "More Information" to open Page Info
    *Go to the Permissions tab
    *Tools > Page Info > Permissions
    *https://support.mozilla.org/kb/how-do-i-manage-website-permissions
    You can delete the permissions.sqlite file to reset all permissions.

Maybe you are looking for

  • Why will Siri not work on my iPhone 4s?

    I've had my iPhone 4s for a while now, actually, it used to be my Dad's, but I just realized hoe useful Siri was and I help down the Home button for a while and Voice Control came up, so I went to enable Siri, and there's wasn't even a Siri tab to en

  • My iphone will not allow me to forward emails from one account.

    I'm using a 4s which was replaced one week ago by Apple due to an issue with the prior phone powering down by itself. The new phone has worked perfectly, I can send and receive mail just fine on any one of my several email accounts. On my business em

  • How to set custom shortcuts for Styles in Pages 5.1?

    I just updated Pages to version 5.1. It said, that it will bring back the feature where you can use different shortcuts for specific styles. How can you do that? Anyone figured it out yet? Thanks, Mark

  • Include Column type in XML result set

    Hi I'm trying to get result of my query as XML but how I can specify columns data type in xml attributes? This is my query: SELECT * FROM Acc.GL FOR XML AUTO, ELEMENTS, TYPE, BINARY BASE64; Unfortunately in XML result, column types are not specified:

  • How to scope beans for a JSF Confirmation Page

    I have a web form with corresponding backing bean for each input field. I have two buttons on the form. Here is some of the page: <h:inputText id="clientName" value="#{clientBean.company}" required="true"/> <h:inputText id="clientContact" value="#{cl