Office 2003 Web Services Toolkit can't add wsdl

C

cjshrader

Hello all,

I am trying to connect to a webservice using VBA and the Microsoft Office
2003 Web Services Toolkit. Whenever I try to connect to my wsdl, I get the
following error:

"Cannot Create Class - The Web Service References Tool could not generate
the requested code. Any changes that were made eto your project have been
rolled back."

My wsdl is located here: http://cjshrader.bravehost.com/stepws.wsdl

It will work with any other wsdl I've checked, but not mine. Yet mine has
passed any validators I've run it through.

So I suppose I have three questions:

1) Does anyone know how to fix this? Is something wrong with the WSDL that
I just can't find?

2) If it isn't known how to fix it, is there a command line or different
option for using the Toolkit? Something that might give me some more
information that the error mentioned previously?

3) Is it possible to use web services without the Toolkit, or is that not
suggested?

Thanks to anyone who can help.
 
C

cjshrader

Hey again all,

As far as I know, I've found the issue. It was because schema had empty
complextypes. For example, if this was in any definition:

<complexType name="getTopClassificationResponseType">
<sequence>
</sequence>
</complexType>

Then I would receive the error. To solve this, I merely put a temporary
element in the sequence that I will go back and delete after the toolkit
generates the code.

I'm no XML expert, so if anyone can better explain why this happened or
possibly better solutions I would appreciate it.
 

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