Web Services in AS3

I have been following a couple of discussions online bout the
absence of the web service classes in AS3. As far as I can tell,
the Adobe Developer Team will implement them eventually, but
unfortunately this has not yet been confirmed by Adobe.
I would very much like to know if the web service classes
will be coming and if possible an approximate timeframe.
The only proper solution I have seen so far is to use
compiled swc's, which is a very download heavy solution.
Our business rely heavily on web services, and the old AS2
WebService classes and the web service panel, was a great
implementation, inspite a few bugs in the system :)
Long story short; Will web services be implemented in AS3 by
Adobe, or do I need to look elsewhere for a solution?

Hi bnailWedge,
That doesn't sound quite right to me, at least not the way
I'm seeing it
put together. AMFPHP does what SOAP does, literally. It does
it using a
different message format (AMF instead of the XML-based SOAP),
but the uses
and applications of both are the same. AMF is smaller and
faster and
Flash-only, and AMFPHP is one of the few "break-out" projects
that allows
you to use this binary format without having to run a
ColdFusion server.
However, running AMFPHP and SOAP side-by-side seems to me to
be duplicating
functionality.
That's not to say this can't be done; I'm sure it's 100
feasible, just
seems somewhat redundant. Was there a specific application
that you were
aiming to use this on? If you're looking for something fast,
small, easy to
maintain, easy to deploy, scalable, adaptable (not limited to
Flash and
PHP), and unique, I wrote something very similar called XMLs
(XMLserialization). It sends data back and forth from Flash
to/from PHP. It
also has the unique feature of allowing remote method
invokation
bi-directionally. Flash can invoke server methods, PHP can
invoke Flash
methods. Right now, all web services are invoked on the
server only. I
integrated an older 128-bite encryption library which, from
what I
understand, no remoting or web services platform currently
offers. I'm
working on whole-system serialization so that I can transfer
and
store/retrieve any Flash content like MovieClip instances,
audio data, or
anything else I can stick in a byte array. Also, a big bonus
from my point
of view, it's 100% free and open source (LGPL). If nothing
else, I could
point you to the code sections where the magic happens and
you could rip out
what you wanted. It is actually simple and easy to
understand. It still
needs a bit more work but it's not far off from what I would
consider 100%
complete.
Please free to drop me a line if you want me to send you a
package (it
will be on SourceForge soon, just have to "professionalize"
the package and
associated libraries a bit). patrick (AT) baynewmedia (dot)
com
Regards,
Patrick Bay
BAY NEW MEDIA
"bnailWedge" <[email protected]> wrote in
message
news:[email protected]...
> The reason I am asking is that I saw, over a year ago,
examples of
> amfphp/PHP
> acting as a bridge between Flash and some SOAP services
(Google was the
> example
> I think). Thought it might be of help. I cannot find it
now though.
>

Similar Messages

  • Call a RESTful web service from an AS3/AIR application

    Hi all,
    Is there a good way to call a REST web service on a Spring application from a pure actionscript air4android application?
    I know it is easy from flex ( almost TOO easy) but I have still to figure out an easy way of doing it with a pure AS3 application.
    regards,
    /Lars

    Just use the URLLoader class.

  • How to Display a PNG Depending on Web Service Response?

    Good Morning,
    I'm using the Weather.com XML web service to obtain current temperature, "feels like" temperature, and the current condition icon number.  Their service provides numerous (>20 I think) PNG files representing current condition.  How would I setup my AS3 script to basically do If...then Else statements based on the returned icon value?  For example, if icon value = 20, then display 20.png on stage?  I will need to match up the icon value to the correct PNG, and then place that PNG (as a movie clip?) on stage for a pre-defined section of the timeline.
    Thanks,
    Sid

    Thanks for suggesting the use of the SWITCH statement.  Here's what I've written thus far:
    var switchIcon:int
    switch(switchIcon){
         Case uicondicon.source=0.png:
         trace(resultXML.cc.icon)=0;
         break;
         Case uicondicon.source=11.png:
         trace(resultXML.cc.icon)=11;
         break;
         default uicondicon.source=0.png;
    When I debug the above, I receive errors 1077 (expecting CaseLabel) and 1084 (expecting colon before right brace).
    uicondicon is an instance of a UILoader on stage.  Is this an approprirate component to use as the container for the PNGs?  How do I modify the above code to compile correctly?
    Thanks much:)

  • Web Service Issue - Security or Coding problem? *HELP*

    Hello all - I am stuck on a particular problem, which I've posted under flash player but also will post here in the event that it's my issue, and not a security/player issue.
    I have built a video player in Flash/ AS3 which communicates with WSDL web services using the as3webservice code package from wellconsidered. The player makes a call at startup to check a user's progress in a series of videos, and updates that progress by talking to the web service as the videos are played back.
    Tested locally, it works flawlessly. As soon as the player is uploaded, however, the web service' hangs' - so no fault is produced, but it seems to just never connect. This is presumably because the SWF is on one server, the web service on another. I've tried uploading it to two different servers, both different than the web service server. I'm trying to avoid moving the web service to the same server that hosts the SWF.
    I've tried adding a crossdomain.xml file to the root and subdirectories of the server that hosts the web service:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM
    "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
        <site-control permitted-cross-domain-policies="master-only"/>
        <allow-access-from domain="*"/>
        <allow-http-request-headers-from domain="*" headers="*"/>
    </cross-domain-policy>
    I've also tried playing with the SWF publishing options (Local Access only vs. Network only options), but no solution seems to help. I know it's not just the web service i"m using, because public web services (such as the ones found on webservicex.net) don't connect either.
    I'm at the end of my rope, and am wondering if this is a Flash Player security issue, or something I need to reconsider from my side (such as using a different web services package).I am wondering if a crossdomain.xml does not help, what other possible areas do I need to look at? If there is an article someone could point me to, or a simliar situation they've been in, i'm iopen to all suggestions.
    Thanks so much...fg

    You can generally check what the player is doing from the browser by using firefox with the firebug plugin. For example you can see the crossdomain permission requests or other urlrequests and responses. This is a useful way to debug as it sometimes shows issues or at the very least means you can eliminate one potential cause of the issue if there are no obvious problems there.
    If you don't have firefox/firebug, then (if you can) post a url with the swf in it that exhibits the error and I or someone else can check it for you and report back.

  • Flash CS3 and Web Services (again)

    Ok, I'm sorry to be going on about this... I've seen the
    question asked before, but I am yet to find an answer.
    -I just noticed that the Web Service Connector targets only
    AS2. Along with several other components.
    I was hoping to find CS3 working BETTER with web services, as
    an example I kind of hoped that the long awaited feature of being
    able to consume a .NET dataset would be there... But instead there
    is absolutely nothing.
    So, if the Adobe plan is to say "Ok, you want to hook up to
    web services? -Get Flex!" - well then I'd appreciate knowing about
    it.
    Or, if the plan is to release hot, lovely, fresh components
    for CS3 to do this - I'd SURE like to know about that!
    Not knowing what to expect is stupid. Decisions on future
    projects need to be made. I Don't mean to scare you Adobe guys but
    ..."Silverlight"... ;-)
    So, if anyone has anything on this (CS3 data components/web
    services that is) I'd very much appreciate hearing about it.
    Thanks!

    JSON is undeniably useful. It's a great way to get data back
    and forth, but SOAP is a standard in almost all programming
    languages now and JSON isn't native in flash (not slagging it, it's
    just not native).
    <gettingonasoapbox>Webservices are one of the greatest
    tools available to web application programmers and one of the best
    innovations in web development in the past 5 years.
    </gettingonasoapbox>
    I've built a number of large scale flash applications based
    off of this ridiculously simple protocol and to make the switch to
    JSON (that's not supported natively) just to use AS3 is a fairly
    large endeavor especially since AS2 is not really "bad". Plus,
    webservices have been a constant in the past TWO versions of flash.
    It's hard to see that it would be an oversight to leave it out. It
    feels deliberate, especially without any explanation as to it's
    mysterious disappearence.
    The message this gives to us Flash developers is that Adobe
    will change it's product without warning, explanation, or even
    deprecating the class, and that you must adapt to a new product
    (Flex). However, who's to say that Flex will not be changed as
    well? AS3 has been around for a long time at this point, so I don't
    think it's a matter of time.
    The small component pack is understandable for the initial
    release with a later update, but it appears that there is not going
    to be a tree view component for AS3. In the newest version of Cold
    Fusion, they switched the tree component to an ajax control instead
    of a flash based one.
    http://www.forta.com/blog/index.cfm/2007/6/5/ColdFusion-Ajax-Tutorial-5-File-System-Browsi ng-With-The-Tree-Control
    I don't want to be a complainer or a luddite, but I just
    really realy really really really really want to use AS3 :) No
    webservice class is a total showstopper and will quickly turn flash
    into just an animation tool instead of an RIA development tool. You
    can't continue to build applications on a protocol that ceases to
    be supported.
    Then again, maybe I'm a minority in the developer group.
    Maybe if we Digg this thread and maybe Adobe will take
    notice.

  • Web service fails when waiting longer than a minute

    I have a web service which talks to asp.net webservice (website) . Everything works fine when data received is less. but when data is more which takes more than a minute to receive responce from server as3 throws fault code error (decoding error) . Is there any way in which I can ask the calling webservice to wait till it receives data.
    This happens only on frist request as IIS is slow in first responce . 2ND REQUEST do not have this problem as IIS caches the webservice and responce is fast.
    Any help please??

    There are 30 frames in one second of video. So you can specify down to the frame level, which is 1/30th of a second.
    Is the Duration box switching to some other time every time you type in 1:45:00?
    For instance this is a 5 second clip plus 3 frames. To get this set properly I would type in 1:45:00, then click done. I don't know if it is different under older versions of iMovie, as I'm using iMovie '11 for thisi example.

  • Problem accessing JDev Generated Web Service on PL/SQL Package

    Hi,
    I'v generated a web service from a pl package using the wizard in JDev for use with Adobe Flex builder. Adobe says they support two types of web services, WSDL 1.1 RPC-Encoded and Document-literal. When I create the web service as Document literal, I am able to consume the web service without errors, however, adobe cannot parse the xml because of the namespace tags. I then created an RPC-encoded type of webservice but then when I run my Flex application, it gives following error:
    [WSDLError faultString="Type tns1:text_xml not resolvable" faultCode="WSDL.BadType" faultDetail="null"]
         at mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::parseMessage()
         at mx.rpc.soap::WSDLOperation/parseMessages()
         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 SandBox/__btnGetEmployees_click()
    It seems that it does not like either something in the encoded message or the WSDL. Below is my WSDL:
    <definitions name="FamWS" targetNamespace="http://labsoma/FamWS.wsdl">

         <types>

         <schema targetNamespace="http://www.oracle.com/webservices/internal">
    <import namespace="http://labsoma/FamWS.wsdl/types/"/>

         <simpleType name="text_xml">
    <restriction base="string"/>
    </simpleType>
    </schema>

         <schema targetNamespace="http://labsoma/FamWS.wsdl/types/">
    <import namespace="http://www.oracle.com/webservices/internal"/>

         <complexType name="ArrayOfGetFamRowUser">

         <complexContent>

         <restriction base="soap11-enc:Array">

         <sequence>
    <element name="item" type="tns:GetFamRowUser"/>
    </sequence>
    <attribute ref="soap11-enc:arrayType" wsdl:arrayType="tns:GetFamRowUser[]"/>
    </restriction>
    </complexContent>
    </complexType>

         <complexType name="GetFamRowUser">

         <complexContent>

         <extension base="tns:GetFamRowBase">

         <sequence>
    <element name="firstName" type="string"/>
    <element name="id" type="decimal"/>
    <element name="lastName" type="string"/>
    </sequence>
    </extension>
    </complexContent>
    </complexType>

         <complexType name="GetFamRowBase">
    <sequence/>
    </complexType>
    </schema>
    </types>
    <message name="FamWS_getFamBeans"/>

         <message name="FamWS_getFamBeansResponse">
    <part name="result" type="tns0:ArrayOfGetFamRowUser"/>
    </message>
    <message name="FamWS_getFamXMLRowSet"/>

         <message name="FamWS_getFamXMLRowSetResponse">
    <part name="result" type="tns1:text_xml"/>
    </message>
    <message name="FamWS_getFamXMLSource"/>

         <message name="FamWS_getFamXMLSourceResponse">
    <part name="result" type="tns1:text_xml"/>
    </message>

         <portType name="FamWS">

         <operation name="getFamBeans">
    <input message="tns:FamWS_getFamBeans"/>
    <output message="tns:FamWS_getFamBeansResponse"/>
    </operation>

         <operation name="getFamXMLRowSet">
    <input message="tns:FamWS_getFamXMLRowSet"/>
    <output message="tns:FamWS_getFamXMLRowSetResponse"/>
    </operation>

         <operation name="getFamXMLSource">
    <input message="tns:FamWS_getFamXMLSource"/>
    <output message="tns:FamWS_getFamXMLSourceResponse"/>
    </operation>
    </portType>

         <binding name="FamWSSoapHttp" type="tns:FamWS">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

         <operation name="getFamBeans">
    <soap:operation soapAction="http://labsoma/FamWS.wsdl/getFamBeans"/>

         <input>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>

         <output>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="result"/>
    </output>
    </operation>

         <operation name="getFamXMLRowSet">
    <soap:operation soapAction="http://labsoma/FamWS.wsdl/getFamXMLRowSet"/>

         <input>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>

         <output>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="result"/>
    </output>
    </operation>

         <operation name="getFamXMLSource">
    <soap:operation soapAction="http://labsoma/FamWS.wsdl/getFamXMLSource"/>

         <input>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>

         <output>
    <soap:body use="encoded" namespace="http://labsoma/FamWS.wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" parts="result"/>
    </output>
    </operation>
    </binding>

         <service name="FamWS">

         <port name="FamWSSoapHttpPort" binding="tns:FamWSSoapHttp">
    <soap:address location="http://glaptop.sharpanalytics.com:8888/SandBox-GetNums-context-root/FamWSSoapHttpPort"/>
    </port>
    </service>
    </definitions>
    I'm not a XML or Web Service guru, so I hope somebody out there has had similar or can help bridge the gap of my Web Service ignorance.
    Thanks

    There are samples and more information on calling Web services from the database here:
    http://otn.oracle.com/tech/webservices/database.html

  • How to Output Nodes from XML web service to a FLV?

    Hi
    I've used AS3 to query a web service and obtain the resulting XML.  I need to parse the result down to just a few nodes for a given location.  I can tackle that separately.  I am wondering how I output the parsed XML to a flash video file (.flx)?  The video has place holders for the XML node values.  What do I need to do to place the XML results in the video?
    Thanks,
    Sid

    Andrei1 wrote:
    What is a content of XML nodes? I am not sure what you mean by "inserting nodes". Do you mean that you want to display some information over the video?
    And yes, encoders do take XMLs to inject metadata into video. But this is metadata only.
    OSML = Open Source Media Framework:
    http://www.opensourcemediaframework.com/
    By inserting nodes, I mean that the XML web service returns data for each city, which needs to be parsed to just high temp, low temp and current condition.  Those 3 values needed to be dispalyed over, or woven into, the video at each city location.  My thought was that AS3 could somehow recognize the 3 placeholders for each city and insert the high temp, low temp and condition icon into each placeholder.  However, when I import the FLV file into Flash, there are no elements into which I can infuse this data.

  • Parsing xml returned by web service

    I am calling a web service from flash and the web service
    returns xml. The xml gets urlencoded when it's put inside the soap
    wrapping xml and I'm not sure how to get rid of the soap wrapping
    and unencode the returned xml. Thanks.

    Hi vtxr1300,
    I'm not sure if you meant to say "urlencoding" because that
    looks more
    like this:
    ?title=This is a test title&description=This is a test
    description of item 1
    What you're looking at here is pure XML (with namespaces but
    you can
    ignore them for the most part...we know this is SOAP!).
    Since you posted this in the ActionScript 3 forum, I'll
    assume you'll
    want AS3 code to deal with this. Luckily, AS 3 has made it
    incredibly easy
    to extract whetever you need out of this.
    First, you just need to get this data into a standard XML
    object is it's
    not already. So..something like this:
    //xString is your XML data...SOAP return data, string, or
    whatever
    var myXML:XML=new XML(xString.toString());
    The XML object retains its nesting properties so that, for
    example, to
    access the first '<desc>' node, you must access
    '<module>' before it,
    '<modules>' before that, and so on. This is
    accomplished using the "child"
    method associated with the XML object which uses the node
    name as a
    parameter. For the '<desc>' node, for example, this
    would look like:
    myXML.child("Body").child("GetTrainingResponse").child("GetTrainingResult").child("traini ng").child("modules").child("modile").child("desc");
    A bit lengthy, but it gets the job done. Typically I would
    store s
    reference to each of the resulting "child" calls. this has
    two benefits and
    uses: It's easier to organize and easier to read than one
    long instruction,
    and it allows you to parse through multiple nodes. Each
    "child" call returns
    an XMLList object, not necessarily a single node. If there
    are multiple
    sibling nodes with the same name, for example, calling the
    "child" method
    will return an XMLList with two object nodes, not just one.
    An XMLList can
    be used much like an array so you can simply loop through the
    results to see
    all of the nodes.
    The notation for ActionScript 3 has changed a bit for node
    attributes.
    An attribute name is now referenced via an '@' symbol. For
    example, to get
    the 'xmlns' attribute of the '<GetTrainingResponse>'
    node, you would use:
    myXML.child("Body").child("GetTrainingResponse").@xmlns;
    Finally, it's worthwhile noting that the XML container
    obejct reference
    has changed. In ActionScript 2.0, an XML object would point
    to the XML
    document. The "firstChild" property of the XML object would
    point to the
    first node ('<soap>' in this instance). In ActionScript
    3.0, the XML object
    point to the first node so that the first child of the object
    in this
    instance would be the '<soap:Body>' node.
    As mentioned, you can usually ignore namespaces for objects
    you're
    familiar with. The "soap" namespace, for example, can be
    assumed since we
    know this is a SOAP response.
    Hope this helps.
    Regards,
    Patrick Bay
    BAY NEW MEDIA
    "vtxr1300" <[email protected]> wrote in
    message
    news:[email protected]...
    > Here's what the web service is returning. If I create a
    local version of
    > the
    > xml without the soap wrapping and urlencoding I can get
    all the data I
    > need...
    > I just can't figure out how to urldecode it and get rid
    of the soap xml.
    > Can
    > anyone please offer some ideas? Thanks.
    >
    > <soap:Envelope xmlns:soap="
    http://schemas.xmlsoap.org/soap/envelope/"
    > xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    > xmlns:xsd="
    http://www.w3.org/2001/XMLSchema">
    > <soap:Body>
    > <GetTrainingResponse xmlns="
    http://www.trainingondemand.com/">
    >
    <GetTrainingResult><training><modules><module><title>Item
    > 1</title><desc>This is a test description of
    the
    > item.</desc><purchaseurl>
    http://www.yahoo.com</purchaseurl><imageurl>http://www.
    >
    testsite.com/header.gif</imageurl></module><module><title>Item
    > 1</title><desc>This is a test description of
    the
    > item.</desc><purchaseurl>
    http://www.yahoo.com</purchaseurl><imageurl>http://www.
    >
    testsite.com/header.gif</imageurl></module><module><title>Item
    > 1</title><desc>This is a test description of
    the
    > item.</desc><purchaseurl>
    http://www.yahoo.com</purchaseurl><imageurl>http://www.
    >
    testsite.com/header.gif</imageurl></module><module><title>Item
    > 1</title><desc>This is a test description of
    the
    > item.</desc><purchaseurl>
    http://www.yahoo.com</purchaseurl><imageurl>http://www.
    >
    testsite.com/header.gif</imageurl></module></modules><colors><darkcolor>8396b0</
    >
    darkcolor><btngradientstart>2d6dc4<btngradientstart><btngradientend>17498f<btngr
    >
    adientend><btn2gradientstart>a5b5ca</btn2gradientstart><btn2gradientend>c4d0e0</
    >
    btn2gradientend></colors></training></GetTrainingResult>
    > </GetTrainingResponse>
    > </soap:Body>
    > </soap:Envelope>
    >

  • Issue using Flash IDE with Mac OS and Windows Web Service using NTLM authentication?

    I have an existing application that I developed on a Windows machine using CS5.  It uses a local intranet web service written in .NET using NTLM authentication.  The web service does multiple things such as read data from an SQL database, provide the user's username, and test for write/read access to a local company fileshare.  When my company upgraded, I went to a Mac with Flash CC which is great.  However, Mac's don't handle HTTP Authorization Challenge Blocks like Windows machines.  In Safari, Chrome, etc. it will pop up a little username and password box and proceed on without issue.  The issue is in Flash development.  When running the exact same application in Flash testing all script access fails with HTTP Status 401 errors.  I have searched the AS3 documentation, but the only thing built in to handle http challenge requests is in AIR not Flash.  The server admin's and I have tried all method's of cross domain policy files and access changes with no luck at all.  Does anyone have a solution to this issue?

    Did you check Apple Support Boot Camp article?
    iMac displays a black screen during installation of Windows 7
    http://www.apple.com/support/bootcamp/
    Installation Guide
    Instructions for all features and settings.
    Boot Camp FAQGet answers to commonly asked Boot Camp questions.
    Windows 7 FAQAnswers to commonly asked Windows 7 questions.

  • Flex/ActionScript3 support for web services using WS-Security

    Does Flex/ActionScript3 have support for connecting to a web
    service using WS-Security (Policy Creation). I've tried using the
    Flex Data Service "Import WSDL" method and it does not allow me to
    connect. Is there Flex/AS3 package that can handle creating the
    Policy information for a web service that utilizies WS-Security?
    Thanks,
    Tom

    quote:
    Does Flex/ActionScript3 have support for connecting to a web
    service using WS-Security (Policy Creation).
    Yes and no. The "Import WSDL" doesn't create AS3 classes that
    allow header injection of the appropriate WS-Security elements.
    I've managed to work around this using straight mx:webservice tags
    and AS3. There is an open bug at
    https://bugs.adobe.com/jira/browse/SDK-15398
    that I voted on, the more the merrier.
    http://www.jroller.com/wookets/entry/ws_security_in_flex
    Has a useful class for creating the soap header elements for a
    username token,
    In general though, it's been a challenge to get the simplest
    of WS-Security pieces working.
    -Brett

  • Error while invoking a WS-Security secured web service from Oracle BPEL..

    Hi ,
    We are facing some error while invoking a WS-Security secured web service from our BPEL Process on the windows platform(SOA 10.1.3.3.0).
    For the BPEL process we are following the same steps as given in an AMIS blog : - [http://technology.amis.nl/blog/1607/how-to-call-a-ws-security-secured-web-service-from-oracle-bpel]
    but sttill,after deploying it and passing values in it,we are getting the following error on the console :-
    &ldquo;Header [http://schemas.xmlsoap.org/ws/2004/08/addressing:Action] for ultimate recipient is required but not present in the message&rdquo;
    Any pointers in this regard will be highly appreciated.
    Thanks,
    Saurabh

    Hi James,
    Thanks for the quick reply.
    We've tried to call that web service from an HTML designed in Visual Studios with the same username and password and its working fine.
    But on the BPEL console, we are getting the error as mentioned.
    Also if you can tell me how to set the user name and password in the header of the parter link.I could not find how to do it.
    Thanks,
    Saurabh

  • Not Able To View Data in Web Service Model

    Hi ,
       I m trying to view a table using web service model.
       When i write the same code for binding it to context , i m able to view its data.
       But not so while using Web Service Model(not adaptive web service model).
       The code is: 
             Request_ZMANAGE_MAKT_ZMANAGE_ZMAKT object1 =new Request_ZMANAGE_MAKT_ZMANAGE_ZMAKT();
       wdContext.nodeRequest_ZMANAGE_MAKT_ZMANAGE_ZMAKT().bind(object1);
       object1.setResponse(new Response_ZMANAGE_MAKT_ZMANAGE_ZMAKT());
      CAn anybody plz solve my problem.
    Thanks..
    Regards,
    Ankita

    Hi,
    I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
    eg:
    select
    case
    TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2)
    = :P15_EV_LCL
    then
    span style="background-color:lightgreen"
    || TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    else
    span style="background-color:yellow"
    || TRUNC(
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    end "Effort"
    from actuals Z
    If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
    Please suggest
    Thanks
    Sudhir
    Edited by: Sudhir_N on Mar 23, 2009 10:00 PM

  • Unable to capture return values in web services api

    At the time of login to web services if my server is down ,
    it returns following error :
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
            at java.lang.String.substring(String.java:1438)
            at java.lang.String.substring(String.java:1411)
    I want to capture this error so that i can try another server to login. how do i capture this error
    Another place where i want to capture the return Value is when i look for a report on the server
    rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
                               "@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
    oInfoObjects = rh.getInfoObjects();
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    Here if the report is not there on the server , it returns a null handler exception.
    but if i try catching it by checking my responsehandler is null  like rh == null  it does not catch it.
    Any help will be appreciated
    thanks
    Rakesh Gupta

    Ted : i have two cases
    1)   server = server_st.nextToken();
        providerURL = "http://"server"/dswsbobje/services";
        sessConnURL = new URL(providerURL + "/session");
       Connection boConnection = new Connection(sessConnURL);
       Session boSession = new Session(boConnection);
      EnterpriseCredential boEnterpriseCredential = new    EnterpriseCredential();
                  boEnterpriseCredential.setLogin(userid);
      boEnterpriseCredential.setPassword(pwd);
      boEnterpriseCredential.setAuthType(auth);
    SessionInfo boSI = boSession.login(boEnterpriseCredential);
    I have got a list of servers running web servcies stored in my tokens. when i pass the first server name say " test:8080" and that server is down , i want to catch somewhere in the code above that it did not get the connection so that i can loop back and try with the second server say test1:8080
    This is for failover purposes.
    at present when i was trying to capture return value of boSI it  breaks giving the error
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1438)
    at java.lang.String.substring(String.java:1411)
    2nd case :
    I am geeting reports from the server and scheduling them:
    i run the following code which works fine if reports is there
    rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
    "@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
    oInfoObjects = rh.getInfoObjects();
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    Here if  the  report  is not there on the server  then i should be able to catch from the response handle rh that it has got a null value.
    but rh does not return a null value 
    the code ultimately throws a null handle at the following line
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    i am not able to catch the null value there also.
    hope you got my issue.

  • How to allow access to web service running under ApplicationPoolIdentity

    Hi All,
    I have a WCF web service hosted in IIS 7 (or maybe 7.5, whichever comes with Windows server 2008 R2) using DefaultAppPool running under ApplicationPoolIdentity per Microsoft's recommendation. The web service needs to call a stored procedure to insert data
    to a db. The web server is on a different VM than the database server. The db server is running SQL 2008 R2. Both VMs run Windows server 2008 R2.
    When the web service tries to connect to db, it encounters this exception:
    Exception in InsertToDb()System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    Here's the connection string in web.config:
    Application Name=somewebservice;Server=somewebserver;Integrated Security=SSPI;Database=somedatabase;Connection Timeout=60"
    How should I configure SQL security to make this work?
    Thanks in advanced.

    Thanks for the link Dan. Maybe I'm the one who cause the confusion :)
    If I understand you(and Erland) correctly, you suggest using a custom, domain account for application pool identity. However, if we do that, our IT will need to maintain those accounts, and they don't  want that. So I'm choosing a built-in account called
    ApplicationPoolIdentity as the application pool identity, but it's not working. Network Service, on the other hand, works, but my boss wants us to follow MS's best practice.
    What's puzzling is that according to this: http://learn.iis.net/page.aspx/624/application-pool-identities/, both Network Service and ApplicationPoolIdentity uses machine account to access network resource (like db in this case), but in my case, Network Service
    works, but not ApplicationPoolIdentity.
    Hallo Stephen,
    with respect - it seems to me that only idiots are working at your IT ;)... It is absolutely useful to work with "service accounts" created within the domain. That's the only way to manage and control accounts!
    If you want to "pass through" the identity of the web user (SSO) you have to check whether the app pool is set to "allow impersonate". As far as I understand the ApplicationPoolIdentity-function the app pool will create a unique user named as the service.
    I assume that will not work with the connection to the sql server because this user is unknown.
    Local Service will not work because it's restriction is located to the local machine.
    Network Service will work because access to network resources will be available.
    So my recommendation is to use a dedicated service account or impersonation:
    http://msdn.microsoft.com/en-us/library/xh507fc5.aspx
    Uwe Ricken
    MCITP Database Administrator 2005
    MCITP Database Administrator 2008
    MCITS Microsoft SQL Server 2008, Database Development
    db Berater GmbH
    http://www-db-berater.de

Maybe you are looking for