cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1097
Views
0
Helpful
0
Replies

Requests not returing information in SOAPUI

Joseph Jacobs
Level 4
Level 4

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/media/PAWS_Developer_Guide/index.html?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.

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: