Custom Soap Extension Unit Testing



I have several custom soap extension classes that I would like to
write Nunit test classes for. Primarily testing the public
ProcessMessage method where the meat of the logic is. My problem is
that it takes a SoapMessage as a parameter which I am unable to
create. It is abstract and has two descendants SoapClientMessage and
SoapServerMessage both of which have hidden constructors thus not
allowing me to create an object. I've searched the net to no success
for a way to create a SoapMessage with no luck. I thought there might
be some other class I could use to create a SoapMessage but the actual
creation of that object during runtime of a webservice must be buried
deep within the framework.

I was just wondering if anyone might know if there was a way to
manually create a SoapMessage object.



Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question