How to run wshttp binding webservices in soap ui
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
