java - Cannot find the declaration of element 'soapenv:Envelope' -


i getting error cannot find declaration of element soapenv:envelope

i getting error cannot find declaration of element soapenv:envelope

'<?xml version="1.0" encoding="utf-8"?><soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/ /tmp/checkxsd.xsd"><soapenv:body>   <ns:getentitiesbyfilterresponse xmlns:ns="http://services" xmlns:ax21="http://objects.services/xsd">      <ns:return xsi:type="ax21:entityobj">         <ax21:entityid>1065798192</ax21:entityid>         <ax21:entitytypeid>4</ax21:entitytypeid>         <ax21:methodvalues xsi:type="ax21:valuepair">            <ax21:elementvalue>project soapui 001</ax21:elementvalue>            <ax21:id>436</ax21:id>         </ax21:methodvalues>         <ax21:methodvalues xsi:type="ax21:valuepair">            <ax21:elementvalue>project soapui 001</ax21:elementvalue>            <ax21:id>100461</ax21:id>         </ax21:methodvalues>         <ax21:methodvalues xsi:type="ax21:valuepair">            <ax21:elementvalue>project soapui 001</ax21:elementvalue>            <ax21:id>400015</ax21:id>         </ax21:methodvalues>      </ns:return>      <ns:return xsi:type="ax21:entityobj">         <ax21:entityid>1065835163</ax21:entityid>         <ax21:entitytypeid>4</ax21:entitytypeid>         <ax21:methodvalues xsi:type="ax21:valuepair">            <ax21:elementvalue>project soapui 002</ax21:elementvalue>            <ax21:id>436</ax21:id>         </ax21:methodvalues>         <ax21:methodvalues xsi:type="ax21:valuepair">            <ax21:elementvalue>project soapui 002</ax21:elementvalue>            <ax21:id>100461</ax21:id>         </ax21:methodvalues>         <ax21:methodvalues xsi:type="ax21:valuepair">            <ax21:elementvalue>project soapui 002</ax21:elementvalue>            <ax21:id>400015</ax21:id>         </ax21:methodvalues>      </ns:return>      <ns:return xsi:type="ax21:entityobj">         <ax21:entityid>1317237376</ax21:entityid>         <ax21:entitytypeid>4</ax21:entitytypeid>         <ax21:methodvalues xsi:type="ax21:valuepair">            <ax21:elementvalue>copytask_project_1448004605927</ax21:elementvalue>            <ax21:id>436</ax21:id>         </ax21:methodvalues>         <ax21:methodvalues xsi:type="ax21:valuepair">            <ax21:elementvalue>copytask_project_1448004605927</ax21:elementvalue>            <ax21:id>100461</ax21:id>         </ax21:methodvalues>         <ax21:methodvalues xsi:type="ax21:valuepair">            <ax21:elementvalue>copytask_project_1448004605927</ax21:elementvalue>            <ax21:id>400015</ax21:id>         </ax21:methodvalues>      </ns:return>   </ns:getentitiesbyfilterresponse></soapenv:body></soapenv:envelope>' 

my java code follows- please help

i getting error cannot find declaration of element soapenv:envelope

schemafactory factory =                 schemafactory.newinstance(xmlconstants.w3c_xml_schema_ns_uri);         schema schema = factory.newschema(new file("/tmp/checkxsd.xsd"));         validator validator = schema.newvalidator();         validator.validate(new streamsource(new file("/home/my-pc/myxmlfile.xml"))); 

my xsd --

<?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/xmlschema" attributeformdefault="unqualified" elementformdefault="qualified" targetnamespace="http://objects.services/xsd">    <xs:element name="entityid">       <xs:simpletype>          <xs:restriction base="xs:int">             <xs:enumeration value="1065798192" />             <xs:enumeration value="1065835163" />             <xs:enumeration value="1317237376" />          </xs:restriction>       </xs:simpletype>    </xs:element>    <xs:element name="entitytypeid" type="xs:byte" />    <xs:element name="methodvalues">       <xs:complextype>          <xs:sequence>             <xs:element name="elementvalue">                <xs:simpletype>                   <xs:restriction base="xs:string">                      <xs:enumeration value="project soapui 001" />                      <xs:enumeration value="project soapui 002" />                      <xs:enumeration value="copytask_project_1448004605927" />                   </xs:restriction>                </xs:simpletype>             </xs:element>             <xs:element name="id">                <xs:simpletype>                   <xs:restriction base="xs:int">                      <xs:enumeration value="436" />                      <xs:enumeration value="100461" />                      <xs:enumeration value="400015" />                   </xs:restriction>                </xs:simpletype>             </xs:element>          </xs:sequence>       </xs:complextype>    </xs:element> </xs:schema> 


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -