Service reference (VS2013) is declared with more than one error with the name of the element in the namespace

I am trying to use a web service created by Oracle Web Logic in Visual Studio 2013. I added a link to the OK service, but when I call the service constructor, I get an error message:

In an operation (operationName), more than one error is declared with the element name (elementName) in the namespace (namespace URL)

Excerpts for this operation from the WSDL are shown in the image below:

enter image description here

This exception is thrown every time I try to use the service, and I cannot continue further.

Is this a problem with WSDL or is there something I can do as a consumer?

+7
c # wsdl visual-studio-2013 wcf weblogic
source share
2 answers

I am not sure what the exact cause of the problem you are facing is. Can you try to generate a proxy server using svcutil and provide it with a flag to generate using the xml serializer.

svcutil.exe / target: code / dataContractOnly / serializer: XmlSerializer / importXmlTypes [your path to the xsd file]

Here is a thread that talks about a similar problem with proxy generation: http://social.msdn.microsoft.com/Forums/vstudio/en-US/66f8c5c0-0c3e-47de-abd3-ba6e1a228f2d/wcf-proxy-data-class- duplication-bug-generating-client-proxy-for-nonwcf-service? forum = wcf

+2
source share

I have some WSDLs that cause me grief in VS newer and then 2008. I will get around it using VS2008 and adding service links there. Then I can save and transfer the generated code to my VS2010-13 projects. Unfortunately, I have not yet found another solution.

0
source share

All Articles