3

シスコが AXLAPI Web サービス用に提供する WSDL は、WCF Add Service Reference または ASMX Add Web Reference では使用できません。これにより、Xml シリアライザーで爆発するコードが生成されます。

どうやら WSDL は Java ツールキットから正常に動作するようです

Web サービスで必要な操作は、doAuthenticateUser だけです。誰かが要求メッセージの例を持っているので、受け入れられるメッセージを送信するために何を構築する必要があるかがわかりますか?

4

1 に答える 1

0

これを完了するために、Cisco フォーラムからこの応答を得たところです。

サンプルリクエスト:

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>
于 2012-01-21T07:11:05.847 に答える