Options

get mantis issues into navision with soap

TobiasPurklTobiasPurkl Member Posts: 7
edited 2011-11-15 in NAV Three Tier
Hi,

can anyone help me, how to get data into navision over a soap interface?
I use the Web TTS MantisBT which offers a soap interface to get the issues.

I already found an example, but I don't know where to get the Soap dlls.

The example has three Automations
Name DataType Subtype
locautSoapHttpConnector Automation Unknown Automation Server.Unknown Class
locautSoapSerializer Automation Unknown Automation Server.Unknown Class
locautXmlDoc Automation Unknown Automation Server.Unknown Class

but I don't know where to find the dll.
I already installed the Microsoft Soap Toolkit 3.0 but it didn't help.

Comments

  • Options
    max_hlmax_hl Member Posts: 13
    This post can be useful
  • Options
    TobiasPurklTobiasPurkl Member Posts: 7
    my main problem is, that I don't know how to install the missing automation dlls.
    I can't see where your post helps me with it.
  • Options
    max_hlmax_hl Member Posts: 13
    You an try to manually register the dll's placed:
    on x64 system - C:\Program Files (x86)\Common Files\MSSoap\Binaries\
    on x86 system - C:\Program Files\Common Files\MSSoap\Binaries\

    In command line type regsvr32 "C:\Program Files (x86)\Common Files\MSSoap\Binaries\MSSOAP30.dll"
    and repeat this action for other dll's in directory.
    also you need to register MS XML library placed in C:\Windows\system32\msxml4.dll

    Can you post link to the sample you found ?
  • Options
    TobiasPurklTobiasPurkl Member Posts: 7
    unfortunatly that didn't help, I still can't find the automations.
    ----edit
    ok now I got it, but I don't know which Automationserver an classes I have to choose.

    Is this right?
    Name DataType Subtype
    locautSoapHttpConnector Automation 'Microsoft Soap Type Library v3.0'.HttpConnector30
    locautSoapSerializer Automation 'Microsoft Soap Type Library v3.0'.ISoapSerializer
    locautXmlDoc Automation 'Microsoft XML, v6.0'.DOMDocument



    this is the sample code..
    CREATE(locautSoapHttpConnector);
    locautSoapHttpConnector.Property('EndPointURL', 'http://localhost/WS_Test1/ServiceClass.asmx');
    locautSoapHttpConnector.Connect;
    locautSoapHttpConnector.Property('AuthUser', 'User');
    locautSoapHttpConnector.Property('AuthPassword', 'Password');
    locautSoapHttpConnector.Property('Timeout', 5 * 1000);
    locautSoapHttpConnector.Property('SoapAction','http://tempuri.org/WS_Test1/ServiceClass/HelloWorld');
    locautSoapHttpConnector.BeginMessage;
    
    CREATE(locautSoapSerializer);
    locautSoapSerializer.Init(locautSoapHttpConnector.InputStream);
    locautSoapSerializer.startEnvelope('SOAP','STANDARD');
    locautSoapSerializer.startBody;
    locautSoapSerializer.startElement('HelloWorld');
    locautSoapSerializer.endElement;
    
    locautSoapSerializer.endBody;
    locautSoapSerializer.endEnvelope;
    locautSoapHttpConnector.EndMessage;
    
    CREATE(locautXmlDoc);
    locautXmlDoc.load(locautSoapHttpConnector.OutputStream);
    locautXmlDoc.save('c:\temp1.xml');
    

    and this is an example for a soap command from the mantis api
    Name: mc_project_get_issues
    Binding: MantisConnectBinding
    Endpoint: http://localhost/mantis/mantisbt-1.2.8/api/soap/mantisconnect.php
    SoapAction: http://localhost/mantis/mantisbt-1.2.8/api/soap/mantisconnect.php/mc_project_get_issues
    Style: rpc
    Input:
      use: encoded
      namespace: http://futureware.biz/mantisconnect
      encodingStyle: http://schemas.xmlsoap.org/soap/encoding/
      message: mc_project_get_issuesRequest
      parts:
        username: xsd:string
        password: xsd:string
        project_id: xsd:integer
        page_number: xsd:integer
        per_page: xsd:integer
    Output:
      use: encoded
      namespace: http://futureware.biz/mantisconnect
      encodingStyle: http://schemas.xmlsoap.org/soap/encoding/
      message: mc_project_get_issuesResponse
      parts:
        return: tns:IssueDataArray
    Namespace: http://futureware.biz/mantisconnect
    Transport: http://schemas.xmlsoap.org/soap/http
    Documentation: Get the issues that match the specified project id and paging details.
    
Sign In or Register to comment.