[
https://wso2.org/jira/browse/MASHUP-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16455#action_16455
]
Keith Godwin Chapman commented on MASHUP-701:
---------------------------------------------
I tried this using Axis2. Had to hack the roiginal WSDL a bit before genarating
the stub cause axis2 does not support rpc/encoded.
Here is the request semt by axis2
POST /forecasts/xml/SOAP_server/ndfdXMLserver.php HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction:
"http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#LatLonListZipCode"
User-Agent: WSO2 Mashup Server - Version SNAPSHOT
Host: www.weather.gov
Content-Length: 650
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>http://localhost:8080/forecasts/xml/SOAP_server/ndfdXMLserver.php</wsa:To>
<wsa:MessageID>urn:uuid:046106A31908BC379B1209720520429</wsa:MessageID>
<wsa:Action>http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#LatLonListZipCode</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<p:LatLonListZipCode
xmlns:p="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl">
<zipCodeList>90210</zipCodeList>
</p:LatLonListZipCode>
</soapenv:Body>
</soapenv:Envelope>
and the response
HTTP/1.0 200 OK
Date: Fri, 02 May 2008 09:28:28 GMT
Content-Length: 967
Content-Type: text/xml; charset=ISO-8859-1
Expires: Fri, 02 May 2008 11:28:28 GMT
Cache-Control: max-age=7200
Server: Apache
X-Powered-By: PHP/5.1.6
X-SOAP-Server: NuSOAP/0.7.2 (1.107)
Vary: Accept-Encoding,User-Agent
X-Cache: MISS from squid.lk.wso2.com
X-Cache-Lookup: MISS from squid.lk.wso2.com:3128
Via: 1.1 nws-hq-cache02 (NetCache NetApp/6.0.6), 1.0 squid.lk.wso2.com:3128
(squid/2.6.STABLE13)
Connection: close
<?xml version="1.0" encoding="ISO-8859-1"?>
<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>
<ns1:LatLonListZipCodeResponse
xmlns:ns1="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl">
<listLatLonOut xsi:type="xsd:string"><?xml
version='1.0' ?><dwml version='1.0'
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.nws.noaa.gov/mdl/survey/pgb_survey/dev/DWMLgen/schema/DWML.xsd"><latLonList>34.0995,-118.414</latLonList></dwml></listLatLonOut>
</ns1:LatLonListZipCodeResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Here is the request sent by the Mashup Server JSStub
POST /forecasts/xml/SOAP_server/ndfdXMLserver.php HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction:
"http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#NDFDgenByDay"
User-Agent: WSO2 Mashup Server - Version SNAPSHOT
Host: www.weather.gov
Content-Length: 741
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>http://localhost:8080/forecasts/xml/SOAP_server/ndfdXMLserver.php</wsa:To>
<wsa:MessageID>urn:uuid:046106A31908BC379B1209720521162</wsa:MessageID>
<wsa:Action>http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#NDFDgenByDay</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<p:NDFDgenByDay
xmlns:p="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl">
<longitude>-118.414</longitude>
<numDays>1</numDays>
<startDate>2008-05-02</startDate>
<latitude>34.0995</latitude>
<format>12 hourly</format>
</p:NDFDgenByDay>
</soapenv:Body>
</soapenv:Envelope>
and the response
HTTP/1.0 500 Internal Server Error
Date: Fri, 02 May 2008 09:28:29 GMT
Content-Length: 707
Content-Type: text/xml; charset=ISO-8859-1
Expires: Fri, 02 May 2008 11:28:29 GMT
Cache-Control: max-age=7200
Server: Apache
X-Powered-By: PHP/5.1.6
Status: 500 Internal Server Error
X-SOAP-Server: NuSOAP/0.7.2 (1.107)
Vary: Accept-Encoding,User-Agent
X-Cache: MISS from squid.lk.wso2.com
X-Cache-Lookup: MISS from squid.lk.wso2.com:3128
Via: 1.1 nws-hq-cache02 (NetCache NetApp/6.0.6), 1.0 squid.lk.wso2.com:3128
(squid/2.6.STABLE13)
Connection: close
<?xml version="1.0" encoding="ISO-8859-1"?>
<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>
<SOAP-ENV:Fault>
<faultcode xsi:type="xsd:string">SERVER</faultcode>
<faultactor xsi:type="xsd:string"></faultactor>
<faultstring xsi:type="xsd:string">latitude and/or longitude are
not in the database</faultstring>
<detail xsi:type="xsd:string">Latitude = -118.414 Longitude =
1</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
> National Weather Service stub fails
> ------------------------------------
>
> Key: MASHUP-701
> URL: https://wso2.org/jira/browse/MASHUP-701
> Project: WSO2 Mashup Server
> Issue Type: Bug
> Environment: 1.0.2
> Reporter: Jonathan Marsh
> Assignee: Keith Godwin Chapman
> Fix For: 1.1
>
> Attachments: MASHUP701.js, ndfdXML.stub.js
>
>
> The enclosed stub (generated by the stub generator from
> http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl, but with a
> fixed endpoint ala MASHUP-620) fails on the NDFDgenByDay operation (though
> zipcode and other simple operations seem to work fine). The error is
> "latitude and/or longitude are not in the database" though these coordinates
> come from the service itself (and work fine when supplied to the REST
> interface to the service.) I suspect the payload is slightly corrupted, for
> example the parameter elements should probably be namespace qualified or
> something to do with rpc/encoded, but I can't google up a valid payload to
> compare against.
> The stub prints out the soap payload in the console. Can we try to invoke
> the service directly from Axis and add a successful trace here so I can
> compare it with what the stub produces?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev