c# - How do I suppress the method name from my xml in a WCF Web Service? -


i not want web method name part of hierarchy in xml. strictly want object passed in encapsulated in soap envelope, have empty header, , in body want first sub-element of type of object i'm passing in (in case, ns:queryrequest).

when had .asmx web page, getting 2 levels in hierarchy (i.e., web method name , name of object being passed web method). so, beneath body, had getdata -> actualdata -> ns:queryrequest. able suppress first 2 elements creating [soapdocumentmethod] on web method , setting parameterstyle=soapparameterstyle.bare.

i'm creating wcf web page comparison. specified [xmlserializerformat] beneath [operationcontract] on interface , resolved namespace issues. tried implementing [webinvoke] , [webget] beneath that, bodystyle=webmessagebodystyle.bare, isn't suppressing getdata method name in interface. need first element beneath body ns:queryrequest , not getdata.

how can accomplish this?

you define [messagecontract(iswrapped=false)] input parameter , separate 1 output. suppress unwanted root element.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -