steve1589
14 years agoNew Contributor
Property Transfer
I am trying to preform a property transfer from a value in one test step to an attribute in the next test step. I have tried looking in the posts here but nothing that seems to be of any help to me. I am trying to transfer the value "ObservationType" from the WFS getCapabilities response <ns6:Name>ObservationType</ns6:Name> to the WFS getFeature <wfs:Query typeName="ObservationType"/>.
Here is the first test step response:
velope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns6:WFS_Capabilities version="1.1.0"
xmlns:ns2="http://www.opengis.net/ogc"
xmlns:ns3="http://www.opengis.net/gml"
xmlns:ns4="http://www.w3.org/1999/xlink"
xmlns:ns5="http://www.opengis.net/swe/1.0.1"
xmlns:ns6="http://www.opengis.net/wfs"
xmlns:ns7="http://www.opengis.net/om/1.0"
xmlns:ns8="http://www.opengis.net/sensorML/1.0.1"
xmlns:ns10="urn:us:mil:ces:metadata:ddms:4"
xmlns:ns12="http://www.opengis.net/gml/3.2"
xmlns:ns15="http://www.opengis.net/sampling/1.0"
xmlns:ns16="http://www.w3.org/2001/SMIL20/"
xmlns:ns18="http://www.opengis.net/sos/1.0"
xmlns:ns20="http://www.opengis.net/ows"
xmlns:ns21="http://www.opengis.net/wfs-util"
xmlns:ns22="http://www.w3.org/2001/SMIL20/Language">
...
<ns6:FeatureTypeList>
<ns6:Operations>
<ns6:Operation>Query</ns6:Operation>
</ns6:Operations>
<ns6:FeatureType>
<ns6:Name>ObservationType</ns6:Name>
<ns6:Title>ObservationType</ns6:Title>
...
</ns6:FeatureType>
</ns6:FeatureTypeList>
...
</ns6:WFS_Capabilities>
</S:Body>
</S:Envelope>
Here is the receiving test step request:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wfs="http://www.opengis.net/wfs">
<soapenv:Header/>
<soapenv:Body>
<wfs:GetFeature service="WFS" version="1.1.0">
<wfs:Query typeName="ObservationType"/>
</wfs:GetFeature>
</soapenv:Body>
</soapenv:Envelope>
I realize I need to make a change to the getFeature request; add in a "variable" substitution. Finding documentation on this is not easy. I am in the process of going through the on-line tutorials for the second time; although with soapUI Pro this time. I am not proficient in groovy ... yet.
Any help would greatly be appreciated.
Steve
Here is the first test step response:
velope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns6:WFS_Capabilities version="1.1.0"
xmlns:ns2="http://www.opengis.net/ogc"
xmlns:ns3="http://www.opengis.net/gml"
xmlns:ns4="http://www.w3.org/1999/xlink"
xmlns:ns5="http://www.opengis.net/swe/1.0.1"
xmlns:ns6="http://www.opengis.net/wfs"
xmlns:ns7="http://www.opengis.net/om/1.0"
xmlns:ns8="http://www.opengis.net/sensorML/1.0.1"
xmlns:ns10="urn:us:mil:ces:metadata:ddms:4"
xmlns:ns12="http://www.opengis.net/gml/3.2"
xmlns:ns15="http://www.opengis.net/sampling/1.0"
xmlns:ns16="http://www.w3.org/2001/SMIL20/"
xmlns:ns18="http://www.opengis.net/sos/1.0"
xmlns:ns20="http://www.opengis.net/ows"
xmlns:ns21="http://www.opengis.net/wfs-util"
xmlns:ns22="http://www.w3.org/2001/SMIL20/Language">
...
<ns6:FeatureTypeList>
<ns6:Operations>
<ns6:Operation>Query</ns6:Operation>
</ns6:Operations>
<ns6:FeatureType>
<ns6:Name>ObservationType</ns6:Name>
<ns6:Title>ObservationType</ns6:Title>
...
</ns6:FeatureType>
</ns6:FeatureTypeList>
...
</ns6:WFS_Capabilities>
</S:Body>
</S:Envelope>
Here is the receiving test step request:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wfs="http://www.opengis.net/wfs">
<soapenv:Header/>
<soapenv:Body>
<wfs:GetFeature service="WFS" version="1.1.0">
<wfs:Query typeName="ObservationType"/>
</wfs:GetFeature>
</soapenv:Body>
</soapenv:Envelope>
I realize I need to make a change to the getFeature request; add in a "variable" substitution. Finding documentation on this is not easy. I am in the process of going through the on-line tutorials for the second time; although with soapUI Pro this time. I am not proficient in groovy ... yet.
Any help would greatly be appreciated.
Steve