cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
805
Views
1
Helpful
2
Replies

CUCM PAWS - Request

brunofalco
Level 1
Level 1

Hey all,

I’ve been struggling to create some PAWS request.
I tried using SOAP UI and also Postman. I get errors in both.

Can someone guide me please?

For example, I’m trying this one: getMyClusterNode

This is what I am doing on Postman:

The authentication is basic Auth, and I'm sending my cucm credentials.

POST:  https://cucm:8443/platform-services/services/ClusterNodesService.ClusterNodesServiceHttpsSoap11Endpoint/

Headers:
Content-Type: text/xml
Action: urn:getMyClusterNode

Body:
<SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance>
   <SOAP-ENV:Header xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/08/addressing>
      <wsa:Action>urn:getMyClusterNode</wsa:Action>
      <wsa:MessageID>uuid:cd3169b4-9595-4b60-bbfa-ae768423dbea</wsa:MessageID>
      <wsa:ReplyTo>
         <wsa:Address>http://server/servlet/WSACallBackHandler</wsa:Address>
         <wsa:PortType xmlns:ns1=http://example.org>ns1:LocalPart</wsa:PortType>
      </wsa:ReplyTo>
      <wsa:To>https://server/platform-services/services/ClusterNodesService.ClusterNodesServiceHttpSoap11Endpoint/</wsa:To>
   </SOAP-ENV:Header>
   <SOAP-ENV:Body>
      <getMyClusterNode xmlns=https://cucm:8443/platform-services/services/ClusterNodesService.ClusterNodesServiceHttpsSoap11Endpoint/ />
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

When I run this request, I have the result 202 Accepted, and it returns only the number 1

brunofalco_0-1734353304735.png

 

 

1 Accepted Solution

Accepted Solutions

DavidStaudt
Level 1
Level 1

The way you are specifying the wsa:ReplyTo indicates you are making the request for asynchronous execution.  As such, PAWS affirmatively accepts the request and returns HTTP 202 Accepted, and would then send the reply to the specified wsa:PortType URL via HTTP POST when completed (i.e. immediately).  TBH I'm not sure why it returns a solitary '1' to the original request..?
If you want a synchronous response (i.e. what's normally expected), you would send the wsa:Address as http://www.w3.org/2005/08/addressing/anonymous and ommit the wsa:PortType element.
I have a few PAWS Python samples in this project that might be helpful: https://github.com/davidstaudt/paws-python-zeep-samples

View solution in original post

2 Replies 2

DavidStaudt
Level 1
Level 1

The way you are specifying the wsa:ReplyTo indicates you are making the request for asynchronous execution.  As such, PAWS affirmatively accepts the request and returns HTTP 202 Accepted, and would then send the reply to the specified wsa:PortType URL via HTTP POST when completed (i.e. immediately).  TBH I'm not sure why it returns a solitary '1' to the original request..?
If you want a synchronous response (i.e. what's normally expected), you would send the wsa:Address as http://www.w3.org/2005/08/addressing/anonymous and ommit the wsa:PortType element.
I have a few PAWS Python samples in this project that might be helpful: https://github.com/davidstaudt/paws-python-zeep-samples

Many thanks!!!