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: 

SOAP:1027 SRT: Serialization / Deserialization failed

0 Kudos

Dear Experts,

I am trying to consume the SOAP web Service using the below program. But I am getting the below error

SOAP:1027 SRT: Serialization / Deserialization failed

I am now to this web service connectivity..

When I searched with the same error I found the below threads, but not able to understand how to try these solutions.

https://scn.sap.com/thread/1716805

Note: We dont have PI in our system, I am trying to use consume the SOAP web service through the below program directly from SAP-ECC.

Kindly give your valuable suggestions to solve this issue.

Thanks in advance.

REPORT zhr_mgr_webserv_test.

*declarations for Try/Catch block exception handling

DATA: exc TYPE REF TO cx_root.

DATA: msg TYPE string.

START-OF-SELECTION.

* declare a reference to your proxy consumer object

   DATA proxy_test TYPE REF TO zco_mgrtraining_soap1.

    TRY.

*     instantiate the object reference

       IF proxy_test IS NOT BOUND.

         CREATE OBJECT proxy_test TYPE zco_mgrtraining_soap1.

       ENDIF.

    DATA:input  TYPE zmgrcourse_categories_soap_in1,

          output  TYPE zmgrcourse_categories_soap_ou3.

    input-n_company_code = 'XXXX'.

    input-n_password = 'YYYY'.

***   *     call the method (web service call) you can use the pattern to generate the code if you wish

       CALL METHOD proxy_test->mgrcourse_categories

         EXPORTING

           input  = input

         IMPORTING

           output = output.

*     process the output

       DATA: wa_get_data TYPE PRXCTRL.

       LOOP AT output-mgrcourse_categories_result-controller INTO wa_get_data.

         WRITE wa_get_data-field .

         WRITE wa_get_data-value .

       ENDLOOP.

     CATCH cx_ai_system_fault INTO exc.

       msg = exc->get_text( ).

       WRITE:/  msg.

   ENDTRY.


Also Please find the below output from my web service


<xsd:schema>schema</xsd:schema>xml</MGRCourseCategoriesResult>


Is both the formats are correct.... Please give some suggestions.

Awaiting your kind response.


Thanks,

Nalla B.

3 REPLIES 3

Former Member
0 Kudos

Dear Nallasivam,

Please check the below blog.

Kind Regards,

Mukesh

0 Kudos

Hi Mukesh,

Checked this already. We don't have Time format in our web service output. That is not useful in our case.

Thanks for your response.

Nalla B.

0 Kudos

Dear Experts.

Please find the below XML Conversion Error. Kindly give your valuable suggestion to identify the issue related to SOAP:1027 SRT: Serialization / Deserialization failed.

Kindly give your valuable suggestions.

Thanks,

Nalla B.