Ok, but we expect Axis produces a WSDL file.
I think if we give service.xml and related class with public methods to axis, that axis will produce the correct WSDL file.

Thanks for any information
luc

Anne Thomas Manes schrieb:
Your WSDL isn't valid. You didn't declare any namespaces.

Anne

On 3/16/06, *Lukas Fischer / HTA* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hello there
    I work on a application with a Webservice-Component (Java/Axis2)
    and a
    client C# (Visual Studio 2005). The software is in a very early phase,
    so we still evaluate what we should use.

    If we add a Webservice in Visual Studio, I get the following output
    ----
    The document at the url http://localhost:8080/axis2/services/baas?wsdl
    was not recognized as a known document type.
    The error message from each known type may help you fix the problem:
    - Report from
    'system.web.services.discovery.discoverydocumentreference'
    is 'Discovery document at the URL
    http://localhost:8080/axis2/services/baas?wsdl could not be found.'.
    - The document format is not recognized.
    - Report from 'system.web.services.discovery.contractreference' is
    'There is an error in the XML document.'.
    - The required attribute 'name' is missing.
    - Report from 'system.web.services.discovery.schemareference' is
    'Expected Schema root. Make sure the root element is <schema> and the
    namespace is 'http://www.w3.org/2001/XMLSchema
    <http://www.w3.org/2001/XMLSchema>' for an XSD schema or
    'urn:schemas-microsoft-com:xml-data' for an XDR schema.'.

    ----

    services.xml is
    <service name="Baas">
    <description>
    test
    </description>
    <parameter name="ServiceClass"
    locked="xsd:false">baas.webservice.Test</parameter>
    <operation name="getName">
    </operation>
    </service>

    When I access through the Browser, the response seems to be ok.
    Like this:

    <wsdl:definitions targetNamespace="http://org.apache.axis2/";>
    -
    <wsdl:types>
    -
    <xs:schema ns1:elementFormDefault="qualified"
    ns0:attributeFormDefault="unqualified"
    ns2:targetNamespace="http://org.apache.axis2/xsd";>
    -
    <xs:element ns0:name="getNameRequest">
    <xs:complexType/>
    </xs:element>
    -
    <xs:element ns0:name="getNameResponse">
    -
    <xs:complexType>
    -
    <xs:sequence>
    <xs:element ns0:name="return" ns1:type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    </wsdl:types>
    -
    <wsdl:message name="getNameResponseMessage">
    <wsdl:part name="part1" element="ns1:getNameResponse"/>
    </wsdl:message>
    -
    <wsdl:message name="getNameRequestMessage">
    <wsdl:part name="part1" element="ns1:getNameRequest"/>
    </wsdl:message>
    -
    <wsdl:portType name="baasPort">
    -
    <wsdl:operation name="getName">
    <wsdl:input message="tns:getNameRequestMessage"/>
    <wsdl:output message="tns:getNameResponseMessage"/>
    </wsdl:operation>
    </wsdl:portType>
    -
    <wsdl:binding name="baasBinding" type="tns:baasPort">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http
    <http://schemas.xmlsoap.org/soap/http>"
    style="document"/>
    -
    <wsdl:operation name="getName">
    <soap:operation name="operation" soapAction="getName"
    style="document"/>
    -
    <wsdl:input>
    <soap:body use="literal" namespace="http://www.org.apache.axis2"/>
    </wsdl:input>
    -
    <wsdl:output>
    <soap:body use="literal" namespace=" http://www.org.apache.axis2"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    -
    <wsdl:service name="baas">
    -
    <wsdl:port name="baasPortType" binding="tns:baasBinding">
    <soap:address location="http://localhost:8080/axis2/services/baas"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>


    mmmh, hope you can help me.
    I'm very new to axis and webservices at all.

    If there you know some links to related articles, ... would be
    wonderful.

    Thanks in advance,
    luc



Reply via email to