Moving from WSE3 to WCF causes Class member problems

Moving from WSE3 to WCF causes Class member problems

Post by UGV0ZXIgR2 » Wed, 16 Jul 2008 22:54:01


I have created a Web services using WSE3 which seems OK and works fine,
created the client using
"wsewsdl3.exe soap.tcp://ServerName/tcpRTSServerservice /out:proxy.cs
/n:Namespace /type:webClient"
and referenced classes (generated from schemas via Xsd) all provide the
correct member names.
When I try to port the service to WCF, the generated client classes have
incorrect field names.
e.g. With wsewsdl3 a the schema contains Any of type 'type' and XSD
generated the class with
""private type anyfield"
createsthe property
"public type Any
{
}
"
and wsewsdl3 generates the class in the proxy as
"private type anyfield"
createsthe property
"public type Any
{
}
"
whereas with svcutil I get
"private type anyfieldfield"
createsthe property
"public type anyfield
{
}
"
using
"svcutil.exe http://ServerName/tcpOraServService /s /language:C#
/out:proxy.cs /config:C:\app.config /NAMESPACE:*,Test_namespace"

This means that the client will not rebuild without extensive changes to the
field names.

Is this normal or have I misssed a flag with svcutil somewhere ?

--
Peter Gillham
 
 
 

1. Nested Class, Member Class, Inner Class, Local Class, Anonymous Class

2. how to call wcf service from another wcf service or class library?

Hi!

Im having problem consuming a WCF Service.
To call this Service, I created my own WCF Service with VS2008 own template.
Then I added a Service Reference to the WCF Service to consume.
So far so good, the service shows up in the Solution Explorer and all
methods as well.

Then I Created a Class to call the Service from my own WCF Service.
And everytime I try to create an object I get the same error message.

"Could not find default endpoint element that references contract Service
in the ServiceModel
client configuration section.
This might be because no configuration file was found for your application
or because no endpoint element matching this contract could be found in the
client element."

I tried all suggested solutions found on the web without success. The
web.config file shows the correct naming and URL of the WCF service I am
trying to call.

As a side note, creating a service reference and calling the WCF service
from a WinForm app works perfectly. Basically I need to do this from a class
library.

How can I make this work???

3. Is it possible to set a class member to be another class member?

4. Can a sub-class (composite object) member function access private or protected members of base class?

5. Are private members of passed classes directly accessible to all member functions of same class

6. How to assign a reference to a class member to another class member?

7. Are private members of passed classes directly accessible to all member functions of same class

8. Re Are private members of passed classes directly accessible to all member functions of same class

9. Can Derived class static member access protected member from base class?

10. Can nested class members access private members of nesting class?

11. Problem with member and non-member binary operator in template class

12. Class Member Data and Member Function Parameters - Should Parameters Be Data Members?

13. pointer to member conversion to a pointer to member that is a member's base class

14. Fwd: pointer to member conversion to a pointer to member that is a member's base class

15. Problem accessing public members of a class by another class