Xml sendandLoad vs https

hi
I have developed an gaming web application, I load a swf in
jsp page which makes a xml.sendandLoad() request after loading.
i use struts and jboss , from the swf using sendandLoad() a
request is make to server and in response it gets an xml
its working perfectly when its HTTP but when it comes to
HTTPS the request is hitting the server but the response is not
coming the SWF is going on wainting for the response.
my server side code i generating an xml and setting it in the
printWriter of the response.
I even tried crossdomain.xml for the security policy it is
not working .
iam stuck up please help me to resolve this issue.

Here's something that might help you:
http://www.northcode.com/forums/showthread.php?s=&threadid=3803
Dan Mode
--> Adobe Community Expert
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio*
http://www.tornadostream.com
<--check this
*Must Read*
http://www.smithmediafusion.com/blog
"arovinth" <[email protected]> wrote in
message
news:erhrg0$fm6$[email protected]..
> hi
> I have developed an gaming web application, I load a swf
in jsp page which
> makes a xml.sendandLoad() request after loading.
>
> i use struts and jboss , from the swf using
sendandLoad() a request is
> make to
> server and in response it gets an xml
>
> its working perfectly when its HTTP but when it comes to
HTTPS the request
> is
> hitting the server but the response is not coming the
SWF is going on
> wainting
> for the response.
>
> my server side code i generating an xml and setting it
in the printWriter
> of
> the response.
>
> I even tried crossdomain.xml for the security policy it
is not working .
>
> iam stuck up please help me to resolve this issue.
>
>
>

