Flex WebServices
Hi,
I am having some troubles calling a webService using 3 PC on
the network:
- one for the browser / application
- one for the web server hosting the .html and the.swf file
- one hosting the RPC webService (standalone gSoap server).
The gSoap server is hosting the crossdomain.xml and the .wsdl
file.
First I was having the common security issue, fixed thanks
the crossdomain.xml file. I am now getting successfully the
crossdomain file and the wsdl file.
Next step being to send the WS request but the message is
never sent, Flex is not firing any exception, any fault, even with
a try catch.
The request is like blocked by Flex.
Everything's working fine with the RPC webService server on
the same box.
I spent a lot of time on this issue so if anybody can give a
hand it would be great.
Thanks.
I am giving some more details, I'm still stuck on this
problem.
Flex is automatically sending an HTTP GET for the croosdomain
file and then for the WSDL.
My gSoap server is sending the good content for both files
(we have a flex application working fine with an Axis server and
the GET responses is quiet the same).
If i'm spying the network, I am seeing a new HTTP GET
crossdomain.xml sent to an address I've never specified.
It's like the first GET crossdomain was not correct and Flex
is retrying to an address took I don't know where.
After that my WS requests are blocked by Flex and are never
sent. We compare the 2 applications (1 with gSoap server and the
other with Axis server) and the Flex code is nearly the same.
Anyone with an idea ???
Thanks.
Similar Messages
-
How to register flex webservice so i could connect from c#
Hi
I know that i could connect to flex using c# and that could
be done through webservices
my question is: how I could register these webservices... do
I need to install something to have these webservices
what i need to do... is sending some data from my website to
the flex webservices so flex will display these values in a chart
thx in advanceI think "Tim Rothenberg" misled you. You can use your old apple ID to download past purchases, and it is very easy. However, it looks like you want to transfer your purchases to your current apple ID, but that isn't possible.
See Downloading past purchases from the App Store, iBookstore, and iTunes Store and Frequently asked questions about Apple ID -
hi,
Iam trying to get my query webservice to function, but iam
having severe problems. No information can be found to solve my
problem, so Iam hoping some here can assist me in solving my
problem.
Iam getting errors (
RPC Fault faultString="Unexpected parameter 'queryResponse'
found in input arguments." faultCode="Client.Input"
faultDetail="null"]
at
mx.rpc.soap::Operation/mx.rpc.soap:Operation::createFaultEvent()
at mx.rpc.soap::Operation/
http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
at mx.rpc.soap::Operation/send()
at Function/
http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc.soap.mxml::Operation/send()
at AlfrescoQuery/___Button1_click()
I have tried everything I can think of, but to no avail...
below is my flex code Iam using:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
public function queryResultHandler(event:ResultEvent):void {
]]>
</mx:Script>
<mx:WebService id="alfServ"
wsdl="
http://myalfresco/alfresco/wsdl/repository-service.wsdl"
endpointURI="http:/myalfresco8/alfresco/api/RepositoryService">
<mx:operation name="query"
result="queryResultHandler(event)">
<mx:request>
<store>
<ns1:scheme xmlns:ns1="
http://www.alfresco.org/ws/model/content/1.0">workspace</ns1:scheme>
<ns2:address xmlns:ns2="
http://www.alfresco.org/ws/model/content/1.0">SpacesStore</ns2:address>
</store>
<query>
<ns3:language xmlns:ns3="
http://www.alfresco.org/ws/model/content/1.0">lucene</ns3:language>
<ns4:statement xmlns:ns4="
http://www.alfresco.org/ws/model/content/1.0">TEXT:'alfresco
development team'</ns4:statement>
</query>
<includeMetaData>false</includeMetaData>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:Button x="88" y="45" label="Button"
click="alfServ.query.send()"/>
</mx:Application>
But this does not work... HELP ME PLEASE....
below included soap calls for the request and the response
that is recieved....
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<query xmlns="
http://www.alfresco.org/ws/service/repository/1.0">
<store>
<ns1:scheme xmlns:ns1="
http://www.alfresco.org/ws/model/content/1.0">workspace</ns1:scheme>
<ns2:address xmlns:ns2="
http://www.alfresco.org/ws/model/content/1.0">SpacesStore</ns2:address>
</store>
<query>
<ns3:language xmlns:ns3="
http://www.alfresco.org/ws/model/content/1.0">lucene</ns3:language>
<ns4:statement xmlns:ns4="
http://www.alfresco.org/ws/model/content/1.0">TEXT:'alfresco
development team'</ns4:statement>
</query>
<includeMetaData>false</includeMetaData>
</query>
</soapenv:Body>
</soapenv:Envelope>
RESPONSE
<soapenv:Envelope
xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<queryResponse
xmlns="
http://www.alfresco.org/ws/service/repository/1.0">
<queryReturn>
<querySession>
52dbfef8-306d-11dc-9782-6160ed7fcc06
</querySession>
<resultSet>
<ns1:rows
xmlns:ns1="
http://www.alfresco.org/ws/model/content/1.0">
<ns1:rowIndex>0</ns1:rowIndex>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/system/1.0}store-protocol
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>workspace</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}modifier
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>admin</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}name
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>SampleContent.txt</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/system/1.0}node-dbid
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>2121</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}content
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>
contentUrl=store://2007/7/12/13/42/05a414e3-306d-11dc-9782-6160ed7fcc06.bin|mimetype=text /plain|size=68|encoding=UTF-8|locale=en_US_
</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}modified
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>
2007-07-12T13:42:51.895+02:00
</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}created
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>
2007-07-12T13:42:51.286+02:00
</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/system/1.0}store-identifier
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>SpacesStore</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/system/1.0}node-uuid
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>
054727cd-306d-11dc-9782-6160ed7fcc06
</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}creator
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>admin</ns1:value>
</ns1:columns>
<ns1:columns>
<ns1:name>
http://www.alfresco.org/model/content/1.0}path
</ns1:name>
<ns1:isMultiValue>false</ns1:isMultiValue>
<ns1:value>
http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/ content/1.0}sample_folder/{http://www.alfresco.org/model/content/1.0}sample_content
</ns1:value>
</ns1:columns>
<ns1:score>0.38761</ns1:score>
<ns1:node>
<ns1:id>
054727cd-306d-11dc-9782-6160ed7fcc06
</ns1:id>
<ns1:type>
http://www.alfresco.org/model/content/1.0}content
</ns1:type>
</ns1:node>
</ns1:rows>
<ns2:totalRowCount
xmlns:ns2="
http://www.alfresco.org/ws/model/content/1.0">
1
</ns2:totalRowCount>
</resultSet>
</queryReturn>
</queryResponse>
</soapenv:Body>
</soapenv:Envelope>I may not be able to help here, but my best guess is that you
are trying to use SOAP protocol formatting within your request
tags, but I thought that Flex is supposed to do the formatting to
SOAP for you.
You would just use the request tags to set your parameters
and their values, and allow Flex to translate it into the soap
call.
Also, could your paramater 'query' be conflicting with the
SOAP tag also named 'query?' -
XML request in Flex WebService using ActionScript
Hi,
I'm having a problem with dumping the request XML. When I send XML request to a web service with soapUI, it gives me normal results, but when I try to do the same thing in Flash using Flex, the web sevice responds with a SOAP fault. This is basically what I'm doing:
var xml = XML('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://some.web-sr.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header/><SOAP-ENV:Body><ns1:SomeOperation><ns1:data></ns1:data></ns1:SomeOpera tion></SOAP-ENV:Body></SOAP-ENV:Envelope>');
wsOperation = getWsOperation('SomeOperation');
wsOperation.resultFormat = 'e4x';
wsOperation.request = xml;
wsOperation.send();
Result: <faultstring>The path is not of a legal form. ---> The path is not of a legal form.</faultstring>
How can I dump the request xml which was actually sent to the web service by Flex? Or what am I doing wrong here?
Thanks in andvance,
MCAt last, after three days of reading the WHOLE INTERNET and posting this I have managed to dump the request data
var assetToken = wsOperation.send();
trace(assetToken.message);
Hope this helps anybody else.
Regards,
MC -
WebService setting xml request
I'm a .NET developer learning Flex
I'm trying to set the xml request in the flex webservice. A little background, I'm uploading a file to a third-party and they respond with xml data I want to use. I want to take that xml and pass it to a .NET webservice. I have verified the .NET webservice gets called everytime but its not getting the xml data. What am I missing? Here is my code.
private function responseHandler( event:DataEvent ) :void{
var response:XML = XML( event.data );
var service:WebService = new WebService();
service.wsdl = "http://localhost/FlashUploadWeb/WebSerivce/Video.asmx?wsdl";
service.loadWSDL();
var operation:Operation = new Operation(null, "UpdateVideoFile");
operation.addEventListener(ResultEvent.RESULT, onWSResult, false, 0, true);
operation.addEventListener(FaultEvent.FAULT, onWSFault, false, 0, true);
operation.request = response;
service.operations = [operation];
operation.send();I'm a .NET developer learning Flex
I'm trying to set the xml request in the flex webservice. A little background, I'm uploading a file to a third-party and they respond with xml data I want to use. I want to take that xml and pass it to a .NET webservice. I have verified the .NET webservice gets called everytime but its not getting the xml data. What am I missing? Here is my code.
private function responseHandler( event:DataEvent ) :void{
var response:XML = XML( event.data );
var service:WebService = new WebService();
service.wsdl = "http://localhost/FlashUploadWeb/WebSerivce/Video.asmx?wsdl";
service.loadWSDL();
var operation:Operation = new Operation(null, "UpdateVideoFile");
operation.addEventListener(ResultEvent.RESULT, onWSResult, false, 0, true);
operation.addEventListener(FaultEvent.FAULT, onWSFault, false, 0, true);
operation.request = response;
service.operations = [operation];
operation.send(); -
Using webServices and Interactive Statement
I'd like to know how can I get information about how to create an Interactive statement that use a webservice.
I can't find something useful on this topic on internet or the official documentation...
Any help?
Regards!Whether inside an Interactive Statement or not, the use of a webservice in Flex is the same:
Step 1. Find a webservice you want to use.
(Here is a public wsdl connection for testing/proof of concept: http://www.webservicex.net/WeatherForecast.asmx?WSDL )
Step 2. Use it, as shown in this example: http://www.cflex.net/showFileDetails.cfm?ObjectID=582
More info on how to use Flex webservices:
http://tv.adobe.com/watch/flex-in-a-week-day-2/retrieving-and-handling-data-using-webservi ce/
http://blogs.4point.com/brad.white/2008/12/4-ways-to-invoke-a-webservice-in-flex-with-mxml -and-actionscript.html
http://blog.flexexamples.com/2008/04/14/calling-a-simple-web-service-from-flex-using-the-w ebservice-class/
Hope it helps,
Oana -
Does anyone know of an existing or have interest in collaborating on creating a web service wrapper for the UCS XML API?
I today encountered this problem as well and perhaps many others.
Fortunately the solution exists and thanks to mslinn (Mike) for posting the solution in this thread on the Old Nabble forum
(archive for the mailing list: [email protected]).
I'll copy/paste the solution here so this solution will be easier to find for others:
The Flex SDK can do what you want, but the default behavior is for it to unwrap collections and enclosing types which only contain one item. This default was not a good idea, IMO.
Have you tried setting Operation.forcePartArrays true?
http://livedocs.adobe.com/flex/3/langref/mx/rpc/soap/Operation.html#forcePartArrays
You will need to obtain the mx.rpc.soap.Operation from the WebService first.
You can alter the default behavior by writing a custom deserializer (which is a non-trivial task, made more difficult by the ASDoc being turned off.)
For more information about Flex WebService, see my slide show and YouTube video at http://www.slideshare.net/mslinn/using-flex-with-enterprise-web-services
Rgds
William Chau -
Hi,
I need to comunicate with a webservice (WCF) from actionscript 3 (not Flex). I've been searching the Internet a lot and found http://flashauthoring.blogspot.com/2008/10/using-flex-webservice-component-in.html, but it works only in Flash Professional and I'm using Flash Builder 4 to compile the project. http://code.google.com/p/as3webservice/ works but not for WCF. Has anybody written a class that will work in my scenario?
Thanks for all responses,
TRHi Roger,
I am experiencing a similar situation where a flash CS3/AS3 application using a similar code is calling a server side web service to retrieve/update data in the database. For some reason either a connection to the server gets lost or the web service call isn't successful and thus the fault function isn't called. Since you have asked this question a while back, I just wanted to know if you were able to resolve this issue?
Adnan -
WebService authentication problems
I am trying to use a web service that serves over https, has wsdl that is accessible using account name and password, and then when I actually call methods, requires basic authentication using account name and API key.
I have tried to work with Flex WebService generated by the Data import capability of flex builder 3 and flash builder 4. They both DO NOT handle the authentication...
When I construct the webService object, it loads the wsdl (I don't understand why, because flash builder already imported it to build the service classes). This fails, because I can't specify the required authentication info.
Since I do not use a proxy I can't use the "setCredentials" methods.
What should I do ?The Flash Builder generated code still uses the underlying WebService class and it requires wsdl to be available during run time too. As discussed in a separate post, I have filed a enhancement request to exclude this during run time, pls. feel free to vote for it
http://bugs.adobe.com/jira/browse/SDK-21811
With regards to authentication support for WebServices, The WebService class has the following properties to set your authentication details
headers : Array
Returns the array of SOAPHeaders registered for the WebService. AbstractWebService
httpHeaders : Object
Custom HTTP headers to be sent to the SOAP endpoint.
Currently the Data Menu - > Connect to Web Service Wizard does not support authenticated web services and those on https, the bug id for that is
http://bugs.adobe.com/jira/browse/FB-20632 -
SOAPProxyAdapter - BASIC Auth relay config
I'm hoping I can use BlazeDS to solve a particular problem.
A Flex client needs to connected to a SOAP service, which all works fine. The service is communicated with over a SSL channel using Basic Authenication, and when a call is made the browser pops up a login box.
This is fine, but since there is no session as such (the browser resends authentication with each message) there is no means to implement a logout.
So ideally we would specify the username and password inside the Flex application, then these credentials could be discarded. If I understand correctly, the Basic authentication dialog is shown when the first call is made to the webservice by design, and passing credentials which have been input into Flex will require use of the SOAPProxyAdapter. This would seem to be confirmed by the fact even if the flex WebService setCredentials method is used, the basic box still appears.
So I am planning to use a destination, and then use the setRemoteCredential method to relay authentication information entered into the flex app.
With this config in proxy-config.xml:
>
>
>
> https://xxxx/xxxx/xxxx?wsdl
> https://xxxx/xxxx/xxxx
> xxxx
> xxxx
>
>
>
The destination works perfectly, and I can call and interact with the service using the account specified in the xml file. However, if I remove the remote-username and remote-password, and reconfigure my Flex app to initiate my generated service proxy as follows:
> srv=new ProxyClass("WebserviceProxy");
> srv.addgetRoleEventListener(getRole);//method on service
> srv.addEventListener(FaultEvent.FAULT,fault);
> srv.getWebService().setRemoteCredentials(username.text,password.text);
> srv.getWebService().useProxy=true;
Then I get the following:
> 16:27:54,476 INFO [AuthChallengeProcessor] basic authentication scheme selected
> 16:27:54,492 INFO [HttpMethodDirector] No credentials available for BASIC 'servicerealm'@localhost:8080
I suspect that it must be possible, but there is some condition not being met and the credential is not being relayed.
Have anyone had any success configuring the SOAPProxyAdapter to pass credentials specified in Flex to a remote web service? Is there anything wrong in my approach?This has turned out to be due to the generated web service wrapper not providing the remote credentials when making requests. Not ideal but I am now tweaking the generated wrapper after any updates to the WSDL as follows:
>private function call(operation:WSDLOperation,args:Object,token:AsyncToken,headers:Array=null):void
> {
>..snip...
> if(!this.useProxy)
> {
> var dcs:ChannelSet = new ChannelSet();
> dcs.addChannel(new DirectHTTPChannel("direct_http_channel"));
> inv.channelSet = dcs;
> }
> else inv.setRemoteCredentials(_remoteUser,_remotePassword);
> var processRes:AsyncResponder = new AsyncResponder(processResult,faultResult,wrappedData);
> inv.invoke(message,processRes);
> }
> private var _remoteUser:String = "";
> private var _remotePassword:String = "";
> public override function setRemoteCredentials(remoteUsername:String, remotePassword:String, charset:String=null):void {
> _remoteUser=remoteUsername;
> _remotePassword=remotePassword;
> super.setRemoteCredentials(remoteUsername,remotePassword);
> }
There is probably a far more elegant way to achieve this, but it does accomplish what I was after, so I won't be spending any more time looking at it.
I've logged it against Flex Builder 3 - Web Service Introspection -
I have to say I am impressed with flex. I whipped up a very
useful application that connects to a web service wsdl with
eclipse.
It works great locally, but while I deploy to my server I
can't connect.
I don't have access to add a crossdomain to the webservice.
After all the initial success I am feeling retarded. Google
has let me down. Has no one done a simple proxy with the flex web
service integration?
Give that I could install anything on php server it seems
like all I should be doing is saying proxy=yes and setting the
location of a php proxy file.
or setting a prepend string to all outgoing webservice
requests
or ...
Somebody help me out. All I need is a super simple example
wsdl php proxy with a flex webservice.
Thanks.
For demonstrations purposes...
Here is a wsdl file:
http://services.prosper.com/ProsperAPI/ProsperAPI.asmx?WSDL
And Here is a straight xml proxy to it via php:
http://www.rateladder.com/xml_proxy.php?url=http://services.prosper.com/ProsperAPI/Prosper API.asmx?WSDL
For my latest attempt. I even downloaded the wsdl file and
modified to so that all references to the original domain were
prepended with
http://www.rateladder.com/xml_proxy.php?url=
Which gets closer (I think), but now I am getting a a soap
fault:
SOAPFault (soap:Client): Unable to handle request without a
valid action parameter. Please supply a valid soap action. null
http://www.rateladder.com/ProsperListing.swf
Why am I retarded... please someone show me the light... this
should be EASY! Everything else in Flex has been.just thought i'd add that other people in my team cannot get it to work either, so it's probably not a bad install of websphere, but it could be a bug i suppose
-
Flash builder 4 compatible myeclipse and spring
Hi ,
i did a project using flex 3 , spring 2.5 and myeclipse 6.6 , i want to migrate it to new flash builder 4 .
can some one explain what are "compatible versions of myeclipse and spring " for flash builder 4WSDL is not on public domain.
Sending contents of wsdl
<?
xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.4-b01-. -->
<
definitions targetNamespace="http://webservice.flexsampleservlet.u0.deere.com/" name="CustomerWS" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://webservice.flexsampleservlet.u0.deere.com/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<xsd:schema>
<xsd:import namespace="http://webservice.flexsampleservlet.u0.deere.com/" schemaLocation="CustomerWS_schema1.xsd"/>
</xsd:schema>
</types>
Is import of xsd supported by flex webservice connection wizard
Destination is configured correctly as I can make call to webservice using destination configured in LCDS from flex application -
Adobe Air needs HTTP gzip compression
Hello
We are developing an Adibe Air application. We use SOAP for
service calls and we depend entirely upon gzip HTTP compression to
make the network performance even vaguely acceptable. SOAP is such
a fat format that it really needs gzip compression to get the
responses down to a reasonable size to pass over the Internet.
Adobe Air does not currently support HTTP gzip compression
and I would like to request that this feature be added ASAP. We
can't release our application until it can get reasonable network
performance through HTTP gzip compression.
Thanks
AndrewHi blahxxxx,
Sorry for the slow reply -- I wanted to take some time to try
this out rather than give an incomplete response.
It's not built into AIR, but if you're using
Flex/ActionScript for your application you can use a gzip library
to decompress a gzipped SOAP response (or any other gzipped
response from a server -- it doesn't have to be SOAP). Danny
Patterson gives an example of how to do that here:
http://blog.dannypatterson.com/?p=133
I've been prototyping a way to make a subclass of the Flex
WebService class that has this built in, so if I can get that
working it would be as easy as using the Flex WebService component.
I did some tests of this technique, just to see for myself if
the bandwidth savings is worth the additional processing overhead
of decompressing the gzip data. (The good news is that the
decompression part is built into AIR -- just not the specific gzip
format -- so the most processor-intensive part of the gzip
decompression happens in native code.)
Here is what I found:
I tested this using the
http://validator.nu/ HTML validator
web service to validate the HTML source of
http://www.google.com/. This
isn't a SOAP web service, but it does deliver an XML response
that's fairly large, so it's similar to SOAP.
The size of the payload (the actual HTTP response body) was
5321 bytes compressed, 45487 bytes uncompressed. I ran ten trials
of each variant. All of this was done in my home, where I have a
max 6Mbit DSL connection. In the uncompressed case I measured the
time starting immediately after sending the HTTP request and ending
as soon as the response was received. In the compressed case I
started the time immediately after sending the HTTP request and
ended it after receiving the response, decompressing it and
assigning the compressed content to a ByteArray (so the compressed
case times include decompression, not just download). The average
times for ten trials were:
Uncompressed (text) response: 1878.6 ms
Compressed (gzip) response: 983.1
Obviously these will vary a lot depending on the payload
size, the structure of the compressed data, the speed of the
network, the speed of the computer, etc. But in this particular
case there's obviously a benefit to using gzipped data.
I'll probably write up the test I ran, including the source,
and post it on my blog. I'll post another reply here once I've done
that. -
Does anyone know of any good examples of how to make Flex
Data Service work with updating MySQL through PHP?quote:
Originally posted by:
VoodooPuppy
Of course. =) But, I'd like to know how to get Flex Data
Services to talk with PHP/MySQL on the server side. Or, just MySQL
would be fine, but the key is that it be server side. Then, pushing
it out to the clients via FDS.
I did something very similar using PHP in two distinct ways:
1. I created a PHP web application that generated XML. For
this I used the HTTPService component to connect to my PHP script.
Flex (HTTPService) <--> [ HTML | XML ] <--> PHP
(server side) <--> MySQL (server side)
2. I created a PHP SOAP service using PHP5's built in SOAP
support. For this I used the WebService component.
Flex (WebService) <--> [ HTML | SOAP | XML ] <-->
PHP (server side) <--> MySQL (server side)
Both worked without installing/using the FDS. Why do you
specifically need the FDS? -
Sefl-signed ssl certificate not possible?
Hello everyone,
could it be that oit is not even possible to let flex'
webservice or httpservice connect to a
https webservice that is secured by a self-signed
certificate? There is absolutely no reason
for me to buy a "real" certificate just for encryption
purposes.
I installed crossdomain.xml on the target server, the
webservice is running fine when pasting
the urls into the browser and I installed the certificate
into IE (which I have to use here), so
is gives no error and shows the nifty little lock in the
address bar. But Flex refuses to work,
except for running the app locally (means by clicking "run"
in flex builder).
I'm using Flex 2.01 if important.
So, could anyone help me? Or is Flex just so ignorant to
self-signed webservices?
bye
sysforHi sysfor,
I am using the proper SSL certs in production and self-signed
in development & testing, no problems so far.
Flex/Flash does not deal with SSL certs authentications -
this task is delegated to browser.
So I presume that you are facing a different kind of a
problem - your crossdomain.xml is not setup properly.
Have you checked the policyfiles.txt log?
Another point, you are probably doing the calls on direct
URLS (https://myhost/path). Instead you should use a relative path.
I.e. if your swf was downloaded from server myhost, then it should
simply do the calls to ./path.
Cheers,
Dmitri.
Maybe you are looking for
-
Acrobat 9.0 PDFConverter toolbar missing in Excel 2003
For some reason the PDFConverter toolbar disappeared in my installation of Excel 2003. I remember an error message flashing up but apparently I didn't pay enough attention. That happens all to often unfortunately. After an hour of searching several w
-
OCR images without text becoming blurry by default
Newbie question here. Personally.. I don't care about the PDF-filesizes. I'd like ALL my PDF files to be in the highest possible quality, by default. No matter whether they involve converted Office documents or JPG-files. Must confess, I am a bit ov
-
Unwanted record is coming even after filtering through read command
Hi All, I am fetching vbeln matnr fkimg brewand netwar from vbrp and kdmat erdat from lips. i am reading data as:- READ TABLE IT_lips WITH KEY VBELN = WA_VBRP-VGBEL MATNR = WA_VBRP-MATNR INTO WA_lips BINARY SEARCH. In this case data should filter acc
-
Contact Role should be assigned as 'Self Service User'
Dear All, I have requirement while creating contacts for a particular customer, contact Role should be assigned as 'Self Service User' Role, so that they are created as user for iReceivables access. Which column in ra_contact_phones_int_all should be
-
Hi If i hv a matl which is assigned to a WBS element (Project). All PR, PO, MIGO cycles r over. Now it is avl in MMBE as Project Stock as 10 Nos. Now i want to reject 2 nos n return to vendor. HOW TO DO THIS? EXPLAIN WITH STPS IN DETAIL Also is this