12-16-2024 04:51 AM
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.
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
Solved! Go to Solution.
12-17-2024 01:51 PM
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
12-17-2024 01:51 PM
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
01-10-2025 04:07 AM
Many thanks!!!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide