Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Service Reference (VS2013) more than one fault is declared with element name in namespace

I'm attempting to consume a web service created by Oracle Web Logic in Visual Studio 2013. I've added the service reference OK but when I call the service constructor I get the error:

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

The snippets for this operation from the WSDL is shown in the image below:

enter image description here

This exception is thrown each time I attempt to use the service, and I can't proceed any further.

Is this an issue with the WSDL or is there something I can do as a consumer?

like image 891
Paul Avatar asked Feb 26 '14 05:02

Paul


1 Answers

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

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

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

like image 181
Suresh Kumar Veluswamy Avatar answered Oct 02 '22 03:10

Suresh Kumar Veluswamy