09-16-2014 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
09-16-2014 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.
09-16-2014 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
09-16-2014 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
09-16-2014 9:50 AM
Thanks Prashanth! I was able to generate the proxy.
This is the statement that I deleted
<xsd:documentation>
11-12-2014 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
11-12-2014 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.
11-12-2014 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.
11-12-2014 2:09 PM
11-12-2014 2:34 PM
11-13-2014 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
11-13-2014 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.
11-13-2014 11:59 AM
FOR A TEST REPLACE INPUT-VAT_NUMBER = 'XXXXXXXXXXX'. VWITH A REAL VAT NUMBER.
12-02-2014 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
12-02-2014 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
12-02-2014 8:20 PM
Hi Kim , have you try to contaci the Sap Systems Engineer , I think it should be enabled external calls.
Regards
12-02-2014 8:54 PM
Hi Alessio
I will do that soon. Any proposal where to do that?
Regards Kim
12-03-2014 2:14 PM
Finally, I got it to works!
Thanks and regards
Kim Brandt
NTT DATA
12-03-2014 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
12-03-2014 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.
12-03-2014 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
12-04-2014 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.
07-26-2016 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.
04-07-2015 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
07-28-2016 6:45 AM
08-04-2016 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!
08-06-2016 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
08-08-2016 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
08-16-2016 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
08-31-2016 2:24 PM
Hi Alessio,
thanks for your reply, i try to make this but not still work.
Thanks
Luca
09-02-2016 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