RE: [flexcoders] Re: Webservice - Unable to connect to endpoint ...

2005-09-28 Thread Matt Chotin










I use Ethereal for all my packet-sniffing
needs. Its pretty good, doesnt usually work with a wireless card
though.



.NET services usually can be consumed by
Flex, the case that tends to have problems is fault handling when running
proxyless.



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of joe92121
Sent: Wednesday, September 28,
2005 12:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
Webservice - Unable to connect to endpoint ...





Unfortunatly, HttpWatch only works in IE but maybe I can find 
something that works in FireFox.

I am able to call BableFish and other web services
proxy-less. I 
created a one method .Net webservice that returns
Hello World and I 
get the same error when I bypass the proxy.

Has anyone been able to create and consume a .Net
web service in Flex?

--- In flexcoders@yahoogroups.com,
Matt Chotin [EMAIL PROTECTED] wrote:
 Have you diffed what the successful request
in Firefox looked like 
using
 HttpWatch? Does your GetForums method
expect any parameters?
 
 
 
 
 
 From: flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com]
On
 Behalf Of joe92121
 Sent: Thursday, September 22, 2005 12:35 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Webservice - Unable
to connect to 
endpoint ...
 
 
 
 Here's more info
 
 I am using mx:WebService. The actual .Net
web service is in a 
 url/directory set for anonymous access. I am
able to get http 
 services to work through
useProxy=false on same and remote 
machines.
 
 I actually want to compile to swf and deploy
to server without flex 
 server installed (but licensed). This works
with http services with 
 useProxy=false for both local and remote
services. I get the same 
 error Unable to connect to
endpoint when I run the mxml from the 
 dev flex server or run the swf from a
different server .
 
 The deployed swf works in FireFox with both
http services and web 
 services. 
 
 
 
 using HttpWatch, I was able to find out that
my web service returns 
a 
 HTTP/1.1 500 Internal Server Error.. Here are
the details:
 
 Post:
 ?xml version=1.0
encoding=utf-8?
 SOAP-ENV:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-
 instance xmlns:xsd=http://www.w3.org/2001/XMLSchema
xmlns:SOAP-
 ENV=http://schemas.xmlsoap.org/soap/envelope/SOAP-
 ENV:BodyGetForums xmlns=http://jnj.com/ //SOAP-
ENV:Body/SOAP-
 ENV:Envelope
 
 Return:
 ?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
 soap:Fault

faultcodesoap:Server/faultcode
 faultstringServer was unable to
process request. --gt; The root 
 element is missing./faultstring
 detail /
 /soap:Fault
 /soap:Body
 /soap:Envelope 
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com

 
 
 
 
 
 
 YAHOO! GROUPS LINKS 
 
 
 
 * Visit your
group flexcoders
 http://groups.yahoo.com/group/flexcoders
 on the web.
   
 * To
unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]

mailto:[EMAIL PROTECTED] 
   
 * Your use of
Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/
. 
 
 
 
 










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Re: Webservice - Unable to connect to endpoint ...

