Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy Cliente - Connectivity WSDL error

alessio_pierfederici
Participant
0 Kudos

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

30 REPLIES 30

Former Member
0 Kudos

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.

0 Kudos

... 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

alessio_pierfederici
Participant
0 Kudos

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

alessio_pierfederici
Participant
0 Kudos

Thanks Prashanth! I was able to generate the proxy.

This is the statement that I deleted

<xsd:documentation>

0 Kudos

Hi

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

0 Kudos

Hi NarsiReddy Cheruku

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.

0 Kudos

Hi ,

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.

alessio_pierfederici
Participant
0 Kudos

Hi NarsiReddy Cheruku,

... local file.

0 Kudos

Hi ,

I saved the file as .wsdl and while trying to upload in client proxy generation i am ´getting error.

Incorrect value: Entity (1 /0 ). unexpected end-of-file

Exception of class CX_PROXY_GEN_ERROR

Do you know why this error is occuring. Please see the attached xml as i cannot upload wsdl file.

0 Kudos

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

alessio_pierfederici
Participant
0 Kudos

*&---------------------------------------------------------------------*

*& 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.

alessio_pierfederici
Participant
0 Kudos

FOR A TEST REPLACE INPUT-VAT_NUMBER = 'XXXXXXXXXXX'.  VWITH A REAL VAT NUMBER.

0 Kudos

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

0 Kudos

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

0 Kudos

Hi Kim , have you try to contaci the Sap Systems Engineer , I think it should be enabled external calls.

Regards

0 Kudos

Hi Alessio

I will do that soon. Any proposal where to do that?

Regards Kim

0 Kudos

Finally, I got it to works!
Thanks and regards

Kim Brandt
NTT DATA

0 Kudos

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

0 Kudos

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.

0 Kudos

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

0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

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!

0 Kudos

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

0 Kudos

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

0 Kudos

Hi Luke,

you need to edit the wsdl file deleting the code from <xsd:documentation> to </xsd:documentation> (tag included) .

Regards

Alessio

Former Member
0 Kudos

Hi Alessio,

thanks for your reply, i try to make this but not still work.

Thanks

Luca

Former Member
0 Kudos

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