Hi,

I have a base class ("ExtensionArgumentType") which has ~12 different sub 
classes derived from it.
The classes themselves are all defined in an XSD and are primarily used in SOAP.

When I try to communicate with the server using WebClient I get something like:

                "ExtensionArgument" : [{
                                "@xsi.type" : "ns2:ParameterValueType",
                                "ns2.Name" : "ScalarParameter",
                                "ns2.Value" : "Value1"
                        }, {
                                "@xsi.type" : "ns2:ParameterValueType",
                                "ns2.Name" : "ScalarComboParameter",
                                "ns2.Value" : "Value2"
                        }

I don't mind having the "@xsi.type" parameter there, and I'm happy to write 
whatever would be useful in it, but:
1. There is no ns1 anywhere in the HTTP request from WebClient, so how do I 
know which prefix to use?
2. I don't want to have prefixes on the other elements (Name & Value).

If I tell the client to ignore namespaces it won't write the xsi.type at all.
If I introduce a namespace map and give it an entry from my namespace to 
nothing it removes the namespace from Name/Value, but leaves ns2 on the type 
name.
If I introduce a namespace map and give it an entry from my namespaec to 
something that prefix is used for Name, Value & type.

Is there any way to get what I'm after?

Thanks.

Jim

Reply via email to