Webservice access in FLEX
We are trying to use webservice created by .NET application
into Flex , but it is giving following error when we are accessing
application from remote browser (IE 6 )
Following is details of error
fault = (mx.messaging.messages::ErrorMessage)#0
body = (Object)#1
clientId = "DirectHTTPChannel0"
correlationId = "F47724D4-8FAF-7D5C-E631-6FF1947FF342"
destination = ""
extendedData = (null)
faultCode = "Server.Error.Request"
faultDetail = "Error: [IOErrorEvent type="ioError"
bubbles=false cancelable=false eventPhase=2 text="Error #2032:
Stream Error. URL:
http://192.168.166.38/WebForce.Net/WebServices/AffiliationService.asmx"
URL:
http://192.168.166.38/WebForce.Net/WebServices/AffiliationService.asmx"
faultString = "HTTP request error"
headers = (Object)#2
messageId = "7BE472C4-2934-82C1-7C1A-6FF194BECE96"
rootCause = (flash.events::IOErrorEvent)#3
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#4
bytesLoaded = 0
bytesTotal = 0
data = (null)
dataFormat = "text"
eventPhase = 2
target = (flash.net::URLLoader)#4
text = "Error #2032: Stream Error. URL:
http://192.168.166.38/WebForce.Net/WebSer
Can any one please guide us that what we are missing . Any
work around for this .
Following is way we are configuring webservice tag in
application .
<mx:WebService id="CustomerService"
wsdl="
http://localhost/WebForce.Net/WebServices/AffiliationService.asmx?wsdl"
useProxy="false"
showBusyCursor="true"
requestTimeout="0"
fault="{handleFault(event)}"
>
</Webservice>
Didn't find the solution, but I solved my problem in another
way - I am adding data, that I wanted to pass in OUT parameters, to
SOAP response headers. The headers can be read in Flex with no
problems (although they're accessible as XML only, they will not be
de-serialized to objects).
Similar Messages
-
Disable Webservices access through web
Hi All,
In OFMW and AIA 11g ps3, how can we disable webservices access through web i.e. restrict webservice call from outside
world using OWSM security policies?
We dont want to use username based authentication or any other policies that is based on authentication and authorization.
Please let me know how can we achieve this?
Thanks in advance.Hi,
I think the best way would be to block the access to services at firewall so that these services have restricted access within the network. This can be achieved only if none of the services need to be exposed over to the internet.
Regards,
Neeraj Sehgal -
Gents,
Can anyone help me on this below thread please
WebService Access Forbidden
Regards,
SureshThe Permissions to the folder within the portal were service is deployed are all in order? Give everyone at least a "read" access and click end user check box.
-
I would like to know how one can access alfresco webservices
from actionscript 3.0 or flex 2 mx controls.. my code sofar is=
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:WebService id="alfServ"
wsdl="
http://myalfrescoserver.nl/alfresco/wsdl/authentication-service.wsdl"
endpointURI="
http://myalfrescoserver.nl/alfresco/api/AuthenticationService">
<mx:operation name="startSession">
<mx:request>
<username>admin</username>
<password>admin</password>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:TextInput x="132" y="107" id="username"/>
<mx:TextInput x="132" y="137" id="password"/>
<mx:Button x="132" y="167" label="Button"
click="alfServ.startSession.send();resultaat.text=alfServ.startSession.request.ticket"/>
<mx:TextArea x="132" y="197" width="515" height="169"
id="resultaat" text="blank"/>
</mx:Application>
regards,
MarcSolved this problem...
-
I used MX:Webservice in MXML to access a remote webservice
like
<mx:WebService id="ws" wsdl="
http://www.webservicex.com/CurrencyConvertor.asmx?WSDL">
<mx:operation name="ConversionRate"
result="convert();">
<mx:request>
<FromCurrency>{fromC.text}</FromCurrency>
<ToCurrency>{toC.text}</ToCurrency>
</mx:request>
</mx:operation>
</mx:WebService>
In flex builder it worked fine but after deploying it on a
free web hosting site, I'm getting security error.
Free web hosting website provide "ASP" scripting support...Is
creating a proxy the right approach since I do not have permission
to place crossdomain.xml in remote server. Can someone guide me to
write a proxy in ASP for the above webservice?you might not need to access WSDL. You can just post SOAP messeages on JMS queue, for posting JMS messages you can create a JMS Adapter using Oracle BPEL.
a sample soap request looks like this, you will have to create SOAP messages according to your webservice.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<m:getDataSourcesInfo xmlns:m="http://arcweb.esri.com/v2">
<group xsi:type="xsd:string">ArcWebForDev</group>
<token xsi:type="xsd:string">MyToken</token>
</m:getDataSourcesInfo>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> -
Embedded AS3 SWF access in Flex 2
I have an SWF (Action Script 3) created in Flash 9 Alpha
Public.
I can access all its methods and variables when using
SWFloader, but fail to do so when embedding it by using [Embed]
tag.
I need to do it to use it as a custom cursor (CursorManager
accepts objects of Class type as cursors). Before I was using SWF 8
(AS2) with LocalConnection, but since the new SWF 9 is in Action
Script 3, I want to use it directly.
The code looks like this:
[Embed(source = "cursor_9.swf")]
private var newCursorSymbol:Class;
private function changeCursor(event:MouseEvent):void
CursorManager.setCursor(newCursorSymbol);
The question is. Can I, and if I can, then, how, access this
swf methods from within a Flex 2 application?
or else, can the CursorManager somehow accept the content of
SWFloader, which is a MovieClip object?
Thank youThis is tough. The DisplayObject that represents the customer
cursor is instantiated internally by the CursorManager and is
stored in a private variable, so there's no way to get at it. I
believe there is a hack you can do if you ever only have one
instance of that cursor. The Class you pass to the CursorManager
can be any DisplayObject, so you can cook one up to wrap your SWF.
For example, call it MyCursor.mxml:
<mx:Canvas xmlns:mx="...">
<mx:Script>
<![CDATA[
public static var sCursorLoader: SWFLoader;
]]>
</mx:Script>
<mx:SWFLoader id="loader" source="cursor_9.swf"
creationComplete="sCursorLoader = loader"/>
</mx:Canvas>
And then use the CursorManager:
CursorManager.setCursor(MyCursor);
The idea is that once the CursorManager instantiates the
MyCursor class, the static variable will point to the SWFLoader, so
you can access it in a global way:
MyCursor.sCursorLoader
Of course, you'll have to put in some kind of delay to make
sure the SWF is completely loaded, etc. This is just something I
thought of off the top of my head, so take it with a grain of salt.
:-) -
Could not find the main class - Problem with Webservice-Access
Hello Everybody,
I'm having serious Problems with accessing a WebService (Tomcat-Axis) per executable jar-File.
I constructed a simple GUI with 3 Textboxes 1 Button and 1 Resultbox.
I use eclipse so it was no Problem to simple generate the Backgroundclient by Processing the .wsdl-File of the WS.
Now I do this:
Head_tServiceLocator serviceLocator = new Head_tServiceLocator();
Head_t service = serviceLocator.getRPCCall();
RPCCallSoapBindingStub Head_t = (RPCCallSoapBindingStub) service;and use the Webservice like an Object.
All this works very well.
Now the Problem:
Head_t service = serviceLocator.getRPCCall();this Line has to throw a ServiceException.
If i add a try-catch Block to Process the Message JAVA tells me after i exported to JAR (with Manifest-stuff and so on) and double Click on the JAR the following :
Could not find the main Class - Program will exit.
And if i add a throws Declaration to the Methodheader it tells me:
Fatal Exception Occured - Program will exit
But if i Comment out that Line at least the GUI is being displayed (so it DOES find the main-Class). But then of course the Webservice won't be accessed.
All the JARs needed (axis.jar, commons-discovery.jar and so on) are in the same Directory as the Webservice-Client.jar
Please Help me.
Greets,
ZapI am not done any typing mistake while creating the jar file i already followed the suggestion that you have mentioned but still the same error .
This is my MANIFEST.MF file created under META-INF folder
Manifest-Version: 1.0
Class-Path: qtjambi-4.4.3_01.jar qtjambi-win32-msvc2005-4.4.3_01.jar
Created-By: 1.5.0 (Sun Microsystems Inc.)
Main-Class: Ui_MainWindow
When i extracted the app.jar following this i got
1. META-INF folder inside that MAINFEST.MF file the contents i have already placed above
2. qtjambi-4.4.3_01.jar
3. qtjambi-win32-msvc2005-4.4.3_01.jar
4. Ui_MainWindow.class
Please tell me whats wrong in that i can also give you the app.jar file please let me know the email id .. -
Hi,
We have an application deployed in weblogic which needs to access a webservice. The webservice is accessible through soap-ui using the right credentials. We use basic authentication to access the webservice.
I am able to access the webservice with the correct credentials from a normal java client but when the application is deployed in weblogic, I am unable to access the ws!
Is there a setting in weblogic to enable basic authentication?
(using weblogic 11g)
Thank youThere is a difference between application server and program access to a webservice. especially is SSL used server needs the key to access the web service. What error do you get?
-
Native webservice access results in error: HTTP 401 - Unauthorized
I'm trying to use the native webservice functionallity of the 11g database (11.1.0. 6.0). According to some examples and the XML DB Developer's guide I have performed the following steps:
1: Configuring Web Services for Oracle XML DB
2: Enabling Web Services for Specific Users
3: Defined access to my server via the Access Control List (package DBMS_NETWORK_ACL_ADMIN)
When I try to access the url http://host:port I'm asked to authenticate. If I log in, I get a file-index.
When I try to access the url http://host:port/orawsv?wsdl I'm asked to authenticate. If I log in, I get the follwoing error:
ORA-29268: HTTP client error 401 - Unauthorized
I don't know what the reason for this error is.Have a look at Marks example here Testing Protocol Server WSDL functionality
Check your ACL file, DBMS_NETWORK_ACL_ADMIN and XDB_WEBSERVICES_XXXX roles for the account you use to connect -
Database access from flex thro java objects
Please tell me how to access the data from the MS SQL server
through a java object and connect it to flex and display the data
in flex.
please provide me the code for this assignment.
Thanks in Advance.
Selvakumar.What would you consider when choosing between FDS and PHP
(via HTTP) for mySQL communication?
My app doesn't need to be real time but I am concerned about
the load on the webserver running PHP. Is that a typical point of
failure? -
Consume SAP WebService Bean with Flex
Hello,
I have an flex application thaht call an sap java webservice bean. And this bean have his own xml namespace.
How can I read this xml in flex ?
I have done some test with e4x but I found no solution.
flex :
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
[Bindable] private var liste:ArrayCollection = new ArrayCollection();
private function go(event:Event):void {
ws.getIViews.send();
private function ergebnis(event:ResultEvent):void {
for each(var xml:XML in event.result) {
liste.addItem(xml.child("pns:link"));
//liste = event.result as ArrayCollection;
private function fehler(event:Event):void {
Alert.show(event.target.toString(),"Fehler");
]]>
</mx:Script>
<mx:WebService id="ws" wsdl="http://x.xxt.net:50000/xxPortalServices/Config1?wsdl">
<mx:operation name="getIViews" result="ergebnis(event)" resultFormat="e4x" fault="fehler(event)">
<mx:request>
<id>
</id>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:Button id="get" click="go(event)" label="hol"/>
<mx:DataGrid id="dg" dataProvider="" x="61" y="65">
<mx:columns>
<mx:DataGridColumn dataField="link"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
XML:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<rpl:getIViewsResponse xmlns:rpl="urn:xxPortalServicesVi">
<rpl:Response xmlns:pns="urn:com.xx.ws.prt">
<pns:IViewsModelDTO>
<pns:link>test123</pns:link>
<pns:pcdpath>portal_content/XX</pns:pcdpath>
<pns:title>test123</pns:title>
</pns:IViewsModelDTO>
</rpl:Response>
</rpl:getIViewsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Edited by: Daniel Rothmund on Oct 17, 2009 6:47 PMnamespace soapen = "http://schemas.xmlsoap.org/soap/envelope/";
namespace rpl = "urn:xxPortalServicesVi";
namespace pns = "urn:com.xx.ws.prt" ;
use namespace soapen;
somevariable = responsexml.someelement (to read the entire soap body)
use namespace rpl ;
somevariable = responsexml.someelement (to read getIViewsResponse)
use namespace pns ;
somevariable = responseexml.someelement (to read rpl:Response)
i haven't tested this, but should work.
you may also check this
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_6.html
Regards
Raja
Edited by: Durairaj Athavan Raja on Oct 26, 2009 8:40 AM -
Hi ,
Using WSADMIN, WSCONFIG I used to test webservice. Now everything changed to SOAMANAGER.
If I want to use standard webservice provided by SAP query_view_data using NWDS , Do I need to config PI7.1 system with BI system for ESR? Or How can I access webservice without PI system ? Here is provider and consumer system is one system that is BI backend and BI Portal.Thanks. It is useful
-
File or Memory Stream Access through Flex
Dear all
I create a desktop sharing application that is written in Flex. For desktop sharing I have a component that generates a series of images of a selected screen area, where only the changed screan areas will be transmitted. I would like to pass these images to flex/flash player to send it eihter over P2P or a Flash Media Server to the listening clients. My question is:
- Can Flex/Flash attach to a memory stream object that is generated in a C++ component? Does a bridge exist here that is performant enough?
- if this bridge is not possible, can Flex/Flash read from files of the hard disk? As far as I know a local-trusted sandbox is needed. How does this look like?
Thanks in advance for your help,
Marchi,
If you want a true desktop application you can use Flex and compile it to a native desktop application using Air. If you Want to read local files from the hard disk and upload them you can do this with a normal flex/flashplayer 10 browser application. There is no restriction on what data files you can open.
The following flex app opens images on the local drive and displays them, just to give you an idea of local file access from a browser app.
http://gumbo.flashhub.net/pagedrop/ -source included -
Hello,
we have developed a szenario over SOAP-Adapter in XI (Send) for calling. Now we want use the uddi in the was to call the webservice. What we have to do? Creating a wsdl in configuration of course. But must we deploy something in uddi? What steps are to do to call the webservice direct over uddi?
Thanks in advance,
FrankThere is no dynamic dns in the TC or AEBS.
It depends on your setup, if the TC is the main router in your network, you maybe able to use some dyndns software on a computer in the network, although this seldom works as well as having the software on the router. If you have a different router and the TC is bridged then check that router for dyndns service. And you will need to port forward to the TC.
There are lots of posts about getting external access. You would need to use one of those methods. -
how do I access the soap message received when using the javax.jws.WebService interface? I would like to get to the soap body and use jaxb to create an object from it.
Use the JAX-WS Dispatch interface. Check out the Dispatch sample shipped with JAX-WS 2.0. It does almost exactly what you what except for the final binding using JAXB.. I uses a Dispatch<Source> client to invoke an operation. The SOAP body is returned from the invocation as a Source object that you can then use with JAXB.
Maybe you are looking for
-
I cant seem to open some photos on Iphoto. I downloaded like 3 months ago from my phone into the iphoto. I could access ALL of my photos back then but when I try and access them now I cant seem to open the file. When i open iphoto and open the folder
-
Business Area wise Balance sheet and P&L display
Hello SAP Gurus Can anybody tell me how to configure to view, balance sheet and Profit & Loss as per business area? Regards, Abhijit Walke
-
Spry menu appearing different in IE Browser
Hi there my spry menu is messing up when viewed in the Internet Explorer Browser. Everything appears fine when viewed in Firefox and Chrome, the URL is http://www.theboxinghistorian.com/ Here is a view of what it should be like and is when viewed in
-
How do I create a pulp fiction look for my photo
I've been looking for a good tutorial to create a pulp fiction look for my photos. See the work of artist Thomas Allen who uses real pulp fiction books as an example. How can I recreate the look using Photoshop? I have CS3. What filters or steps shou
-
The DVD wont work either with DVD-films, Application DVD or music CD. I have tried a lens cleaner disc but it will not work. The disks is "spinning around" for a while and then they ejects. What to to? Reisnstall Mac OS?