Attribute specifier is not a complete statement eror

J

Justin Dutoit

Hello. I'm practising some custom authentication for web services, and I get
the error-'

BC32035 Attribute specifier is not a complete statement. Use a line
continuation to apply the attribute to the following statement.

The offending code is
<WebMethod> _
<SoapHeader("MySoapHeader") _
Public Function Test As String

.......

The soap header part is the problem. If I put
<SoapHeader("MySoapHeader") _
<WebMethod> _
Public Function Test As String

then the Web Method part is the problem, ie the second one both times.

I'd appreciate if someone could tell me what is happening here.

Cheers
Justin Dutoit
 
J

Justin Dutoit

I finally used <WebMethod(), SoapHeader("MySoapHeader")> instead, thanks
anyhow
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top