Renaming parts of a service link

I need to access a Java-based service that defines an element portTypein the same namespace that is used by one of the schema files that it imports. Unfortunately, this circuit includes complexTypethe same name as portType!

The problem is that the Add Service Link uses the name portTypeto create the name of the service contract and creates classwith the name complexType- and creates them in the same .NET namespace. This does not work!

Is there something I can do either in the Add Service Link dialog box or in the .svcmap file to “rename” the type of service contract?


A closely related question: is there something that I could do this, if portTypeand complexTypeare in different namespaces (as, IMHO the, they have to be)?

+3
source share
3 answers

I think the short answer is unfortunately no.

Is it even possible to remotely try to convince maintainers of Java services to disambiguate from their interface? If so, I suggest lobbying for this change as much as possible, because your other options are not so great:

ExcludedTypes .svcmap, complexType, portType. complexType, , .

Reference.cs, , . , , , , , .

NamespaceMappings .svcmap, , , .

( , , portType), ServiceContractMappings .svcmap . , , , . ( , , , IMO, ).

+3

, dustinmorris. , - , , .

2 , , .

, , java-, , , .

+1

Visual Studio , - . , , " ". , , ( ).

. , ..

-1

All Articles