Passing Reference to WebService

Hi all,
my kollegue want's me to evaluate the possibility of the following:
We have a WebService running on a GlassFish v2 which is named ClassA.
Class A provides a function named int plus(int, int) and returns int1 + int2.
He wants me to put a reference of a java class (which is not exported via glassfish
and running on a different VM) to Class A (the reference can be named Class B.
Inside the function plus of class A i schould do the following:
return ClassB.plus(1, 2)
I hope that someone can explain why this wont work
Kind regards
Christian

Fun, i hate selling technology to directors, isnt that there
job to learn whats new?!
But, adurkin here is what you need to do. It doesnt matter
what you pass to and from the service, its a matter of making sure
your objects match between flex and .net. Also make sure the
service you are using in flex is set to handle OBJECTS by setting
the result format to object for each of the functions you have
hanging off your service.
<mx:WebService id="WS" wsdl="
http://localhost:49753/Test_Application/App_Common/Services/ProductSearch.asmx?WSDL"
useProxy="false"
fault="Alert.show(event.fault.faultString), 'Error'"
result="onResult(event)" >
<mx:operation name="MyFunctionName"
resultFormat="object">
</mx:operation>
</mx:WebService>
Let me know if this helps, if it doesnt ill send over an
example leave me your email.
-Ryan

Similar Messages

  • Can we pass Reference cursor using dblink

    Can we pass reference cursor from one DB to another DB using DBlink?
    I feel like it is not possible because the memory structure of same will be available in other DB.
    Could you please let me know whether we can give a work around which will solve the issue.
    Regards,
    Balu

    Balu, cursor is a memory area which contains parsed SQL statement and everything needed for
    the execution of the SQL command. That, of course, is instance specific and carrying it over to another DB using db-link would make no sense whatsoever.

  • Is it possible in java to pass reference of object in Java?

    Hello,
    I'm relativily new to Java but I have "solid" knowledge in C+ and C# .NET+.
    Is it possible in java to pass reference of object in Java? I read some articles about weakreferences, softreferences, etc. but it seems that it's not what I'm looking for.
    Here is a little piece of code I wrote:
    package Software;
    import java.util.Random;
    * @author Rodrigue
    public class RandomText
        private Random rand = new Random();
        private Thread t;
        private String rText = "Rodrigue";
        public RandomText()
            t = new Thread()
                @Override
                public void run()
                    try
                        while(true)
                            UpdateText();
                            sleep(100);
                    catch(InterruptedException ex)
            t.start();
        private void UpdateText()
            int i = rand.nextInt();
            synchronized (rText)
                rText = String.valueOf(i);
        public String GetText()
            return rText;
    }It's just a class which start a thread. This class updates a text with a random integer 10 times per second.
    I would like to get a reference on the String rText (like in C++ ;) yes I know, I must think in Java :D). So, like that, I could get one time the reference, thanks to the GetText function, and update the text when my application will repaint. Otherwise, I always have to call the GetText method ... which is slow, no?
    Are objects passed by reference in java? Or, my string is duplicated each time?
    Thank you very much in advance!
    Rodrigue

    disturbedRod wrote:
    Ok, "Everything in Java is passed by value. Objects, however, are never passed at all.". Reference of object is passed by value too.
    But, how to solve my problem in Java_? I have an object which is continually modified in a thread. From an another side, this object is continually repainted in a form.I'm not sure I totally understand your problem. If you pass a reference to an object, then both the caller and the method point to the same object. Changing the internal state of the object (e.g. by calling a setter method) through one reference will be observed through both references, since they both point to the same object.
    No, calling a method is not particularly slow. Especially if it's just a simple getter method that returns the value of a member variable.
    If this is happening in a multithreaded context, you'll have to use proper synchronization to ensure that each thread sees the others' changes.

  • Cannot pass parameter to webservice using wsdl

    cannot pass parameter to webservice using wsdl
    I write code the following:
    step 1
    -->
    DECLARE
    SERVLET_NAME VARCHAR2(32) := 'orawsv';
    BEGIN
    DBMS_XDB.deleteServletMapping(SERVLET_NAME);
    DBMS_XDB.deleteServlet(SERVLET_NAME);
    DBMS_XDB.addServlet(NAME => SERVLET_NAME,
    LANGUAGE => 'C',
    DISPNAME => 'Oracle Query Web Service',
    DESCRIPT => 'Servlet for issuing queries as a Web Service',
    SCHEMA => 'XDB');
    DBMS_XDB.addServletSecRole(SERVNAME => SERVLET_NAME,
    ROLENAME => 'XDB_WEBSERVICES',
    ROLELINK => 'XDB_WEBSERVICES');
    DBMS_XDB.addServletMapping(PATTERN => '/orawsv/*',
    NAME => SERVLET_NAME);
    END;
    step 2
    --> CREATE USER test IDENTIFIED BY test QUOTA UNLIMITED ON users;
    step 3
    --> GRANT CONNECT,CREATE TABLE, CREATE PROCEDURE TO test;
    step 4
    --> GRANT XDB_WEBSERVICES TO test
    step 5
    --> GRANT XDB_WEBSERVICES_OVER_HTTP TO test
    step 6
    --> GRANT XDB_WEBSERVICES_WITH_PUBLIC TO test
    step 7
    -->
    SELECT dbms_xdb.getftpport() FROM dual;
    SELECT dbms_xdb.gethttpport() FROM dual;
    exec dbms_xdb.setHttpPort(8080);
    exec dbms_xdb.setFtpPort(2100);
    step 8
    -- Double check
    host lsnrctl STATUS
    SET head off
    -- Valid?
    SELECT * FROM dba_registry WHERE comp_id='XDB';
    SET head ON
    connect test/test;
    CREATE OR REPLACE FUNCTION FACTORIAL_I(N PLS_INTEGER)
    RETURN PLS_INTEGER
    IS
    n_result number;
    BEGIN
    IF N > 1 THEN
    n_result := N * FACTORIAL_I(N - 1);
    RETURN(n_result);
    ELSE
    RETURN(1);
    END IF;
    END;
    WSDL Output:
    http://localhost:8080/orawsv/TEST/FACTORIAL_I?wsdl
    output picture: http://www.picza.net/show.php?id=20120429vlxdlFdvFPdvF134795
    I try pass prameter by http://localhost:8080/orawsv/TEST/FACTORIAL_I?SBINARY_INTEGER-FACTORIAL_IInput=5
    but error <ErrorNumber>ORA-31011</ErrorNumber>
    Edited by: 930927 on 29 เม.ย. 2555, 9:02 น.

    Using something like SoapUI or do it via PL/SQL as shown here: Re: Ora-31011 with a very, very simple native webservice

  • Passing reference to a function as a parameter?

    Is it possible to pass a reference to a function as a parameter to a function in Java? If so, how would I do this?

    banker2010 wrote:
    georgemc wrote:
    banker2010 wrote:
    georgemc wrote:
    banker2010 wrote:
    ner0 wrote:
    Is it possible to pass a reference to a function as a parameter to a function in Java? If so, how would I do this?how do you pass a reference? where did you get this idea?Where did you get the idea you couldn't? Not from the old "Java is pass-by-value" thing, I hope. Because references are indeed passed. By value. Think about itgeorge, doesnt the book say an address or a pointer is passed in? where did you get the idea that java passes references? NO! it does not! and nobody does! never!I said "think about it"
    Don't tell me, we're mocked by valoo or some such rubbishyeah, think! the bits that are passed in represent an address or a pointer, NOT a reference! who or what passes a reference!
    demock yourself!Bye bye, daffy

  • On passing XmlObject to webservice , Root element is truncated

    Hi,
    I am using weblogic 8.1 SP2
    I have created a XmlObject and when I am passing it on the Webservice deployed
    on .NET environment. Root element of Input XML from WLI is getting truncated.
    When WLI generated a SOAP Body, it doesnt take RootElement. So problem seems to
    be with WLI only.
    XML :
    <JobChangeDataTransfer xmlns="http://albertsons.com//HIRETERM" >
    <TransactionID>TEST_ALBERTSONS</TransactionID>
    <FormatNumber>TEST_ALBERTSONS</FormatNumber>
    </JobChangeDataTransfer>
    SOAP Message :
    <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <ns:DataExchange4 xmlns:ns="http://unicru.com/">
    <ns:Auth xmlns="http://albertsons.com//HIRETERM">
    <TransactionID>TEST_ALBERTSONS</TransactionID>
    <FormatNumber>TEST_ALBERTSONS</FormatNumber>
    </ns:Auth>
    </ns:DataExchange4>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Thanks in Advance,
    Sumit

    Hi Sumit,
    I believe this was reported and resolved for SP3. Please contact our
    outstanding support team [1] and reference CR131753.
    Regards,
    Bruce
    [1]
    http://support.bea.com
    [email protected]
    Sumit wrote:
    >
    Hi,
    I am using weblogic 8.1 SP2
    I have created a XmlObject and when I am passing it on the Webservice deployed
    on .NET environment. Root element of Input XML from WLI is getting truncated.
    When WLI generated a SOAP Body, it doesnt take RootElement. So problem seems to
    be with WLI only.
    XML :
    <JobChangeDataTransfer xmlns="http://albertsons.com//HIRETERM" >
    <TransactionID>TEST_ALBERTSONS</TransactionID>
    <FormatNumber>TEST_ALBERTSONS</FormatNumber>
    </JobChangeDataTransfer>
    SOAP Message :
    <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <ns:DataExchange4 xmlns:ns="http://unicru.com/">
    <ns:Auth xmlns="http://albertsons.com//HIRETERM">
    <TransactionID>TEST_ALBERTSONS</TransactionID>
    <FormatNumber>TEST_ALBERTSONS</FormatNumber>
    </ns:Auth>
    </ns:DataExchange4>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Thanks in Advance,
    Sumit

  • Not able to Pass Reference Variables to Deferred task

    Hi All,
    I am not able to Pass the reference variables to Deferred task, With the following code, I am getting null values (for the passed refs) in Deferred Task.
    Code is as:
    <Action id='1' name='Set Deferred Task Action' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='addDeferredTask'/>
    <Argument name='type' value='User'/>
    <Argument name='name' value='$(empId)'/>
    <Argument name='authorized' value='true'/>
    <Argument name='task' value='WF_User Deferred Task'/> // Task defination
    <Argument name='date'>
    <Date>2008-11-19T14:50:18.840Z</Date>
    </Argument>
    <Argument name='taskDefinition'>
    <block trace='true'>
    <defvar name='usrObject'> // This is the variable I am passing to 'WF_User Deferred Task'
    <new class='com.waveset.object.GenericObject'/>
    </defvar>
    <invoke name='setAttributes'>
    <ref>usrObject</ref>
    <map>
    <s>accId</s>
    <ref>empId</ref>
    <s>updStatus</s>
    <ref>newStatus</ref>
    </map>
    </invoke>
    </block>
    </Argument>
    </Action>
    <Transition to='End'/>
    Please suggest me.
    Thanks,
    Ravi.

    yeah, you don't have your usrObject available in the deffered task however all variables that you put inside the usrObject are avialble. Like <ref>accId<ref> and <ref>updStatus</ref>. If you still need them organized hierarchically, you might try to add one more level to the object before passing it to addDefferedTask
                <block>
                  <defvar name='objWrapper'>
                    <new class='com.waveset.object.GenericObject'/>
                  </defvar>
                  <defvar name='usrObject'>
                    <new class='com.waveset.object.GenericObject'/>
                  </defvar>
                  <invoke name='setAttributes'>
                    <ref>usrObject</ref>
                    <map>
                      <s>accId</s>
                      <s>yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy</s>
                      <s>updStatus</s>
                      <s>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</s>
                    </map>
                  </invoke>
                  <invoke name='setAttributes'>
                    <ref>objWrapper</ref>
                    <map>
                      <s>usrObject</s>
                      <ref>usrObject</ref>
                    </map>
                  </invoke>
                  <ref>objWrapper</ref>
                </block>I hope you ve got the idea. Cheerz.

  • How to pass paramter to webservice header in mobile application

    I've adf mobile application that is built with jdeveloper 11.1.2.4 with the latest ADF mobile extension
    I've consumed  a webservice that takes Object credential , String employeeId  and return salary
    the credentials Object consist of (String username , String password) in the soap header
    i want to know how to consume this webservice and pass user name , password to the soap header as i'v used this method
    List paramNames = new ArrayList();
    paramNames.add("user_number");
    List paramsValues = new ArrayList();
    paramsValues.add("45454");
    List paramTypes = new ArrayList();
    paramTypes.add(String.class);
    try {
    result =
    (String)AdfmfJavaUtilities.invokeDataControlMethod("MYDC", null, "userInfo", paramNames,paramsValues, null);
    } catch (AdfException ae) {
    ae.printStackTrace();
    throw new AdfException("Please check your network connection", AdfException.ERROR);
    } catch (AdfInvocationException aie) {
    aie.printStackTrace();
    throw new AdfException("Please check your network connection", AdfException.ERROR);

    This is the error message appears to me
    Header Authentication Failed. Invalid Credentials.
    i want to call add to array list a parameter of type object that consist of tow string Paramters username and password and i don't know how to achieve this

  • Issues in parameter passing to DataControl(WebService based) method

    Hi ,
    Created a dataControl based on webservice ( Available via SOA composite containing mediator and business rule component ) . It needs a CustomerType as input and returns multiple parameter values.
    Issue :- When I drag and drop the method available in datacontrol on a ADF Taskflow, it asks for a input parameter "request". I don't know how to pass that.
    I have got a few examples from the google, and all of them takes the input parameter from UI and then drag and drop method as button. In my usecase, I need to process that while navigating from one jsff to other.
    I could not find a link to upload a screenshot on this thread. So I am uploading it on another site and sharing the URL http://www.4shared.com/dir/ge4eAX6v/OracleFourm.html
    Thanks,
    Rajdeep

    Let me try to expain the usecase again. I hope it will make requirement more clear.
    DataControl stucture in DataControlPallete is given below. I have create one TestTaskflow.jspx , ViewCartTaskflow.xml and ViewCart.jsff page in my application. ViewCartTaskflow.xml has one parameter cartId as taskflow parameter. Requirement is simple to set the cartId and invoke the queryOperationMethod before page loads and then display the cart in the .jsff page.
    So as per my understanding - queryOperationMethod will take #{bindings.request.currentRow.dataProvider} as input parameter. But how to set the cartId in that request object and then invoke the method before page loads.
    ShoppingCartDC
    |
    |_queryOperationParameters
    | |
    | |_ request
    | |
    | |_ MessageHeader
    | | |
    | | |_MessageId
    | |
    | |_ DataArea
    | |
    | |_ cartId
    |
    |__ queryOperation
    |
    | _ Parameters
    | |
    | |_ request
    |
    |__ return
    |
    |_ShoppingCartObject ( further multiple fields in this object )
    Thanks,
    Rajdeep

  • Passing Parameters to Webservice model context--Exception in execution

    Hi
    I have a problem while passing the values to the webservice model context.I have 9 input fields in my view 5 of them binded to directly to the model context after mapping. 4 input fields i have binded to seperate node of cardinality 1:1.
    My structure is like this
          Req_Identity_In(model root node)
            Req_Ide_SYNC (Input node of model)
                  Identity( node )
                 UserAccount(node)
                  PersonalAddress(node)
                     PersonName(Node)
                             |
                          givenname,middlename,familyname etc (Attributes)
    This structure is similar to bapi user create ECC Function module after exposing as a webservice.
    I am using the following code for bindings
    ==================
           String givenName = wdContext.currentPersonNamesDataElement().getGivenName();
           String middleName = wdContext.currentPersonNamesDataElement().getMiddleName();
           String familyName = wdContext.currentPersonNamesDataElement().getFamilyName();
           String additionalFamName = wdContext.currentPersonNamesDataElement().getAdditionalFamilyName();
           //getting the data from user for personNames
           //passing the data
           UserAccountCreateModel userAccountCreateModel = new UserAccountCreateModel();
          Request_IdentityUserAccountCreateRequestConfirmation_In request_IdentityUserAccountCreateRequestConfirmation_In = new Request_IdentityUserAccountCreateRequestConfirmation_In(userAccountCreateModel);
           IdentityUserAccountCreateRequestMessage_Sync identityUserAccountCreateRequest_Sync = new IdentityUserAccountCreateRequestMessage_Sync(userAccountCreateModel);
          request_IdentityUserAccountCreateRequestConfirmation_In.setIdentityUserAccountCreateRequest_Sync(identityUserAccountCreateRequest_Sync);
          IdtUsrAcctCrteReq_SyncIdt identity = new IdtUsrAcctCrteReq_SyncIdt(userAccountCreateModel);
          identityUserAccountCreateRequest_Sync.setIdentity(identity);
              IdtUsrAcctCrteReq_SyncUsrAcct userAccount = new IdtUsrAcctCrteReq_SyncUsrAcct(userAccountCreateModel);
              identity.setUserAccount(userAccount);
              IdtUsrAcctCrteReq_SyncDfltSettings defaultSettings = new IdtUsrAcctCrteReq_SyncDfltSettings(userAccountCreateModel);
              userAccount.setDefaultSettings(defaultSettings);
              java.util.List<NOSC_PersonalAddress> personalAddress = new ArrayList<NOSC_PersonalAddress>();
              userAccount.setPersonalAddress(personalAddress);
              NOSC_PersonName personName = new NOSC_PersonName(userAccountCreateModel);
              //kalyan
              //create the personalAddress model
              NOSC_PersonalAddress personalAddrModel = new NOSC_PersonalAddress(userAccountCreateModel);
              //create a element for PersonalAddress Node and node element.
              IPersonalAddressNode paNodeRef = wdContext.nodePersonalAddress();
              IPersonalAddressElement paNodeEle = wdContext.createPersonalAddressElement(personalAddrModel);
              //creating an element in Personname subnode and pass the data
              IPersonNameNode personNameNodeRef = paNodeRef.nodePersonName();
              IPersonNameElement personNameEle = personNameNodeRef.createPersonNameElement(personName);
              personNameEle.setGivenName(givenName);
              personNameEle.setMiddleName(middleName);
              personNameEle.setMiddleName(familyName);
              personNameEle.setAdditionalFamilyName(additionalFamName);
              //personNameNodeRef.addElement(personNameEle);
              //add the PA element to the PA node
              paNodeRef.addElement(paNodeEle);
              //add to the list
              personalAddrModel.setPersonName(personName);
              personalAddress.add(0, personalAddrModel);
              //kalyan
              NOSC_BasicBusinessDocumentMessageHeader messageHeader = new NOSC_BasicBusinessDocumentMessageHeader(userAccountCreateModel);
              identityUserAccountCreateRequest_Sync.setMessageHeader(messageHeader);
              Response_IdentityUserAccountCreateRequestConfirmation_In response = new Response_IdentityUserAccountCreateRequestConfirmation_In(userAccountCreateModel);
              request_IdentityUserAccountCreateRequestConfirmation_In.setResponse(response);
              IdentityUserAccountCreateConfirmationMessage_Sync identityUserAccountCreateConfirmation_Sync = new IdentityUserAccountCreateConfirmationMessage_Sync(userAccountCreateModel);
              response.setIdentityUserAccountCreateConfirmation_Sync(identityUserAccountCreateConfirmation_Sync);
              NOSC_Log log = new NOSC_Log(userAccountCreateModel);
                  identityUserAccountCreateConfirmation_Sync.setLog(log);
                  java.util.List<NOSC_LogItem> item = new ArrayList<NOSC_LogItem>();
                  log.setItem(item);
                  wdContext.nodeRequest_IdentityUserAccountCreateRequestConfirmation_In().bind(request_IdentityUserAccountCreateRequestConfirmation_In);
           //passing the data
           wdThis.wdGetUserCreateCompController().executeIdentityUserAccountCreateRequestConfirmation_In();
           //success
           //wdComponentAPI.getMessageManager().reportSuccess("The user created successfully");
    ================================================
    After executing i am getting the error like this
    Exception on execution of web service with WSDL URL 'http://<host>:<port>/sap/bc/srt/wsdl/bndg_DDB660678B8DB6F1934200142220669B/wsdl11/allinone/ws_policy/document?sap-client=XXX&sap-user=XXXXX&sap-password=XXXX' with operation 'IdentityUserAccountCreateRequestConfirmation_In' in interface 'IdentityUserAccountCreateRequestConfirmation_In'
    Is there any wrong in the code while passing the values to the model.
    What are the possible causes for this exception.
    Regards
    Kalyan

    I am no more working on this.

  • Passing data through webservices.

    Hi All,
    I have two doubts.
    1. Can we call a webservice without calling creating an ABAP Proxy?
    2. If yes how can i pass my internal table through webservice.
    any code snippet or wiki link regarding this will be very helpful.
    TIA
    Vikash Singh

    Hi Vikash,
    Go through the below link, it has a simple example which will help you,
    just search for "Calling a web service in ABAP that validates an email id" and click on the link of saptechnicaldotcom
    or try this
    http://help.sap.com/saphelp_nw70ehp2/helpdata/EN/1f/93163f9959a808e10000000a114084/content.htm
    Also, for transforming your internal table into XML, you can use the below piece of code
    CALL TRANSFORMATION ID  
       SOURCE root = ITAB
       RESULT XML xml_string.
    And you can pass the XML_STRING as input to the "CREATE_BY_URL_METHOD".
    But the XML_STRING will need to be in the format that the service can understand, you might have to modify it accordingly.
    Regards,
    Chen
    Edited by: Chen K V on Apr 26, 2011 1:04 PM
    Edited by: Chen K V on Apr 26, 2011 1:07 PM

  • Pass parameter to WebService call

    Hi all,
    I would like to do the same thing defined in the documention for SQLQueries but for WSDL data source
    I havew created a parameter MyParam, and I triy to add the parameter to the WSDL param with :: :MyParam
    But it doesnt works.
    Thanks.

    ChitWooi, I created a list that holds all necessary configurations just like a parameter file, and passed the list to the webservice call to invoke the workflow. See example below. Example: list[0].Name = 'Parameter Name';list[0].Value = 'Value';list[0].Scope = 'Scope'; Thanks,Eric

  • Passing array to webservice.

    I'm trying to pass an ArrayCollection of business object to a
    (.NET) webservice method which is expecting an array of business
    objects of the same structure I am sending. When I call the service
    method only one object is in the array. It is of the correct type.
    The other objects are not sent.
    I am trying to do a prototype to convince the technical
    architect that this product is worth pursuing (which I think it is)
    so I haven't time to spend a couple of days figuring these details
    out ie. I'm not just being lazy here!;-)
    TIA

    Fun, i hate selling technology to directors, isnt that there
    job to learn whats new?!
    But, adurkin here is what you need to do. It doesnt matter
    what you pass to and from the service, its a matter of making sure
    your objects match between flex and .net. Also make sure the
    service you are using in flex is set to handle OBJECTS by setting
    the result format to object for each of the functions you have
    hanging off your service.
    <mx:WebService id="WS" wsdl="
    http://localhost:49753/Test_Application/App_Common/Services/ProductSearch.asmx?WSDL"
    useProxy="false"
    fault="Alert.show(event.fault.faultString), 'Error'"
    result="onResult(event)" >
    <mx:operation name="MyFunctionName"
    resultFormat="object">
    </mx:operation>
    </mx:WebService>
    Let me know if this helps, if it doesnt ill send over an
    example leave me your email.
    -Ryan

  • Passing Dto to webservice

    Hi.
    can anybody will help me.for getting solution for the req.
    iam having requrienment to pass a dto to webservice.
    so should i have to map that dto in xml format and then needs to setup in wsdl.
    iam confused with all.please help me by giving a tutorial for the solution .
    ASAP

    Fun, i hate selling technology to directors, isnt that there
    job to learn whats new?!
    But, adurkin here is what you need to do. It doesnt matter
    what you pass to and from the service, its a matter of making sure
    your objects match between flex and .net. Also make sure the
    service you are using in flex is set to handle OBJECTS by setting
    the result format to object for each of the functions you have
    hanging off your service.
    <mx:WebService id="WS" wsdl="
    http://localhost:49753/Test_Application/App_Common/Services/ProductSearch.asmx?WSDL"
    useProxy="false"
    fault="Alert.show(event.fault.faultString), 'Error'"
    result="onResult(event)" >
    <mx:operation name="MyFunctionName"
    resultFormat="object">
    </mx:operation>
    </mx:WebService>
    Let me know if this helps, if it doesnt ill send over an
    example leave me your email.
    -Ryan

  • Not passing reference

    Can anyone explain why a control reference would not be passed to a subvi? I have a 4-boolean cluster. I'm not doing anything fancy with the references, just enable/disable/grey sort of thing. The reference gets passed to a subvi, then another subvi from there. I probe the reference on the top-level and I have a ref number, but by the time it gets to the first subvi it's gone and I get an error. I copied this portion of my application with the control and 2 subvi's and ran them apart from the main application and it runs fine. It has me a little stumped.
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell

    Never mind ... found it. I had one set (of 24) of my control/ref/subvi's on the code with the reference not connected to the subvi.
    Details schmetails ...
    Thanks anyways.
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell

Maybe you are looking for