?
Solved

Error consuming webservice from Flex 3 using IIS 7 and windows server 2008

Posted on 2008-11-14
3
Medium Priority
?
1,891 Views
Last Modified: 2013-11-19
I'm getting the following error in Flex 3 when trying to consume a webservice using ii7 on server 2008. Works ok on Server 2003 iis 6. Any ideas?

[RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://Server2008iis7/MainLine/MLwebService.asmx?wsdl)"]
      at mx.rpc.wsdl::WSDLLoader/faultHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:98]

Here's my crossdomain.xml file

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
      <site-control permitted-cross-domain-policies="all"/>
      <allow-access-from domain="*" />
      <allow-http-request-headers-from domain="*" headers="*" />
</cross-domain-policy>
flex code fragment. Normally a name instead of an ip address would be used, but to bypass any dns issues, we changed to the ip address.
 
<mx:WebService id="MLwebService"
		wsdl="http://172.16.15.133/MainLine/MLwebService.asmx?wsdl" useProxy="false">
	<mx:operation name="GetBlockInfo" fault="ErrHandler(event)" result="dataHandler(event)"/>	
	<mx:operation name="SetPosition" result="dataHandler2(event)"/>
</mx:WebService>

Open in new window

0
Comment
Question by:jwhited
2 Comments
 

Author Comment

by:jwhited
ID: 22976935
Found the problem. For some reason IIS 7 on our server 2008 defaulted to Authentication mode="Forms" instead of Authentication mode="Windows" in the web.config file. Created a new application/virtual directory and got the same default for authentication mode. What's up with that? Seems like anything but "Forms" would be ok for a default. Anyway, that's all we changed and it works ok.
0
 

Accepted Solution

by:
ee_auto earned 0 total points
ID: 23019917
Question PAQ'd, 250 points refunded, and stored in the solution database.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question