SOAP epic fail

Well I’ve spent most of the day trying to get user creation and login fully implemented. I’ve worked up a database initialization script and the SOAP scripts accordingly, but I’ve hit a series of snags trying to do so.

The first was just me screwing up by naming the service and the PHP function different things. Then I discovered that NuSOAP returns HTTP status 500 on a SoapFault, which apparently doesn’t make it to Flex, so I’ve hacked around this by having NuSOAP return status 200 instead. Then there was a problem with my INSERT statement, which I fixed.

Now I have two remaining problems. First, the localhost path is hard-coded into the AS files that Flex generated, so this would completely break in production. Second, accessing the Flex app from 127.0.0.1 doesn’t work – you have to use localhost because that was what I used when I imported the web service and accessing something in a different domain isn’t allowed for security reasons (that is, the domain the app is loaded from is “127.0.0.1″ but the web service is on domain “localhost”). This would obviously also completely break a production environment since you would be accessing npdportfolio.com, not localhost.

Going to see if I can chase down these remaining problems, then calling it quits for the night.

Advertisement
This entry was posted in Epic fails, IQP. Bookmark the permalink.

One Response to SOAP epic fail

  1. Pingback: Flex Sucks: Greatest Hits! « CaptainRichard's Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s