Ask a Question

How to run wshttp binding webservices in soap ui

harivignesh27
Occasional Contributor

How to run wshttp binding webservices in soap ui

Hi Every One,

 

           I developed  a wshttp binding webservice.Its working fine in wcf test client and wcf storm. But in soap ui the service run only when i enable WS- Addressing Related Property or WS-Reliable Messaging Related Setting. I would like to run the service without configure in Soap UI.Is there any solution available for this issue /  Is any possible way to handle this one in my

either server side scripting  or webconfig.

 

          Advance Thanks for Suggestion...!

3 REPLIES 3
rupert_anderson
Valued Contributor

Hi,

 

This isn't a direct solution, as I have stoped short for suggesting any code at this stage, but if I understand you right, you don't want to use the WS-Addressing properties in SoapUI but instead would like to add these policy properties programatically when despatching the request in SoapUI? If so, one option might be to use a requestFilter to add the policy properties using Java/Groovy code? 

 

If you have the pro version this can be added without a plugin with a custom event filter - http://www.soapui.org/scripting---properties/custom-event-handlers.html and some example code can be found in http://www.soapui.org/scripting---properties/tips---tricks.html (part 5.2)

 

In the open source version this normally requires developing a plugin to add the requestFilter. I can offer some tips on this if necessary.

 

Sorry this isn't a quick fix answer, but hopefully it might provide some guideance or prompt someone else to improve upon it.


Cheers,

Rupert

Author of SoapUI Cookbook

Hi Rupert,

 

       Thanks for your suggestion.I did use AddressFilterMode option and fix this issue in server side. That code like as follow:

 

[ServiceBehavior(AddressFilterMode=AddressFilterMode.Any)]    
public class YourService: IYourService
{
... .

 

}

 

then need to specify the base address in webconfig like as following : 

<services>

<host>
<baseAddresses>
<add baseAddress="your service address"/>
</baseAddresses>
</host>

</services>

 

 

cancel
Showing results for 
Search instead for 
Did you mean: