Hi, I am trying to get tracking information from FEDEX SOAP webservices, but receiving an array boundary execeed run time error setting the package number info with request.selectiondetails[0] =trackselectiondetail. Using PB 12.6 Classic
Only example found on the web is https://archive.sap.com/discussions/thread/3286488. But using the same syntax returns errors, for example request.ws_WebAuthenticationDetail.UserCredential.Key = "XXX"
Any Help on this topic?
Best Regards
Alfredo
The complete code to try to get the tracking is:
long ll_rc
ws_trackservice lnv_trackservice
ws_trackrequest request
ws_clientdetail clientdetail
ws_WebAuthenticationDetail WebAuthenticationDetail
ws_webauthenticationcredential usercredential
ws_transactiondetail transactiondetail
ws_trackselectiondetail trackselectiondetail
string ls_response = ""
SoapConnection conn
conn = create SoapConnection
ll_rc = conn.CreateInstance(lnv_trackservice, "ws_trackservice" )
UserCredential.Key = "BPPOeHgXCoYD0TFG "
UserCredential.Password = "BjZxsHvozzRwCBME4wP8OGl5x"
webauthenticationdetail.usercredential=usercredential
clientdetail.accountnumber="XXXXXX681"
clientdetail.meternumber="111066861"
transactiondetail.customertransactionid="XX"
trackpackageidentifier = create ws_trackpackageidentifier
trackpackageidentifier.value= "779111292640"
trackselectiondetail = create ws_trackselectiondetail
trackselectiondetail.packageidentifier=trackpackageidentifier
trackselectiondetail.shipdaterangebeginspecified=false
trackselectiondetail.shipdaterangeendspecified=false
request.webauthenticationdetail=webauthenticationdetail
request.clientdetail=clientdetail
request.transactiondetail=transactiondetail
request.selectiondetails[0] =trackselectiondetail
But SOAP web service returns error CS0029: Cannot implicitly convert type 'WebService.NotificationEventType' en 'WebService.NotificationEventType[]'
Seems to be a problem with the WSDL, looking for a solution
Thanks