2014 Sep 16 7:55 AM
Hi Expert,
Do you have any idea for below attachment issue?
Steps:
- SE80
- Enterprise Service
- ProxyCliente: ZES_CHECKVATSERVICE (create)
- External WSDL
- URL http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
- Package: $TMP
- Prefix: ZES_
Regards
Alessio
2014 Sep 16 8:30 AM
The WSDL you are trying to consume needs to be downloaded locally and modified to replace "use" to document from literal.
You will then be able to consume it. You might need to make additional adjustments none of which will affect the functionality. To view which definition is failing syntax, go to technical information of the syntax error.
2014 Sep 16 9:20 AM
... still a help, could you tell me a link where I can find the rules for the correct syntax? I do not know how to perform the replacement.
Thanks a lot
Alessio
2014 Sep 16 8:54 AM
thanks Prashanth, this is th error ... I'll try to replace the "xsd" istruction in each record.
Message Text
Illegal syntax: Unknown XSD element documentation
Technical Data
| Message type__________ | E (Error) |
| Message class_________ | 00 (General Basis texts) |
| Message number________ | 001 |
| Message variable 1____ | Illegal syntax: Unknown XSD element documentation |
| Message variable 2____ | |
| Message variable 3____ | |
| Message variable 4____ |
Message Attributes
| Level of detail_______ | |
| Problem class_________ | |
| Sort criterion________ | |
| Number________________ | 1 |
Environment Information
| ______________________ | |
| ______________________ | |
| Line Item_____________ | |
| Name__________________ | |
| ______________________ |
Regards,
Alessio
2014 Sep 16 9:50 AM
Thanks Prashanth! I was able to generate the proxy.
This is the statement that I deleted
<xsd:documentation>
2014 Nov 12 10:04 AM
I am also ttrying to access the same web service but in creation Proxy class i am getting error in library handler.
How you have proceeded? have you downloaded the WSDL file and then made corrections(removing <xsd:documentation>). Can you let me know how to download the WSDL file.
Thanks in advance,
regards,
NarsiReddy
2014 Nov 12 1:21 PM
go in http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
then , depending your browser, you need to visualize the page source code.
Save it as checkVatService.wsdl
After that you will need to change the parameter request_date defining it as string and not as dates.
Let me know if you are in trouble.
2014 Nov 12 1:33 PM
Do i need to delete the part between <xsd:documentation> and </xsd:documentation> ?
During proxy generation, now i need to use local file. here it is fine but , during the logical port creation in WSDL Access Settings have you given the local file or URL for WSDL Access.
Thanks in advance,
regards,
NarsiReddy.
2014 Nov 12 2:09 PM
2014 Nov 12 2:34 PM
2014 Nov 13 8:04 AM
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.
now in SE80 you can se the parameter.
Tcode : soamanager
find the consumer proxy
create the logical port
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
2014 Nov 13 11:58 AM
*&---------------------------------------------------------------------*
*& Report ZTEST_WS_VAT
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT ZTEST_WS_VAT.
*DATA: me TYPE REF TO ZES_CO_CHECK_VAT_PORT_TYPE.
DATA: testobj TYPE REF TO ZES_CO_CHECK_VAT_PORT_TYPE.
DATA: SYS_FAULT TYPE REF TO CX_AI_SYSTEM_FAULT,
APP_FAULT TYPE REF TO CX_AI_APPLICATION_FAULT,
L_EXCEPTION_MSG TYPE STRING.
TRY.
* CREATE OBJECT me
CREATE OBJECT testobj
EXPORTING
LOGICAL_PORT_NAME = 'TEST_CHECKVAT'.
.
CATCH CX_AI_APPLICATION_FAULT.
ENDTRY.
DATA:INPUT TYPE ZES_CHECK_VAT_REQUEST,
OUTPUT TYPE ZES_CHECK_VAT_RESPONSE.
INPUT-COUNTRY_CODE = 'IT'.
INPUT-VAT_NUMBER = 'XXXXXXXXXXX'.
TRY.
* CALL METHOD me->CHECK_VAT
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.
EXIT.
CATCH CX_AI_APPLICATION_FAULT INTO APP_FAULT .
L_EXCEPTION_MSG = APP_FAULT->GET_TEXT( ).
WRITE:/'APPLICATION ERROR', L_EXCEPTION_MSG.
EXIT.
ENDTRY.
WRITE: / OUTPUT-VALID,
/ OUTPUT-COUNTRY_CODE,
/ OUTPUT-VAT_NUMBER,
/ OUTPUT-REQUEST_DATE,
/ OUTPUT-NAME,
/ OUTPUT-ADDRESS.
2014 Nov 13 11:59 AM
FOR A TEST REPLACE INPUT-VAT_NUMBER = 'XXXXXXXXXXX'. VWITH A REAL VAT NUMBER.
2014 Dec 02 7:06 PM
Hi Alessio
Thanks for your replies.
I have successfully created the SAP WS and abap consumer program.
But when I run the ABAP WS consumer program I get below logon screen:
Then I cant proceed. Do you know why?
I have set the SOAMANGER to Message ID protocol to 'Suppress ID Transfer'
Thanks Kim Brandt
2014 Dec 02 7:58 PM
Hi
In The meantime I got rid of the WebLogic Logon screen.
But now I face the runtime exception in the WS consumer program
"SYSTEM ERROR SOAP: 1007 SRT: Unsupported xstream found: (HTTP Code 200: OK")
Any clue about that?
Thanks Kim Brandt
2014 Dec 02 8:20 PM
Hi Kim , have you try to contaci the Sap Systems Engineer , I think it should be enabled external calls.
Regards
2014 Dec 02 8:54 PM
Hi Alessio
I will do that soon. Any proposal where to do that?
Regards Kim
2014 Dec 03 2:14 PM
Finally, I got it to works!
Thanks and regards
Kim Brandt
NTT DATA
2014 Dec 03 4:12 PM
Hi Alession
Sometimes output-valid is true and sometimes it is false checked for the same VAT no?
When false no name and address is returned.
That's strange.
The same happen on EU's own web-page that sometimes name and address is returned and sometimes not for the same VAT No. But they can send an Valid VAT check response even when no vat name and address is returned. Can we do the same because otherwise how can we be sure to that the VAT check response is correct?
Thanks and regards
Kim
2014 Dec 03 4:18 PM
Hi Kim,
Some times when the Server is busy you will get valid = 0. In this case therre will not be any Details about Company.
Try to Output an error message when System exception occurs i.e. Server Busy.
regards,
Narsireddy.
2014 Dec 03 5:31 PM
Hi Narsi
Thanks. But how do i know when EU vat-server is busy?
I dont find anything about that in the output structure?
Thanks and regards
Kim
2014 Dec 04 9:05 AM
Hi kim,
I dont think that is possible,
Depending on the VAT Number we send, Generally when the Server is busy we will get System exception saying Server is busy.
You Need to catch that exception and just Output the message in required Format.
CATCH cx_ai_system_fault INTO System_fault.
fault_message = System_fault->get_text( ).
Message fault_message TYPE 'I'.
EXIT.
regards,
Narsireddy.
2016 Jul 26 3:33 PM
Hi Kim,
I am also getting the same error, I am also having the same requirement. How did you resolved the issue?
Do you have any documentation for the same.
2015 Apr 07 10:15 AM
Hi Guys,
I am trying to upload the attached WSDL through SE80, but getting the following error "Exception of class CX_PROXY_GEN_ERROR", any ideas about what is going wrong?
Tnx!
N S
2016 Jul 28 6:45 AM
2016 Aug 04 2:32 PM
Hi Expert,
i'm try to define the connections with the WSDL find in the link sended by you, but when i try to connect from sap with this WSDL in SOAMANAGER transaction trace, find the error messages below
Can you help me to resolve this problem and check if WSDL run correctly in SAP ECC 6.0.
I?ve tried to use SOAPUI tool and the test connection is ok, i've send data and receive response correctly.
Thaks in advance!
2016 Aug 06 2:11 PM
Hi Luke,
I don't se the wsdl file ... the log says that there is an error in line 174.
Could you send me the file?
Regards
Alessio
2016 Aug 08 9:19 AM
Hi Alessio,
I attach the link of WSDL that i'm using for this connection.
http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl
Thanks
Luke
2016 Aug 16 3:32 PM
Hi Luke,
you need to edit the wsdl file deleting the code from <xsd:documentation> to </xsd:documentation> (tag included) .
Regards
Alessio
2016 Aug 31 2:24 PM
Hi Alessio,
thanks for your reply, i try to make this but not still work.
Thanks
Luca
2016 Sep 02 2:26 PM
Hi Alessio,
Now the WSDL work fine and send the data to Agenzia delle Entrate, but i've the error on manage the response provided by Angezia delle Entrate , this is the error message that SAP system show : "SOAP:1.007 SRT: Unsupported xstream found:
("HTTP Code 200 : OK")".
Can you help me about this error, at now Sap is not able to manage the WSDL.
Thanks
Luca