facebook

XML Validation:Referenced file contains errors

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #252106 Reply

    idfbins
    Member

    I am trying to generate a web service client. I have imported the WSDL into MyEclipse, but now it flags the following error:

    Referenced file contains errors (http://www.webmethods.com/package/java.lang/).

    How can I fix this? I have tried marking the file as derived and removing validation markers, but the error is still there.

    #252139 Reply

    Riyad Kalla
    Member

    Is the file small enought o post the entire contents of it so I can duplicate this problem locally?

    #252146 Reply

    idfbins
    Member
    
    
    <?xml version='1.0' encoding='UTF-8'?>
    <!--generated by Glue Standard 5.0.2 build 77 on Tue May 16 03:29:23 PDT 2006-->
    <wsdl:definitions name='Authentication' targetNamespace='http://www.arcwebservices.com/v2006' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:n4='http://www.webmethods.com/exceptions/'
        xmlns:n5='http://www.webmethods.com/package/java.lang/' xmlns:tns='http://www.arcwebservices.com/v2006' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'>
        <wsdl:types>
            <xsd:schema targetNamespace='http://www.webmethods.com/package/java.lang/'>
                <xsd:import namespace='http://www.webmethods.com/exceptions/' />
                <xsd:complexType name='RuntimeException'>
                    <xsd:complexContent>
                        <xsd:extension base='n4:exception' />
                    </xsd:complexContent>
                </xsd:complexType>
            </xsd:schema>
            <xsd:schema targetNamespace='http://www.webmethods.com/exceptions/'>
                <xsd:complexType name='exception'>
                    <xsd:complexContent>
                        <xsd:extension base='n4:throwable' />
                    </xsd:complexContent>
                </xsd:complexType>
                <xsd:complexType name='throwable'>
                    <xsd:all>
                        <xsd:element name='detailMessage' type='xsd:string' nillable='true' />
                        <xsd:element name='stackTrace' type='xsd:string' minOccurs='0' />
                        <xsd:element name='cause' type='xsd:anyType' minOccurs='0' />
                    </xsd:all>
                </xsd:complexType>
            </xsd:schema>
            <xsd:schema targetNamespace='http://www.webmethods.com/package/com.esri.is.services.soap.v3.common/'>
                <xsd:import namespace='http://www.webmethods.com/package/java.lang/' />
                <xsd:complexType name='ServiceException'>
                    <xsd:complexContent>
                        <xsd:extension base='n5:RuntimeException'>
                            <xsd:all>
                                <xsd:element name='errorCode' nillable='true' type='xsd:string' />
                                <xsd:element name='errorMessage' nillable='true' type='xsd:string' />
                            </xsd:all>
                        </xsd:extension>
                    </xsd:complexContent>
                </xsd:complexType>
            </xsd:schema>
            <xsd:schema elementFormDefault='qualified' targetNamespace='http://www.arcwebservices.com/v2006'>
                <xsd:element name='getToken'>
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name='username' type='xsd:string' />
                            <xsd:element name='password' type='xsd:string' />
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
                <xsd:element name='getTokenResponse'>
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name='Result' nillable='true' type='xsd:string' />
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
                <xsd:element name='getCustomExpirationToken'>
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name='username' type='xsd:string' />
                            <xsd:element name='password' type='xsd:string' />
                            <xsd:element name='expiration' type='xsd:int' />
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
                <xsd:element name='getCustomExpirationTokenResponse'>
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name='Result' nillable='true' type='xsd:string' />
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
                <xsd:element name='validateToken'>
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name='token' type='xsd:string' />
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
                <xsd:element name='validateTokenResponse'>
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name='Result' nillable='true' type='xsd:int' />
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
                <xsd:element name='getVersion'>
                    <xsd:complexType>
                        <xsd:sequence />
                    </xsd:complexType>
                </xsd:element>
                <xsd:element name='getVersionResponse'>
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name='Result' nillable='true' type='xsd:string' />
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
            </xsd:schema>
        </wsdl:types>
        <wsdl:message name='getToken0In'>
            <wsdl:part name='parameters' element='tns:getToken' />
        </wsdl:message>
        <wsdl:message name='getToken0Out'>
            <wsdl:part name='parameters' element='tns:getTokenResponse' />
        </wsdl:message>
        <wsdl:message name='getCustomExpirationToken1In'>
            <wsdl:part name='parameters' element='tns:getCustomExpirationToken' />
        </wsdl:message>
        <wsdl:message name='getCustomExpirationToken1Out'>
            <wsdl:part name='parameters' element='tns:getCustomExpirationTokenResponse' />
        </wsdl:message>
        <wsdl:message name='validateToken2In'>
            <wsdl:part name='parameters' element='tns:validateToken' />
        </wsdl:message>
        <wsdl:message name='validateToken2Out'>
            <wsdl:part name='parameters' element='tns:validateTokenResponse' />
        </wsdl:message>
        <wsdl:message name='getVersion3In'>
            <wsdl:part name='parameters' element='tns:getVersion' />
        </wsdl:message>
        <wsdl:message name='getVersion3Out'>
            <wsdl:part name='parameters' element='tns:getVersionResponse' />
        </wsdl:message>
        <wsdl:portType name='IAuthentication'>
            <wsdl:operation name='getToken'>
                <wsdl:input name='getToken0In' message='tns:getToken0In' />
                <wsdl:output name='getToken0Out' message='tns:getToken0Out' />
            </wsdl:operation>
            <wsdl:operation name='getCustomExpirationToken'>
                <wsdl:input name='getCustomExpirationToken1In' message='tns:getCustomExpirationToken1In' />
                <wsdl:output name='getCustomExpirationToken1Out' message='tns:getCustomExpirationToken1Out' />
            </wsdl:operation>
            <wsdl:operation name='validateToken'>
                <wsdl:input name='validateToken2In' message='tns:validateToken2In' />
                <wsdl:output name='validateToken2Out' message='tns:validateToken2Out' />
            </wsdl:operation>
            <wsdl:operation name='getVersion'>
                <wsdl:input name='getVersion3In' message='tns:getVersion3In' />
                <wsdl:output name='getVersion3Out' message='tns:getVersion3Out' />
            </wsdl:operation>
        </wsdl:portType>
        <wsdl:binding name='IAuthentication' type='tns:IAuthentication'>
            <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http' />
            <wsdl:operation name='getToken'>
                <soap:operation soapAction='getToken' style='document' />
                <wsdl:input name='getToken0In'>
                    <soap:body use='literal' />
                </wsdl:input>
                <wsdl:output name='getToken0Out'>
                    <soap:body use='literal' />
                </wsdl:output>
            </wsdl:operation>
            <wsdl:operation name='getCustomExpirationToken'>
                <soap:operation soapAction='getCustomExpirationToken' style='document' />
                <wsdl:input name='getCustomExpirationToken1In'>
                    <soap:body use='literal' />
                </wsdl:input>
                <wsdl:output name='getCustomExpirationToken1Out'>
                    <soap:body use='literal' />
                </wsdl:output>
            </wsdl:operation>
            <wsdl:operation name='validateToken'>
                <soap:operation soapAction='validateToken' style='document' />
                <wsdl:input name='validateToken2In'>
                    <soap:body use='literal' />
                </wsdl:input>
                <wsdl:output name='validateToken2Out'>
                    <soap:body use='literal' />
                </wsdl:output>
            </wsdl:operation>
            <wsdl:operation name='getVersion'>
                <soap:operation soapAction='getVersion' style='document' />
                <wsdl:input name='getVersion3In'>
                    <soap:body use='literal' />
                </wsdl:input>
                <wsdl:output name='getVersion3Out'>
                    <soap:body use='literal' />
                </wsdl:output>
            </wsdl:operation>
        </wsdl:binding>
        <wsdl:service name='Authentication'>
            <wsdl:documentation>
                Any request to ArcWeb Services needs to include validating information that the request is coming from an authorized ArcWeb user. You can either use Authentication Web Service or a WS-Security header.
    
                To use the Authentication Web Service method, send Authentication a token request over HTTPS. Authentication Web Service checks that you have permission to access ArcWeb Services, and if you do, it returns a time-limited token which you then
                use to call an ArcWeb service. When the token expires, you must send another request to Authentication Web Service. Authentication Web Service is compatible with all environments supported by ArcWeb Services such as SOAP, REST, OpenLS, and
                Mobile Toolkit.
            </wsdl:documentation>
            <wsdl:port name='IAuthentication' binding='tns:IAuthentication'>
                <soap:address location='https://www.arcwebservices.com/services/v2006/Authentication' />
            </wsdl:port>
        </wsdl:service>
    </wsdl:definitions>
    
    
    
    #252148 Reply

    Riyad Kalla
    Member

    I can’t reproduce this problem. I paste in what you ahve above and get no error markers.

    Did you try restarting using the -clean command line argument then executing Project > Clean on your project?

    #252151 Reply

    idfbins
    Member

    I tried it out, but no dice. I still get the errors.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: XML Validation:Referenced file contains errors

You must be logged in to post in the forum log in