Page 1 of 1

TourPointDesc extenstion of WaypointDesc is not available

PostPosted: Tue Feb 26, 2019 4:56 pm
by C5092632
Hello PTV experts,

I'm integrating PTV xRoute into SAP TM and have faced with a problem when calling calculateAdvancedTour.

It's specified that for calculateAdvancedTour at least the first and the last station of waypoints structure must be of type TourPointDesc.

My issue is that after service generation I cannot see the TourPointDesc extension for WaypointDesc is not available and I cannot specify mandatory attributes from TourPointDesc for passing them to calculateAdvancedTour.

That's how my WaypointDesc array looks like after proxy generation (attached file).

WSDL endpoint I used for proxy generation: https://api.cloud.ptvgroup.com/xroute/ws/XRoute?WSDL

Thank you!
NIkolai.

Re: TourPointDesc extenstion of WaypointDesc is not availabl

PostPosted: Wed Feb 27, 2019 8:59 am
by Joost
I do not have a good answer for this. The ToutPointDesc is a derived class from the WaypointDesc and it is known that SAP by default does not play nice with derived classes. This is something Bernd touched on in viewtopic.php?f=50&t=940 . ATM we do not have a good answer for this.

Practical solutions that my customers have use to get around this is either to edit the WSDL before consumption or implement the interface first in .net as a library and them integrate the library into their solution. Most of them where made some time ago so it could be that SAP has improved on this topic. I'm not sure about this.

Re: TourPointDesc extenstion of WaypointDesc is not availabl

PostPosted: Wed Feb 27, 2019 9:54 am
by C5092632
Hi Joost,

thanks for your reply,

I wanted to avoid this as much possible, but looks like will have to go for WSDL local change :(

I will let you know the outcome.

Nikolai

Re: TourPointDesc extenstion of WaypointDesc is not availabl

PostPosted: Mon Mar 04, 2019 8:56 am
by Bernd Welter
Hi there,

I moved the post top the SAP related subforum. The other players could contribute or at least consume the hint ;-)

Best regards,
Bernd