Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Subject: RE: WSDL2JAVA problems at CUCM8.5 Replied by: Thies van Gunst on 23-03-2012 08:00:37 AM Within the 7.0 and 7.1 within the file axlsqltoolkit.zip have been sub-directories WSDL-AXIS adn WSDL-NET. This sub-dirs are no longer existing for 8.0 and 8.5. Is code-generation from wsdl-file using axis still supported? Within axlsqltoolkit.zip we have also schema for 7.0 and 7.1. When I generate java-code from this files everything works fine. CUCM 8.6 still handles this schema so that "listUserByName" and "addUser" worked fine. Is there missing sometihin inside axlsqltoolkit.zip? Do I have to generate code in an other way?
Subject: RE: WSDL2JAVA problems at CUCM8.5 Replied by: David Staudt on 27-03-2012 11:34:56 AM The intention is that the same set of WSDL/XSD files works with Axis and .NET (and hopefully others, like SOAP::LITE), obviating the need for separate versions.
Subject: RE: WSDL2JAVA problems at CUCM8.5 Replied by: Thies van Gunst on 03-04-2012 09:46:03 AM I still have problems with code-generation using axis 1.4. I have to use Java and not .Net. Is it possible that the documentation about WSDL2java using axis is not up-to-date?
Subject: RE: WSDL2JAVA problems at CUCM8.5 Replied by: David Staudt on 03-04-2012 11:53:47 AM Can you detail the problems? If it's the 'null already exists' messages as above, I see this also, and the resulting classes appear ok - are you seeing issues?
Subject: RE: WSDL2JAVA problems at CUCM8.5 Replied by: Thies van Gunst on 04-04-2012 04:40:04 AM compiler errors:
XInteger.java:
public XInteger(java.math.BigInteger _value) { super(_value); }
as the super-class of XInteger is Object call of super(_value) is wrong here. Can this be replaced by "this.value = _value" ?
some expected stub-functions like listUserByName are missing (replaced by listUser ?) listUserByName is still mentioned within documentation of CUCM8.6
some runtime exceptions within log4j file:
ProjectResourceBundle$Context loadBundle:423 loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.axis.resource, locale en_US ProjectResourceBundle getBundle:318 Created org.apache.axis.i18n.resource, linked to parent null ProjectResourceBundle getBundle:264 getBundle(org.apache.axis,org.apache.axis.utils,resource,null,...) ProjectResourceBundle$Context loadBundle:423 loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.axis.utils.resource, locale en_US ProjectResourceBundle$Context loadBundle:423 loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.axis.resource, locale en_US ProjectResourceBundle getBundle:328 Root package not found, cross link to org.apache.axis.i18n.resource ProjectResourceBundle getBundle:328 Root package not found, cross link to org.apache.axis.i18n.resource
Somehow possible to get rid of them?
....
Many exception like this:
java.lang.IllegalArgumentException: java.lang.NoSuchMethodException: com.cisco.www.AXL.API._8_5.LAnalogPortSigDigits.<init>(java.lang.String) at org.apache.axis.encoding.ser.SimpleDeserializerFactory.initConstructor(SimpleDeserializerFactory.java:78) at org.apache.axis.encoding.ser.SimpleDeserializerFactory.<init>(SimpleDeserializerFactory.java:54) at org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(BaseDeserializerFactory.java:208) at com.cisco.www.AXLAPIService.AXLAPIBindingStub.addBindings2(AXLAPIBindingStub.java:10126) at com.cisco.www.AXLAPIService.AXLAPIBindingStub.<init>(AXLAPIBindingStub.java:8455) at com.cisco.www.AXLAPIService.AXLAPIBindingStub.<init>(AXLAPIBindingStub.java:8429) at com.cisco.www.AXLAPIService.AXLAPIServiceLocator.getAXLPort(AXLAPIServiceLocator.java:55) at com.cisco.www.AXLAPIService.AXLAPIServiceLocator.getAXLPort(AXLAPIServiceLocator.java:50)
exeption already seen at 7.1 schema but seems not to be a problem:
org.apache.axis.ConfigurationException: No service named AXLPort is available org.apache.axis.ConfigurationException: No service named AXLPort is available at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233) at org.apache.axis.AxisEngine.getService(AxisEngine.java:311) at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756) at org.apache.axis.client.Call.invoke(Call.java:2690) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.cisco.www.AXLAPIService.AXLAPIBindingStub.listUser(AXLAPIBindingStub.java:39216)
...
org.apache.axis.ConfigurationException: No service named CUCMB ver=8.5 listUser is available org.apache.axis.ConfigurationException: No service named CUCMB ver=8.5 listUser is available at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233) at org.apache.axis.AxisEngine.getService(AxisEngine.java:311) at org.apache.axis.MessageContext.setTargetService(MessageContext.java:756) at org.apache.axis.transport.http.HTTPTransport.setupMessageContextImpl(HTTPTransport.java:89) at org.apache.axis.client.Transport.setupMessageContext(Transport.java:46) at org.apache.axis.client.Call.invoke(Call.java:2738) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at com.cisco.www.AXLAPIService.AXLAPIBindingStub.listUser(AXLAPIBindingStub.java:39216)
ListUser works also with schema 8.6 now
Subject: RE: WSDL2JAVA problems at CUCM8.5 Replied by: Thies van Gunst on 16-04-2012 05:10:42 AM Hi,
for adding a "Translation Pattern" addTransPattern() I need to add a AddTransPatternReq containing a required param XPatternUsage. But this class is one of the above mentioned which causes warnings during code generation. The class XPatternUsage has a constructor with empty params, no setter-functions or any publich member variables. So there is no way to set usage to "Translation" or anything else. The class XPatternUsageNull conains much of public member variables. But this class cann not be used for AddTransPatternReq
What can be done to fix this? Changes on wsdl-file? merge XPatternUsageNull.java and XPatternUsage.java ?
Subject: RE: WSDL2JAVA problems at CUCM8.5 Replied by: Thies van Gunst on 19-04-2012 10:23:02 AM HI,
I found out some more things causing the warnings during code generation (as already mentioned here, the generated classes where the warning during generation had occurred causes also problems at runtime) All warnings have in common, that they use "union" (new since 8.0) within AXLSoap.xsp. axis1-4 does not like members within the union without names
I think the extension ">e1" will cause at runtime. (was not able to check it at the moment)
By this I have also seen, that no class with E2 in its name was generated. I checked then every second union-member. All are empty! I added one entry to check this again and what a surprise I got a class containing E2 in its name. But this means that if no names are added to the union-members, the files which have "null" in its file name are the needed ones!. All other classes where a class with "null" in its name exists are empty skeletons! If for example the files XZzuserInfo.java and XZzntpmode.java are compared they only differ in the class name.
Any idea for a workaround? I think it should be done within AXLSoap.xsd as there are 266 unions with this problem. Changing 266 generated files does not make sense.
Subject: RE: WSDL2JAVA problems at CUCM8.5 Replied by: Thies van Gunst on 27-04-2012 01:11:01 AM Hi,
a solution for me is now to replace all unions within AXLSoap.xsd by its first member.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: