cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
535
Views
0
Helpful
4
Replies

AXIS AXLPort

zacharyshaw
Level 1
Level 1

So this is my second attempt at posting on how to set the username / password for the AXLPort object that AXIS generates from cisco's WSDL. Best forum software ever!

So if you're using the AXLAPIServiceLocator.getPort(url) function... (which I believe you should be using) then you'll notice this returns an AXLPort. If you look at the source you'll see that AXLPort is actually an AXLAPIBindingStub object. This object implements AXLPort (which is an interface) and extends Stub. All you have to do is cast the returned port to a Stub or AXLAPIBindingStub and then you can set the username and password.

Let me know if that helps.

4 Replies 4

Sascha Monteiro
Level 6
Level 6

AXLPort port = loc.getAXLPort(endpoint, usrName.getText(),new String(passWord.getPassword()));

I managed to solve this differently. Instead of specifying login and password in the constructor, I put them into the service URL (so http://login:pass@myccm/....), but I suppose in the end it's all the same.

I fully agree on the comment about the forum software. It's a disgrace. Not only is the board software very limited, the server also seems seriously underpowered.. I have some firsthand experience on how a board reacts when it cannot take the load.. it gets to a crawl, and this board constantly does that (besides not making what you want, posting nothing, double posting, losing attachments, etc).

A bit OT, but has either of you managed to get getPhone or getDeviceProfile working? All I get are invalid parameter exceptions for getPhone and invalid data from getDeviceProfile. Then I went to my old AXLconnector that sends plaintext XML, and it did work out just fine. So far I only have list operations working using the Axis generated classes from the WSDL.

I'm going to upload my newest axl.xsd and axlsoap.xsd these are finished for me until I find another error . The only problem is your CM may have data that my CM doesn't have so you may run into issues that I didn't run into.

BTW getPhone does work for me.

I would suggest using something like tcpmon to look at the messages as the go out over the wire... it's been very helpful in debugging the axl stubs.

s.monteiro - Right that will work, but my only concern is that when generating new stubs from the WSDL you'll have to remember to modify the source again.