Quantcast
Channel: SCN : Unanswered Discussions - Service-Oriented Architecture (SOA) and SAP
Viewing all articles
Browse latest Browse all 360

SoapFaulCodeName: InvalidSecurity SoapFaulCodeNamespace: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd An error was discovered processing the header

$
0
0

Hello everyone,

from SAP I'm consuming a web service developed using Java as the authentication method WS-Security and have the following error message when run: "SoapFaulCodeName: InvalidSecurity SoapFaulCodeNamespace: http://docs.oasis-open.org/wss/2004 /01/oasis-200401-wss-wssecurity-secext-1.0.xsd

An error was discovered processing the <wsse: Security> header ".

 

 

Through the transaction SE80 create the proxy object and configured the logical port by SOAMANAGER.

 

 

In my code call ABAP methods through an instance to the class that created the proxy object from the URL of the web service.

 

 

 

I enclose a portion of the code, thank you very much in advance and hope your comments.

 

 

 

DATA: TYPE vl_estatus zwsdocument_status,

                TYPE vl_estatus_response zwsdocument_status_response,

                go_wservice TYPE REF TO ZWSCO_INVOICE_SERVICE,

                lo_sys_exception TYPE REF TO cx_ai_system_fault,

                TYPE vg_puerto_logico prx_logical_port_name. "VALUE 'Z_FIPE_PL_CRE_ACD2'.

 

 

TRY.

      CREATE OBJECT go_wservice

        EXPORTING

          logical_port_name = vg_puerto_logico.

      .

    CATCH INTO cx_ai_system_fault lo_sys_exception.

        write: / 'System fault occurred (Create Object):' lo_sys_exception-> code, lo_sys_exception-> ERRORTEXT.

        exit.

  EndTry.

 

 

  vl_estatus-transaction_id = '17a35d6f8ef24e8199503ef1889a993b'.

 

 

  TRY.

        CALL METHOD go_wservice-> document_status

          EXPORTING

            document_status = vl_estatus

          IMPORTING

            document_status_response = vl_estatus_response.

      CATCH INTO cx_ai_system_fault lo_sys_exception.

        write: / 'System fault occurred (Document_Status):' lo_sys_exception-> code, lo_sys_exception-> ERRORTEXT.

        exit.

      CATCH zfipewscx_document_status_faul.

    EndTry.


Viewing all articles
Browse latest Browse all 360

Trending Articles



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