Forum Discussion

Soloway's avatar
Soloway
Occasional Contributor
3 years ago

soap ui request with cert in text mode

 

I use my soap request with client cert in text mode. how can i insert cert in the request use WSCS and WSCC parameters? Now the request look like this:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mes="http://www.soapui.org/UPRS/Services/ISettlementAccountsPaymentsBankStatement/v1_0/Messages" xmlns:dat="http://www.soapui.org/UPRS/Services/ISettlementAccountsPaymentsBankStatement/v1_0/Datatypes">

$WSCC:-----BEGIN CERTIFICATE-----

YXkzQG10cy5ydTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAKDLHM0g

ggIBAIdZmZLh9wJvNOsgE14K29X4+ZsdvIHf80JemcRj5ZsK5djXsi4HRqt6HdWs

WIbLfLtz5H9FIBph8a/6QmnmbfGnSwNQGO5fdffmcrRK9wsmpY/MVzQOzaBNIWK/

piaBpPyGKmErmagl3/+znEn77G8wZ4JONr6JLHY/AnQPMo7Nl6E0c6zm6sp6lwrx

1DJXOT3wPkX2c1j+WdyTiRt9ngNJpzgPX0/u3Dt2eYscCq4404zMRDCMzb2xO7x6

+NTJQT6kILJzygU2F9MTES+na0QZk1zX5w+TA7yzAUuBXHZ8pFi7yO3JsAA36kMb

slz5A0x3i8Yi9o2yMebINKxiZaOFle8ijdS1hjmFLn40WgZIxES9dQIKZ8IFKQd3

eKsqs0qbJ4ZgTTvUFhzsfV5lrm4XgLJ3Ve3C58DxPcUTG98+3u8y3QXARc2Pdz3Q

XfgqSb3mOKfJmpSYjj7ShxVr4X4MIzhLMf9AW55G51KtQ2JoYU7jL3k4nywjJJit

4lpVg9x3vEPArraQwjK72+pHiywBgFH7JbKFHUzSKHbWLdlstlnXfZ0uKj1L0co7

3kIcBZvZYjFVKRZ3+fNDEoF10KPd6WH4Itr3l1P2kmpjkBsHgIijB1MMykupPPt1

EYIsCf1+NcTg02ReKplvZLJlfa33pI8Vu+HC1tlUbf/AyGvI

-----END CERTIFICATE-----

WSCS:**bleep**


<soapenv:Header/>
<soapenv:Body>

 

 

 

but request returned with error: certificate not found. What am i doing wrong?

12 Replies

    • Soloway's avatar
      Soloway
      Occasional Contributor

      Hi, richie !

      Yeah, sure, i know how to send https request. But i need to send soap request using @WSCC @WSCS headers. I don't know how to insert text body of my cert, using @WSCC @WSCS http headers

      • richie's avatar
        richie
        Community Hero
        Hey Soloway,

        Sorry i wasnt clear in my last. Yep the instructions are for http rather than soap but you mentioned certs and the bottom half of that discusses how to configure requests that use client certs.

        Anyway, i had to google what wscc and wscs is as i never used it before. I found the following page that is SOAP related with content for wscc xml that you add into the soap header.
        Have a look and see if that helps and hit me back with progress. Strictly speaking i wouldve thought if youve been given a .wsdl for a SOAP service that uses wscs/wscc, then the relevant wscs/wscc content would already be embeďded in the .wsdl.....am i mistaken?

        https://docs.mulesoft.com/web-service-consumer-connector/1.5/web-service-consumer-configure

        Nice one!

        Rich