0

私たちは Web サービスを介して Acumatica と私たちのアプリケーションとの間のインターフェースを開発中です。Savon gem を使用して Ruby で開発しています。

ベンダー データ用の次のように、必要な情報に対して機能するエクスポートがいくつかあります。

次の SOAP 呼び出しを送信します (ログイン後)。

<?xml version="1.0"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.acumatica.com/typed/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Body>
    <tns:Export>
      <tns:commands>
        <tns:Command>
          <tns:FieldName>AcctCD</tns:FieldName>
          <tns:ObjectName>BAccount</tns:ObjectName>
          <tns:Value>Account code</tns:Value>
        </tns:Command>
        <tns:Command>
          <tns:FieldName>AcctName</tns:FieldName>
          <tns:ObjectName>BAccount</tns:ObjectName>
          <tns:Value>Account name</tns:Value>
        </tns:Command>
      </tns:commands>
      <tns:filters/>
      <tns:startRow>0</tns:startRow>
      <tns:topCount>0</tns:topCount>
      <tns:includeHeaders>false</tns:includeHeaders>
      <tns:breakOnError>false</tns:breakOnError>
    </tns:Export>
  </env:Body>
</env:Envelope>

テスト エンドポイントに:

http://p3.tryacumatica.com/(W(10003))/Soap/AP303000.asmx?WSDL

Inventory と Sites についても同様のことができます。ただし、発注書で機能させるのに苦労しています。

以下を掲載しています。

<?xml version="1.0"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.acumatica.com/typed/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
  <env:Body>
    <tns:Export>
      <tns:commands>
        <tns:Command>
          <tns:FieldName>Type</tns:FieldName>
          <tns:ObjectName>POOrder</tns:ObjectName>
          <tns:Value>Type</tns:Value>
        </tns:Command>
        <tns:Command>
          <tns:FieldName>OrderNbr</tns:FieldName>
          <tns:ObjectName>POOrder</tns:ObjectName>
          <tns:Value>Order number</tns:Value>
        </tns:Command>
      </tns:commands>
      <tns:filters/>
      <tns:startRow>0</tns:startRow>
      <tns:topCount>0</tns:topCount>
      <tns:includeHeaders>false</tns:includeHeaders>
      <tns:breakOnError>false</tns:breakOnError>
    </tns:Export>
  </env:Body>
</env:Envelope>

テスト エンドポイントに:

http://p3.tryacumatica.com/(W(3))/Soap/PO301000.asmx?WSDL

私たちは常に空の応答を受け取ります。何か案は?

4

3 に答える 3

0

+

SO の古い c# の例

            Content SO301000 = context.GetSchema();
        context.Clear();

        string[][] data = context.Export(new Command[] 
        { 
            SO301000.OrderSummary.ServiceCommands.EveryOrderType,
            SO301000.OrderSummary.ServiceCommands.EveryOrderNbr,
            SO301000.OrderSummary.OrderType,
            SO301000.OrderSummary.OrderNbr,
            SO301000.OrderSummary.Description,
            SO301000.OrderSummary.Hold,
        }, null,

        new Filter[]
        {

            new Filter { Field = SO301000.OrderSummary.OrderType, Condition = FilterCondition.Equals, Value = "IN", Operator = FilterOperator.And },
            new Filter { Field = SO301000.OrderSummary.OrderNbr, Condition = FilterCondition.Equals, Value = "23630843", Operator = FilterOperator.And }
        },
              0, false, true);
于 2015-04-07T18:04:08.860 に答える