Author: shawkins
Date: 2011-11-22 11:58:35 -0500 (Tue, 22 Nov 2011)
New Revision: 3688
Modified:
branches/7.6.x/build/kits/jboss-container/teiid-examples/dynamicvdb-ws-weather/README.txt
branches/7.6.x/build/kits/jboss-container/teiid-examples/dynamicvdb-ws-weather/weather-ds.xml
branches/7.6.x/build/kits/jboss-container/teiid-examples/dynamicvdb-ws-weather/weather-vdb.xml
Log:
TEIID-1839 updated the current example to use the new urls and message mode to avoid an
error parsing the response
Modified:
branches/7.6.x/build/kits/jboss-container/teiid-examples/dynamicvdb-ws-weather/README.txt
===================================================================
---
branches/7.6.x/build/kits/jboss-container/teiid-examples/dynamicvdb-ws-weather/README.txt 2011-11-22
16:25:33 UTC (rev 3687)
+++
branches/7.6.x/build/kits/jboss-container/teiid-examples/dynamicvdb-ws-weather/README.txt 2011-11-22
16:58:35 UTC (rev 3688)
@@ -38,18 +38,20 @@
2. SOAP11 RPC call providing all of the parameter values for the invoke procedure. With
a SOAP
invocation, the action is used to convey the SOAPAction header value if needed. Also
note
the use of the endpoint here with an absolute URL, which will be used instead of the
default
-on the datasource.
+on the datasource. We are also using the DefaultServiceMode of MESSAGE (see the
weather-vdb.xml file)
+to use the full SOAP message request and response.
select xmlserialize(document w.result as string) from
- (call
weather.invoke(action=>'http://www.weather.gov/forecasts/xml/DWMLg...;,
-
endpoint=>'http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXM...;,
+ (call
weather.invoke(action=>'http://graphical.weather.gov/xml/SOAP_serv...;,
+
endpoint=>'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLser...;,
binding=>'SOAP11',
request=>'
- <ns1:LatLonListZipCode
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
-
xmlns:ns1="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML...
- <zipCodeList xsi:type="ns2:zipCodeListType"
xmlns:ns2="http://www.weather.gov/forecasts/xml/DWMLgen/schema/DWML....
- </ns1:LatLonListZipCode>')) as w
+ <SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
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"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
+ <SOAP-ENV:Body>
+ <ns8077:LatLonListZipCode xmlns:ns8077="uri:DWMLgen">
+ <listZipCodeList xsi:type="xsd:string">20910
25414</listZipCodeList>
+ </ns8077:LatLonListZipCode>
+ </SOAP-ENV:Body>
+ </SOAP-ENV:Envelope>')) as w
-See the DatabaseMetadata on the invoke procedure for a full description of the
parameters.
-
+See the Reference or retrieve the JDBC DatabaseMetadata on the invoke procedure for a
full description of the parameters.
Modified:
branches/7.6.x/build/kits/jboss-container/teiid-examples/dynamicvdb-ws-weather/weather-ds.xml
===================================================================
---
branches/7.6.x/build/kits/jboss-container/teiid-examples/dynamicvdb-ws-weather/weather-ds.xml 2011-11-22
16:25:33 UTC (rev 3687)
+++
branches/7.6.x/build/kits/jboss-container/teiid-examples/dynamicvdb-ws-weather/weather-ds.xml 2011-11-22
16:58:35 UTC (rev 3688)
@@ -7,7 +7,7 @@
<rar-name>teiid-connector-ws.rar</rar-name>
<connection-definition>javax.resource.cci.ConnectionFactory</connection-definition>
- <config-property
name="EndPoint">http://www.weather.gov/forecasts/xml/sample_...
+ <config-property
name="EndPoint">http://graphical.weather.gov/xml/sample_prod...
<max-pool-size>20</max-pool-size>
Modified:
branches/7.6.x/build/kits/jboss-container/teiid-examples/dynamicvdb-ws-weather/weather-vdb.xml
===================================================================
---
branches/7.6.x/build/kits/jboss-container/teiid-examples/dynamicvdb-ws-weather/weather-vdb.xml 2011-11-22
16:25:33 UTC (rev 3687)
+++
branches/7.6.x/build/kits/jboss-container/teiid-examples/dynamicvdb-ws-weather/weather-vdb.xml 2011-11-22
16:58:35 UTC (rev 3688)
@@ -2,7 +2,7 @@
<vdb name="weather" version="1">
<!--
- See the dynamicvdb Portfolio example, or
http://community.jboss.org/wiki/DynamicVDBinTeiid70
+ See the dynamicvdb Portfolio example, or the Reference
for more information on the format of a vdb.xml file.
-->
@@ -16,6 +16,7 @@
<translator name="MessageWeather" type="ws">
<property name="DefaultBinding" value="HTTP"/>
+ <property name="DefaultServiceMode" value="MESSAGE"/>
</translator>
</vdb>
\ No newline at end of file