I have a single WSDL file with multiple operations. But every body of operation soap has the same element name, but in different namespaces. Such as Soap in Operation 1.OP1: Soap in service and operation 2. Two.op2: service, where op1 and option namespace are prefix.
When I use my proxy code wsdl.exe, it is classified as service generated in Service 1 and Service 2, but if service has been changed to wsdl for 1 and 2, or If a new service has been added 3 then it becomes difficult to maintain the proxy code
Is there a way to generate Service 1 and Service 2 class names on the basis of wsdl operation instead of tag name ?
So instead I will get the class name as Operation 1 and Operation 2, Service 1 and Service 2. Thanks all
I'm afraid that there is no switch to tweaking the source code of wsdl.exe from the WSDL document Is generated.
The only way to keep it better is to get a better quality WPCDL document. If you are in a position to change it, then you can add the attribute to more custom and your service category: < / P>
Namespace op 1 {[ServiceCarcact (name = "mnellely nomesis", namespace = "http://mydomain.com/op1")] Service of the public class {[OperationCactract (name = "MyWommedMeth ")] Public Minus some method () {...}}}
As it will generate the client code:
MyNicelyNamedServiceClient client = new MyNicelyNamedServiceClient (); Client.MyAwesomeMethod (); Client.Close ();
Comments
Post a Comment