Issue -- While Adding webreference and Custom Soap Extension.
i have created custom soap header but not able include in webmethod want consume.
if include in web.config file
<webservices>
<soapextensiontypes>
<add type="soapmessagelog.logsoapmessages, soapmessagelog" priority="1" group="0"/>
</soapextensiontypes>
</webservices>
this gets applied web methods not want.
issue 2 ) when add webreference web-application not able see proxy class implemention. can see methods signature not implementation , not able modify proxy class. reason why want because want add custom soap extension attribute webmethod through want send header.
if create console application , add webreference can see proxy class implementation.
i appreciate if can me solve issue.
thanks,
rn
so trying add soap extension or custom soap header on service side? header can use soapheaderattribute on webmethod needs or can handle in soap extension. soap extension can define attribute , apply webmethod's need it, allude when discussing client , remove config.
generally don't want modify autogenerated code since can regenerated , wipe out changes. include modified proxy in web site, either use add web reference console app or use wsdl.exe generate proxy, make changes , add existing item web application.
hope helps.
Archived Forums A-B > ASMX Web Services and XML Serialization
Comments
Post a Comment