Mapping in web service from CMDB config item create

Moderator: crythias

Locked
sebasia
Znuny newbie
Posts: 13
Joined: 23 Mar 2015, 15:28
Znuny Version: 4.0.7

Mapping in web service from CMDB config item create

Post by sebasia »

Hi,

It is in the ConfigITemCreate operation of this interface

Code: Select all

---
Debugger:
  DebugThreshold: debug
  TestMode: '0'
Description: ITSM Configuration Management Connector Sample
FrameworkVersion: 4.0.8
Provider:
  Operation:
    ConfigItemCreate:
      Description: Creates new Configuration Items from ITSMConfigurationManagement
      MappingInbound:
        Config:
          KeyMapDefault:
            MapTo: defaultkey
            MapType: Keep
          KeyMapExact:
            CITyp: CIType
          ValueMap:
            CIType:
              ValueMapRegEx:
                '*': mappedname
          ValueMapDefault:
            MapTo: default
            MapType: Keep
        Type: Simple
      MappingOutbound: {}
      Type: ConfigItem::ConfigItemCreate
    ConfigItemGet:
      Description: Get the details for Configuration Items from ITSMConfigurationManagement
      MappingInbound: {}
      MappingOutbound: {}
      Type: ConfigItem::ConfigItemGet
    ConfigItemSearch:
      Description: Search Configuration Items from ITSMConfigurationManagement
      MappingInbound: {}
      MappingOutbound: {}
      Type: ConfigItem::ConfigItemSearch
    ConfigItemUpdate:
      Description: Updates Configuration Items from ITSMConfigurationManagement
      MappingInbound: {}
      MappingOutbound: {}
      Type: ConfigItem::ConfigItemUpdate
  Transport:
    Config:
      MaxLength: '100000'
      NameSpace: /ConfigItemConnector/
    Type: HTTP::SOAP
RemoteSystem: ''
Requester:
  Transport:
    Config:
      Authentication:
        Password: DMPPAswword
        Type: BasicAuth
        User: DMPuser
      Encoding: utf-8
      Endpoint: 
      NameSpace: Istheremoreitems
      SOAPAction: Yes
      SOAPActionSeparator: /
    Type: HTTP::SOAP

notice the CITyp is mapped to CIType, and any value (*) should be replaced with "mappedname" (the value doesn't matter)

when i send it an object with stats:
<CITyp>2<CITyp>
and all the other nescessary parameters: InciState,UserLogin etc.

neither value nor key is changed, can somebody tell me why?

could someone provide me with an interface definition that successfully changes attributes in some of the standard CI's?

also is it possible to change the class parameter in the WSDL mapping?

This is on OTRS 4.
Locked