•  
      request #8164 Can't import Tracker SOAP WSDL file into Visual Studio
    Infos
    #8164
    Baudouin Feildel (amdg2)
    2021-09-29 14:17
    2015-06-22 15:51
    8189
    Details
    Can't import Tracker SOAP WSDL file into Visual Studio
    I started writing a little connector for Visual Studio, as the REST API doesn't provide endpoints for the data I need I decided to go with the SOAP API.

    When I import the Core and the Project WSDL Visual Studio imports the file without problems, but with the Tracker WSDL file there are some errors.

    Here they are (also in the attached txt file):

    Error 1 Custom tool error: Unable to import WebService/Schema. Unable to import binding 'TuleapTrackerV5APIBinding' from namespace 'https://tuleap.example.com/plugins/tracker/soap'. Unable to import operation 'getArtifacts'. Choice is not supported with encoded SOAP. Please change definition of schema type 'CriteriaValue' from namespace 'https://tuleap.example.com/plugins/tracker/soap': use all or sequence (not choice) for fields/parameters. c:\data\visual studio 2013\Projects\TuleapConnector\TuleapConnector\Properties\Settings.settings 1 1 TuleapConnector

    Warning 3 Custom tool warning: Cannot import wsdl:portType
    Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter
    Error: Choice is not supported with encoded SOAP. Please change definition of schema type 'CriteriaValue' from namespace 'https://tuleap.example.com/plugins/tracker/soap': use all or sequence (not choice) for fields/parameters.
    XPath to Error Source: //wsdl:definitions[@targetNamespace='https://tuleap.example.com/plugins/tracker/soap']/wsdl:portType[@name='TuleapTrackerV5APIPortType'] c:\data\visual studio 2013\Projects\TuleapConnector\TuleapConnector\Service References\TuleapSoapTracker\Reference.svcmap 1 1 TuleapConnector

    Warning 4 Custom tool warning: 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='https://tuleap.example.com/plugins/tracker/soap']/wsdl:portType[@name='TuleapTrackerV5APIPortType']
    XPath to Error Source: //wsdl:definitions[@targetNamespace='https://tuleap.example.com/plugins/tracker/soap']/wsdl:binding[@name='TuleapTrackerV5APIBinding'] c:\data\visual studio 2013\Projects\TuleapConnector\TuleapConnector\Service References\TuleapSoapTracker\Reference.svcmap 1 1 TuleapConnector

    Warning 5 Custom tool warning: 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='https://tuleap.example.com/plugins/tracker/soap']/wsdl:binding[@name='TuleapTrackerV5APIBinding']
    XPath to Error Source: //wsdl:definitions[@targetNamespace='https://tuleap.example.com/plugins/tracker/soap']/wsdl:service[@name='TuleapTrackerV5API']/wsdl:port[@name='TuleapTrackerV5APIPort'] c:\data\visual studio 2013\Projects\TuleapConnector\TuleapConnector\Service References\TuleapSoapTracker\Reference.svcmap 1 1 TuleapConnector

    Error 6 Custom tool error: Failed to generate code for the service reference 'TuleapSoapTracker'. Please check other error and warning messages for details. c:\data\visual studio 2013\Projects\TuleapConnector\TuleapConnector\Service References\TuleapSoapTracker\Reference.svcmap 1 1 TuleapConnector
    API
    8.1
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Declined
    2021-09-29
    Attachments
    References
    References list is empty

    Follow-ups

    User avatar

    Both trackers v3 and SOAP are deprecated. Please use trackers v5 and the REST API instead.


    • Status changed from New to Declined
    • Close date set to 2021-09-29
    User avatar
    Hi,

    I need to get, once a a user is connected, the projects he belongs to, and then its artifacts for tracker v3.
    With the rest API explorer I can't find anything related to user projects, and tracker v3.

    Perhaps I don't watch enough closely, or there are some missing endpoint in the explorer.

    Regards
    Baudouin Feildel
    User avatar

    Hi,

    as the REST API doesn't provide endpoints for the data I need I decided to go with the SOAP API.

    Which data do you need that isn't available in REST API?

    Regards,
    Nicolas Terray