TourPointDesc extenstion of WaypointDesc is not available

This space is dedicated to SAP users - administrators and programmers who want to integrate the xServers. Topics which require specific SAP based knowhow or which deal with SAP based mechanisms will be collected here.

TourPointDesc extenstion of WaypointDesc is not available

Postby C5092632 » Tue Feb 26, 2019 4:56 pm

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.
Attachments
calculateAdvancedTour_WaypointDesc.png
calculateAdvancedTour_WaypointDesc
C5092632
 
Posts: 6
Joined: Wed Jun 20, 2018 3:56 pm

Re: TourPointDesc extenstion of WaypointDesc is not availabl

Postby Joost » Wed Feb 27, 2019 8:59 am

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.
Joost Claessen
Senior Technical Consultant
PTV Benelux
Joost
 
Posts: 232
Joined: Fri Apr 25, 2014 1:46 pm

Re: TourPointDesc extenstion of WaypointDesc is not availabl

Postby C5092632 » Wed Feb 27, 2019 9:54 am

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
C5092632
 
Posts: 6
Joined: Wed Jun 20, 2018 3:56 pm

Re: TourPointDesc extenstion of WaypointDesc is not availabl

Postby Bernd Welter » Mon Mar 04, 2019 8:56 am

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
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
 
Posts: 1335
Joined: Mon Apr 14, 2014 10:28 am


Return to PTV xServer meets SAP

cron