I was trying to understand the PAWS interface and was using SOAPUI.
I finally got (i believed) the correct Request syntax to do various requests but when i submitted the requests I'd get nothing back from the server.
The issue was synchronous vs asynchronous requests.
https://developer.cisco.com/site/paws/documents/developer-guide/asynchronous_behavior.html
The sample requests as documented in the API guide, some would be set up for Asynchronous behavior and would have a generic WSA replyto address, but others would have the anonymous address.
For testing, I don't have a WSA server, so I needed to set the entry to Asynchronous.
Example from the API Guide:
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
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:getActiveVersion</
wsa:Action
>
<
wsa:MessageID
>uuid:c37f60b9-92eb-4c1a-8de7-873b60adce19</
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/VersionService .VersionServiceHttpSoap11Endpoint</
wsa:To
>
</
SOAP-ENV:Header
>
<
SOAP-ENV:Body
>
<
getActiveVersion
xmlns
=
"server_url"
/>
</
SOAP-ENV:Body
>
</
SOAP-ENV:Envelope
>
What I used in SOAPUI to get a response on my screen
<?xml version="1.0" encoding="UTF-8"?>
<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:getActiveVersion</wsa:Action>
<wsa:MessageID>uuid:c37f60b9-92eb-4c1a-8de7-873b60adce19</wsa:MessageID>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
<wsa:PortType xmlns:ns1="http://example.org">ns1:LocalPart</wsa:PortType>
</wsa:ReplyTo>
<wsa:To>https://server/platform-services/services/VersionService .VersionServiceHttpSoap11Endpoint</wsa:To>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<getActiveVersion xmlns="http://services.api.platform.vos.cisco.com"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Note the wsa:Address tag is different that the default tag as listed in the developer guide.
Just a heads up to anybody else who starts learning the PAWS api.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.