Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I'm trying to compile a project using the command line but there is a Web Reference that it keeps choking on and I'm not sure how to reference this at the command line. Should I use the WSDL.exe to produce a .vb file fromt the web service then compile that into a dll and reference that dll to do my final compile?
Posted

Thanks for the info.

 

In my case, this produces a .vb file. I took that and compiled it into a dll and then referenced it when I try to build my final dll but I get a "Type ... is not defined" and it refers to where I dim the proxy.

 

What do I do?

Posted

--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

Posted

If I use the WSDL to produce a dll and reference that then how does my final dll know what the URL is for the web service?

 

Ugh! Help!

 

I tried using NAnt to compile using the Solution file to get all the reference info but I am having no luck with that either.

 

Anyone know of some good NAnt documentation or examples?

Posted

The easiest thing here (for consistency anyhow) is to just forget using the web-reference in the VS.net project and add references to your .dlls that WSDL.exe created.

 

This way, your NANT script is using the same .dlls as your VS project.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...