Forum Discussion
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
- harivignesh2710 years agoOccasional Contributor
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>
- harivignesh2710 years agoOccasional Contributor
refer this link....
Related Content
- 18 years ago
- 5 years ago