cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
933
Views
0
Helpful
5
Replies

Exceptions when using WSDL generated AXIS Proxy on CCM 6.1

simon.ryf
Level 1
Level 1

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?

5 Replies 5

Tim Smith
Level 4
Level 4

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.

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

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

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.

tleung888
Level 1
Level 1

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