Имя: Пароль:
1C
 
Подключение к веб сервису.
0 Radion
 
22.04.15
17:29
Добрый день, начинаю писать обработку по подключению к веб сервису.
При попытке WSОпределение = Новый WSОпределения(WSURLWSDL, WSПользователь, WSПароль); система выдает ошибку - При создании описания сервиса произошла ошибка. Кто сталкивался, каким образом решили? Спасибо.
1 Господин ПЖ
 
22.04.15
17:33
сервис то живой?
2 vicof
 
23.04.15
00:01
Через браузер wsdl открывается?
3 vicof
 
23.04.15
00:03
Будет весело,  если это веб -сервис из одной из моих последних тем))
4 Radion
 
23.04.15
11:39
Прислали тестовые параметры:

You're ready to test your FedEx Web Services integration.

Test Account information

Test Password:rDPkk8a1J0AxQW5kvr855VhFu

Test Account Number:510087020 (for FedEx Web Services for Shipping only)

Test Meter Number:118676721 (for FedEx Web Services for Shipping only)

FedEx Freight LTL Testing Information (used in the Freight Shipment Detail):

   FedEx Freight LTL Shipper
   Account Number: 510087020
   Address Line 1: 1202 Chalet Ln
   Address Line 2: Do Not Delete - Test Account
   City: Harrison
   State: AR
   Zip: 72601

   FedEx Freight LTL Bill To/Third Party
   Account Number: 510051408
   Address Line 1: 2000 Freight LTL Testing
   Address Line 2: Do Not Delete - Test Account
   City: Harrison
   State: AR
   Zip: 72601

Note: The FedEx Freight LTL accounts provided above are for testing only. Use your FedEx Freight LTL Shipper and/or Bill To account number provided by FedEx Freight when you move to Production.

Test URL: https://wsbeta.fedex.com:443/web-services

Test FedEx Office Integrator ID:123 (for FedEx Web Services for Office and Print only)

Test Client Product ID:TEST (for FedEx Web Services for Office and Print only)

Test Client Product Version:9999 (for FedEx Web Services for Office and Print only)

If you need a reminder of your Developer Test Key, log in to the FedEx Developer Resource Center, select the Develop and Test Your Application link and then click on the Obtain Devloper Test Key/Access test environment button to request your test key.

Test instructions:
Check the FedEx Developer Resource Center Technical Resources Announcements to coordinate test time (that is, to avoid planned outages). Download testing WSDLs, sample code and documentation from the Get Started section.
Fedex Web Services for Office and Print
By default, your Developer Test Key is disabled for FedEx Web Services for Office and Print. Please refer to the Develop and Test Your Application page within the Developer Resource Center for the procedures required to enable your Developer Test Key.
You're almost ready to launch
After you've successfully tested your application and are ready to go into production, go to the FedEx Developer Resource Center to obtain your Production key. If you need more assistance, we're here to help. Select the Support link from the FedEx Developer Resource Center to view a list of support options specific to your location.
Thank you,
FedEx
5 Serginio1
 
23.04.15
12:04
wsdl то загрузил?
6 Serginio1
 
23.04.15
12:05
Наверняка есть примеры на том же C#
7 Serginio1
 
23.04.15
12:21
8 Serginio1
 
23.04.15
18:46
Должно быть что подобное

ОпределениеТ=Новый WSОпределения("d:\Загрузки\ValidationAvailabilityAndCommitmentService_v2.xsd");
    WSСервис=ОпределениеТ.Сервисы[0];
    прокси=Новый WSПрокси(ОпределениеТ, WSСервис.URIПространстваИмен, WSСервис.Имя, WSСервис.ТочкиПодключения[0].Имя);
     Фабрика=Прокси.ФабрикаXDTO;
    rate = 0;
    
    ТипСообщения=Фабрика.Тип("http://fedex.com/ws/vacs/v2";, "ServiceAvailabilityRequest");
    ТипАутонтификации= Фабрика.Тип("http://fedex.com/ws/vacs/v2";, "WebAuthenticationDetail");
     ТипWebAuthenticationCredential= Фабрика.Тип("http://fedex.com/ws/vacs/v2";, "WebAuthenticationCredential");
     ТипTransactionDetail=Фабрика.Тип("http://fedex.com/ws/vacs/v2";, "TransactionDetail");
     ТипClientDetail=Фабрика.Тип("http://fedex.com/ws/vacs/v2";, "ClientDetail");

    Сообщение = Фабрика.Создать(ТипСообщения);
//         Test Password:rDPkk8a1J0AxQW5kvr855VhFu

//Test Account Number:510087020 (for FedEx Web Services for Shipping only)

//Test Meter Number:118676721 (for FedEx Web Services for Shipping only)

           request =Фабрика.Создать(ТипСообщения);
            //
            request.WebAuthenticationDetail = Фабрика.Создать(ТипАутонтификации);
;
            request.WebAuthenticationDetail.UserCredential = Фабрика.Создать(ТипWebAuthenticationCredential);
            request.WebAuthenticationDetail.UserCredential.Key = "information"; // Replace "XXX" with the Key
            request.WebAuthenticationDetail.UserCredential.Password = "rDPkk8a1J0AxQW5kvr855VhFu "; // Replace "XXX" with the Password
            //
            request.ClientDetail =Фабрика.Создать(ТипClientDetail);
            request.ClientDetail.AccountNumber = 510087020; // Replace "XXX" with client's account number
            request.ClientDetail.MeterNumber = 118676721; // Replace "XXX" with client's meter number
            //
            request.TransactionDetail = Фабрика.Создать(ТипTransactionDetail);
            request.TransactionDetail.CustomerTransactionId = "***Rate v7 Request using VC#***"; // This is a reference field for the customer.  Any value can be used and will be provided in the response.
            //
           request.Version =1;// new VersionId(); // WSDL version information, value is automatically set from wsdl            
            //
  
            request.CarrierCode = "FDXE";//CarrierCodeType.FDXE;

  
          
            reply = Прокси.serviceAvailability(request);
Кaк может человек ожидaть, что его мольбaм о снисхождении ответит тот, кто превыше, когдa сaм он откaзывaет в милосердии тем, кто ниже его? Петр Трубецкой