【问题标题】:Example doAuthenticateUser request message in CUCM 8.5 AXLAPICUCM 8.5 AXLAPI 中的示例 doAuthenticateUser 请求消息
【发布时间】:2023-06-30 19:06:02
【问题描述】:
Cisco 为其 AXLAPI Web 服务提供的 WSDL 不能被 WCF Add Service Reference 或 ASMX Add Web Reference 使用 - 它产生的代码会在 Xml 序列化器中崩溃
显然 WSDL 在 Java 工具包中运行良好
我只需要在 Web 服务上使用一项操作 - doAuthenticateUser。有没有人有一个示例请求消息,所以我可以看到我必须构建什么来发送被接受的消息?
【问题讨论】:
标签:
java
c#
soap
cisco
cisco-axl
【解决方案1】:
刚刚从思科论坛收到此回复,请完成此操作:
样品请求:
POST https://10.88.131.141:8443/axl/ HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "CUCM B ver=8.5 doAuthenticateUser"
User-Agent: Jakarta Commons-HttpClient/3.1
Content-Length: 444
Authorization: Basic QWRtaW5pc3RyYXRvcjpjaXNjbyExMjM=
Host: 10.88.131.141:8443
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5">
<soapenv:Header/>
<soapenv:Body>
<ns:doAuthenticateUser sequence="1">
<userid>cupuser1</userid>
<!--You have a CHOICE of the next 2 items at this level-->
<password>password</password>
<!-- <pin>?</pin> -->
</ns:doAuthenticateUser>
</soapenv:Body>
</soapenv:Envelope>
以及对良好措施的回应
HTTP/1.1 200 OK
Set-Cookie: JSESSIONIDSSO=583F6C1C226B2F4A601CA578577404B5; Path=/; Secure
Set-Cookie: JSESSIONID=F4A215575091DB7A443F6179168AC897; Path=/axl; Secure
Content-Type: text/xml;charset=UTF-8
Content-Length: 373
Date: Fri, 20 Jan 2012 23:30:03 GMT
Server:
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns:doAuthenticateUserResponse xmlns:ns="http://www.cisco.com/AXL/API/8.5">
<return>
<userAuthenticated>true</userAuthenticated>
<code>0</code>
<daysToExpiry>0</daysToExpiry>
</return>
</ns:doAuthenticateUserResponse>
</soapenv:Body>
</soapenv:Envelope>