views:

219

answers:

0

I'm having a strange problem invoking a WCF service from flex. When I'm testing from Eclipse (Run as or Debug) and the url in the browser points to C:..., the service call is successfull:

16:17:31.008 [DEBUG] mx.rpc.soap.Operation Invoking SOAP operation ValidateAccessCode
16:17:31.009 [DEBUG] mx.rpc.soap.SOAPEncoder Encoding SOAP request envelope
16:17:31.009 [DEBUG] mx.rpc.soap.SOAPEncoder Encoding SOAP request body
16:17:31.016 [INFO] mx.messaging.Producer 'F811DF57-4C4D-5611-DC5E-C85D49EE383E' producer sending message '44400FF3-A69E-DEB2-AC58-C85D7488E174'
16:17:31.017 [DEBUG] mx.messaging.Channel 'direct_http_channel' channel sending message:
(mx.messaging.messages::SOAPMessage)#0
  body = "<SOAP-ENV:Envelope 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"&gt;
  <SOAP-ENV:Body>
    <tns:ValidateAccessCode xmlns:tns="http://tempuri.org/"&gt;
      <tns:accessCode>AccessCode37042273</tns:accessCode>
    </tns:ValidateAccessCode>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>"
  clientId = "DirectHTTPChannel0"
  contentType = "text/xml; charset=utf-8"
  destination = "DefaultHTTP"
  headers = (Object)#1
  httpHeaders = (Object)#2
    SOAPAction = ""http://tempuri.org/IValidationService/ValidateAccessCode""
  messageId = "44400FF3-A69E-DEB2-AC58-C85D7488E174"
  method = "POST"
  recordHeaders = false
  timestamp = 0
  timeToLive = 0
  url = "http://srv-edu-build.televic.com/mnt-edumatic/3-1validationservice/ValidationService.svc"
16:17:37.678 [INFO] mx.messaging.Producer 'F811DF57-4C4D-5611-DC5E-C85D49EE383E' producer acknowledge of '44400FF3-A69E-DEB2-AC58-C85D7488E174'.
16:17:37.681 [INFO] mx.rpc.soap.SOAPDecoder Decoding SOAP response
16:17:37.681 [DEBUG] mx.rpc.soap.SOAPDecoder Encoded SOAP response <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;s:Body&gt;&lt;ValidateAccessCodeResponse xmlns="http://tempuri.org/"/&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;
16:17:37.681 [DEBUG] mx.rpc.soap.SOAPDecoder Decoding SOAP response envelope
16:17:37.682 [DEBUG] mx.rpc.soap.SOAPDecoder Decoding SOAP response body
16:17:37.682 [INFO] mx.rpc.soap.SOAPDecoder Decoded SOAP response into result [1 millis]
16:17:37.683 [INFO] main PackageSession successfully validated

When I'm invoking the service from the application run on a webserver (url = http:\...) the service call is unsuccessfull :

16:20:44.953 [DEBUG] mx.rpc.soap.Operation Queueing SOAP operation ValidateAccessCode

That's it, apparently the operation gets queued and nothing happens (even if I wait a couple of minutes).

Anybody having a idea why the operation gets queued and why it doesn't get queued if ran from Eclipse?

Update: After adding a Crossdomain.xml allowing all domains, I now get following:

16:32:54.892 [DEBUG] mx.rpc.soap.Operation Invoking SOAP operation ValidateAccessCode
16:32:54.893 [DEBUG] mx.rpc.soap.SOAPEncoder Encoding SOAP request envelope
16:32:54.893 [DEBUG] mx.rpc.soap.SOAPEncoder Encoding SOAP request body
16:32:54.899 [INFO] mx.messaging.Producer 'E165E360-52DD-FAAE-8688-C86B4A89A006' producer sending message 'C56EE3C5-CFFB-55CD-19EA-C86B8D7365FF'
16:32:54.900 [DEBUG] mx.messaging.Channel 'direct_http_channel' channel sending message:
(mx.messaging.messages::SOAPMessage)#0
  body = "<SOAP-ENV:Envelope 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"&gt;
  <SOAP-ENV:Body>
    <tns:ValidateAccessCode xmlns:tns="http://tempuri.org/"&gt;
      <tns:accessCode>AccessCode20388909</tns:accessCode>
    </tns:ValidateAccessCode>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>"
  clientId = "DirectHTTPChannel0"
  contentType = "text/xml; charset=utf-8"
  destination = "DefaultHTTP"
  headers = (Object)#1
  httpHeaders = (Object)#2
    SOAPAction = ""http://tempuri.org/IValidationService/ValidateAccessCode""
  messageId = "C56EE3C5-CFFB-55CD-19EA-C86B8D7365FF"
  method = "POST"
  recordHeaders = false
  timestamp = 0
  timeToLive = 0
  url = "http://srv-edu-build.televic.com/mnt-edumatic/3-1validationservice/ValidationService.svc"
16:32:54.902 [INFO] mx.messaging.Producer 'E165E360-52DD-FAAE-8688-C86B4A89A006' producer acknowledge of 'C56EE3C5-CFFB-55CD-19EA-C86B8D7365FF'.
16:32:54.903 [ERROR] mx.messaging.Producer 'E165E360-52DD-FAAE-8688-C86B4A89A006' producer fault for 'C56EE3C5-CFFB-55CD-19EA-C86B8D7365FF'.
16:32:54.904 [ERROR] main PackageSession (accesscode 'AccessCode20388909') validation failed: faultCode:Channel.Security.Error faultString:'Security error accessing url' faultDetail:'Destination: DefaultHTTP'

Why is there a Producer fault?