Hi

When I try to make a "web reference" (in Visual Studio .net) to my
webservice installed under Axis2, I get these two messages:

1. Schema validation warning: Schema item 'element' named
'simpleDataResponse' from namespace
'http://employees.niws.alphasolutions.dk' is invalid. Namespace
'http://employees.niws.alphasolutions.dk/xsd' is not available to be
referenced in this schema.

2. Schema could not be validated. Class generation may fail or may
produce incorrect results.

I have no wsdl (it is auto-generated by Axis2), so what could the
problem be? The following is the auto-generated wsdl (I get from
http://localhost:8080/axis2/services/Employees_WS?wsdl). Visual Studio
uses this wsdl to make a "web reference" but it does not seem to
understand it.

Any advice please?



<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:ns1="http://employees.niws.alphasolutions.dk";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:ns0="http://employees.niws.alphasolutions.dk/xsd";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
targetNamespace="http://employees.niws.alphasolutions.dk";>
    <wsdl:documentation>Employees_WS</wsdl:documentation>
    <wsdl:types>
        <xs:schema
xmlns:ax21="http://employees.niws.alphasolutions.dk/xsd";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://employees.niws.alphasolutions.dk/xsd";>
            <xs:complexType name="Employees_WS_ReturnData">
                <xs:sequence>
                    <xs:element minOccurs="0" name="email"
nillable="true" type="xs:string"/>
                    <xs:element minOccurs="0" name="firstname"
nillable="true" type="xs:string"/>
                    <xs:element minOccurs="0" name="id" type="xs:int"/>
                    <xs:element minOccurs="0" name="lastname"
nillable="true" type="xs:string"/>
                </xs:sequence>
            </xs:complexType>
        </xs:schema>
        <xs:schema xmlns:ns="http://employees.niws.alphasolutions.dk";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://employees.niws.alphasolutions.dk";>
            <xs:element name="simpleDataResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return"
nillable="true" type="ns0:Employees_WS_ReturnData"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="simpleDataRequest"/>
    <wsdl:message name="simpleDataResponse">
        <wsdl:part name="parameters" element="ns1:simpleDataResponse"/>
    </wsdl:message>
    <wsdl:portType name="Employees_WSPortType">
        <wsdl:operation name="simpleData">
            <wsdl:input message="ns1:simpleDataRequest"
wsaw:Action="urn:simpleData"/>
            <wsdl:output message="ns1:simpleDataResponse"
wsaw:Action="urn:simpleDataResponse"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="Employees_WSSOAP11Binding"
type="ns1:Employees_WSPortType">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document"/>
        <wsdl:operation name="simpleData">
            <soap:operation soapAction="urn:simpleData"
style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="Employees_WSSOAP12Binding"
type="ns1:Employees_WSPortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document"/>
        <wsdl:operation name="simpleData">
            <soap12:operation soapAction="urn:simpleData"
style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="Employees_WSHttpBinding"
type="ns1:Employees_WSPortType">
        <http:binding verb="POST"/>
        <wsdl:operation name="simpleData">
            <http:operation location="Employees_WS/simpleData"/>
            <wsdl:input>
                <mime:content type="text/xml" part="simpleData"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="simpleData"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="Employees_WS">
        <wsdl:port name="Employees_WSSOAP11port_http"
binding="ns1:Employees_WSSOAP11Binding">
            <soap:address
location="http://localhost:8080/axis2/services/Employees_WS"/>
        </wsdl:port>
        <wsdl:port name="Employees_WSSOAP12port_http"
binding="ns1:Employees_WSSOAP12Binding">
            <soap12:address
location="http://localhost:8080/axis2/services/Employees_WS"/>
        </wsdl:port>
        <wsdl:port name="Employees_WSHttpport"
binding="ns1:Employees_WSHttpBinding">
            <http:address
location="http://localhost:8080/axis2/services/Employees_WS"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>



Thanks,
Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to