Char array is being turned into int array -- please help!

A

almurph

Folks,


Hope you can help me here. I am using MS Visual Studio 2008 and
the .NET framework v3.5. I have built WCF Service Application with a
method that returns a char array.
I have imported this web service into a windows application but I see
that it now returns an int array.

I'm very confused! I have checked the return type in the web service
and it is char array, so I'm very confused. Can anyone help me please?
Any suggestions/comments/proposed solutions would be most
appreciated.

Thanking you,
Al.
 
M

Marc Gravell

svcutil (via mex) does not guarantee to have a 1:1 mapping between client
and server. If you want the same definition at client and server, you can
simply copy the data-contract and service-contract between them, but the
current behavious suggests that it already isn't going to be fully portable
between different (non-.NET) clients.

For a simpler fix, why not just use a string instead of a char[]?

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top