From dev-return-57572-archive-asf-public=cust-asf.ponee.io@thrift.apache.org Wed Feb 5 17:20:02 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 26AB018061A for ; Wed, 5 Feb 2020 18:20:02 +0100 (CET) Received: (qmail 18891 invoked by uid 500); 5 Feb 2020 17:20:01 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 18836 invoked by uid 99); 5 Feb 2020 17:20:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2020 17:20:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B0A70E0DDB for ; Wed, 5 Feb 2020 17:20:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 2AD6B78008E for ; Wed, 5 Feb 2020 17:20:00 +0000 (UTC) Date: Wed, 5 Feb 2020 17:20:00 +0000 (UTC) From: "Andres Camilo Martinez Cano (Jira)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (THRIFT-5085) How do I execute a call to a server that supports multiple versions? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Andres Camilo Martinez Cano created THRIFT-5085: --------------------------------------------------- Summary: How do I execute a call to a server that supports mul= tiple versions? Key: THRIFT-5085 URL: https://issues.apache.org/jira/browse/THRIFT-5085 Project: Thrift Issue Type: Question Components: Go - Compiler, Go - Library Affects Versions: 0.13.0 Environment: OS:macOS On the client-side, I've got auto-generated code for go On the server-side, I've got auto-generated code for java=C2=A0 Reporter: Andres Camilo Martinez Cano Fix For: 0.13.0 Hi, my apologies beforehand If I say something strange or weird. I'm still = quite new to thrift but I love it so far. I have a thrift file that supports two services like so(both services use t= he same structs): {{service PositionService {}} {{=C2=A0 =C2=A0PositionDTO findPosition(1:PositionInputDTO) throws (1:=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PositionServ= iceException e);}} {{}}} {{service PositionServiceV2 {}} {{=C2=A0 =C2=A0PositionDTO findPosition(1:PositionInputDTO) throws (1:=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 PositionServ= iceException e),}} {{=C2=A0 =C2=A0OwnerStoresListDTO listPositions(1:ListPositionInputDTO) }} {{=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 throws (1:PositionServiceExcept= ion e);}}{{}} {{}}} {{}}What I'm currently trying to do is to call the method=C2=A0{{listPositi= ons from the=C2=A0}}{{PositionServiceV2=C2=A0}}but when I execute the call = I keep receiving the error message "Invalid method name: listPositions" whi= ch makes me think that my call is being directed towards the PositionServic= e even though I'm using the PostionServiceV2Client to make the call for thi= s. Please help I don't know how to make this work. {{}} -- This message was sent by Atlassian Jira (v8.3.4#803005)