none
Web Service Not Generating, Axis version: 1.2.1, .NET 4.5 RRS feed

  • Question

  • I've spent a few hours trying to get this web service to work in my project. I've tried unchecking "Reuse types in referenced assemblies", with no luck. 

    This is the output from svcutil:

    C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin>svcutil /t:code http://ServerName/
    SpecWebService/services/SpecWebService?wsdl /d:test

    Microsoft (R) Service Model Metadata Tool
    [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152]
    Copyright (c) Microsoft Corporation.  All rights reserved.

    Attempting to download metadata from 'http://ServerName/SpecWebService/services/Spec
    WebService?wsdl' using WS-Metadata Exchange or DISCO.
    Error: Cannot import wsdl:portType
    Detail: An exception was thrown while running a WSDL import extension: System.Se
    rviceModel.Description.XmlSerializerMessageContractImporter
    Error: Schema with target namespace 'http://xml.apache.org/xml-soap' could not b
    e found.
    XPath to Error Source: //wsdl:definitions[@targetNamespace='http://ServerName/SpecWe
    bService/services/SpecWebService']/wsdl:portType[@name='SpecWS']


    Error: Cannot import wsdl:binding
    Detail: There was an error importing a wsdl:portType that the wsdl:binding is de
    pendent on.
    XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://ServerName/SpecW
    ebService/services/SpecWebService']/wsdl:portType[@name='SpecWS']
    XPath to Error Source: //wsdl:definitions[@targetNamespace='http://ServerName/SpecWe
    bService/services/SpecWebService']/wsdl:binding[@name='SpecWebServiceSoapBinding
    ']


    Error: Cannot import wsdl:port
    Detail: There was an error importing a wsdl:binding that the wsdl:port is depend
    ent on.
    XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://ServerName/SpecWe
    bService/services/SpecWebService']/wsdl:binding[@name='SpecWebServiceSoapBinding
    ']
    XPath to Error Source: //wsdl:definitions[@targetNamespace='http://ServerName/SpecWe
    bService/services/SpecWebService']/wsdl:service[@name='SpecWSService']/wsdl:port
    [@name='SpecWebService']


    Monday, July 20, 2015 4:06 PM

Answers

  • Hi JBRAUK,

    According to this issue , I'd like to suggest you to remove the reference and add it again after adding service reference.

    When you add a service reference, there are two ways the types that are used by the service can be handled:
    •The types are stored in a dll, and that dll is referenced from both the client and the server application.
    •The types are not in a dll referenced by the client. In that case the tool that creates the service reference, will create the types in the references.cs file.

    There are many things that can go wrong. We have found that if the tool crashes, it is sometimes faster to delete the service reference and start again.

    For more information,please refer to the following link:

    http://www.dnrtv.com/default.aspx?showNum=122

    I hope that will be helpful to you.

    Best Regards,

    Tracy Dj


    Best Regards, Tracy Dj

    Tuesday, July 21, 2015 6:21 AM
    Moderator