Error creating a Service Reference for wsdl file

Discussion in 'ASP.NET WebServices' started by manoj, Jul 19, 2014.

  1. 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.

    [​IMG] Collapse | Copy Code
    http://stackoverflow.com/questions/...2012-error-reference-svcmap-throwing-error[^]
    http://stackoverflow.com/questions/...to-generate-code-for-the-service-reference[^]
    .
     
  2. FrankC

    FrankC DiscountASP.NET Staff

Share This Page