SOAP Header name vs type

E

EJSawyer

In the process of building a SOAP client for a third-party service, I have
created a "dummy" service running on my local machine to debug against. I
have the dummy service working pretty well, but I've discovered that the WSDL
for my service has a subtle difference from the third-party service's WSDL
(which is also ASP.Net).

Specifically, the service requires a SOAP header, and in the WSDL, the
header is declared with the name= and type= as *different* from each other.
In my code, both of these values are derived from the class name of my
SOAPHeader-derived type.

Is there any way to override the name and/or type in my code?

Thanks,
Erik J Sawyer
 
E

EJSawyer

I kept poking around and found it: the TypeName parameter to the
XmlTypeAttribute applied to the class.
 

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
474,265
Messages
2,571,069
Members
48,771
Latest member
ElysaD

Latest Threads

Top