--Not sure how to exactly answer your question (i'm not a programmer). So, I'm gonna give you what I'm doing.
wsdl /l:vb https://mysite/pdfservice/pdfgetter.asmx /out:C:\_BuildArea\Site\includes\CommonFunctions\PDFgetter.vb
--From here I compile this into a dll (I wasn't specifying a namespace before but now I am and I am getting "..ambiguous in the namespace..." messages on top of the "Type ... is not defined")
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\vbc.exe /out:C:\_BuildArea\Site\Bin\PDFgetter.dll /target:library /libpath:C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\ /r:system.dll /r:System.XML.dll /r:System.Web.Services.dll /rootnamespace:mynamespace /optimize+ /debug- /recurse:C:\_BuildArea\Site\includes\commonfunctions\pdfgetter.vb
--Then I just use this dll as a reference in my compile command