Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class
743 views

UFT API Test with WCF wsHttpBinding

Hi

 

I'm trying to set up  a new API test on UFT11.53 to use WCF wsHttpBinding.  Our Dotnet application uses an app.config file, and although I can find support documents that list option fields for security, this is not really helping.  I'm not a webservice test expert and our resident webservice developer can't figure it out on UFT either - he can for WCFStorm.  The Client side xml for calling this service from a .Net application looks like the below, I'd like step by step instructions for either using this file or setting the options to emulate it.

 

    <wsHttpBinding>

                <binding name="WSHttpBinding_IUtility1" closeTimeout="00:01:00"

                    openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"

                    bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"

                    maxBufferPoolSize="524288" maxReceivedMessageSize="65536"

                    messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"

                    allowCookies="false">

                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"

                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />

                    <reliableSession ordered="true" inactivityTimeout="00:10:00"

                        enabled="false" />

                    <security mode="Message">

                        <transport clientCredentialType="Windows" proxyCredentialType="None"

                            realm="" />

                        <message clientCredentialType="Certificate" negotiateServiceCredential="false"

                            algorithmSuite="Basic256Sha256Rsa15" establishSecurityContext="false" />

                    </security>

                </binding>

            </wsHttpBinding>

0 Likes
2 Replies
Absent Member.. Absent Member..
Absent Member..

Hello Tim, 

 

       We are chking this information, we will get back as soon as posible.

 

Regards.

 

HP support
Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any answered posted.

0 Likes
Absent Member.. Absent Member..
Absent Member..

Hello Tim

 

    For wsHttpBinding you need to open UFT

    Drag and drop SOAP request in order to create a new SOAP request.

    

   

    -Click over the SOAP request and select the "Security Settings" tab in the properties pane.

    -Select the Service Details: "WCF Service (WSHttpBinding)"

    -You can set the Client Authentication type from the first option

    

 

    -Scroll down the properties and click on the Advanced... Button

   

 

    -From the different tabs you will be able to enter properties like Negotiate Service credentials, Encoding, proxy, among others

 

    

 

Regards.

 

 

HP support
If you find that this or any post resolves your issue, mark it as an accepted solution.

 

Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any answered posted.

  

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.