03-12-2008 10:19 AM - edited 03-13-2019 05:04 PM
Hi,
I managed to get WSDL import working on AXIS/Eclipse.
After changing several constructors and removing wrong super-class calls, all
classes validated successfully.
However, I got odd exceptions when I call certain functions from my new Proxy.
So far, only functions which retrieve detailed objects are failing.
For instance:
---------------------------------------------------------
new AXLPortProxy("https://usr:pwd@ccmip:443/axl/").getUser(new GetUserReq(new UnsignedLong(), "sryf"));
breaks at:
12.03.2008 17:44:03 org.apache.axis.client.Call invoke
SCHWERWIEGEND: Exception:
org.xml.sax.SAXException: No deserializer for {http://www.w3.org/2001/XMLSchema}anyType
....
---------------------------------------------------------
new AXLPortProxy("https://usr:pwd@ccmip:443/axl/").getPhone(phone.getUuid(),phone.getName());
breaks at
12.03.2008 17:56:00 org.apache.axis.client.Call invoke
SCHWERWIEGEND: Exception:
java.lang.NullPointerException
---------------------------------------------------------
The problem seems to be somewhere in the xml-unpacking functions, where he has wrong Namespaces.
I also tried to change the Namespace in CM Administration Webinterface under:
System > Service Parameters > Database Layer Monitor > Advanced > Send Valid Namespace in AXL Response
with no luck.
Working functions (like a charm ;):
-listPhoneByName, listUserByName, listCSSByName, getCSS, removePhone, addPhone, etc...
Details about my Environment:
-Callmanager 6.1.1.1000-11
-Eclipse 3.3.1
-AXIS 1.4 (with wsdl4j-1.5.1)
-JDK 1.5 or 1.6
-WSDL Import from (...\axlsqltoolkit\schema\6.1\WSDL-AXIS\AXLAPI.wsdl)
I'm no SOAP expert and don't have time to dig/debug deep into this.
Has anyone manged to get this working?
03-12-2008 03:40 PM
Hi,
Did you check the documentation the 6.1? I know it lists some manual changes required for .net.
I'm trying to generate a VB.net proxy class but not having much luck with that yet.
Cheers,
Tim.
03-12-2008 04:49 PM
Hi Tim
I'm trying this on Java AXIS
In the "Cisco Unified Communications Manager Developers Guide for Release 6.0(1).pdf"
Just went through "Using the AXL API in a .NET Environment" but e-thing seems to be pretty much .NET specific, which wont help me.
I already changed and tried the stuff mentioned in "Using the AXL API with AXIS" and "Returned Namespace for AXIS and .NET Applications".
Cheers,
Simon
03-12-2008 05:04 PM
Hey Tim
Sorry I'm a bit tired didnt see 6.1.
Are there any AXL related 6.1 (not 6.0(1)) Documents? Couldnt find any...
03-12-2008 11:31 PM
Hey..
Actually I was a bit tired too! I was talking about the 6.0(1) docs.. I'm hoping it is pretty much the same..
There doesnt seem to be much specific stuff around for 6.1
Cheers,
Tim.
09-08-2008 08:35 PM
Hi there,
Can someone please post a ready to import wsdl for importing into eclipse? I am totally new to programming so any help greatly appreciated. Thanks!!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide