RE: [flexcoders] Problem with Flex Builder 2 and .Net Web Service

2008-01-29 Thread Samuel R. Neff
I would strongly suggest switching to Flex Builder 3, even if you keep using
Flex 2 SDK.  Flex Builder 3 has improved .NET integration and will launch
your application from the web site all the time, that way you never need to
swap the URL's for dev vs production, just use relative URL's all the time.
 
You'll probably need to create a new project to get it to have ASP.NET
support, but after you do that you can copy in all the code and execute it
either through IIS or using the ASP.NET Development Server (both are options
when setting up the Flex project with ASP.NET support).
 
HTH,
 
Sam
 

---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
  

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of NileAge, Mail
Sent: Wednesday, January 23, 2008 10:20 AM
To: flexcoders@yahoogroups.com; Flex Components
Subject: [flexcoders] Problem with Flex Builder 2 and .Net Web Service



Hello all,

I have a problem with Flex Builder 2 and Web Service.

I develop the flex project that connect with web service and I want to
deploy this project but when run the page after release does not get data
from database 

But local no problem .

I don't know where is the problem. May be in web service namespace or wsdl
property in WebService tage in flex.

At local I'm  use http://localhost:2008/myProj/Service.asmx?WSDL";> and no problem

But in online use http://my_domain/Service.asmx?WSDL";> but not work.

 

And this is a simple example for code :

 

Flex part

http://www.adobe.com/2006/mxml"; layout="absolute"
creationComplete="{creationCompleteHandler()}">

 









http://my_domain/Service.asmx?WSDL";>









 

Web Service Part

using System;

using System.Web;

using System.Web.Services;

using System.Web.Services.Protocols;

using System.Data;

using System.Net.Mail;

 

[WebService(Namespace = "http://www.my_domain.com/";)]

[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]

public class Service : System.Web.Services.WebService

{

public DataTable SendFeedBack()

{

DataTable DT = new DataTable("MyTable");

DT.Columns.Add("Mail");

DataRow DR = DT.NewRow();

DR[0] = "Your mail has been sent.";

DT.Rows.Add(DR);

return DT;

}  

}

 


RE: [flexcoders] Problem with Flex Builder 2 and .Net Web Service

2008-01-23 Thread Tracy Spratt
"data service call works locally but not on the server"  This is almost
always indicative of a crossdomain / security sandbox issue.  Hit the
archives, docs and google, it has been discussed at great length.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Wednesday, January 23, 2008 10:25 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problem with Flex Builder 2 and .Net Web
Service

 

And you've tested to see if http://my_domain/Service.asmx?WSDL
<http://my_domain/Service.asmx?WSDL>  is really there and working?

 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community 

 

 



RE: [flexcoders] Problem with Flex Builder 2 and .Net Web Service

2008-01-23 Thread Merrill, Jason
And you've tested to see if http://my_domain/Service.asmx?WSDL
  is really there and working?
 

Jason Merrill 
Bank of America 
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community