I'm using a 3rd party web service written in Java and using Apache Axis 1.3. The service has many overload operations. When the WCF Svcutil generates the proxy, it renames the overloaded operation by appending a number after the operation name. For example:
getDataResponse getData(getDataRequest request);
getDataResponse1 getData1(getDataRequest1 request);
This by itself isn't a problem, but when Svcutil generates the request/response messages, it neglects to change the WrapperName property of the MessageContracts.
[MessageContractAttribute(
WrapperName = "getData",
WrapperNamespace = "http://namespace.com",
IsWrapped = true)]
public partial class getDataRequest1 { .. }
When the client application attempts to open the proxy, the following exception is thrown:
InvalidOperationException: RPC Message getDataRequest1 in operation getData1 has an invalid body name getData. It must be getData1
If I change WrapperName = "getData1" the proxy will open, however...
- I am unable to call the operation because the service doesn't recognize "getData1"
- The service has almost 1100 operations, of which nearly half are overloads
Is there any way to generate and/or modify the proxy so that all operations work with WCF?
Mark