You wont be able to consume a Web-Reference inside a class file in VS 2008. But still you can call the web-methods and access the entities using the following steps.
1 Open the command prompt for Visual Studio
2 Type the command wsdl /out:CrmServiceWsdl.cs
http://http://uat.ocean.sony.com.sg/SGUAT/loader.aspx?
WSDL /u:username /p:password /d:domain
Ref URl : http://msdn.microsoft.com/en-us/library/7h3ystb6(VS.71).aspx
3. Open the CrmServiceWsdl.cs int the location specified in the command prompt
4. Create a class project and add the CrmServiceWsdl.cs fiel into the project.
5. Compile and Build the project
6. The CrmServiceWsdl.dll has the web-service calls and methods whcih you can access by including the dll as a reference.
No comments:
Post a Comment