User Profile

Collapse

Profile Sidebar

Collapse
maya7
maya7
Last Activity: Jan 15 '09, 09:25 PM
Joined: Dec 8 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • maya7
    started a topic Linq to XSD

    Linq to XSD

    Is it possible to run query on XSD file instead of XML?
    I need to get element from xsd, in order to get the element type.

    Thanks
    See more | Go to post

  • maya7
    replied to XML to byte[]
    Thanks for the suggestion, but it is not exactly the result I'm looking for.
    I probably didn't explain myself correctly.

    xml example:

    <header>
    <id>6368</id>
    <srcAddr>127.0. 0.1</srcAddr>
    </header>

    xsd example:

    <xs: element name= "header">
    <xs:complexType >
    <xs:sequence>
    <xs:element name="id"...
    See more | Go to post

    Leave a comment:


  • maya7
    started a topic XML to byte[]

    XML to byte[]

    Hi,

    I'm writing XML simulator that suppose to be a black box.
    Loads xml messages, transforms them into byte[] and sends to the other application via TCP/IP protocol without knowing how the application on the other side is implemented.

    I need to convert XML message to byte[] and send it via TCP/IP,
    but I can't use serialization, because nobody will do the desirialize on the other side(TCP/IP).
    Is there...
    See more | Go to post

  • maya7
    started a topic Converting XML to byte[]
    in XML

    Converting XML to byte[]

    Hi,

    I'm writing XML simulator that suppose to be a black box.
    Loads xml messages, transforms them into byte[] and sends to the other application via TCP/IP protocol without knowing how the application on the other side is implemented.

    I need to convert XML message to byte[] and send it via TCP/IP,
    but I can't use serialization, because nobody will do the desirialize on the other side(TCP/IP).
    Is there...
    See more | Go to post
    Last edited by Dormilich; Jan 8 '09, 11:09 PM. Reason: added [code] tags

  • maya7
    replied to Converting Object to byte[]
    Thanks, that what I did, it worked.
    See more | Go to post

    Leave a comment:


  • maya7
    replied to Convert object to byte[]
    I had the same problem, I couldn't find an answer, so I used a different way.
    Instead of converting an object, I builded byte[] buffer from the Object's data and sent this buffer. It worked for me.

    [code=cpp]Class nObj = (Class )obj.

    //you should know the size of the object
    byte[] buffer = new byte[MSG_SIZE];
    int index = 0;

    //set the data - insert the data in the right order
    buffer[index]...
    See more | Go to post
    Last edited by Frinavale; Dec 18 '08, 05:18 PM. Reason: added [code] tags

    Leave a comment:


  • maya7
    replied to Converting Object to byte[]
    I have ICD. I know the structure of the message that server expects to receive.
    See more | Go to post

    Leave a comment:


  • maya7
    started a topic Converting Object to byte[]

    Converting Object to byte[]

    Hi,

    I need to send byte[] msg through UDP protocol.
    I'm not sure what is the best way to convert Object to Byte[].

    If I use serialization, I'll need to desirialize this on the receiver side, correct??

    MemoryStream ms = new MemoryStream();
    BinaryFormatter bf = new BinaryFormatter ();
    bf.Serialize(ms , obj);
    ms.ToArray();


    I don't have the source code of the receiver,...
    See more | Go to post

  • maya7
    replied to unmanged & managed
    in .NET
    It's not a web application, c# windows form application

    Thanks
    See more | Go to post

    Leave a comment:


  • maya7
    started a topic unmanged & managed
    in .NET

    unmanged & managed

    Hi,

    I have a client implemented in C#, using TCP/IP protocol.
    I have to receive data from server implemented in C++, unmanaged.

    What is the most efficient way to receive data
    from the unmanaged C++ server via TCP/IP in the managed C# client ?

    Thank you so much
    See more | Go to post
No activity results to display
Show More
Working...