Sending Arrays to Dot NET

I need to send some data from my application to a colleague
who's working in .NET
My data consists of two Arrays in Flex: one 2 -level and one
is one level.
What's the best way to accomplish this?

I think the best solution is this one from
http://www.themidnightcoders.com/weborb/dotnet/
. Alternatively you could use
http://fluorine.thesilentgroup.com/fluorine/index.html.
These both use remoting. Or you can use web services.

Similar Messages

  • Send data complext to Net Webservice

    Hello, I need to send array of array to Net webservice (rest) but the webservide respond the error:
    {"Exception":"Object reference not set to an instance of an object.","StackTrace":"
    I have an sample how can I send the with PHP and works but I try to send with CF code and I can not.
    This is the PHP
    $agent = array(
                        array(
                             ramoTecnico => 1,
                             codAgente => 5095
    $parameters->emissionRequest = $agent;
    My CF code:
         <cfset emissionRequest = {}>  
        <cfset emissionRequest.agente = []>
        <cfset emissionRequest.agente[1] = {}>
        <cfset emissionRequest.agente[1].ramoTecnico = "1">
        <cfset emissionRequest.agente[1].codAgente = "5095">
    or
      <cfscript>  
         emissionRequest = {
                             agente =[ {
                                            codTipoPoliza = "2",
                 ramoComercial = "5"
    </cfscript>
    what is the correct form to send it? I already tried a lot of forms and any works.
    The net programmer modified the Webservice to receive a single array and I send only the struct and ir works but when enable the second array and I send array and struct not works.
    Somebody have any hint?

    Thanks BKBK.
    I already tried a lot of different ways to send the object/parameters and I can't do it.
    If I send the agente struct empty, it the webservice detects the array.
        <cfset param= structnew() >   
        <cfset param.emissionRequest = {}>
        <cfset param.emissionRequest.codSuc = "30">
        <cfset param.emissionRequest.producto = "200">
        <cfset param.emissionRequest.poliza = {}>
        <cfset param.emissionRequest.poliza.codTipoPoliza = "2">
        <cfset param.emissionRequest.poliza.ramoComercial = "5">   
        <cfset param.emissionRequest.agente = {}>
    struct
    EMISSIONREQUEST
    struct
    AGENTE
    struct [empty]
    CODSUC
    30
    POLIZA
    struct
    CODTIPOPOLIZA
    2
    RAMOCOMERCIAL
    5
    PRODUCTO
    200
    {"Exception":"Index was out of range. Must be non-negative and less than the size of the collection.Parameter name index","StackTrace":" at System.ThrowHelper.ThrowArgumentOutOfRangeExceptionExceptionArgument argument ExceptionResource resource at System.ThrowHelper.ThrowArgumentOutOfRangeException at System.Collections.Generic.List1.get_ItemInt32 index at System.Linq.Enumerable.ElementAtTSourceIEnumerable1 source Int32 index at GMXIntegrationService.EmissionService.createPolicyEmission emissionRequest in CUsersgmx.DocumentsVisual Studio 2008ProjectsGMXIntegrationServiceTestGMXIntegrationServiceEmissionService.csline 30"}
    but if I send values in the Agente struct display the next error
        <cfset param= structnew() >   
        <cfset param.emissionRequest = {}>
        <cfset param.emissionRequest.codSuc = "30">
        <cfset param.emissionRequest.producto = "200">
        <cfset param.emissionRequest.poliza = {}>
        <cfset param.emissionRequest.poliza.codTipoPoliza = "2">
        <cfset param.emissionRequest.poliza.ramoComercial = "5">   
        <cfset param.emissionRequest.agente = {}>   
        <cfset param.emissionRequest.agente.ramoTecnico = "10">
        <cfset param.emissionRequest.agente.codTipoAgente = "15">
    struct
    EMISSIONREQUEST
    struct
    AGENTE
    struct
    CODTIPOAGENTE
    15
    RAMOTECNICO
    10
    CODSUC
    30
    POLIZA
    struct
    CODTIPOPOLIZA
    2
    RAMOCOMERCIAL
    5
    PRODUCTO
    200
    {"Exception":"Object reference not set to an instance of an object.","StackTrace":" at GMXIntegrationService.EmissionService.createPolicyEmission emissionRequest in CUsersgmx.DocumentsVisual Studio 2008ProjectsGMXIntegrationServiceTestGMXIntegrationServiceEmissionService.csline 30"}
    I don't know how can I resolve this problem. I can't believe that the CF can do send complext data to Net webservice (restfull).

  • Portal Login id and Credatinal pass to dot net application

    Hi Experts,
    I want to know is it possible to pass the portal login id and other details like Name and organization to an dotnet application.
    If it is then how can we do it.
    Please do the needfull. Important
    Regards,
    Swapnil

    Hi Sarbjeet,
    I first thought of creating URL Iview and passing the user id and other required details as parameter to that URL Iview.
    Then reading your mail i thought of creating a web dynpro java application and then pass all the required values to the url in the application only but i am confussed how i will call the dot net application.
    If you have a better suggestion please let me know how to do it.
    Regards
    Swapnil

  • SSO for Dot Net Applications

    Hi all,
    We are in the process of  integrating dot net applications with SAP.
    Can you please let us know the process to do SSO with the dot net applications which uses
    1.Integrated windows based authentication.
    2.Basic authentication
    Regards,
    Shyam.

    Shyam,
    You could refer to these threads.
    .Net to SAP Portal (SSO)
    .Net SSO with SAP
    Reward points for handy posts!
    Cheers,
    Sandeep

  • DES Encryption compatibility between Microsoft dot Net and Java

    Hi,
    I have a situation that a Secret key is shared between two components like Core and the Customer. The customer encrypts a particular data using DES algorithm using the shared secret key. The customer uses Microsoft dot Net framework to do this. The encrypted data comes to core part which has been developed in Java. I want to know whether it is possible to decrypt the data value using DES algorithm which is coming from Dot Net platform. By the way I am getting different values. I want to know whether the byte[] in Java and Dot Net are same. Please provide me relevent answers to this question. Is it possible to make interaction with the cryptography between two differnet environments like Java and Microsoft Dot Net. I mean only DES algorithm.

    DebadattaMishra wrote:
    Hi,
    I have a situation that a Secret key is shared between two components like Core and the Customer. The customer encrypts a particular data using DES algorithm using the shared secret key.Yuk! That is what SSL is for.
    The customer uses Microsoft dot Net framework to do this. The encrypted data comes to core part which has been developed in Java. I want to know whether it is possible to decrypt the data value using DES algorithm which is coming from Dot Net platform. Yes though there are many pitfalls. The devil is in the detail of the .NET code. I would not tackle this without access to the full .NET encryption code.
    By the way I am getting different values.This is not surprising since, as I said above, there are many pitfalls. The.NET documentation is poor at best and in some cases is very very misleading. Some of the .NET methods involved in key generation have obscure semantics and only after a very careful reading of lots of MS documentation did I start to understand the semantics.
    I want to know whether the byte[] in Java and Dot Net are same. You should compare the 'bits' of each byte and not the numeric values since Java uses signed bytes.
    Please provide me relevent answers to this question.This is not your call. Anyone is free to post answers as long as they follow the forum code of conduct.
    Is it possible to make interaction with the cryptography between two differnet environments like Java and Microsoft Dot Net. I mean only DES algorithm.Of course!

  • I am going to buy a new macbook pro..but i am new to mac..so i have one question...does mac os supports "java,mainframe,dot net...and etc developer programs..."....??? thanx in advance....:)

    thanx

    mohan2see wrote:
    oh thanx for the reply....actually i was worked in information technology sector company...i worked on java and mainframe platform....so if i buy an apple macbook pro and if it doesn't supports those developer programs i need to buy an pc......so i need to be confirmed....if u know abt this please explain me detailed...thanx again...:)
    Are you being serious?
    If you've done any programming in Java then I'd really have hoped you already realised it is a platform independent programming language, that was Sun's original intention when they created it ,  to be able to run compiled code on any Java Virtual Machine regardless of the platform:
    http://en.wikipedia.org/wiki/Java_%28programming_language%29
    And as for "dot net" - do you not realise that this is purely a MS Windows development framework?!!
    http://en.wikipedia.org/wiki/.NET_Framework
    Just to be clear, (and I realise I'm being picky here, given that English isn't likely to be your first language), they are not "developer programs", they are programming languages or frameworks.
    And for further clarification, the Mac operating system does support Java development, and does not support .Net (unless you install Windows on it!)
    I can't comment on the 'mainframe' bit you're referring to without more detail.

  • How to send Array data using Post Method?

    Var array = $_POST['myData'];
    array[0] => 'ABC'
    array[1] => 'DEF'
    how to improve this code to support send array data...?
    String url ="http://xxxxx/test.php";
    String[] arraystr={"ABC", "DEF", "EDFF"}
    String parameter = "myData=" +arraystr;    // no support this
    Strint str = postMrthod(url, parameter );
    public static String postMethod(String url, String parameter) {
            StringBuffer b = new StringBuffer("");
            HttpConnection hc = null;
            InputStream in = null;
            OutputStream out = null;
            try {
                hc = (HttpConnection) Connector.open(url);
                hc.setRequestMethod(HttpConnection.POST);
                hc.setRequestProperty("CONTENT-TYPE", "application/x-www-form-urlencoded");
                hc.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.0");
                out = hc.openOutputStream();
                byte postmsg[] = parameter.getBytes();
                for (int i = 0; i < postmsg.length; i++) {
                    out.write(postmsg);
    out.flush();
    in = hc.openInputStream();
    int ch;
    while ((ch = in.read()) != -1) {
    b.append((char) ch);
    } catch (IOException e) {
    e.printStackTrace();
    try {
    if (in != null) {
    in.close();
    if (hc != null) {
    hc.close();
    } catch (IOException e) {
    e.printStackTrace();
    return b.toString().trim();

    yes, you can send integer value like this. But I think you have to put quotes around <%= TAMID%> i.e.
    <input type="hidden" id="HTTP_CVHTAMID"
    name="HTTP_CVHTAMID" value= "<%= TAMID%>" >

  • Getting Error while creating the proxy generator in Dot Net Connector 2003

    Hi,
    While creating the proxy generator in Dot Net Connector 2003 i am getting following error: I am successfully able to login into the SAP system and able to select the SAP tables but during the final step of proxy generator wizard i am getting following error:
    <b>----
    Error in Proxy-Generator
    To create a proxy directly from a SAP system, you must install a Java VM from JavaSoft
    Inner error was:
    Object reference not set to an instance of an object.
    OK  
    </b>
    I have already installed the Java JVM on my machine its version is as follows:
    <b>java version "1.3.1_01"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
    Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)</b>
    Regards,
    Ravi Shah

    Hi Amit,
    I doing good!!!! Thanks for the response.
    I uninstalled the earlier version of JVM and installed the latest version of JVM i.e. jre-1_5_0_09-windows-i586-p.
    I got the proper entries under registry mentioned below:
    <b>Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in]
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.5.0_09]
    "JavaHome"="C:
    Program Files
    Java
    jre1.5.0_09"
    "UseJava2IExplorer"=dword:00000001
    "HideSystemTrayIcon"=dword:00000000
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
    "CurrentVersion"="1.5"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5]
    "JavaHome"="C:
    Program Files
    Java
    jre1.5.0_09"
    "RuntimeLib"="C:
    Program Files
    Java
    jre1.5.0_09
    bin
    client
    jvm.dll"
    "MicroVersion"="0"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5.0_09]
    "JavaHome"="C:
    Program Files
    Java
    jre1.5.0_09"
    "MicroVersion"="0"
    "RuntimeLib"="C:
    Program Files
    Java
    jre1.5.0_09
    bin
    client
    jvm.dll"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update]
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
    "Country"="IN"
    "PostStatusUrl"="https://sjremetrics.java.com/b/ss//6"
    "EnableJavaUpdate"=dword:00000001
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start]
    "CurrentVersion"="1.5.0_09"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_02]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_03]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_04]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_05]
    "Home"="C:
    Program Files
    Java Web Start"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_01]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_02]
    "Home"="C:
    Program Files
    Java Web Start"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.5.0_09]
    "Home"="C:
    Program Files
    Java
    jre1.5.0_09
    bin"</b>
    After installation I opened the Dot Net connector proxy client wizard . I followed the series of step during Dot Net connector configuration:
    1. selected the SAP connector.
    2. The next screen 'Enter Logon Information' comes where i entered the following information System as 'custom', host='IP address', Id='00' but by default it turns to '0' , client='800', user='user id' and password ='password'.
    3. After clicking on Next button i am successfully logon into the SAP system.
    4. The next screen in the wizard is 'selectall the remote function modules that you want to be part of your proxy object'. After selecting the SAP tables and clicked on Next button I am getting following error
    <b>
    Error in Proxy-Generator
    To create a proxy directly from a SAP system, you must install a Java VM from JavaSoft
    Inner error was:
    INFO: using logging implementation "AII Logging"
    Exception in thread "main" com.sap.aii.upload.api.LoginException$WrongPassword: Invalid user/password combination
         at com.sap.aii.upload.sap.SAPConnection.connect(SAPConnection.java:94)
         at com.sap.aii.upload.sap.SAPConnection.<init>(SAPConnection.java:38)
         at com.sap.aii.upload.tool.RFC2WSDLTool.getWSDLforRFCs(RFC2WSDLTool.java:81)
         at com.sap.aii.upload.tool.RFC2WSDLTool.main(RFC2WSDLTool.java:196)
    OK  
    </b>
    Thanks and Regards,
    Ravi Shah

  • Consuming XI webservice in Dot net application.

    I have created a Xi webservice and hosted it on a server.Now I want to consume this webservice in a dot net application. But while consuming it I get a binding error from the webservice.Does anyone has a solution fron this. Do I have to do some XI settings while creating  web service.

    have you used the WSDL created in XI - u can find it from http://<server>:<port>/wsnavigator/enterwsdl.html
    Also use the link in soap:address location for your test purposes.
    If proxy is involved in your network you will have to consider tht too and finally u sud use a XI user id to connect.

  • Oracle 11 g connection with asp dot net in visual studio 2008

    Hi to all,
                  My application is using oracle 11 g as database in an asp dot net project . this was basically a project in asp dot net with sql server as a database . but now this need oracle 11 g as database . I have complete the db work, but i m getting the connection problem in visual studio (2008) with oracle 11 g .
    I know for this it need a driver oracle.data.access  ,, i do nt know which version it need ?
    I have this dll . but version of it may be  earlier. thats why it is not working properly
    i have 11 g installed on the server computer , and we can only use it only on browser , I have a global.asax as a file in my dot net project in which connection string is written but i m getting error , something like ora10cc .
    first i do not know , which odac version i have to download i have  a link for this ,
    http://www.oracle.com/technetwork/database/windows/downloads/index-101290.html
    but which version exactly , this page is so confusing, for oracle 11 g, and visual studio 2008 which version will be perfect
    and then where the dll will be there. after getting  the setup, Is  i need to install that setup?
    one more confusion , where i have to install that odac , on my computer system . or on the server side system , I just need that dll file ,,
    One more thing , Is there any error in my connection string ,,
    my connection is as  follows
    "Persist Security Info=False; User ID= system; Initial Catalog=LabTrack;Server=Comp-34;Data Source=192.168.1.61\oracle11g;Password=abcd1234; DBA Privilege=normal;"
    192.168.1.61 is ip addres of system, where my oracle 11 g is install ,
    and comp-32 is my user name
    labtrack is my db  name
    Is there any need of provider name ?
    sumbody pls help me
    i m getting problem in at from 3 days
    If u can then contact me , on [email protected] , otherwise reply me here
    thanks in advance
    regards Nimish Goel

    The file at the top of that link should work fine with Oracle 11g.
    I would start trying to get the client to work outside of Visual Studio, first.  That way you can localize your issues.
    Once you get the Oracle client connected to the Oracle server, then uou can start working on Visual Studio.
    As for where to install it, I'd say start with your computer.  I'm not sure how you do your development, but that would probably be a good place to start.
    You may want a different download for the web server as I assume you wouldn't need the special Visual Studio tools on it.  But yes, it will need whichever Oracle provider you choose installed on it as well.

  • Window 7 32 bit client machine dot net exe running in IE8 or IE9 from server security warning file download issue

    Help me in the issue, Asp dot net exe which run from server in IE 8 window 7 32 bit client machine show security file save download message. This app was running fine if we don't apply any window 7 or IE8 patches. same issue when running in
    IE9. I already run the caspol, add the server link to trusted site with low security. I wonder why it was working fine without any patches.
    I just found that client machine win 7 32 bit has dot net 4.5.1 installed when updated all the patches. after uninstall the dot net 4.5.1. the application worked fine. now I wonder what are the settings need to change to run the application with dot net 4.5.1
    installed on machine. as Microsoft always has these things in window updates. thanks in advance.

    Hi Gparhar,
    In case you are posting on .NET setup forum, I suspect it is not the right forum for your issue, we talks about "setup and deployment of .NET Framework.", if you have problem on installing and uninstalling .NET 4.5.1, we can share you some advice.
    For your specific case, I recommend you consult ASP.NET forum instead:
    http://forums.asp.net/
    Regards,
    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Used a XI web service in dot net, but cannot access the message types .

    I have created a web reference in dot net for a XI web service. In the front end i have a form which has 4 fields these are the fields of my request msg in XI. But when i compile the project, i get an error 'Reference to a non-shared member requires an object reference.' I'm not able to create a object of the request and response classes.
    Need help.

    Hi,
    Please check on this blog:
    /people/sap.user72/blog/2005/10/21/xi-the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-send

  • Some adobe font OpenType are not supported by dot net framwork 2

    We have problem that some adobe' fonts (opentype) are not supported by dot net framework 2.0 .
    we have font Adobe Arabic it is installed correctly into font folder as well as appearing in other application like microsoft word .
    but is not appearing from Microsoft visual studio NET Evenrionment and also not appearing when start designing dot net window form , which display only the fonts supported by DOT NET framework 2.0
    can you please recommend us ?
    regards

    Do *any* OpenType CFF fonts work with dot Net 2.0?
    T

  • Labview communicate with ABB robot through dll Dot Net

     
    Hi all,
    Currently  I need to use labview to do the communicate with dot net, for example to read and write RAPID data, Get execute status from robot. I'm able to read from RAPID but can't manage to write. Does anyone have an idea how to do? Please advice. Thanks

    Hi,
         The NI OPC Server supporting device and drivers are here. Labview and third party device communication through OPC Server web cast avalable on here.
         Datasocket/OPC Server Example avalable on following link. \Program Files\National Instruments\LabVIEW 2009\examples\comm\datasktx.llb
    Siva
    Sivaraj M.S
    CLD

  • Calling Stored Function from DOT NET

    Hi,
    I am trying to call a stored function "PKG_MIS_USER_MASTER.ADD_USER(userid varchar2, password varchar2) return NUMBER" from my DOT NET application.
    Everything works fine within TOAD. Can anyone please help me in writing the C# code for calling a stored function along with its return value.
    Thanks in Advance.

    You can (as of 15-JUL-2005) get chapter 5 and chapter 7 of my book from the ODP.NET homepage, which is located here:
    http://www.oracle.com/technology/tech/windows/odpnet/index.html
    The link is at the bottom of the page.
    The direct link is:
    http://www.oracle.com/technology/books/pdfs/dotnet_ch5_7.pdf
    Chapter 5 covers using PL/SQL from .NET.
    - Mark

Maybe you are looking for