Newbie: Creating a Web Service Client

A

Anders Eriksson

Hello,

This is my first attempt to write a Web Service Client.
I received a .xsd file from the Web Service provider, and he thinks that
from this file I should be able to create my client.

I then run WSDL.EXE with this xsd file
WSDL ".\Laser Marker WS -2007_11_30.xsd" /l:cpp

and got this error message:

Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.

Warning: This web reference does not conform to WS-I Basic Profile v1.1.
SOAP 1.1 binding was not found: WS-I's Basic Profile 1.1 consists of
implementat ion guidelines that recommend how a set of core Web services
specifications shou ld be used together to develop interoperable Web
services. For the 1.1 Profile, those specifications are SOAP 1.1, WSDL
1.1, UDDI 2.0, XML 1.0 and XML Schema.

For more details on the WS-I Basic Profile v1.1, see the specification
at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Warning: no classes were generated.
Warnings were encountered. Review generated source comments for more
details.

Writing file 'C:\Documents and Settings\ame\My Documents\Visual Studio
2005\Proj ects\SCMLaser2.0\webservice\output.h'.

Output.h contains this code:

#pragma once

#using <mscorlib.dll>
#using <System.dll>
#using <System.Xml.dll>
#using <System.Web.Services.dll>
#using <System.EnterpriseServices.dll>

using namespace System::Security::permissions;
[assembly:SecurityPermissionAttribute(SecurityAction::RequestMinimum,
SkipVerification=false)];
//
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
//

using namespace System;


I don't get what the problem is?
Do I need to have access to the web service? (it's on a Intranet which I'm
not on)

// Anders
 
B

Brian Muth

Why don't you look at the contents of the wsdl file and the xsd file and see if they look anything alike?

xsd is a schema file. wsdl is a particular brand of xsd file that has a specific format, as described in: http://www.w3.org/TR/wsdl

It could very well be that your xsd happens to be a wsdl file.

Brian
 

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

Top