| Both sides previous revision Previous revision Next revision | Previous revision |
| tech-notes:soap [2020/03/08 15:41] – [example soap request] gerardorourke | tech-notes:soap [2020/03/08 15:43] (current) – [Request] gerardorourke |
|---|
| ==== Request ==== | ==== Request ==== |
| <code xml> | <code xml> |
| POST /axl/ HTTP/1.1[\r][\n]" | POST /axl/ HTTP/1.1[\r][\n] |
| Accept-Encoding: gzip,deflate[\r][\n]" | Accept-Encoding: gzip,deflate[\r][\n] |
| Content-Type: text/xml;charset=UTF-8[\r][\n]" | Content-Type: text/xml;charset=UTF-8[\r][\n] |
| SOAPAction: "CUCM:DB ver=12.5 listPhone"[\r][\n]" | SOAPAction: "CUCM:DB ver=12.5 listPhone"[\r][\n] |
| Content-Length: 373[\r][\n]" | Content-Length: 373[\r][\n] |
| Host: uc-cucm12-a.lab2.purplepi.ie:8443[\r][\n]" | Host: uc-cucm12-a.lab2.purplepi.ie:8443[\r][\n] |
| Connection: Keep-Alive[\r][\n]" | Connection: Keep-Alive[\r][\n] |
| User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]" | User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n] |
| Authorization: Basic YWRtaW46VUNMYWI1NTUh[\r][\n]" | Authorization: Basic YWRtaW46VBanaNana[\r][\n] |
| [\r][\n]" | [\r][\n] |
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5">[\n]" | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5">[\n] |
| <soapenv:Header/>[\n]" | <soapenv:Header/>[\n] |
| <soapenv:Body>[\n]" | <soapenv:Body>[\n] |
| <ns:listPhone sequence="">[\n]" | <ns:listPhone sequence="">[\n] |
| <searchCriteria>[\n]" | <searchCriteria>[\n] |
| <name>SEP38ED1855072B</name>[\n]" | <name>SEP38ED1855072B</name>[\n] |
| </searchCriteria>[\n]" | </searchCriteria>[\n] |
| </ns:listPhone>[\n]" | </ns:listPhone>[\n] |
| </soapenv:Body>[\n]" | </soapenv:Body>[\n] |
| </soapenv:Envelope>" | </soapenv:Envelope> |
| | </code> |
| | |
| | ==== Response ==== |
| | <code xml> |
| | HTTP/1.1 200 OK[\r][\n] |
| | Set-Cookie: JSESSIONIDSSO=B4A025E2E6D217919182E9F7DC5B4B17; Path=/; Secure; HttpOnly[\r][\n] |
| | Set-Cookie: JSESSIONID=B1E17230D7D4385B17A37566085BDA67; Path=/axl; Secure; HttpOnly[\r][\n] |
| | X-Frame-Options: SAMEORIGIN[\r][\n] |
| | Strict-Transport-Security: max-age=31536000; includeSubdomains[\r][\n] |
| | Content-Security-Policy: default-src *; script-src * 'unsafe-inline' 'unsafe-eval';style-src * 'unsafe-inline'; img-src * data: 'unsafe-inline';[\r][\n] |
| | X-Content-Type-Options: nosniff[\r][\n] |
| | X-XSS-Protection: 1; mode=block[\r][\n] |
| | Content-Type: text/xml;charset=UTF-8[\r][\n] |
| | Transfer-Encoding: chunked[\r][\n] |
| | Date: Sun, 08 Mar 2020 15:33:46 GMT[\r][\n] |
| | Server: [\r][\n] |
| | [\r][\n] |
| | 1509[\r][\n] |
| | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/12.5"> |
| | <soapenv:Body> |
| | <ns:listPhoneResponse> |
| | <return> |
| | <phone uuid="{6A510679-B54C-E104-7C2E-101700F22D4E}"> |
| | <name>SEP38ED1855072B</name> |
| | <description>7841</description> |
| | <product>Cisco 7841</product> |
| | <model>Cisco 7841</model> |
| | <class>Phone</class> |
| | <protocol>SIP</protocol> |
| | <protocolSide>User</protocolSide> |
| | <callingSearchSpaceName uuid="{15DD4FE2-2823-702D-892D-1228637D66DB}">PhoneStandard</callingSearchSpaceName> |
| | <devicePoolName uuid="{1B1B9EB6-7803-11D3-BDF0-00108302EAD1}">Default</devicePoolName> |
| | <commonDeviceConfigName/> |
| | <commonPhoneConfigName uuid="{AC243D17-98B4-4118-8FEB-5FF2E1B781AC}">Standard Common Phone Profile</commonPhoneConfigName> |
| | <networkLocation>Use System Default</networkLocation> |
| | <locationName uuid="{29C5C1C4-8871-4D1E-8394-0B9181E8C54D}">Hub_None</locationName> |
| | <mediaResourceListName/> |
| | <automatedAlternateRoutingCssName/> |
| | <aarNeighborhoodName/> |
| | <traceFlag>false</traceFlag> |
| | <mlppIndicationStatus>Default</mlppIndicationStatus> |
| | <preemption>Default</preemption> |
| | <useTrustedRelayPoint>Default</useTrustedRelayPoint> |
| | <retryVideoCallAsAudio>true</retryVideoCallAsAudio> |
| | <securityProfileName uuid="{52EFA787-94FD-45F4-9520-724B75D52385}">Cisco 7841 - Standard SIP Non-Secure Profile</securityProfileName> |
| | <sipProfileName uuid="{FCBC7581-4D8D-48F3-917E-00B09FB39213}">Standard SIP Profile</sipProfileName> |
| | <cgpnTransformationCssName/> |
| | <useDevicePoolCgpnTransformCss>true</useDevicePoolCgpnTransformCss> |
| | <geoLocationName/> |
| | <geoLocationFilterName/> |
| | <sendGeoLocation>false</sendGeoLocation> |
| | <numberOfButtons>10</numberOfButtons> |
| | <phoneTemplateName uuid="{9ECD1730-28BA-5228-E758-5C202E921143}">SEP38ED1855072B-SIP-Individual Template</phoneTemplateName> |
| | <primaryPhoneName/> |
| | <ringSettingIdleBlfAudibleAlert>Default</ringSettingIdleBlfAudibleAlert> |
| | <ringSettingBusyBlfAudibleAlert>Default</ringSettingBusyBlfAudibleAlert> |
| | <softkeyTemplateName/> |
| | <defaultProfileName/> |
| | <enableExtensionMobility>true</enableExtensionMobility> |
| | <currentProfileName uuid="{63E5BA9F-B194-B472-FD6F-597238A73292}">Bob 12022</currentProfileName> |
| | <loginTime>1583168659</loginTime> |
| | <loginDuration>0</loginDuration> |
| | <currentConfig> |
| | <phoneTemplateName uuid="{9ECD1730-28BA-5228-E758-5C202E921143}">SEP38ED1855072B-SIP-Individual Template</phoneTemplateName> |
| | <mlppIndicationStatus>Default</mlppIndicationStatus> |
| | <preemption>Default</preemption> |
| | <softkeyTemplateName/> |
| | <ignorePresentationIndicators>false</ignorePresentationIndicators> |
| | <singleButtonBarge>Off</singleButtonBarge> |
| | <joinAcrossLines>Off</joinAcrossLines> |
| | <callInfoPrivacyStatus>Default</callInfoPrivacyStatus> |
| | <dndStatus>false</dndStatus> |
| | <dndOption>Use Common Phone Profile Setting</dndOption> |
| | <alwaysUsePrimeLine>Default</alwaysUsePrimeLine> |
| | <alwaysUsePrimeLineForVoiceMessage>Default</alwaysUsePrimeLineForVoiceMessage> |
| | <emccCallingSearchSpaceName/> |
| | <deviceName>SEP38ED1855072B</deviceName> |
| | </currentConfig> |
| | <singleButtonBarge>Off</singleButtonBarge> |
| | <joinAcrossLines>Off</joinAcrossLines> |
| | <builtInBridgeStatus>Default</builtInBridgeStatus> |
| | <callInfoPrivacyStatus>Default</callInfoPrivacyStatus> |
| | <hlogStatus>On</hlogStatus> |
| | <ownerUserName/> |
| | <ignorePresentationIndicators>false</ignorePresentationIndicators> |
| | <packetCaptureMode>None</packetCaptureMode> |
| | <packetCaptureDuration>0</packetCaptureDuration> |
| | <subscribeCallingSearchSpaceName/> |
| | <rerouteCallingSearchSpaceName/> |
| | <allowCtiControlFlag>true</allowCtiControlFlag> |
| | <presenceGroupName uuid="{AD243D17-98B4-4118-8FEB-5FF2E1B781AC}">Standard Presence group</presenceGroupName> |
| | <unattendedPort>false</unattendedPort> |
| | <requireDtmfReception>false</requireDtmfReception> |
| | <rfc2833Disabled>false</rfc2833Disabled> |
| | <certificateOperation>No Pending Operation</certificateOperation> |
| | <authenticationMode>By Null String</authenticationMode> |
| | <keySize>2048</keySize> |
| | <keyOrder>RSA Only</keyOrder> |
| | <authenticationString/> |
| | <certificateStatus>None</certificateStatus> |
| | <upgradeFinishTime/> |
| | <deviceMobilityMode>Default</deviceMobilityMode> |
| | <roamingDevicePoolName/> |
| | <remoteDevice>false</remoteDevice> |
| | <dndOption>Use Common Phone Profile Setting</d" |
| | ndOption> |
| | <dndStatus>false</dndStatus> |
| | <isActive>true</isActive> |
| | <isDualMode>false</isDualMode> |
| | <mobilityUserIdName/> |
| | <phoneSuite>Default</phoneSuite> |
| | <phoneServiceDisplay>Default</phoneServiceDisplay> |
| | <isProtected>false</isProtected> |
| | <mtpRequired>false</mtpRequired> |
| | <mtpPreferedCodec>711ulaw</mtpPreferedCodec> |
| | <dialRulesName/> |
| | <sshUserId/> |
| | <outboundCallRollover>No Rollover</outboundCallRollover> |
| | <hotlineDevice>false</hotlineDevice> |
| | <alwaysUsePrimeLine>Default</alwaysUsePrimeLine> |
| | <alwaysUsePrimeLineForVoiceMessage>Default</alwaysUsePrimeLineForVoiceMessage> |
| | <featureControlPolicy/> |
| | <deviceTrustMode>Not Trusted</deviceTrustMode> |
| | <earlyOfferSupportForVoiceCall>false</earlyOfferSupportForVoiceCall> |
| | <AllowPresentationSharingUsingBfcp>false</AllowPresentationSharingUsingBfcp> |
| | <confidentialAccess> |
| | <confidentialAccessLevel>-1</confidentialAccessLevel> |
| | </confidentialAccess> |
| | <requireOffPremiseLocation>false</requireOffPremiseLocation> |
| | <allowiXApplicableMedia>false</allowiXApplicableMedia> |
| | <enableCallRoutingToRdWhenNoneIsActive>false</enableCallRoutingToRdWhenNoneIsActive> |
| | <enableActivationID>false</enableActivationID> |
| | <mraServiceDomain/> |
| | <allowMraMode>false</allowMraMode> |
| | </phone> |
| | </return> |
| | </ns:listPhoneResponse> |
| | </soapenv:Body> |
| | </soapenv:Envelope>[\n] |
| | <!--This API has been processed by GAXL not AXL-->" |
| | [\r][\n] |
| | 0[\r][\n] |
| | [\r][\n] |
| </code> | </code> |