Similar Messages

  • SendandLoad() vs https

    hi
    I have developed an gaming web application, I load a swf in
    jsp page which makes a xml.sendandLoad() request after loading.
    i use struts and jboss , from the swf using sendandLoad() a
    request is make to server and in response it gets an xml
    its working perfectly when its HTTP but when it comes to
    HTTPS the request is hitting the server but the response is not
    coming the SWF is going on wainting for the response.
    my server side code i generating an xml and setting it in the
    printWriter of the response.
    I even tried crossdomain.xml for the security policy it is
    not working .
    iam stuck up please help me to resolve this issue.

    Here's something that might help you:
    http://www.northcode.com/forums/showthread.php?s=&threadid=3803
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    <--check this
    *Must Read*
    http://www.smithmediafusion.com/blog
    "arovinth" <[email protected]> wrote in
    message
    news:erhrg0$fm6$[email protected]..
    > hi
    > I have developed an gaming web application, I load a swf
    in jsp page which
    > makes a xml.sendandLoad() request after loading.
    >
    > i use struts and jboss , from the swf using
    sendandLoad() a request is
    > make to
    > server and in response it gets an xml
    >
    > its working perfectly when its HTTP but when it comes to
    HTTPS the request
    > is
    > hitting the server but the response is not coming the
    SWF is going on
    > wainting
    > for the response.
    >
    > my server side code i generating an xml and setting it
    in the printWriter
    > of
    > the response.
    >
    > I even tried crossdomain.xml for the security policy it
    is not working .
    >
    > iam stuck up please help me to resolve this issue.
    >
    >
    >

  • XML.sendAndLoad - (Security-related) Error Opening URL

    Hi All,
    I know this is a common problem (I've searched), but I'm
    hoping you can help me out.
    1. What my Application Does
    My Flash app uses XML.sendAndLoad() to communicate with a
    Java Servlet on the same domain, in the same webapp.
    2. What happens when I run it on my (developer) machine
    It works.
    I connect to a url "
    http://localhost:8080/webapp1/servlet/FlashServlet"
    perfectly and pass around XML between Flash and Java
    3. What Happens on the Real Machine
    The Real Machines equivalent URL is
    http://int-tzn:8101/webapp1/servlet/FlashServlet
    The XML.sendAndLoad() cannot connect, with a "Error Opening
    URL" error.
    4. What I've Tried
    4.1. Using a
    crossdomain.xml on Real Machine
    (not sure if I've got in correct place, but i
    can see it at
    http://int-tzn:8101/crossdomain.xml
    4.2. Tried a StandAlone (Projector) WITH Network Access
    4.3. Tried using
    LocalContentUpdater to confirm and set
    network access
    4.4. Have set in my ActionScript :
    System.security.allowDomain("*");
    Please help.
    This needs to go into a large Production Environment in 2
    days and there are large amounts of money behind it.
    Thanks in advance.
    - Laven Pillay

    OK the deal is:
    When using TLF, a user visiting your webpage will download the TLF's SWZ file, if the user already has that file it will be downloaded from the adobe site, if the adobe site is down then it will search the .swz from where the website is hosted on.
    Have a read here:
    http://help.adobe.com/en_US/flash/cs/using/WSb03e830bd6f770ee-4b0db644124bbdb363d-8000.htm l#WSb03e830bd6f770ee72b69dc71257a25aa72-8000

  • How to receive XML from Flex HTTP POST

    Hi,
    We curreontly have a setup where we have a FLEX frontend send an XML through a HTTP POST and awaiting a response also in XML. On the backend this is handled relatively simply by a PHP script that basically does the following:
    read data (in XML)from FlEX HTTP POST into a new temp XML file.
    execute a c++ program with the XML file as one of the parameter.
    return the result to FLEX
    We have decided to move to BlazeDS for various reasons.
    Looking at the examples bundled with BlazeDS they have a jsp example that returns an XML result to FLEX so that part is fine. I am trying to find an example of JSP (or Servlet) that is able to read the XML data from FLEX and write it into a temp XML file. I would then try to use runtime.exec to invoke a local C++ program to process the XML file the result of which will be sent back to FLEX.
    Any help will be very much appreciated!

    <div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>I&#8217;d avoid calling an executable just to process XML &#8211;your<br />application server would provide enough support for reading and writing XML, no?<br />Also, if you&#8217;re only planning on working with XML then even BlazeDS might<br />be overkill because its focus is on sending strongly typed ActionScript data efficiently<br />to and from a client (it&#8217;s true that it does have a proxy service, but<br />that is not involved with processing the actual XML data).<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>How complex is your XML? Do you need to resolve ids and<br />references or can you parse it top down in a single pass? There are several<br />well known libraries in Java for dealing with XML &#8211; the choice depends on<br />how you need to interact with the XML. Most of them take an InputStream as a<br />source for reading XML and you can get the InputStream from the servlet<br />request. Googling should turn up numerous examples.<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Pete<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><br /><br /><div><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> khwong<br />[mailto:[email protected]] <br><br /><b>Sent:</b> Sunday, September 28, 2008 12:09 PM<br><br /><b>To:</b> [email protected]<br><br /><b>Subject:</b> How to receive XML from Flex HTTP POST<o:p></o:p></span></p><br /><br /></div><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new discussion was started by<br />khwong in <br><br /><br><br /><b>General Discussion</b> --<br><br />  How to receive XML from Flex HTTP POST<br><br /><br><br />Hi, <br><br /><br><br />We curreontly have a setup where we have a FLEX frontend send an XML through a<br />HTTP POST and awaiting a response also in XML. On the backend this is handled<br />relatively simply by a PHP script that basically does the following: <br><br /><br><br />read data (in XML)from FlEX HTTP POST into a new temp XML file. <br><br />execute a c++ program with the XML file as one of the parameter. <br><br />return the result to FLEX <br><br /><br><br />We have decided to move to BlazeDS for various reasons. <br><br /><br><br />Looking at the examples bundled with BlazeDS they have a jsp example that<br />returns an XML result to FLEX so that part is fine. I am trying to find an<br />example of JSP (or Servlet) that is able to read the XML data from FLEX and<br />write it into a temp XML file. I would then try to use runtime.exec to invoke a<br />local C++ program to process the XML file the result of which will be sent back<br />to FLEX. <br><br /><br><br />Any help will be very much appreciated! <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b69b23">How to receive XML from<br />Flex HTTP POST</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b69b23!folder=.3c061a83">unsubscribe</a>< br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div><br /><br /></div>

  • Access XML files from HTTP

    Hi,
    I need access XML file from HTTP. Server need parameters in the URL to generate XML files. For example, http://fileserver/xmlfile?orderid=123&custid=321.
    I created a XML Data Server in ODI 11g. The JDBC Url should be jdbc:snps:xml?f=<filename>&s=<schema>&d=<DTD>.
    However, it reports error when replaced the <filename> with "http://fileserver/xmlfile?orderid=123&custid=321".
    I found it's caused by ampersand of the HTTP Url. I guess ODI treat custid=321 as JDBC parameter rather than HTTP parameter.
    How to fill the JDBC Url in this situation?
    Thanks,

    i solved my problem by using the Socket object and controlling my file access by writing requests to the outputstream

  • Cannot use XML Forms Builder - HTTP response: 500 - Internal Server Error

    Hi,
    I am trying to use XML Forms Builder, have added the corresponding role to my profile and when I create a new application or do anything I get the following error popup:
    HTTP response: 500 - Internal Server Error.
    What should I do ??
    Thank you for your help.
    Thibault Schalck

    Hi,
    Check the below link for environment checking of XML Form Builder
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9e/9c8f411467ac5fe10000000a1550b0/frameset.htm
    Raghu

  • Saving XML from Flash XML.sendAndLoad

    I'm new to XML and haven't a clue how to integrate Flash xml
    and Coldfusion 7. There is a Flash app ( I didn't develop it) that
    is sending xml.sendAndLoad formatted data like this to a cf page
    setSummaryQuiz.cfm
    <?xml version="1.0" encoding="UTF-8"?>
    <result lessonID="19" userID="56">
    <word id="281" value="1" />
    <word id="282" value="1" />
    <word id="283" value="5" />
    <word id="284" value="5" />
    <word id="285" value="3" />
    <word id="286" value="7" />
    <word id="287" value="3" />
    <word id="288" value="8" />
    <word id="289" value="7" />
    <word id="290" value="4" />
    <word id="291" value="8" />
    <word id="292" value="2" />
    <word id="293" value="5" />
    <word id="294" value="4" />
    <word id="295" value="1" />
    <word id="296" value="4" />
    <word id="297" value="8" />
    <word id="298" value="1" />
    <word id="299" value="7" />
    <word id="300" value="1" />
    </result>
    My page is supposed to return saved = true or false like
    this:
    <? xml version = " 1.0" encoding = "UTF-8"?>
    <result saved = "true"/>
    Can someone help me or point me to a tutorial or code snippet
    where I can see how CF reads and parses the XML data from
    Flash?

    In ASP setting the response type to "text/xml" you can do a
    response.write command to send back XML to Flash if you were
    performing an XMLSendAndLoad command ie. send XML from Flash,
    processed by ASP and receive an XML response from the ASP - good
    for Flash to know if something worked or an error resulted in
    processing the info.

  • Send xml file over https - urgent

    Helo everybody.
    I need to solve next problem:
    1. Build/Use a client program that can operate with the HTTPS protocol. There are no restrictions on the type of client program used, providing it can use this protocol and deal with transactions synchronously.
    2. Build/Use a program that can build a valid request XML document and attach it via a POST parameter to a HTTPS request.
    POST /<URL_TO_SUBMISSION_SITE> HTTP/1.0
    Example
    User-Agent: HTTPTool/1.0
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 9999999
    <XML_DOCUMENT> &#1048773;Post Payload
    or
    POST /<URL_TO_SUBMISSION_SITE> HTTP/1.0
    User-Agent: HTTPTool/1.0
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 9999999
    xml=<XML_DOCUMENT>
    3. Ensure the program can retrieve the HTTPS response and parse the returned XML payload.
    4. Ensure the program can correctly interpret the inquiry response information within the XML return.
    Please help me in point 2. I don't know how to attach xml document to https request.
    I'm trying something like this :
    System.setProperty("java.protocol.handler.pkgs",
         "com.sun.net.ssl.internal.www.protocol");
         try {
    url = new URL("https://" + path);
    } catch (MalformedURLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    URLConnection con = null;
    try {
    con = url.openConnection();
    con.setDoInput(true);
    con.setDoOutput(true);
    con.setAllowUserInteraction(true);
    con.setRequestProperty("Content-type", "application/x-www-form-urlencoded;charset=Cp1250");
    con.setRequestProperty("Content-Length","9999999");
    } catch (IOException e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    but without success. Please help

    Just saw a link, may be this will help you : http://resellers.tucows.com/documentation/xmlhttpspost.pdf

  • Sendandload with https

    my domain is www.mydomain.com.
    from this domain, i'm calling the function sendandload to
    "https://www.otherdomain.com" but doesn't work.
    any ideas, Im fighting with this problem many days ago
    Thanks

    Search for "Understandin Security" in the Help files and/or
    use the following link to get a better idea on the security sandbox
    you are using.
    http://www.adobe.com/devnet/flashplayer/articles/flash_player_8_security.pdf
    Tim

  • Sending xml data through http services in adobe air

    Hello every one,
    I am stucked with a problem using httpservices,
    Here's my code
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="login();">
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                [Bindable]
                private var reqData:XML = new XML();
                protected function userRequest_resultHandler(event:ResultEvent):void
                    // TODO Auto-generated method stub
                    Alert.show(event.result.toString());                   
                private function login():void
                    trace("username " +username.text)
                    trace("password " +password.text)
                    trace("request"+userRequest.request.toString());               
                     reqData =<ApplicationReq>
                        <InsType>"1"</InsType>
                        <RequestType>"3"</RequestType>
                        <TrackID>"22222222"</TrackID>
                        <Mode>"2"</Mode>
                        <ApplicationID>"11"</ApplicationID>
                        <CompanyID>"1"</CompanyID>
                        </ApplicationReq>
                    var params:Object = {};
                    params["username"] = "admin";
                    params["password"] = "admin@123";
                    userRequest.send();
                    //userRequest.send();
                protected function userRequest_faultHandler(event:FaultEvent):void
                    // TODO Auto-generated method stub
                    Alert.show(event.fault.toString());
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <s:HTTPService id="userRequest" url="http://ins.dgsecure.com/gui/xmltest3.php"
                           useProxy="false" method="POST"
                           result="userRequest_resultHandler(event)"
                           resultFormat="xml"  fault="userRequest_faultHandler(event)">
                <s:request xmlns="">                                   
                        <ApplicationReq>
                            <InsType>"1"</InsType>
                            <RequestType>"3"</RequestType>
                            <TrackID>"22222222"</TrackID>
                            <Mode>"2"</Mode>
                            <ApplicationID>"11"</ApplicationID>
                            <CompanyID>"1"</CompanyID>
                        </ApplicationReq>                               
                </s:request>
            </s:HTTPService>
        </fx:Declarations>
        <s:TextInput id="username" x="441" y="160" />
        <s:TextInput id="password" x="442" y="196"/>
        <s:Button x="459" y="244" label="login" click="login()"/>
    </s:WindowedApplication>
    if i set the content type to"application/xml " its giving RPC error, else if the data going to the server through encoding like Xmlrequest = %&ddgG&&ddjkjdj3d
    how to getout of this problem and how can i send the total xml data with http request

    Hi,
    Xcelsius/Dashboards will convert the range of values that you want to send into XML.
    It then will POST the XML when it calls the web page.
    For example, if you had created three ranges to send to your web page:
    A (a single cell)
    B (a single cell)
    C (a row of three cells)
    The data in the POST input stream for the web page will look something like this:
    <data>
      <variable name="A">
        <row>
          <column>10</column>
        </row>
      </variable>
      <variable name="B">
        <row>
          <column>15</column>
        </row>
      </variable>
      <variable name="C">
        <row>
          <column>1</column>
          <column>2</column>
          <column>3</column>
        </row>
      </variable>
    </data>
    I don't have an example for ASP, but I do for a JSP (attached).
    Regards
    Matt

  • Using Flash's xml.sendAndLoad behind a proxy

    We have a product that uses Directory and Flash to collect
    data and then we send that data to a web server via a soap call. We
    had been using an external perl script to do the soap call for many
    years and are wanting to move the code in to Flash or Directory so
    we can give the user better feed back about what is happening with
    the soap call.
    I created som flash scripts that use the XML object and the
    sendAndLoad function to do the calls. The problem I am finding is
    that if the client is behind a proxy the call fails. Is there a way
    to fix this and correctly authenticate with the proxy server so
    that the soap call goes through?

    I don't know how you'd do this using a Flash object, but
    Director's
    built-in NetLingo xtra can handle SOAP requests as of version
    10.1 and
    this, in conjunction with the proxyServer() command, should
    be all you
    need - assuming you have access to proxy details.
    <
    http://www.adobe.com/devnet/director/articles/webservices.html>

  • Need php help using xml sendandload

    info:
    var bc_xml:XML = new XML(email);
    var email:String =
    "<email>[email protected]</email>";
    bc_xml.sendAndLoad(bc_url, bc_xml, "POST");
    how do i put the [email protected] into a php variable?

    1. Syntax for sendAndLoad is not correct.
    You might want to review that and the example in the Docs
    http://livedocs.macromedia.com/flash/8/main/00002879.html
    The syntax is correct however for the loadVars class.
    2. The order for this is incorrect:
    var bc_xml:XML = new XML(email);
    var email:String =
    "<email>[email protected]</email>";
    You need to declare a variable before you use it, in this
    case the email
    variable is declared and initialized after you used it.
    3. In PHP I use
    $xmlRequest = file_get_contents("php://input");
    Then you can use the xml parser in PHP or parse yourself or
    use another
    party's parser.
    Here is a simple round trip example I use in courses:
    http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLPHP/EX01/XMLPHPEchoEx01_D oc.php
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "ck1mark" <[email protected]> wrote in
    message
    news:e1s3bn$23f$[email protected]..
    info:
    var bc_xml:XML = new XML(email);
    var email:String =
    "<email>[email protected]</email>";
    bc_xml.sendAndLoad(bc_url, bc_xml, "POST");
    how do i put the [email protected] into a php variable?

  • Give a reference to (LoadVars||XML).sendAndLoad

    I write a class to manage several HTTP echanges.
    It's a stack of url:String, method:String, datas:object and
    what-should-be-a-reference:object.
    Stacking function interface : public function
    push(url:String, method:String, datas:object, receiver:object):Void
    While unstacking, I call the sendAndLoad corresponding to the
    datas&receiver instanceof.
    The datas in the stack are a object copy of the original one
    passed to the push function and it doesn't matter.
    public function push(url:String, method:String, datas:object,
    receiver:object):Void {
    var entry = new Object();
    entry.receiver = receiver; /* MUST be a reference */
    stack.push(entry);
    In both cases, XML or LoadVars, I got the problems that when
    I modifie the .receiver variable stocked in the stack, it doesn't
    affect the original one passed to the function.
    lv.sendAndLoad(currentEntry.url, currentEntry.receiver,
    currentEntry.method);
    Is there a way to declare that I don't want a copy of the
    given param but a reference ? (or to pass a reference to a
    function)

    What is the full path to the dll file you're trying to add?
    System.xml.linq is part of the default reference libraries for a Windows Phone 8 project so you should not need to add this reference.
    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast
    your votes for existing suggestions.

  • Namespace in XML Payload for HTTP Sender

    Hello,
    I have just configured my snychronous HTTP <--> RFC Scenario. When I want to test it with some XML payload in the HTTP testing tool I get a mapping runtime exception.
    After some investigation using the test tab in the message mapping I realized that missing namespace in the XML payload caused the error. I tried to add manually a namespace to the XML and then it worked
    This is very strange I though that the namespace of the sender interface is automatically added to the XML payload?
    Do you have any information on this?

    Hi,
    U need to copy the payload from Message mapping test message tab and use that payload.
    or u can use the HTTP test client for testing the same.
    sample HTML code to create HTTP Client:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    You can also use the Wfetch application by Microsift for the same..
    download the same from below link
    http://www.iisfaq.com/Default.aspx?tabid=2975
    Thnx
    Chirag

  • XML document in HTTP response

    Hello,
    I try to write a portal component, that provides an XML document. The component must be reachable via a URL. It generates an XML document from portal content. The generated XML document must be available using the URL.
    I tried to solve this by implementing an AbstractPortalComponent iView. Inside the doContent method I write the XML document into the IPortalComponentResponse. The problem is, that the response does not only include the XML document, but the XML data is included inside an HTML document. I already set the EPCFLevel in component-profile to 0. So there is very few JavaScript left inside the HTML document. But I don't want any HTML at all. I want only the pure XML document inside the HTTP response.
    Does anybody know a way to make a plain XML document available at an URL?
    Thanks, best regards, Oliver

    Try something like this in the docontent method
    HttpServletResponse resp = request.getServletResponse(true);
    resp.setContentType("text/xml");
    resp.getOutputStream().write(bytes);

Maybe you are looking for