From dev-return-57577-archive-asf-public=cust-asf.ponee.io@thrift.apache.org Wed Feb 5 20:49:04 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 13DFB18061A for ; Wed, 5 Feb 2020 21:49:03 +0100 (CET) Received: (qmail 5763 invoked by uid 500); 5 Feb 2020 20:49:03 -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 5751 invoked by uid 99); 5 Feb 2020 20:49:03 -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 20:49:03 +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 D8096E2F8D for ; Wed, 5 Feb 2020 20:49:01 +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 686697804C4 for ; Wed, 5 Feb 2020 20:49:00 +0000 (UTC) Date: Wed, 5 Feb 2020 20:49:00 +0000 (UTC) From: "Jens Geyer (Jira)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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 [ https://issues.apache.org/jira/browse/THRIFT-5085?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Jens Geyer updated THRIFT-5085: ------------------------------- Description:=20 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 { PositionDTO findPosition(1:PositionInputDTO) throws (1: PositionServiceE= xception e); } service PositionServiceV2 { PositionDTO findPosition(1:PositionInputDTO) throws (1: PositionServiceE= xception e), OwnerStoresListDTO listPositions(1:ListPositionInputDTO)=20 throws (1:PositionServiceException e);{{}} } }} What I'm currently trying to do is to call the method {{listPositions from = the {{PositionServiceV2 }}but when I execute the call I keep receiving the = error message "Invalid method name: listPositions" which makes me think tha= t my call is being directed towards the PositionService even though I'm usi= ng the PostionServiceV2Client to make the call for this. Please help I don'= t know how to make this work.=C2=A0 =C2=A0 was: 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. {{}} > How do I execute a call to a server that supports multiple 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 > Priority: Major > Fix For: 0.13.0 > > > Hi, my apologies beforehand If I say something strange or weird. I'm stil= l quite new to thrift but I love it so far. > I have a thrift file that supports two services like so(both services use= the same structs): > {{service PositionService { > PositionDTO findPosition(1:PositionInputDTO) throws (1: PositionServic= eException e); > } > service PositionServiceV2 { > PositionDTO findPosition(1:PositionInputDTO) throws (1: PositionServic= eException e), > OwnerStoresListDTO listPositions(1:ListPositionInputDTO)=20 > throws (1:PositionServiceException e);{{}} > } > }} > What I'm currently trying to do is to call the method {{listPositions fro= m the {{PositionServiceV2 }}but when I execute the call I keep receiving th= e error message "Invalid method name: listPositions" which makes me think t= hat my call is being directed towards the PositionService even though I'm u= sing the PostionServiceV2Client to make the call for this. Please help I do= n't know how to make this work.=C2=A0 > =C2=A0 -- This message was sent by Atlassian Jira (v8.3.4#803005)