473,692 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

W3C WSDL example not valid?

Hi All!

I ran the following w3c example through my WSDL parser (SOA Editor
from Cape Clear):
http://www.w3.org/TR/wsdl#_rpcexample

It told me that there were a bunch of erros about no timeInstant or
float defined in the xsd namespace:
"http://www.w3.org/2000/10/XMLSchema".

Is the editor wrong? Is W3C wrong? Or am I missing something big?

Also, why does the W3C example *not* import a WSDL namespace like
this:
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
and then use it for the WSDL elements? How can the document be valid
if no WSDL namespace is given?

Any advice would be most appreciated!

Below is a full list of the errors SOA Editor found with W3C's
example..

Rob
:)
javax.swing.Ima geIcon@1a3a52c Warning : 1203 : There is no type
[{http://www.w3.org/2000/10/XMLSchema}float] defined for the part
[Part: name=result
typeName={http://www.w3.org/2000/10/XMLSchema}float] in the message
[Message: name={http://example.com/stockquote.wsdl }GetTradePriceO utput
Part: name=result
typeName={http://www.w3.org/2000/10/XMLSchema}float] in the WSDL.
javax.swing.Ima geIcon@b0f2b2 Warning : 1203 : There is no type
[{http://www.w3.org/2000/10/XMLSchema}strin g] defined for the part
[Part: name=tickerSymb ol
elementName={ht tp://www.w3.org/2000/10/XMLSchema}strin g] in the
message [Message: name={http://example.com/stockquote.wsdl }GetTradePriceI nput
Part: name=time
elementName={ht tp://www.w3.org/2000/10/XMLSchema}timeI nstant
Part: name=tickerSymb ol
elementName={ht tp://www.w3.org/2000/10/XMLSchema}strin g] in the WSDL.
javax.swing.Ima geIcon@10dbef1 Warning : 1203 : There is no type
[{http://www.w3.org/2000/10/XMLSchema}timeI nstant] defined for the
part [Part: name=time
elementName={ht tp://www.w3.org/2000/10/XMLSchema}timeI nstant] in the
message [Message: name={http://example.com/stockquote.wsdl }GetTradePriceI nput
Part: name=time
elementName={ht tp://www.w3.org/2000/10/XMLSchema}timeI nstant
Part: name=tickerSymb ol
elementName={ht tp://www.w3.org/2000/10/XMLSchema}strin g] in the WSDL.
javax.swing.Ima geIcon@172e08e Warning : 1603 : There is no binding
[Binding: name={http://example.com/stockquote.wsdl }StockQuoteBind ing]
defined for the port [Port: name=StockQuote Port
Binding: name={http://example.com/stockquote.wsdl }StockQuoteBind ing
SOAPAddress ({http://schemas.xmlsoap .org/wsdl/soap/}address):
required=null
locationURI=htt p://example.com/stockquote] in the service [Service:
name={http://example.com/stockquote.wsdl }StockQuoteServ ice
Port: name=StockQuote Port
Binding: name={http://example.com/stockquote.wsdl }StockQuoteBind ing
SOAPAddress ({http://schemas.xmlsoap .org/wsdl/soap/}address):
required=null
locationURI=htt p://example.com/stockquote] in the WSDL.
Jul 20 '05 #1
5 4731
re********@optu snet.com.au (re********@opt ushome.com.au) writes:

float defined in the xsd namespace:
"http://www.w3.org/2000/10/XMLSchema".


I'm not a WSDL maven, but that's a stale XML Schema namespace, used
only for the Candidate Recommendation phase of W3C XML Schema before
it was approved. . .

ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Jul 20 '05 #2
Hi Henry,

Thanks for the response!
float defined in the xsd namespace:
"http://www.w3.org/2000/10/XMLSchema".


I'm not a WSDL maven, but that's a stale XML Schema namespace, used
only for the Candidate Recommendation phase of W3C XML Schema before
it was approved. . .


I changed it to:
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
and I still get the errors shown below..

How do you find out what the latest schema is?

Rob
:)
javax.swing.Ima geIcon@13e86ec Warning : 1203 : There is no type
[{http://www.w3.org/2001/XMLSchema}timeI nstant] defined for the part [Part:
name=time elementName={ht tp://www.w3.org/2001/XMLSchema}timeI nstant] in the
message [Message:
name={http://example.com/stockquote.wsdl }GetTradePriceI nput Part: name=time
elementName={ht tp://www.w3.org/2001/XMLSchema}timeI nstant Part:
name=tickerSymb ol elementName={ht tp://www.w3.org/2001/XMLSchema}strin g] in
the WSDL.
javax.swing.Ima geIcon@c199f Warning : 1510 : The namespace defined is
invalid for the message [null] defined for the input in operation
[Operation: name=GetTradePr ice style=REQUEST_R ESPONSE Input: name=null
Output: name=null] in the portType [PortType:
name={http://example.com/stockquote.wsdl }StockQuotePort Type Operation:
name=GetTradePr ice style=REQUEST_R ESPONSE Input: name=null Output:
name=null] in the WSDL.
javax.swing.Ima geIcon@6646fc Warning : 1511 : The namespace defined is
invalid for the message [null] defined for the output in operation
[Operation: name=GetTradePr ice style=REQUEST_R ESPONSE Input: name=null
Output: name=null] in the portType [PortType:
name={http://example.com/stockquote.wsdl }StockQuotePort Type Operation:
name=GetTradePr ice style=REQUEST_R ESPONSE Input: name=null Output:
name=null] in the WSDL.
javax.swing.Ima geIcon@be6858 Warning : 1603 : There is no binding
[null] defined for the port [Port: name=StockQuote Port SOAPAddress
({http://schemas.xmlsoap .org/wsdl/soap/}address): required=null
locationURI=htt p://example.com/stockquote] in the service [Service:
name={http://example.com/stockquote.wsdl }StockQuoteServ ice Port:
name=StockQuote Port SOAPAddress
({http://schemas.xmlsoap .org/wsdl/soap/}address): required=null
locationURI=htt p://example.com/stockquote] in the WSDL.
Jul 20 '05 #3
In article <41************ ***********@new s.optusnet.com. au>,
Robert Mark Bram <none> wrote:
javax.swing.Ima geIcon@13e86ec Warning : 1203 : There is no type
[{http://www.w3.org/2001/XMLSchema}timeI nstant] defined for the part [Part:
name=time elementName={ht tp://www.w3.org/2001/XMLSchema}timeI nstant]


"timeInstan t" was renamed "dateTime" before the final version of the
Schema spec.

I'm suspicious about

elementName={ht tp://www.w3.org/2001/XMLSchema}timeI nstant

for another reason: it seems to be referring to an element with that
name, rather than that type. But maybe that's just some WSDL
mumbo-jumbo and doesn't really mean that an element of that name
should be defined in the schema.

-- Richard
Jul 20 '05 #4
Hi Richard,

I have included the below the full wsdl file I have so far and the error I
still get for it.

I must say I am very confused right now - just to find that W3C's own
example doesn't seem valid! :-/

Rob
:)

<?xml version="1.0"?>
<definitions name="StockQuot e"
targetNamespace ="http://example.com/stockquote.wsdl "
xmlns="http://schemas.xmlsoap .org/wsdl/"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:tns="http ://example.com/stockquote.wsdl "
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsd1="htt p://example.com/stockquote.xsd" >

<message name="GetTradeP riceInput">
<part name="tickerSym bol" element="xsd:st ring"/>
<part name="time" element="xsd:da teTime"/>
</message>

<message name="GetTradeP riceOutput">
<part name="result" type="xsd:float "/>
</message>

<portType name="StockQuot ePortType">
<operation name="GetTradeP rice">
<input message="tns:Ge tTradePriceInpu t"/>
<output message="tns:Ge tTradePriceOutp ut"/>
</operation>
</portType>

<binding name="StockQuot eSoapBinding" type="tns:Stock QuotePortType">
<soap:binding style="rpc"
transport="http ://schemas.xmlsoap .org/soap/http"/>
<operation name="GetTradeP rice">
<soap:operati on soapAction="htt p://example.com/GetTradePrice"/>
<input>
<soap:body use="encoded"
namespace="http ://example.com/stockquote"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="http ://example.com/stockquote"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"/>
</output>
</operation>>
</binding>

<service name="StockQuot eService">
<documentation> My first service</documentation>
<port name="StockQuot ePort" binding="tns:St ockQuoteBinding ">
<soap:address location="http://example.com/stockquote"/>
</port>
</service>
</definitions>
And this is the errors reported:

javax.swing.Ima geIcon@1172f8f Warning : 1603 : There is no binding [Binding:
name={http://example.com/stockquote.wsdl }StockQuoteBind ing] defined for the
port [Port: name=StockQuote Port
Binding: name={http://example.com/stockquote.wsdl }StockQuoteBind ing
SOAPAddress ({http://schemas.xmlsoap .org/wsdl/soap/}address):
required=null
locationURI=htt p://example.com/stockquote] in the service [Service:
name={http://example.com/stockquote.wsdl }StockQuoteServ ice
Port: name=StockQuote Port
Binding: name={http://example.com/stockquote.wsdl }StockQuoteBind ing
SOAPAddress ({http://schemas.xmlsoap .org/wsdl/soap/}address):
required=null
locationURI=htt p://example.com/stockquote] in the WSDL.
Jul 20 '05 #5
Hi All!

Well, I finally got Cape Clear to say the below version was ok..

The final thing I had to change was this:
<operation name="GetTradeP rice">
<soap:operati on soapAction="htt p://example.com/GetTradePrice"/>
<input>
<soap:body use="encoded"
namespace="http ://example.com/stockquote"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="http ://example.com/stockquote"
encodingStyle=" http://schemas.xmlsoap .org/soap/encoding/"/>
</output>
</operation>>
to this:
<soap:operati on soapAction="htt p://example.com/GetTradePrice"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>

Is the first one invalid?

Rob
:)

This is the version that Cape Clear said was valid:

<?xml version="1.0"?>
<wsdl:definitio ns name="StockQuot e"
targetNamespace ="http://example.com/stockquote.wsdl "
xmlns="http://schemas.xmlsoap .org/wsdl/"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:tns="http ://example.com/stockquote.wsdl "
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"
xmlns:xsd1="htt p://example.com/stockquote.xsd" >

<wsdl:message name="GetTradeP riceInput">
<wsdl:part name="tickerSym bol" element="xsd:st ring"/>
<wsdl:part name="time" element="xsd:da teTime"/>
</wsdl:message>

<wsdl:message name="GetTradeP riceOutput">
<wsdl:part name="result" type="xsd:float "/>
</wsdl:message>

<wsdl:portTyp e name="StockQuot ePortType">
<wsdl:operati on name="GetTradeP rice">
<wsdl:input message="tns:Ge tTradePriceInpu t"/>
<wsdl:output message="tns:Ge tTradePriceOutp ut"/>
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="StockQuot eBinding" type="tns:Stock QuotePortType">
<soap:binding style="rpc"
transport="http ://schemas.xmlsoap .org/soap/http"/>
<wsdl:operati on name="GetTradeP rice">
<soap:operati on soapAction="htt p://example.com/GetTradePrice"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation> >
</wsdl:binding>

<wsdl:service name="StockQuot eService">
<wsdl:documenta tion>My first service</wsdl:documentat ion>
<wsdl:port name="StockQuot ePort" binding="tns:St ockQuoteBinding ">
<soap:address location="http://example.com/stockquote"/>
</wsdl:port>
</wsdl:service>
</wsdl:definition s>
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
8684
by: Generic Usenet Account | last post by:
Does anyone have an opinion on how IDL and WSDL compare to each other? Are they equally powerful in their "expressive power"? Sometimes it appears to me that IDL is a little easier for humans to follow. Also, it appears to be more compact. Are IDL and WSDL equally powerful in expressing complex data types, and describing inheritance and association relationships? What would be the most compelling reasons to choose one over the other?
2
4154
by: dotNetty | last post by:
Hi I have a problem with validating WSDL-Files using XMLValidatingReader. I'm adding all schemas in the <definitions>-Tag to the XmlValidatingReader.Schemas Property. and here is the Problem: Some wsdl-Files that should work(according to XMLSpy) produce ValidationErrors when: 1. The location attributes value is an XPath (?) Expression, for
2
7728
by: Danny Gagne | last post by:
I'm currently working an .net application (I can use 1.1 or 2.0 if needed) that needs to read a wsdl file and generate another piece of code that can use it. I'm encountering a problem where I cannot extract all of the type information from the wsdl using any standard tools. I'm using HttpGet style webservices if that makes any difference, but I want to be able to use any type. 1. I've tried the ServiceDescription.Types and I cannot...
2
5056
by: Pathogenix | last post by:
Greetings, I'm trying to fix a web service client which has been implemented in a dailywtf worthy manner. I've decided to rip all the old code out and start again from the proxy generated by wsdl.exe. I've immediately run up against the same problem that spawned the original, deeply fascinating code. I can make a request, and Fiddler shows that the service is returning a valid response, but the client is returning a null object....
0
1799
by: DotDidIt | last post by:
Hi Everybody! I developed a Web service with IBM RAD v 6.0.1. After creating the WSDL file i have tried to develop a .Net client. But by using wsdl.exe (1.1.4322) to create a .net c# proxy i get the following error message: Schema parsing error Namespace 'http://session.ejbs.cac.commerce.com' is not available to be referenced in this schema. Schema parsing error Namespace 'http://session.ejbs.cac.commerce.com'
7
6999
by: George Jordanov Ivanov | last post by:
Folks, I have to design the WSDL files of a bunch of XML Web Services. But, unfortunately, I am not very keen on writing the WSDL file line by line, and moreover be aware of the whole standard specification in details. I will be very happy if there is a visual tool, which can do this for me. Does anyone know such kind of tool (if it is free, this is going to be awesome)? Thanks in advance. Regards,
13
8456
by: Edje.Rommel | last post by:
Hello, I've have a problem with a webservice. I just want to validate a VAT number by country code and VAT numer. The return value should be like "it's valid" and/or the name where it's registered to. To do this i can access the webservice on the following location: http://ec.europa.eu/taxation_customs/vies/api/checkVatPort A WSDL file is also available:
3
9430
by: Siva | last post by:
Hi all, I want to Convert a WSDL to a SOAP message. Is there any way to do this. I am using .NET 2.0 Thanks in Advance Siva
9
7898
by: Nick Locke | last post by:
I have a fairly simple structure: - Simple Types in an XSD - Complex Types (one file) in another XSD, importing the Simple Types - More Complex Types (second file) in another XSD, again importing the Simple Types - A WSDL Definitions file, importing the two Complex Types files - A WSDL Service file, importing the WSDL Definitions file I have put all that together with XML Spy and that seems happy. I can also
0
8611
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8547
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9090
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8969
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8812
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7639
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6462
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2983
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.