I am using the ApacheAxis provider for WSIF attempting to invoke the zip2geo web service. Below is the output from two executions of the same web service. The first execution request/response pair was obtained after executing the service from an online application enabling access to any web service. The second execution request/response pair was obtained after executing the service from my WSIF application via ApacheAxis. Notice that while the SOAP requests are _nearly_ alike, they have slight differences, and I do not receive the correct data in my response while the former does.
Couple of questions: 1) What SOAP request differences could cause this behavior? 2) Since the Web Service is remote, what recommendations can you give as to determine what is happening on the server side? I would have expected a SOAP Fault message instead of no data. Thanks. Rhett ====== Web Application at http://68.15.0.221/scripts/mgwms32.dll?MGWLPN=LOCAL&wlapp=EXTCCLIENT ======= --- request --- POST /ziptogeo/zip2geo.asmx HTTP/1.0 Host: ws.cdyne.com Content-Type: text/xml Content-Length: 686 SOAPAction: "http://ws.cdyne.com/GetLatLong" <?xml version='1.0'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV ='http://schemas.xmlsoap.org/soap/envelope/' xmlns:SOAP-ENC ='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s ='http://www.w3.org/2001/XMLSchema' xmlns:s0='http://ws.cdyne.com' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tm ='http://microsoft.com/wsdl/mime/textMatching/' xmlns:xsi ='http://www.w3.org/2001/XMLSchema-instance'> <SOAP-ENV:Body> <ns1:GetLatLong xmlns:ns1='http://ws.cdyne.com'> <ns1:zipcode xsi:type='s:string'> 80231 </ns1:zipcode> <ns1:LicenseKey xsi:type='s:string'/> </ns1:GetLatLong> </SOAP-ENV:Body> </SOAP-ENV:Envelope> --- response --- <?xml version='1.0' encoding='utf-8'?> <soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd ='http://www.w3.org/2001/XMLSchema'> <soap:Body> <GetLatLongResponse xmlns='http://ws.cdyne.com'> <GetLatLongResult> <ServiceError> false </ServiceError> <AddressError> false </AddressError> <City> DENVER </City> <StateAbbrev> CO </StateAbbrev> <ZipCode> 80231 </ZipCode> <County> DENVER </County> <FromLongitude> -104.872308 </FromLongitude> <FromLatitude> 39.69413 </FromLatitude> <ToLongitude> -104.872308 </ToLongitude> <ToLatitude> 39.693497 </ToLatitude> <AvgLongitude> -104.871705 </AvgLongitude> <AvgLatitude> 39.6938135 </AvgLatitude> <CMSA> 2082 </CMSA> <PMSA> 2080 </PMSA> </GetLatLongResult> </GetLatLongResponse> </soap:Body> </soap:Envelope> ====== My application ======= --- request --- <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope 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:Body> <GetLatLong xmlns="http://ws.cdyne.com"> <zipcode xsi:type="xsd:string" xmlns="">80231</zipcode> <LicenseKey xsi:type="xsd:string" xmlns=""></LicenseKey> </GetLatLong> </soapenv:Body> </soapenv:Envelope> --- response --- HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Mon, 13 Jan 2003 21:23:19 GMT Cache-Control: no-cache Pragma: no-cache Content-Type: text/xml; charset=utf-8 Content-Length: 628 <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd ="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetLatLongResponse xmlns="http://ws.cdyne.com"> <GetLatLongResult> <ServiceError>false</ServiceError> <AddressError>false</AddressError> <City /> <StateAbbrev /> <ZipCode /> <FromLongitude>0</FromLongitude> <FromLatitude>0</FromLatitude> <ToLongitude>0</ToLongitude><ToLatitude>0</ToLatitude> <AvgLongitude>0</AvgLongitude> <AvgLatitude>0</AvgLatitude> </GetLatLongResult> </GetLatLongResponse> </soap:Body> </soap:Envelope> Rhett DeWall Sybase Inc. 3665 Discovery Drive Boulder, CO 80303 303/413-4163
