On Thu, Oct 28, 2010 at 11:01 PM, Rivera <[email protected]> wrote: > Hi, > I need to consume a Web Service. They send me the WSDL file.. > First thing I did is I added it to service reference and when I try execute > the method I get error "Could not find default endpoint element that > references contract" > I do google and find > it http://stackoverflow.com/questions/352654/could-not-find-default-endpoint-element > But I still confused what I must fill in binding or contract tag? or do you > have better hint? > regards ---------------------------
Did you add the reference to a project that is not the same as the web site you are using? If so the connection info to the WS is in the app.config and needs to be added to the Web.config. If this is a single project solution, they remove the Service reference and add it back in as a Web Reference. HTH -- Stephen Russell Sr. Production Systems Programmer CIMSgts 901.246-0159 cell
