Created by: Maurin Egler on 17-06-2010 03:06:58 PM Hi there we were trying to translate the given wadl file using glassfish wadl2java lately. Translatation basically seems to work, unfortunately the generated client stub contains a lot of errors. (Mainly duplicated methods and parameters...) Advice appreciated. Rgs Maurin
Subject: RE: wadl client stub Replied by: David Wanagel on 23-06-2010 01:28:14 PM Sorry for the delay here, somehow my original post from 6/17 didn't make it to the forum. This isn¿t something we have tried, but it is a bit surprising due to the fact that the WADL is generated automatically by the jersey framework, which is also part of glassfish. Are you getting the WADL directly from a server?
Subject: RE: wadl client stub Replied by: Maurin Egler on 29-06-2010 02:02:00 PM hi thx for the reply. Well, it was suprising for us as well. Especially cause we know it was generated with jersey. And yes, the wadl files come from a brand new server directly... We first thought it might be a versioning issue cause we used jersey 1.1 comparing to the wadl which was generated using 1.0.2 (at least it seems so).. But using the older libraries didn't help much.. Anyone sucessfullly translated these wadl's back to source-code? We are using the ant taks to do so as described on the wad2java site... thx, maurin
Subject: RE: wadl client stub Replied by: David Wanagel on 29-06-2010 02:06:35 PM We are in the process of updating our jersey version to 1.3. If you can post your direct email address, I can send you a jersey 1.3 generated WADL and see if anything improves (it is too big to post here), -Dave
Subject: RE: wadl client stub Replied by: Maurin Egler on 29-06-2010 09:52:38 PM hi that would be: megler (at) ins.hsr.ch thx maurin
Subject: RE: wadl client stub Replied by: Maurin Egler on 01-07-2010 09:30:07 AM thanks for your email. we've tried to compile it with wadl2java v1.1... Unfortunatelly this new file does not compile - the following error occurs when trying to compile it with the ant task:
Compiling the description... Processing: file:application.wadl com.sun.codemodel.JClassAlreadyExistsException at com.sun.codemodel.JDefinedClass._class(JDefinedClass.java:654) at com.sun.codemodel.JDefinedClass._class(JDefinedClass.java:632) at org.jvnet.ws.wadl2java.ResourceClassGenerator.generateClass(ResourceClassGenerator.java:132) at org.jvnet.ws.wadl2java.Wadl2Java.generateSubClass(Wadl2Java.java:471) at org.jvnet.ws.wadl2java.Wadl2Java.generateSubClass(Wadl2Java.java:480) at org.jvnet.ws.wadl2java.Wadl2Java.generateEndpointClass(Wadl2Java.java:450) at org.jvnet.ws.wadl2java.Wadl2Java.process(Wadl2Java.java:157) at org.jvnet.ws.wadl2java.WJCTask.execute(WJCTask.java:233) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
I'm using CUPI to try and updates a mailbox password. So I PUT to https://srvcucn12s.nxodev.intra:443/vmrest/users/d65583a1-3da2-4fcd-b655-4beb896791df/credential/passwordwith this content<Credential><Credentials>my password here<...
Hello All, Below is my scenario Extension A is observed Caller calls from PSTN to Extension A Extension A rings and A Rejects the call.I am using call.drop() to reject the call. When I invoke this, the call seems to disconnec...
(using Python and the Flask Library)
An oAuth integration allows you to have an application "do stuff on your behalf".
This is a topic that can be quite complex to understand. For that reason I created this Python code to make it as easy as possible to...
It may be easier than you think.
After some customer requests I started writing code in Python. A few days later the script was ready.
What can it do?
ADD LOGO or image to your virtual background (using a domain/email address/URL/local-file)
Howdy! Adding everything I need through a python script to spin up a site in CUCM. When adding a common phone config it seems to be ignoring a vendorConfig piece I want to modify. # Create commonPhoneConfig siteCode_locatio...