首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CUCM8.5AXLAPI中的doAuthenticateUser请求消息示例

CUCM8.5AXLAPI中的doAuthenticateUser请求消息示例
EN

Stack Overflow用户
提问于 2012-01-18 22:54:04
回答 1查看 1.6K关注 0票数 3

Cisco为其AXLAPI web服务提供的WSDL不能由WCF Add service Reference或ASMX Add Web Reference使用-它生成的代码会在Xml序列化程序中崩溃

显然,WSDL在Java工具包中工作得很好

我只需要在web服务上使用一个操作- doAuthenticateUser。有没有人有一个示例请求消息,以便我可以看到我必须构建什么才能发送被接受的消息?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-01-21 15:11:06

刚刚从思科论坛获得此回复,因此要完成此操作:

示例请求:

代码语言:javascript
复制
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>

和一个好的措施的回应

代码语言:javascript
复制
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>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8912195

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档