Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

Re: Proxy Cliente - Connectivity WSDL error

$
0
0

Hi NarsiReddy Cheruku,

I will show you the  steps I have done.

 

1) Download the file and edit deleteting the tag <xsd:documentation> ...</xsd:documentation>

2) SE80  \ Edit object \ Enterprice Service \ select Client Proxy and enter the name.

1.png

 

2.png

 

3.png

now in SE80 you can se the parameter.

4.png

Tcode : soamanager

find the consumer proxy

 

5.png

create the logical port

6.png

 

8.png

 

SOURCE CODE TO CALL THE WEB SERVICE:

******************************************************************************************************

TRY.
CREATE OBJECT testobj
EXPORTING
LOGICAL_PORT_NAME
= 'TEST_CHECKVAT'.
CATCH CX_AI_APPLICATION_FAULT.
ENDTRY.



INPUT-COUNTRY_CODE = ZWSCUSTOMER-COUNTRY.
INPUT-VAT_NUMBER = piva_tab-taxnum.


TRY.
CALL METHOD testobj->CHECK_VAT
EXPORTING
CHECK_VAT_REQUEST 
= INPUT
IMPORTING
CHECK_VAT_RESPONSE
= OUTPUT.

CATCH CX_AI_SYSTEM_FAULT INTO SYS_FAULT.
L_EXCEPTION_MSG
= SYS_FAULT->GET_TEXT( ).
WRITE:/'SYSTEM ERROR', L_EXCEPTION_MSG.

IF L_EXCEPTION_MSG = 'SoapFaultCode:5  INVALID_INPUT'.
L_EXCEPTION_MSG = ' Combinazione Paese Partita Iva non esistente '.
ENDIF.

IF L_EXCEPTION_MSG = 'SoapFaultCode:5  SERVER_BUSY'.
L_EXCEPTION_MSG
= ' Combinazione Paese Partita Iva non esistente '.
ENDIF.

CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
EXPORTING
TITEL       
= 'ATTENZIONE !'
TEXTLINE1   
= 'Errore'
TEXTLINE2   
= L_EXCEPTION_MSG
START_COLUMN
= 25
START_ROW   
= 6.
SET SCREEN 0100.
LEAVE TO SCREEN 0100.

EXIT.
CATCH CX_AI_APPLICATION_FAULT INTO APP_FAULT .
L_EXCEPTION_MSG
= APP_FAULT->GET_TEXT( ).
WRITE:/'APPLICATION ERROR', L_EXCEPTION_MSG.

CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
EXPORTING
TITEL       
= 'ATTENZIONE !'
TEXTLINE1   
= 'Errore'
TEXTLINE2   
= L_EXCEPTION_MSG
START_COLUMN
= 25
START_ROW   
= 6.
SET SCREEN 0100.
LEAVE TO SCREEN 0100.

EXIT.
ENDTRY.
*******************************************************************

 

let me know if you have problems

Alessio


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>