http://www.capescience.com/soa/index.shtml

-----Original Message-----
From: Henry Lu [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 11, 2004 9:54 AM
To: [EMAIL PROTECTED]
Subject: RE: WSDL2Java and Basic Profile


Could you provide the web site for downloading "a free WSDL editor with
a validator"?

-Henry

>>> [EMAIL PROTECTED] 10/11/2004 10:13:04 AM >>>
Cap Science provides a free WSDL editor with a validator. 

Raul

-----Original Message-----
From: Dan Ciarniello [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 08, 2004 5:08 PM
To: [EMAIL PROTECTED] 
Subject: WSDL2Java and Basic Profile


I am trying to follow the advice that I've seen in this mailing list by

handcrafting a WSDL and feeding it to WSDL2Java.  I'm also trying to 
make it conform to the WS-I Basic Profile requirements.  Unfortunately,

I'm running into problems.

When I run WSDL2Java, I this:

WSDLException (at 
/wsdl:definitions/wsdl:binding/wsdl:operation/wsdl:input): 
faultCode=INVALID_WSDL: Encountered illegal extension attribute 
'message'. Extension attributes must be in a namespace other than
WSDL's.:

There may be a problem with my WSDL (see below) but I also grabbed the

WS-I sample WSDL found at

http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html#Namespaces

_for_Children_of_Part_Accessors

This gives exactly the same error.

It seems a bit odd that a "CORRECT" WSDL from the WS-I site should not

be considered valid.

Here's my WSDL:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://cityxpress.com/external";
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
  xmlns:tns="http://cityxpress.com/external";>

  <wsdl:types>
    <xsd:schema targetNamespace="http://cityxpress.com/external";>
      <xsd:complexType name="CXObjectType">
        <xsd:sequence>
          <xsd:element name="thedate" type="xsd:dateTime"/>
          <xsd:element name="avalue" type="xsd:int"/>
        </xsd:sequence>
      </xsd:complexType>
    </xsd:schema>
  </wsdl:types>
  <wsdl:message name="getObjectRequest">
    <wsdl:part name="id" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="getObjectResponse">
    <wsdl:part name="getObjectReturn" type="tns:CXObjectType"/>
  </wsdl:message>
  <wsdl:portType name="XMTestPortType">
    <wsdl:operation name="getObject">
      <wsdl:input message="tns:getObjectRequest"/>
      <wsdl:output message="tns:getObjectResponse"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="XMTestBinding" type="tns:XMTestPortType">
    <soap:binding style="document"
      transport="http://schemas.xmlsoap.org/soap/http/"/>
    <wsdl:operation name="getObject">
      <soap:operation soapAction=""/>
      <wsdl:input message="tns:getObjectRequest">
        <soap:body namespace="http://cityxpress.com/external"; 
use="literal"/>
      </wsdl:input>
      <wsdl:output message="tns:getObjectResponse">
        <soap:body namespace="http://cityxpress.com/external"; 
use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="XMTest">
    <wsdl:port name="XMTest" binding="tns:XMTestBinding">
      <soap:address location="http://localhost:8080/v01/XMTest"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

If anyone can point out the problem, it would be greatly appreciated.

Thanks,
Dan.


Reply via email to