Skip to Content
0

ABAP SOAP Webservice Issue

Jun 06, 2017 at 03:22 PM

328

avatar image

Dear All,

I am getting below exception (cx_ai_system_fault)when calling a SOAP web service.

SOAP:1001 CX_SXML_PARSE_ERROR:An exception was raised..SXML reader/writer exception.Error while parsing an XML stream: 'undeclared namespace prefix'.

I checked in SCN but I am getting the correct answer.

1-In the program I am sending the SOAP Header in the body part.

'<soapenv:Header>'
'<web:SessionHeader>'
'<web:sessionId>00D0S0000000XsM!ARYAQJgWSqPexXrq7SBS44OEEC2zMS71pLhIkkhgh5tXKRve5pbijMt5LPWlANj9IQebi6stasDyQi23pq8W32yUvmVHwcv6</web:sessionId>'
'</web:SessionHeader>'
'</soapenv:Header>'

2-There is no Namespace value saleforce team mention.

Thanks

Yogendra

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sandra Rossi Jun 06, 2017 at 06:42 PM
0

You must declare the namespace for "web" somewhere in a "upper node" for instance in <web:SessionHeader xmlns:web="...">.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Sandra,

Thanks For the reply.

After doing the change Now I am getting the below error.

SOAP:1023 SRT: Processing error in Internet Communication...


SOAP:1023 SRT: Processing error in Internet Communication Framework: ("SSL handshake with cs54.salesforce.com:443 failed: SSSLERR_PEER_CERT_UNTRUSTED (-102)The peer's X.509 Certificate (chain) is untrustedSapSSLSessionStartNB()==SSSLERR_PEER_CERT_UNTRUSTED SSL:SSL_read() failed (536872221/0x2000051d) => "Failed to verify peer certificate. Peer not trusted." SSL:SSL_get_state()==0x2131 "TLS read server certificate B" SSL NI-hdl 135: local=10.41.45.22:23751 peer=136.147.103.22:443 cli SSL session PSE "/usr/sap/DS4/D00/sec/SAPSSLA.pse" Target Hostname="cs54.salesforce.com">> ---- SecuSSL ErrStack: ----0x2000051d | SAPCRYPTOLIB | SSL_readSSL API errorFailed to verify peer certificate. Peer not trusted.0xa0600203 | SSL | ssl3_read_bytesPeer not trusted0xa0600203 | SSL | ssl3_connectPeer not trusted0xa0600203 | SSL | ssl3_get_server_certificatePeer not trusted0xa0600203 | SSL | ssl3_decode_server_certificatePeer not trusted0xa0600203 | SSL | ssl_verify_peer_certificatesPeer not trusted0xa0600203 | SSL | ssl_cert_checker_verify_certificatesPeer not trusted0xa0600203 | SSL | ssl_cert_checker_verify_certificatesPeer not trustedCertificate Certificate Subject :CN=*.salesforce.com, OU=Applications, O="Salesforce.com, Inc", L=San Francisco, SP=California, C=US Issuer :CN=Symantec Class 3 Secure Server CA - G4, OU=Symantec Trust Network, O=Symantec Corporation, C=US Serial number :0x5699d4f442705a2407d48d455833e17b Verification result Status :Not successful SignerStatus :Not successful SignerVerificationResult Element #1 Status :Not successful Validity :Successful BasicConstraints :Successful KeyUsage :Successful ObjectStatus :Not successful SignerCert Certificate Subject :CN=Symantec Class 3 Secure Server CA - G4, OU=Symantec Trust Network, O=Symantec Corporation, C=US Issuer :CN=VeriSign Class 3 Public Primary Certification Authority - G5, OU="(c) 2006 VeriSign, Inc. - For authorized use only", OU=VeriSign Trust Network, O="VeriSign, Inc.", C=US Serial number :0x513fb9743870b73440418d30930699ff Verification result Status :Not successful SignerStatus ")

0

Please post a new question (with link to this one for history), and close this one.

PS: ask your administrator to check the SSL certificate.

0