file content as input for webservice call

  • Thread starter Thread starter hvj
  • Start date Start date
H

hvj

Dear reader,

Is it possible from .NET to use the content of a file that contains a
complete SOAP (input) message as the input for a webservice call?

The normal way is to generate a proxy for a webservice and use the
resulting object model. However, for regressiontesting purposes, I
just want to fire calls using files that are obtained from logging the
webservice.

Help would really be appreciated!

Regards,
Henk
 
Dear reader,

Is it possible from .NET to use the content of a file that contains a
complete SOAP (input) message as the input for a webservice call?

The normal way is to generate a proxy for a webservice and use the
resulting object model. However, for regressiontesting purposes, I
just want to fire calls using files that are obtained from logging the
webservice.

Help would really be appreciated!

Regards,
Henk

Yes it is possible. Read file into string and use HttpWebRequest.
Caveat is deriving the SOAPAction HttpHeader that is needed. In
the .NET + IIS case it can be derived from the input, i.e. the name of
the operation.
 
Back
Top