Ask a Question

soap ui request with cert in text mode

Soloway
Occasional Contributor

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 12
richie
Community Hero

Re: soap ui request with cert in text mode

Hey @Soloway,

Have you followed these instructions?

https://www.soapui.org/docs/functional-testing/sending-https-requests/

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Soloway
Occasional Contributor

Re: soap ui request with cert in text mode

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
Community Hero

Re: soap ui request with cert in text mode

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
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
richie
Community Hero

Re: soap ui request with cert in text mode

Hey @Soloway,

Can you publish the wsdl so i can see the content?

Cheers,

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Soloway
Occasional Contributor

Re: soap ui request with cert in text mode

Hi? @richie ! Thanks for your support. I think i have  a short wsdl without a declaration content that i need. Here is my wsdl content

 

wsdl.JPG

richie
Community Hero

Re: soap ui request with cert in text mode

Hey @Soloway 

 

WOW!  I have NEVER seen a .wsdl so short on content - you haven't got any bindings in there - no service tag in there - no wonder you're stuck.

 

if you look here --> https://www.w3.org/TR/wsdl.html  this is about the simplest example of a .wsdl I've seen and yours has even less content!

 

Ok - this is gonna be a bit of a struggle.  Can you confirm who mentioned WSCS/WSCC for your SOAP service?  Are you sure they're correct?  If they're so sure it uses WSCS/WSCC, is there a reason why they can't give you a complete/updated .wsdl?

 

If you can attach the .wsdl (saves me trying to copy it out of an image manually) I can try to start and build the content I think it needs - but you're still gonna need to determine all the info required to go in the additional WSCS/WSCC tag content in your SOAP payload.

 

that's the best I can think of right now....unless anybody else has some decent ideas?

 

nice one

 

Rich

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Soloway
Occasional Contributor

Re: soap ui request with cert in text mode

@richielook at the attach. there a 2 files. one is the wsdl and second - xml that i receive from my colleague.

So i sent a request using that soapui-project.xml and boom, have a lot a problems. Thaks for any help

richie
Community Hero

Re: soap ui request with cert in text mode

Hey @Soloway 

 

I'll have a look later once I've finished work.

 

Cheers,

 

Rich

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
richie
Community Hero

Re: soap ui request with cert in text mode

Hey @Soloway 

 

The auto import that allows you to build a project by importing the .wsdl (which really shortcuts things) won't work cos I also need the Messages.xsd that is imported in your .wsdl.

 

Can you attach the Messages.xsd also please?  

 

nice one

 

Rich

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
cancel
Showing results for 
Search instead for 
Did you mean: