I am using SoapUI Pro 4.6.1 for testing my WCF service. And my request look like this
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:doPaymentRequest>
<!--Optional:-->
<tem:credentials>
<!--Optional:-->
<tem:accountId>?</tem:accountId>
<!--Optional:-->
<tem:userName>?</tem:userName>
<!--Optional:-->
<tem:password>?</tem:password>
</tem:credentials>
</tem:doPaymentRequest>
How to remove --Optional:--> from SOAP I am using message format to wrap my data contract and i am using isRequired attribute for DataContract.