Custom Soap Extension Unit Testing

S

sdunnin

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.

Thanks
 

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

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top