Click here to Skip to main content
15,936,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Team ,


I added wsdl file through add service reference option in visual studio but It is not successfully added and displaying error if I build project Which is following.


Error 1 Reference.svcmap: Failed to generate code for the service reference 'ServiceReference1'. There was an error verifying some XML Schemas generated during export: Type 'java:java.util:List' is not declared. Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter Error: The datatype 'java:java.util:List' is missing. XPath to Error Source: //wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:portType[@name='Service'] Cannot import wsdl:binding Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on. XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:portType[@name='Service'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:binding[@name='ServiceSoapBinding'] Cannot import wsdl:port Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on. XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:binding[@name='ServiceSoapBinding'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://schemas.ge.com/money/rsf/vcs']/wsdl:service[@name='Service']/wsdl:port[@name='ServiceSoap'] App_WebReferences/ServiceReference1/



I also tried to resolved issue by doing some steps is described in following link but unable to fix it . please resolve this issue.

VB
http://stackoverflow.com/questions/11112960/visual-studio-2012-error-reference-svcmap-throwing-error[^]
http://stackoverflow.com/questions/3977560/service-reference-error-failed-to-generate-code-for-the-service-reference[^]
.
Posted
Comments
Kornfeld Eliyahu Peter 20-Jul-14 4:31am    
It seems your WSDL uses usupported data type for one of the variables (java:java.util:List)...
Can we see the relevant part of the WSDL?
Member 10351252 21-Jul-14 3:03am    
No Actually If I do with Soap Ui Tool then It is consuming properly and giving request response .

If I add the wsdl through web reference , It also add properly .

Why It is not adding through service reference.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900