Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-2501

Bundled JIRA Soap Service libraries don't match jirasoapservice-v2 wsdl

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.1
    • 2.0
    • JIRA integration
    • None
    • Bamboo 2.0 Standalone
      JIRA 3.12.2
      Windows XP

    Description

      Hi,

      I'm unable to add a comment to a JIRA issue from a bamboo plugin (http://confluence.atlassian.com/display/CODEGEIST/BuildBug) because the RemoteComment class bundled in bamboo does not match the RemoteComment defined in the wsdl.

      Abridged RemoteComment.java:

      package com.atlassian.jirasoapclient;
      /**
       * RemoteComment.java
       *
       * This file was auto-generated from WSDL
       * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
       */
      
          private java.lang.String body;
          private java.lang.String id;
          private java.lang.String level;
          private java.util.Calendar timePerformed;
          private java.lang.String username;
      

      Abridged wsdl type:

      <!--
      WSDL created by Apache Axis version: 1.3
      Built on Oct 05, 2005 (05:23:37 EDT)
      -->
      <complexType name="RemoteComment"><sequence>
      <element name="author" nillable="true" type="xsd:string"/>
      <element name="body" nillable="true" type="xsd:string"/>
      <element name="created" nillable="true" type="xsd:dateTime"/>
      <element name="groupLevel" nillable="true" type="xsd:string"/>
      <element name="id" nillable="true" type="xsd:string"/>
      <element name="roleLevel" nillable="true" type="xsd:string"/>
      <element name="updateAuthor" nillable="true" type="xsd:string"/>
      <element name="updated" nillable="true" type="xsd:dateTime"/>
      </sequence>
      </complexType>
      

      I'm attempting to create the comment like this:

      			RemoteComment comment = new RemoteComment();
      			comment.setBody("comment text");
      			jiraSoapService.addComment(token, issueKey, comment);
      

      This results in a fault because the level field in RemoteComment is not defined in the wsdl.

      jvm 1    | AxisFault
      jvm 1    |  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userExc
      eption
      jvm 1    |  faultSubcode:
      jvm 1    |  faultString: org.xml.sax.SAXException: Invalid element in com.atlass
      ian.jira.rpc.soap.beans.RemoteComment - level
      jvm 1    |  faultActor:
      jvm 1    |  faultNode:
      jvm 1    |  faultDetail:
      jvm 1    |      {}faultData:<exception xmlns:ns2="http://lang.java" xsi:nil="tru
      e" xsi:type="ns2:Exception"/><message xsi:type="xsd:string">Invalid element in c
      om.atlassian.jira.rpc.soap.beans.RemoteComment - level</message>
      

      Attachments

        Activity

          People

            bmccoy bmccoy
            210ff0bdcd43 Brad Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: