Hi I am trying to use SoapExtensionReflector class to remove the output message from the wsdl:operation element from my WSDL. I need the web service's wsdl to have just this: <wsdl:operation name="ASyncGetData"> <wsdl:input message="tns:ASyncGetDataSoapIn" /> </wsdl:operation> not <wsdl:operation name="ASyncGetData"> <wsdl:input message="tns:ASyncGetDataSoapIn" /> <wsdl:output message="tns:ASyncGetDataSoapOut" /> </wsdl:operation> I was hoping to do somethis like: ServiceDescription description = ReflectionContext.ServiceDescription; description.PortTypes[0].Operations[0].Messages.RemoveAt(0); but it throws an error. Any help please?
"shell77" wrote in message news:866CF04A-AF17-4119-BCD5-F77B6102D0C1@microsoft.com... > Hi > > I am trying to use SoapExtensionReflector class to remove the output > message > from the wsdl:operation element from my WSDL. I need the web service's > wsdl > to have just this: > <wsdl:operation name="ASyncGetData"> > <wsdl:input message="tns:ASyncGetDataSoapIn" /> > </wsdl:operation> > > not > > <wsdl:operation name="ASyncGetData"> > <wsdl:input message="tns:ASyncGetDataSoapIn" /> > <wsdl:output message="tns:ASyncGetDataSoapOut" /> > </wsdl:operation> > > I was hoping to do somethis like: > > ServiceDescription description = ReflectionContext.ServiceDescription; > description.PortTypes[0].Operations[0].Messages.RemoveAt(0); > > but it throws an error. > Any help please? I presume that you can't just define your method as void? -- John Saunders [MVP]