Deserialize an array of objects from a web service

Hi, I'm calling a webservice method which returns an array of
objects (let's
say classes called MyClass).
I now want to define a class in actionscript called MyClass
which matches
the properties of the class defined in the web service
(written in .NET),
call the webservice method, and then deserialize the result
in actionscript
into an array of type MyClass.
The code I have so far is:
var mylog:Log = new Log(Log.DEBUG);
myLog.onLog = function(txt) {
var ws:WebService = new WebService(wsc.WSDLURL);
ws.onLoad = function(wsdl) {
MyPendingCallObject =
MyPendingCallObject.onResult = function(result)
// HOW CAN I DESERIALIZE the result parameter into an Array
MyClass ???
MyPendingCallObject.onFault = function(fault)
trace('FAULT! ' + fault.faultCode + "," +
// If the WSDL fails to load the onFault event is fired.
ws.onFault = function(fault) {

I posted a similar problem some time ago : =1221565&enterthread=y
Do you find any solution to your problem ?

Similar Messages

  • Is it possible to return an array of objects from a web service?

    I have been trying to do this for a while now, and I have come to the conclusion that it may be impossible. To demonstate what I want to do I enclose a simple java file [1]. I have deployed this with Axis 2 and I enclose the responce [2], it is obciously not wat I want.
    Is it porrible to do this? If so, how?
    Thanks for any help,
    package org.impress;
    public class SampleObject {
         public SampleElement[] noParameters(){
              SampleElement[] retArray = new SampleElement[2];
              retArray[0] = new SampleElement();
              retArray[0].name = "one";
              retArray[0].value = "alpha";
              retArray[1] = new SampleElement();
              retArray[1].name = "two";
              retArray[1].value = "beta";
              return retArray;
         public class SampleElement {
              public String name;
              public String value;
         <ns:return type="org.impress.SampleObject$SampleElement"/>
         <ns:return type="org.impress.SampleObject$SampleElement"/>

    Can anybody help me with the code of how to return a resultset from a web service. i have put the resultset data's in an object array and tried to return it, but in the client side no data comes ,,, i mean it is printed as null.... and plz tell me where to specify the return type of a object in the wsdl file....

  • How to access HttpRequest Object from Axis web service?

    Hi all,
    I have Axis web service named shoppingcartService,
    and i have ShoppingCartImpl as implemention class which
    implements passfamily() method
    When client access my web service, ShoppingCartImpl's passFamily method is executed.
    I have one more servlet under my axis web application which implements business logic.
    problem is that i want to call/invoke this servlet from passfamily method of ShopingCartImpl class.
    So how can i call/invoke servlet from passFamily method of ShoppingCartImpl class ?
    (All stuff is under Axis web application under Tomcat).

    the following link may helpful to you
    Prasanna Yalam

  • Extracting Array of objects from web service

    After a couple days of head banging I now have a webservice
    call executing and I am trying to extract / create a class from the
    If the xml returned from the web service is:
    <person name="Mike" />
    <person name="Dave" />
    and the class is:
    class Person
    public var Name:String;
    The result event is:
    private function doResults(result:ResultEvent):void
    // how do I create an array of Person objects from result, I
    would also like to know how to create a typed array something like
    class PersonList if possible. I just need the raw how to loop the
    result and set the values on the class

    Well I wound up with just trial and error until I got it
    working, Im sure this will be improved as I go, but it's enough to
    press on with the app for now, this code is in the result function
    and result is the ResultEvent wich appears to be an array of
    generic objects representing the objects returned by the service.
    This in no way uses FDS and is talking to a simple dotnet /
    web service.
    // here app is a singleton class for app level data it is
    bindable and is used to update the view which in this example is
    bound to a public var MyObjects which in this case is an
    ArrayCollection, I unbox to MyObject in a custom view control
    for (var s:String in result.result)
    m = new MyObject();
    m.ID = result.result[s].ID;
    m.Name = result.result[s].Name;
    m.Type = result.result[s].Type;
    It also appears that you should create the WebService one
    time, and store refrences to the methods during app startup, the
    methods are called Operations and it appears you set the result and
    fault events then call send on the operation to get the data.
    // store this in a singleton app class
    var ws:WebService = new WebService();
    ws.wsdl = "";
    // this is the operation which is also stored in the
    singleton app class
    var op:AbstractOperation = ws.getOperation("GetModules");
    // elsewere in the app we get the operation refrence setup
    result and fault and call send, then copy the generic object into
    our cutom classes using the first chunk of code above
    I thought I would post this as I could find no such example
    in the offline or online docs, If anyone has a better way or see's
    a problem please post.
    I hope helps others with non FDS service calls and I look
    forward to hearing comments.

  • Access file object from flex web app

    Hi all,
    I want to access file object from flex web app. What should i do?
    I have to take array from my XML. In XML there will be only dir path. So for taking file name from dir i have to access it and have to perform for loop on that dir.
    What should I do?
    Any Ideas?

    Hi Michael
    My question is that I dont want to give name of images in XML file.
    In XML file there will be only path of image directory. So I need to find all image name from that image directory.
    Thats why I want to access file object.
    Any ideas?    

  • Oracle ADF Mobile getting array of objects from webservice

    i am trying to fetch a certain number of records using a webservice call and then storing in the SQLLite DB in the mobile.
    i understand i can create a data control using the webservice > then?
    my webservice returns an array of objects.
    how can i do that?

    It's fairly easy.
    What I have done is created a WebService Controller (plain java class) which calls the methods (from the WS) programmaticly.
    Example :
    public class WSController {
        private final String WSDataControllerName = "ThisIsTheNameOfMyWebserviceDataControl";
        private List pnames ,ptypes ,params;
        public WSController() {
        public List getAllActioncodesFromWS()
           //start - WS empty params
            pnames = new ArrayList();
            params = new ArrayList();
            ptypes = new ArrayList();
            //end - WS empty params
            List actionCodes = new ArrayList();
                GenericType result = (GenericType)AdfmfJavaUtilities.invokeDataControlMethod(WSDataControllerName, null, "findActioncodesView1",pnames, params, ptypes);
                    for (int i = 0; i < result.getAttributeCount(); i++)
                        GenericType row = (GenericType)result.getAttribute(i);
                        Actioncode wd = (Actioncode)GenericTypeBeanSerializationHelper.fromGenericType(Actioncode.class, row);
            catch (AdfInvocationException e)
            catch (Exception e)
         return actionCodes;
        }I also defined a Pojo named Actioncode :
    Note that the attribute names are completly the same as the VO from the web service.
    public class Actioncode {
        String Actioncode,Descript1;
        public Actioncode() {
        public Actioncode(String Actioncode, String Descript1) {
            this.Actioncode = Actioncode;
            this.Descript1 = Descript1;
        public void setActioncode(String Actioncode) {
            this.Actioncode = Actioncode;
        public String getActioncode() {
            return Actioncode;
        public void setDescript1(String Descript1) {
            this.Descript1 = Descript1;
        public String getDescript1() {
            return Descript1;
    }Since the WS method returns a GenericType, you can 'convert' that object to an POJO.
    Read more about it here :
    I know the blog post is about iterating over rows in an iterator, but it's just to illustrate how you can work with the GenericType

  • Nwdi-managed access of pcd-objects from java web dynpro

    im am trying to access portal pcd-objects from a java web dynpro component (namely getting and setting personalized iview properties). for locally managed web dynpro components this works fine with the code below.
    when i try the same with a nwdi managed web dynpro component i run into problems regarding references to used dcs. for instance, i need to reference used dc SAP_JTECHS/tc/epbc/pcm/adminapi/java because the build needs tcepbcpcmadminapijava.jar which is inside the mentioned dc. but access permissions of this dc don't allow the dependency. when i try to "add used dc ..." in nwds i get the error message: illegal dependency: access list does not allow use of ...
    has someone any solution for this problem? are there other ways of accessing pcd-objects from java web dynpro (nwdi managed!)?
    private static void savePersonalizationData(String value) {
         try {
              IAttributeSet attributeSet = (IAttributeSet) getIview(IVIEW);
              attributeSet.putAttribute(ATTRIBUTE, value);
         } catch (Exception e) {
    private static Object getIview(String pcdPath) throws Exception {
         Hashtable env = new Hashtable();
         InitialContext iCtx = new InitialContext(env);
         return iCtx.lookup(pcdPath);

    Hi Kust,
    To access the PCD objects the code you used looks ok for me but your main issues is related to the dc access permissions. This thread discussed about the similar issue. Please review this below thread.
    /message/979328#979328 [original link is broken]
    Krishna Reddy

  • Creating an arrays of objects from a class

    I was wondering does any one know how to create an array of objects from a class?
    I am trying to create an array of objects of a class.
    class name ---> Class objectArray[100] = new Class;
    I cant seem to make a single class but i need to figure out how to create an array of objects.
    I can make a normal class with Class object = new Class

    There are four lines of code in your for-loop that actually do something:
    for(index = 0; index < rooms.length; index++) {
    /*1*/  assignWidth.setWidth(Double.parseDouble(in.readLine()));
    /*2*/  rooms[index] = assignWidth;
    /*3*/  assignLength.setWidth(Double.parseDouble(in.readLine());
    /*4*/  rooms[index] = assignLength;
    }1.) Sets the width of an object, that has been instantiated outside the loop.
    2.) assigns that object to the current position in the array
    3.) Sets the width of a second object that has been instantiated outside the loop
    4.) assigns that other object to the current position in the array
    btw.: I bet you meant "assignLength.setLength(Double.parseDouble(in.readLine());" in line 3 ;)
    Since each position in an array can only hold one value, the first assignment (line 2) is overwritten by the second assignment (line 4)
    When I said "construct a new room-object and assign it to rooms[index]" I meant something like this:
    for(index = 0; index < rooms.length; index++) {
        Room aNewRoom = new Room();
        rooms[index] = aNewRoom;
    }1.) Constructs a new Object in every iteration of the for-loop. (btw: I don't know what kind of objects you're using, so this needs most likely modification!!)
    2.) set the width of the newly created object
    3.) set the length of the newly created object
    4.) assign the newly created object to the current position in the array
    btw. this would do the same:
    for(index = 0; index < rooms.length; index++) {
        rooms[index] = new Room();
    }but be sure you understand it. Your teacher most likely wants you to explain it ;)

  • Can i return an Array of Objects from c++ to java ??

    hello all,
    Can i return an Array of Objects from c++ to java ??
    If so how is it possible ??

    I suggest you look into the JNI, Java Native Interface. The answer is yes.

  • Error when trying to create a types jar from a web service WSDL

    I generated a WSDL from a web service. When I try to generate a types jar from that WSDL in another project, I get an error:
    com.bea.workshop.webservices.servicecontrol.ui.except.TypeGenerationFailedException: Buildfile: C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml
    Trying to override old definition of task wsgen
    [echo] Deleting types directory c:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474
    [echo] Deleting types jar C:\eclipsews\AAATest\WebContent\WEB-INF\lib\CaregiverEBillingMasterServiceServiceTypes_xmlbeans_apache.jar
    [mkdir] Created dir: C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474
    [echo] Generating types of family xmlbeans_apache from WSDL at file:/C:/eclipsews/AAATest/src/test/CaregiverEBillingMasterServiceService.wsdl, all services. Outputting to c:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474
    [typesGen] Generating complex Java types for schema types in WSDL file:/C:/eclipsews/AAATest/src/test/CaregiverEBillingMasterServiceService.wsdl. Outputting to C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474 ...
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: [email protected]://org/abc/claims/caregiver/ebilling/services
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: [email protected]
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: [email protected]
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: [email protected]://org/abc/claims/caregiver/ebilling/services
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: [email protected]://org/abc/claims/caregiver/ebilling/services
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: [email protected]://org/abc/claims/caregiver/ebilling/services
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: [email protected]://org/abc/claims/caregiver/ebilling/services
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: [email protected]
    [typesGen] [WARNING] Generating array which is non-compliant with JaxRPC 1.1 for XML name: [email protected]
    [echo] Compiling source files from c:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474 to c:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474
    [javac] Compiling 298 source files to C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474
    [javac] ----------
    [javac] 1. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\com\abc\claims\caregiver\ebilling\ (at line 51)
    [javac]      public static parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 2. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\com\abc\claims\caregiver\ebilling\ (at line 54)
    [javac]      public static parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 3. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\com\abc\claims\caregiver\ebilling\ (at line 58)
    [javac]      public static parse( file) throws org.apache.xmlbeans.XmlException, {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 4. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\com\abc\claims\caregiver\ebilling\ (at line 61)
    [javac]      public static parse( file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 5. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\com\abc\claims\caregiver\ebilling\ (at line 64)
    [javac]      public static parse( u) throws org.apache.xmlbeans.XmlException, {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 6. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\com\abc\claims\caregiver\ebilling\ (at line 67)
    [javac]      public static parse( u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    === snipped here due to huge file size ===
    [javac] 2680. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\org\xfa\schema\xfaData\x10\ (at line 99)
    [javac]      public static org.xfa.schema.xfaData.x10.SignatureDocument parse( xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 2681. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\org\xfa\schema\xfaData\x10\ (at line 103)
    [javac]      public static newValidatingXMLInputStream( xis) throws org.apache.xmlbeans.XmlException, {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 2682. ERROR in C:\development\wlwBuild\XCaregiverEBillingMasterServiceService1297810259474\org\xfa\schema\xfaData\x10\ (at line 107)
    [javac]      public static newValidatingXMLInputStream( xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, {
    [javac]      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] No exception of type XmlException can be thrown; an exception type must be a subclass of Throwable
    [javac] ----------
    [javac] 2682 problems (2682 errors)
    C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml:73: The following error occurred while executing this line:
    C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml:107: The following error occurred while executing this line:
    C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml:181: Compile failed; see the compiler error output for details.
    Total time: 17 seconds
         at org.eclipse.jface.operation.ModalContext$
    Caused by: org.eclipse.core.runtime.CoreException: C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml:73: The following error occurred while executing this line:
    C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml:107: The following error occurred while executing this line:
    C:\eclipsews\.metadata\com.bea.workshop.webservices.servicecontrol.ui\build-dir\build.xml:181: Compile failed; see the compiler error output for details.
         at org.eclipse.ant.core.AntRunner.handleInvocationTargetException(
         ... 1 more
    I was previously able to generate a types jar just fine from the web service's WSDL. Recently, I made some changes to the web service. Apparently, these changes to the web service now cause the WSDL to be unparseable when trying to generate types jars.
    Any ideas?

    The WSDL is generated from my web service. I made heavy revisions to my web service which, in turn, affected the resultant WSDL. The changes I made to my web service were almost exclusively related to object substitution. For example, prior to the change I was referencing object A from my web service; after the change, I was referencing object B. The objects that I'm referring to are XMLBeans, if that matters. I can't really describe it more than that without actually showing you the WSDL.
    I would post the WSDL file here to allow you to try to create a types jar out of it, but the WSDL exceeds the 30000 character limit for this field. There is no way for me to attach the WSDL to this post.

  • Crystal Reports 2008 fails when called from e Web Service under 64bit OS

    I have discovered that Crystal Reports 2008 doesn't work when called from a Web Service running under 64bit Windows platforms (in my case Windows 2003 Server and Windows XP 64bit); practically no object is instantiated. I've tried several solutions without success.
    Before creating a wrapper component to use under COM+, is there anybody who has a better and cheaper solution than creating another component to wrap CR 2008 ?

    Hi Sergio,
    Before I mark this post as assumed answered I would just like to say and re-iterate that at this time there is no one answer and we fully understand your concerns. As you know in CR 6.0 it came in 16 and 32 bit versions because at the time 32 bit was relatively new but 16 bit was the norm. This is also true for 32 to 64 bit, 32 is the norm and 64 bit is relatively new. We know and are well aware 64 bit is the future and we are working as quickly as we can to move in that direction. Because of the complexity of the Product it's not simply a matter of re-compiling all of our dll's in 64 bit format. The core of our data connectivity with our database drivers which are dependant on third party clients must also need to support 64 bit modes. This as well as Printer drivers also need to be 64 compatable, there are a multitude of dependencies that we rely on that must add 64 bit support. As a programmer you are well aware of the issues around Thunking back and forth between 32 to 64 bits, it can cause delays and potentially loss of data which is a whole other issue. Not to mention also that we would have to ship both versions potentially doubling the size of the distribution packages or doubling the size of the dll's to have the ability to work in both modes. Relatively speaking of course, it would not be double the size but the variables would need to be able to allocate 32 or 64 memory blocks.
    The other option is to produce 2 separate versions, this alone is a massive project. Any issue would need to be fixed in separate code streams.
    So I'm sure you can see it's not simply a matter of saying yes we support 64 bit. It's a massive project that is going to take time to do and we have to wait for the third party drivers to commit also.
    Visual Studio .NET 2005 and 2008 is the only option if you want true 64 bit but you will be limited on what DB's you can support and export formats you can export to. They are the only drivers we did convert to 64 bit.
    Thank you for your understanding

  • Null Values From MS Web Services Toolkit Client

    I've been bashing my head against a wall on this one for too long now.
    I've got a JAX-WS web service deployed to Glassfish v2 b33 which works fine when called by a Java client. It also works fine when methods with no parameters are called from the MS client, i.e. simple and complex types are returned as they should be. However the problem I am having is that when the web service methods that take parameters are called from the MS client, the values received by the service are always null. I've montitored the service and values are being sent in the soap request, but a simple System.out.println statement in the first line of the method indicates a null value. I've captured a request from the Java client and the MS client to show the difference:
    A java request:
         <ns0:getConfig xmlns:ns0="">
    </soapenv:Envelope>and a request from the web services toolkit:
               <SOAPSDK4:getConfig xmlns:SOAPSDK4="">
    </SOAP-ENV:Envelope>I've tried everything I can think of, including changing the style from RPC/LITERAL to DOCUMENT/LITERAL, but the Java web service just seem to like the way the SOAP message is wrapped up.
    Any help on this would be greatly appreciated.

    Thanks Milan, your suggestion put me on the right track, however I've hit another snag.
    I decided the best way to solve the problem was to use the Glassfish Transformation Rules feature to take the SOAP request and transform it to a valid format before reaching the code. The XSLT file I created looks like this (I'm no XSLT guru so this will definitely need some tidying up, but for now it works): <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet  version="1.0"
         <xsl:output method="xml" indent="yes"/>
         <xsl:template match="*">
              <xsl:copy><xsl:copy-of select="@*"/><xsl:apply-templates/></xsl:copy>
         <xsl:template match="/SOAP-ENV:Envelope/SOAP-ENV:Body/*">
                   <xsl:copy-of select="@*"/>
                   <xsl:for-each select="*">
                        <xsl:text disable-output-escaping="yes"><arg</xsl:text>
                        <xsl:value-of select="position() - 1"/>
                        <xsl:text disable-output-escaping="yes">></xsl:text>
                        <xsl:value-of select="."/>
                        <xsl:text disable-output-escaping="yes"></arg</xsl:text>
                        <xsl:value-of select="position() - 1"/>
                        <xsl:text disable-output-escaping="yes">></xsl:text>
    </xsl:stylesheet> which transforms the problem SOAP request: <SOAP-ENV:Envelope
               <SOAPSDK4:getConfig xmlns:SOAPSDK4="">
    </SOAP-ENV:Envelope> to the following valid format: <?xml version="1.0" encoding="utf-8"?>
          <SOAPSDK4:getConfig xmlns:SOAPSDK4="">
    </SOAP-ENV:Envelope> But when I load the .xsl file using the Transformation Rules page and call the web service using the Microsoft Web Services Toolkit, I'm getting the following exception: [#|2007-05-11T09:23:46.530+0100|INFO|sun-appserver9.1||_ThreadID=15;_ThreadName=Thread-15;com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:1, ts:1178871826530];|ADM1041:Sent the event to instance:[com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:1, ts:1178871826530]]|#]
    [#|2007-05-11T09:27:31.675+0100|INFO|sun-appserver9.1||_ThreadID=12;_ThreadName=httpWorkerThread-4848-0;com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:2, ts:1178872051675];|ADM1041:Sent the event to instance:[com.sun.enterprise.admin.event.wsmgmt.TransformationRuleEvent -- server [1 Change(s), Id:2, ts:1178872051675]]|#]
    ERROR:  ''|#]
    com.sun.enterprise.admin.wsmgmt.transform.TransformException: javax.xml.transform.TransformerException: java.lang.NullPointerException
         at com.sun.enterprise.admin.wsmgmt.transform.FilterChain.process(
         at com.sun.enterprise.admin.wsmgmt.transform.TransformFilter.process(
         at com.sun.enterprise.admin.wsmgmt.filter.spi.FilterRouter.applyFilters(
         at com.sun.enterprise.admin.wsmgmt.agent.GlobalMessageListenerImpl.processRequest(
         at com.sun.enterprise.webservice.monitoring.WebServiceEngineImpl.processRequest(
         at com.sun.enterprise.webservice.monitoring.JAXWSEndpointImpl.processRequest(
         at com.sun.enterprise.webservice.MonitoringPipe.process(
         at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(
         at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(
         at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(
         at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(
         at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(
         at com.sun.enterprise.webservice.EjbWebServiceServlet.service(
         at javax.servlet.http.HttpServlet.service(
         at com.sun.enterprise.web.AdHocContextValve.invoke(
         at org.apache.catalina.core.StandardPipeline.doInvoke(
         at org.apache.catalina.core.StandardPipeline.doInvoke(
         at org.apache.catalina.core.StandardPipeline.invoke(
         at com.sun.enterprise.web.WebPipeline.invoke(
         at org.apache.catalina.core.StandardHostValve.invoke(
         at org.apache.catalina.core.StandardPipeline.doInvoke(
         at org.apache.catalina.core.StandardPipeline.doInvoke(
         at org.apache.catalina.core.StandardPipeline.invoke(
         at org.apache.catalina.core.ContainerBase.invoke(
         at org.apache.catalina.core.StandardEngineValve.invoke(
         at org.apache.catalina.core.StandardPipeline.doInvoke(
         at org.apache.catalina.core.StandardPipeline.doInvoke(
         at org.apache.catalina.core.StandardPipeline.invoke(
         at org.apache.catalina.core.ContainerBase.invoke(
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(
         at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(
         at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(
         at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(
    Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException
         at com.sun.enterprise.admin.wsmgmt.transform.FilterChain.process(
         ... 54 more
    Caused by: java.lang.NullPointerException
         ... 56 moreCould this be a bug or am I doing something wrong?
    Cheers again,

  • I can't figure out data binding from a web service.

    I've been trying to figure out how to connect a TreeTable control with data from a non-SAP web server. Here's what I have so far;
        I have a sample program that uses json in a variable called oData.
        I have a TreeTable control named oTable.
        I create a model;
            var oModel = new sap.ui.model.json.JSONModel();
        I feed the oData variable into it;
        Finally, I feed the oModel to the oTable;
    That all makes sense. What I want to do is get the data from a web service. The only examples I've been able to find show how to configure an SAP data service and then connect to that. They don't give any details of the format that the SAP data service is sending. I don't have access to an SAP system so I can't set one up to reverse-engineer the data. I'm going to be writting my own oData service for this so I need a couple of things;
        1. An example of json or xml data as it's sent from a web server.
        2. An example of how you pull that data from the web service to an SAP ui model.
    I could really use some help. I haven't been able to find any examples that make sense to me.

    Hi Joe
    Here is an small example. Maybe it is useful to you.
    In this example, I  bind the tree to /root and you can see that we have 0: 1: elements under each element recursively.

  • How to retrieve data from a web service

    i am at very beginner level about web services.
    I am searching for a simple example of retrieving data from a web services, but cant find.
    How can i get xml data from a web service. i dont need to develop the web service it is already ready, i just need how could i fetch data from it.
    Can somebody point out or give an example?
    Thanks in advance

    just create a skeleton for the Web Service. In JDeveloper, create a new project and then use the "NEW" context menu option.
    Navigate to "Business Tier" --> Web Services and select "Web Service Proxy"
    In teh following, provide the WSDL reference to create the Java proxy. This gives you accss to the WS without having to parse the XML yourself

  • Get xml data from a web service into Forms?

    Hello folks! I am reading active directory info from a web service into forms via imported java classes. I can read from functions that return strings just fine, but I have to get the output from getGroupUsers which returns an XmlDataDocument. How do I read this in and parse it in Forms?
    I will be grateful if y'all could point me to an example.
    Thank you,
    P.S. Here is a snippet of how I get the full name by passing an ID:
    jo ora_java.jobject;
    rv varchar2(100);
    jo :=;
    rv := ADSoapClient.getUserName(jo, 'user_ID');
    :block3.fullname := rv;

    Since you are already dealing with server-side JAVA, I would suggest you create a method that would do the parsing server-side and what your PL/SQL will be dealing with is just the return string.
    Here is a method I use to read an XML file (actually, it is an Oracle Reports file converted to XML) and from the string version, I will do search, replace and other things.
    So, from getGroupUsers which returns an XmlDataDocument, you can adapt this method to get your data server-side and let the form module read the output data.
    private String processFileXml(String fileName, int iFile) throws ParserConfigurationException, SAXException,
    IOException, XPathExpressionException{
    DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
    InputStream inputStream = new FileInputStream(new File(fileName));
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    Document doc = builder.parse(inputStream);
    StringWriter stw = new StringWriter();
    Transformer serializer = TransformerFactory.newInstance().newTransformer();
    serializer.transform(new DOMSource(doc), new StreamResult(stw));
    return stw.toString();
    catch (Exception e){
    return "OK";
    Let me know if this is of nay help.

Maybe you are looking for

  • External data Transfer - Loan Module (t.code - KCLJ)

    Hi Expert I have upload the loan source data through t.code KCLJ.  and it showing me External data transfer completed with return code: 4. there is no error but no loan is created in server and also tables is not updated. is there any further step to

  • Duplicate notifications for encrypted messages

    Hi all, We're using our C150 to quarantine emails that arrive with some form of encryption (e.g. a password-protected .zip).  When a matching email first arrives, it's correctly quarantined and sends an "Encrypted message detected" notification to th

  • Disable tableview to perform TableCell.update selction

    I am working on javafx2.2 tableview My table has 100,000 entries (3 columns one int two float), and new rows are inserted every 20 ms, I need it to have active sort capability which is achieved using binary search. But am getting very slow GUI. Initi

  • Japanese character input.

    I want to save the Japanese character input from html forms into the Oracle Database using the euc character set. Most of the users use Windows PC, so I guess most of the input would be using s-jis or MS932. Do I need to write the character code conv

  • JMF AudioPlayer

    Below code is a simple audio player using command line argument. But I am unable to run this code. When i try to compile, it gives me an error uses or overrides a deprecated API. Recompile with -Xlint:deprecation for details. I