Flex :: Add XML To SOAP Request In It?
Jun 21, 2010I have a Flex service defined like [code]...
View 2 RepliesI have a Flex service defined like [code]...
View 2 RepliesThis is a pretty odd situation I have here. I have used a piece of code to interact with a backend SOAP service for several months - it works fine. I tried it out in a different project (first as an swc library and then just by cutting and pasting) and it just doesnt work.If I try the exact same code in the original flex project, connecting to the same backend service, everything works fine. In the new project, I can call operations that take simple document-literal wrappers as params (they have no real parameters) - but if the operation has a complex parameter inside the document literal wrapper - fail on this new project. Here is a sample that would fail:[code]
-Examined the posts in firebug from both projects and can not see a difference (meaning that the code appears to generate the exact same SOAP request in both projects (as one expects)
-I have verified that the requests should work using SOAPui to directly query the web service
The back end service is an Apache CXF webservice and here is a sample of the error it generates:URL...
I'm looking to consume SOAP services -- read only -- from a third party web service. I know Flex has strong SOAP functionality. I am wondering, however, if there is any benefit to using e.g. Ruby or PHP to consume those 3rd party services and then passing the results to Flex, versus doing it all in Flex. Other than decoupling the client code from the SOAP logic, I can't really think of one.
View 1 RepliesWhen Flex application make an asynchronus HTTP request, does it add a special header to the request, like some JavaScript framework does? Something that indicates whether this request is an AJAX call/not.I just want my server side code to return different response format, depending on whether the request is made from browser/flex.
View 1 Replieshas their own web-to-lead form that can be used to send leads from a website contact form. But I want to submit leads from a contact form inside a flex application. I can't see anything in the documentation, or on Google about this. Is it possible?
View 1 RepliesI have a java server side project which contains JAX-WS web-services (using JavaEE 6 and the @WebService annotation).
Is there some kind of plugin that would allow me to generate Flex client stubs during my maven build ?
I have taken a look at enunciate, but it seems to generate only AMF client.
I've also tried to look at GraniteDS, but their doc seems a little opaque to me.
Notice my Flex project is compiled using flexmojos, which contains a flexmojos:generate mojo that should be able to generate domain object (however I don't understand how to say it to use domain classes from ANOTHER project, and not from a different folder).
So, is there any maven plugin that would allow the kind of feature described in this Adobe page ?
I have successfully generated my web service proxies using the FlexBuilder menus. This particular web service has an internal (or incorrect) "location" specified in its WSDL. This means that when I go to make an actual method call, it fails because the DNS name specified in the location field is wrong. (It shows as "aborted" in fire bug).
How do I set the location attribute on the service object?
update:
The field that needs to be changed is listed below. It is called "WSDL- ndpoint." So the question is: How do I do this programmatically given the generated web service object (the one that extends WebServiceWrapper)?
<annotation name="ServiceConfig">
<item name="DEFAULT_ENTITY_PACKAGE">valueObjects</item>
<item name="WSDL-endpoint">http://eoc7/eoc7/api.asmx</item>
<item name="LINKED_FILE"></item>
</annotation>
Is there a way to use the soap web service classes that FLEX provides from Flash CS5?
View 1 RepliesUPDATE: The problem was not to do with namespaces or flex at all. My webservice was returning the wrapped xml. I was blaming the language I had least experience with before questioning the java...I have a basic soap webservice that I am having trouble reading the result from in flex.I'm a solid java programmer and just trying to get my head around adobe flex.In the documentation I should be able to use "WebService" to return the result in e4x format.
<mx:WebService id="CurrentLayersWS" wsdl="http://localhost:8080/myproject/ws/myservice.wsdl" showBusyCursor="true" result="updateSelected(event)" fault="Alert.show(event.fault.faultString), 'Error'">
<mx:operation name="publisher" resultFormat="e4x">
<mx:request>
[code]....
Unfortunately, the event object seems to nested and encoded strangely. When I step trough with the debugger I see that responseXml is of type XMLList containing one element (at index 0) of type XML which just contains the following xml:
<sch:temp xmlns:sch="http://www.mycompany.co.uk/myproject/schemas" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:publisherResponse xmlns:ns2="http://www.mycompany.co.uk/myproject/schemas">
<getConfigurationResponse>
<configuration>
...etc
Why is my xml nested inside a document with a root node "sch:temp"?
I've got a flex app that hits a remote SOAP service and populates a list with the results.
It works fine when i run it through flex builder, but when i compile the application and move it onto a webserver it can't access the services.
I've tried it from a standalone webserver and on my own machine. I'm assuming that there's a security issue that i've missed as i can't think of any other reason why it's ok in flex builder but not when compiled on the same box.
[Code]...
I want to read SOAP response in flex,am some what new to FLEX
I would like to access a soap webservice from a class in a Flex (AIR) Library Project.
How can I instantiate a WebService and get data from a SOAP WebService.
I am writing an application in Flash Builder 4.5. I am also writing a PHP Web service to access data from our MySQL database. This Web service will be made available to third party clients for them to develop applications to access our database as well, via SOAP.
Is there a big performance difference between connecting to the service in Flash Builder via connecting directly to the PHP file vs. connecting to a Web Service via SOAP?I would kind of like to connect to this service the same way that our clients will, to make sure things stay as uncomplicated as possible for future development, but performance is my main priority.
I have been tinkering around with ServiceStack to expose some web services and have been very impressed. One potential consumer of these services will be a Flex application. Flash Builder (the Flex IDE) has a tool that auto-generates proxy AS3 classes for SOAP web services based on the wsdl - at this point in time only for SOAP 1.1.
If I recreate the HelloWorld tutorial, and try to use the SOAP 1.1 wsdl to autogenerate classes, I get the following errors in Flash Builder. There was an error during service introspection. The part 'parameters' has an invalid value 'HelloResponse' defined for its element. Element declarations must refer to valid values defined in a schema. The part 'parameters' has an invalid value 'Hello' defined for its element. Element declarations must refer to valid values defined in a schema. I am sure this is a problem with Flash Builder's tool. I am wondering if anyone has been successful in auto-generating AS3 classes from a ServiceStack wsdl?
I am querying a 3rd party web service and not all the data seems to be making it to the event handler. When I view the request/response in the Network Monitor I see a collection of data objects each containing two string variables (name, url) and two arrays (counts, breakdown). When the result handler receives the data and I view it in debug mode, the collection of data objects each only contains one string variable (name). What happened to the other string var (url) and both arrays (counts, breakdown)? what would cause this since it seems to becoming corrupt before it reaches the event handler but after it is received by the network? Is this most likely an IDE issue?
View 1 RepliesThe requirement is to get the method named getIncidentList() from web service using Soap and wsdl using Flex or Actionscript.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:WebService id="DirectoryService"
wsdl="http://cmuicds.rutgers.edu/uicds/core/ws/services/DirectoryService.wsdl"
useProxy="false"
[code].....
I'm trying to reproduce a POST request that was captured from WireShark using PHP. This POST request was sent by a Flash (.swf) object, so it's a little bit complicated in configuring the header.It does not print out anything in the end, so there must be something wrong with PHP code that I could not see.Here is what WireShark captured:
POST /engine/ HTTP/1.1
Host: abcdef.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8[code]....
The result is a blank page instead of response from server.
I am trying to connect my flex app to a CFC I have which calls a method. It's to test a login control, and when i put the correct credentials in, it comes back with the error: "SOAP Response cannot be decoded. Raw response: ".
[Code]...
I have implemented application client-server with spring blazeDs message services using JMS message destination. The idea is a producer declared in Java send message using activeMQ and consumer declared in Flex receives them. I have configured the AMFChannel with a polling interval 0, but I have seen when the consumer subscribes to the destination in Flex, the time request can be of up to 3 seconds.
[Code]....
I am trying to access html files protected by basic authentication. Below is the code to do that but I still get the authentication dialog. I checked the fiddler and found that for the first request authorization header is present but for the subsequent requests which is requested to load the .js, css & images the authorization header is not added. This is the reason I am getting the auth dialog.
Is there a way to add authorization header to the subsequent requests as well?
[Code]...
Does Flex 4 support put request?
I know that Silverlight 4 support put request using its client http stack.
I'm passing the following parameter as an url fragment to flex. (#groupID=2385)
This works great on the development box, but when I put it on the production server.. nothing.
Do you think this is a server configuration issue. I presume that flex is talking to the javascript file 'AC_OETags.js' to make this all happen.
I have an HTTPRequest in mxml that has an mx:request defined inside it. I use the info in the mxml request 99% of the time (I thought it was 100% until I found this bug). So I need to send the HTTPRequest with one of the items in the request different. I tried using the send() method and sending my own object, much like you would if no request was defined in the mxml, but it doesn't seem to override it.
Any ideas how I can accomplish this without re-writing every call to send this httpRequest?
[url]...
How do I add my own request header to the POST requests generated by FileReference.upload()?
I need to pass along an incoming xml post request using as3? Is there a simple way to just pass that request through an as3 application? I don't want to do anything with the request other than send it along to its destination.
View 1 RepliesI have a Windows Server 2003, with a domain: "mydomain.com" and everything goes right until the Flash application tries to load de crossdomain.xml, because it tries to load it from "servername" and obviously the request fails. Currently I have read all about crossdomain.xml , what it is, where it goes although I can not find what I have to do so my flash application requests the crossdomain.xml from my domain "mydomain.com" and not from my server "servername".
- The domain is up and can be accessed from the internet
- The crossdomain is on the root folder and also can be accessed from the internet
I'm trying to load a XML via POST-request in Flex:
var request:URLRequest = new URLRequest('res/unhasher.xml');
request.method = URLRequestMethod.POST;
loader = new URLLoader();
loader.load(request);
But in Firebug I see that my file is loaded through GET.
Request header:
GET res/unhasher.xml HTTP/1.1
Host: bla-bla-bla.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.1) Gecko/20100101 Firefox/10.0.1
[code]....
How to make POST requests from Flash/Flex?
I tried using both HTTPService and URLRequest/URLLoader. But I can't figure out how to get either the response output or the response headers in case of a server error(like 500).
View 1 RepliesI have created a client with Flex Builder which works in a browser but also in an Air windowed application. I must connect it to a server and it has to do asynchronous request related to changing data of the server.Because of the too much expensive cost of LiveCycleDS license, I was looking for other ways, maybe open source and i found the following solutions:
Adobe BlazeDS
Granite Data Services
WebORB Community Edition
I want to ask you which is the easy way to create the solution described above, expecially i want to use J2EE application server type.
Currently I have :
<mx:HTTPService id="userLogin" url="https://api.localhost/api/user/login/" method="POST" resultFormat="e4x" result="doSomeThing(event)">
<mx:request>
[Code]....
instead of this I have params like userCredentials.email and userCredentials.password. I tried this but it odesnt work.
<mx:HTTPService id="userLogin" url="https://api.localhost/api/user/login/" method="POST" resultFormat="e4x" result="doSomeThing(event)">
<mx:request>
[Code].....