473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Problem in creating a WCF proxy.

Hi All,

I created a WCF Contract as follows:

[OperationContract]
double ConvertToUnit(double value, string unit);

[OperationContract]
double[] ConvertToUnitDbl(double[] value, string unit);

I have hosted this service on a console application. I also created a
winform client used the "Add Service Reference" to add a reference to
the exiting service. The added proxy created looks as follows:

[System.ServiceModel.OperationContractAttribute(Act ion="http://
tempuri.org/IUnitConversion/ConvertToUnit", ReplyAction="http://
tempuri.org/IUnitConversion/ConvertToUnitResponse")]
double ConvertToUnit(double value, string unit);

[System.ServiceModel.OperationContractAttribute(Act ion="http://
tempuri.org/IUnitConversion/ConvertToUnitDbl", ReplyAction="http://
tempuri.org/IUnitConversion/ConvertToUnitDblResponse")]
System.ComponentModel.BindingList<double>
ConvertToUnitDbl(System.ComponentModel.BindingList <doublevalue,
string unit);

All the double[] return types have been converted to
System.ComponentModel.BindingList<double. Why does this happen? How
do i make sure it stay as double[] ?

PS: When i use the svcutil.exe tool to generate the proxy it works
fine. The double[] stays as double[].

Thank you in Advance,
Pooja

May 24 '07 #1
0 1587

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bill Hauver | last post by:
I am attempting to use a web service from my work pc which is behind a firewall. I have used wsdl.exe to create the web service reference class and added it to my project. (this seems to work...
6
by: harry | last post by:
Hi, I have a program that runs on multiple client pc's. Occasionally one or more of those pc's use VPN to connect to another corporate network. When using VPN they need to set proxy server in...
4
by: Mike Woinoski | last post by:
(I'm new to VS, so please forgive me if this is a faq.) I'm writing some Java web services and need to test them with C++ clients. I can use either a Windows Form application or an MFC application....
4
by: Flare | last post by:
OK. I'll try explain my problem so simple as possible. I have to send a complex data type to a WebService from a Asp.net webapplication. My Data type look like this. (A class with a porperty)...
4
by: Steven | last post by:
I have a unmanaged (written in Delphi 6) COM+ Web Service I am accessing through C#.NET. The Web Service takes an string containing a formatted xml read through StreamReader. The problem I am...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
1
by: Jeevan | last post by:
Hi , I am working on developing an ASP.NET server control that is based on AJAX and need to call a webservice on a remote domain. To avoid the security warning from IE , I created a proxy...
7
by: Robbert van Geldrop | last post by:
Hello, I have a problem in a C# client that consumes a webservice which is wrapped by WSE 2.0 sp3: The WebService works fine but very rarely my client comes in a state where every call to the...
0
by: Tom Fredriksen | last post by:
Hi I am creating soap "proxy", of sorts, to hide a fubar soap server implemented by some proprietary guys. The point of the proxy server is to provide a SOAP 1.1 interface with described by...
0
by: jackfrancy | last post by:
Hi , When I tried to create web reference (Proxy Class) from WSDL.EXE or Visual Studio 2003 web Reference Tool Following error has occurred . “The error message from each known type may help...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.