2005-09-07 Thread Brian Deitte
Well, glad that it works for you now with noProxy although it is
puzzling to me that you had this problem.  I haven't seen an issue
exactly like this before, based on the logs below.  Looking at the
responses, they look exactly the same for IE and Firefox.  Given that it
works for you with noProxy, my best guess is that there is a header that
the proxy is adding or removing which is causing Firefox to go into
fits, but there doesn't look to be anything strange about the headers
given.  If you ever use a sniffer on reponse when there isn't a proxy,
I'd be interested in seeing it.  But glad things are working now.
-Brian

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of mrvinedit
 Sent: Monday, September 05, 2005 11:17 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Webservice - Unable to connect to 
 endpoint ...
 
 Good idea Brian. 
 
 In the meantime... here's what I get in my Tomcat stdout log for IE:
 
 09/05 23:00:04 INFO -- POST status: 200, reason: OK, target:
 http://ws2.serviceobjects.net/gcr/GeoCoder.asmx
 09/05 23:01:30 INFO -- POST :
 http://ws2.serviceobjects.net/gcr/GeoCoder.asmx
 09/05 23:01:30 INFO -- Header in request: cache-control : no-cache
 09/05 23:01:30 INFO -- Header in request: connection : Keep-Alive
 09/05 23:01:30 INFO -- Header in request: user-agent : Mozilla/4.0
 (compatible; MSIE 6.0; Windows NT 5.1; WHCC/0.6; SV1; .NET CLR
 1.1.4322)
 09/05 23:01:30 INFO -- Header in request: content-type : text/xml;
 charset=utf-8
 09/05 23:01:30 INFO -- Header in request: x-flash-version : 8,0,0,400
 09/05 23:01:30 INFO -- Header in request: accept : */*
 09/05 23:01:30 INFO -- Header in request: soapaction :
 http://www.serviceobjects.com/GetGeoLocation;
 09/05 23:01:30 INFO -- Begin POST request --
 09/05 23:01:30 INFO ?xml version=1.0
 encoding=utf-8?SOAP-ENV:Envelope
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/en
 velope/SOAP-ENV:BodyGetGeoLocation
 xmlns=http://www.serviceobjects.com/;Address700 W Convention
 Way/AddressCityAnaheim/CityStateCA/State
 PostalCode92802/PostalCodeLicenseKeymy_key/
 LicenseKey/GetGeoLocation/SOAP-ENV:Body/SOAP-ENV:Envelope
 09/05 23:01:30 INFO -- End POST request --
 09/05 23:01:32 INFO -- Header in response: Server : Microsoft-IIS/5.0
 09/05 23:01:32 INFO -- Header in response: Date : Tue, 06 Sep 2005
 03:01:31 GMT
 09/05 23:01:32 INFO -- Header in response: X-Powered-By : ASP.NET
 09/05 23:01:32 INFO -- Header in response: X-AspNet-Version : 1.1.4322
 09/05 23:01:32 INFO -- Header in response: Cache-Control : no-cache
 09/05 23:01:32 INFO -- Header in response: Pragma : no-cache
 09/05 23:01:32 INFO -- Header in response: Expires : -1
 09/05 23:01:32 INFO -- Header in response: Content-Type : text/xml;
 charset=utf-8
 09/05 23:01:32 INFO -- Begin POST response --
 09/05 23:01:32 INFO ?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
 :BodyGetGeoLocationResponse
 xmlns=http://www.serviceobjects.com/;GetGeoLoca
 tionResultLatitude33.799436/LatitudeLongitud
 e-117.916834/LongitudeZip92802-3424/ZipTra
 ct0875.03/TractBlock3000/Block/GetGeoLocat
 ionResult/GetGeoLocationResponse/soap:Body/soap:Envelope
 09/05 23:01:32 INFO -- End POST response --
 09/05 23:01:32 INFO -- POST status: 200, reason: OK, target:
 http://ws2.serviceobjects.net/gcr/GeoCoder.asmx
 
 This shows no problem in the data with IE.
 
 Here's the request/response for Firefox:
 
 09/05 23:07:41 INFO -- POST :
 http://ws2.serviceobjects.net/gcr/GeoCoder.asmx
 09/05 23:07:41 INFO -- Header in request: connection : keep-alive
 09/05 23:07:41 INFO -- Header in request: accept-language :
 en-us,en;q=0.5
 09/05 23:07:41 INFO -- Header in request: accept-charset :
 ISO-8859-1,utf-8;q=0.7,*;q=0.7
 09/05 23:07:41 INFO -- Header in request: user-agent : Mozilla/5.0
 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716
 Firefox/1.0.6
 09/05 23:07:41 INFO -- Header in request: content-type : text/xml;
 charset=utf-8
 09/05 23:07:41 INFO -- Header in request: accept :
 text/xml,application/xml,application/xhtml+xml,tex
 t/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
 09/05 23:07:41 INFO -- Header in request: soapaction :
 http://www.serviceobjects.com/GetGeoLocation;
 09/05 23:07:41 INFO -- Header in request: keep-alive : 300
 09/05 23:07:41 INFO -- Begin POST request --
 09/05 23:07:41 INFO ?xml version=1.0
 encoding=utf-8?SOAP-ENV:Envelope
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/en
 velope/SOAP-ENV:BodyGetGeoLocation
 xmlns=http://www.serviceobjects.com/;Address700 W Convention
 Way/AddressCityAnaheim/CityStateCA/State
 PostalCode92802/PostalCodeLicenseKeymy_key

Re: [flexcoders] Re: Webservice - Unable to connect to endpoint ...

2005-09-06 Thread vnice Cute



Hi mrvinedit,
There is nothing to thanks for, i am just happy that i can help anybody, cuz every body from us oneday need help.
as i need manytimes help and sening here to much many questions :)
and i thank every body who replay me or give an advice mrvinedit [EMAIL PROTECTED] wrote:
Thanks Saleh. I had the whitelist set or it would not have worked withFirefox, but I WAS missing the useProxy="false". My webservice call isnow working with both IE and Firefox, so the mystery has been resolved.--- In flexcoders@yahoogroups.com, vnice Cute [EMAIL PROTECTED] wrote: Hello, I think you must to verfiy the whitelist. i got the same problem before and i have verfiy my white list andadded the useproxy="false" to the tag mx:WebService Please read more about the article whitelist from  http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19251  Saleh Al-Gergawi   mrvinedit [EMAIL PROTECTED] wrote: Anyone seen "Unable to
 connect to endpoint ..." calling a webservice only when using IE but otherwise working fine in Firefox.  mx:WebService wsdl="http://ws2.serviceobjects.net/gcr/GeoCoder.asmx?WSDL" id="GeoCodeService" fault="alert(event.fault.faultstring)" result="ParseResult()" mx:operation name="GetGeoLocation" resultFormat="object" showBusyCursor="true" mx:request format="object" Address{txtAddress.text}/Address City{txtCity.text}/City
 State{txtState.text}/State PostalCode{txtZip.text}/PostalCode LicenseKeylicense_key_goes_here/LicenseKey /mx:request /mx:operation /mx:WebService  Thanks.-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS  Web site design
 development Software design and developmentMacromedia flex Software development best practice   - YAHOO! GROUPS LINKSVisit your group "flexcoders" on the web.  To unsubscribe from this group, send an email to: [EMAIL PROTECTED]  Your use of Yahoo! Groups is subject to the Yahoo! Terms ofService.-   - Click here to donate to the Hurricane Katrina relief effort.__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Software design and development
  
  
Macromedia flex
  
  


Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.