Hi all ,
I am using AXIS-1_1 , Tomcat 5. 0 .25 Servlet Container.
I am trying to access Verisign EPC webservice without any success .
It gave me the error as show below . I am also include the BaseProfile.wsdl file for your references.
faultString: java.util.NoSuchElementException
The full error message is at end of the email.
Any suggestion or ideas how to fix the problems ?
Thanks.
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:auth="urn:epc:specification:interchange:EPCIS:Authentication:xml:schema:1" xmlns:base="urn:epc:specification:interchange:EPCIS:BaseProfile:xml:schema:1" xmlns:baseWsdl="urn:epc:specification:interchange:EPCIS:BaseProfile:xml:wsdl:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:epc:specification:interchange:EPCIS:BaseProfile:xml:wsdl:1" name="BaseProfile">
<wsdl:types>
<!-- Begin Auth info schema-->
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="urn:epc:specification:interchange:EPCIS:Authentication:xml:schema:1" xmlns:auth="urn:epc:specification:interchange:EPCIS:Authentication:xml:schema:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="UserTokenType">
<xsd:sequence>
<xsd:element name="UserName" type="xsd:string"/>
<xsd:element name="Password" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AuthInfoType">
<xsd:sequence>
<xsd:element name="UserToken" type="auth:UserTokenType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="AuthInfo" type="auth:AuthInfoType"/>
</xsd:schema>
<!-- End of Auth info schema-->
<!-- Start of Base Profile schema-->
<xsd:schema targetNamespace="urn:epc:specification:interchange:EPCIS:BaseProfile:xml:schema:1" xmlns:base="urn:epc:specification:interchange:EPCIS:BaseProfile:xml:schema:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="URIList">
<xsd:sequence>
<xsd:element name="uri" type="xsd:anyURI" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="uriList" type="base:URIList"/>
<xsd:complexType mixed="true" name="wsdl">
<xsd:sequence>
<xsd:any maxOccurs="unbounded" minOccurs="0" namespace="##any" processContents="lax"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<!-- End of Identifier info schema-->
<!-- Start of element declerations for baseProfile wsdl-->
<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="urn:epc:specification:interchange:EPCIS:BaseProfile:xml:wsdl:1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:base="urn:epc:specification:interchange:EPCIS:BaseProfile:xml:schema:1" xmlns:baseWsdl="urn:epc:specification:interchange:EPCIS:BaseProfile:xml:wsdl:1" >
<xsd:import namespace="urn:epc:specification:interchange:EPCIS:Authentication:xml:schema:1"/>
<xsd:import namespace="urn:epc:specification:interchange:EPCIS:BaseProfile:xml:schema:1"/>
<xsd:complexType name="getCapabilityNSList_outParametersType">
<xsd:sequence>
<xsd:element name="uriList" type="base:URIList"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="getCapabilityNSList_outParameters" type="baseWsdl:getCapabilityNSList_outParametersType"/>
<xsd:element name="getCapabilityNSList">
<xsd:complexType>
<xsd:sequence/>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="getWSDLByNS_outParametersType">
<xsd:sequence>
<xsd:element name="wsdlFragment" type="base:wsdl"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="getWSDLByNS_outParameters" type="baseWsdl:getWSDLByNS_outParametersType"/>
<xsd:complexType name="getWSDLByNS_inParametersType">
<xsd:sequence>
<xsd:element name="nsURI" type="xsd:anyURI"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="getWSDLByNS" type="baseWsdl:getWSDLByNS_inParametersType"/>
</xsd:schema>
<!-- End element declarations for StaticProfile wsdl--> </wsdl:types>
<!-- Start Wsdl Messages -->
<wsdl:message name="authenticationMessage">
<wsdl:part name="AuthInfo" element="auth:AuthInfo"/>
</wsdl:message>
<wsdl:message name="getCapabilityNSListOut">
<wsdl:part name="Parameters" element="baseWsdl:getCapabilityNSList_outParameters"/>
</wsdl:message>
<wsdl:message name="getCapabilityNSListIn">
<wsdl:part name="Parameters" element="baseWsdl:getCapabilityNSList"/>
</wsdl:message>
<wsdl:message name="getWSDLByNSOut">
<wsdl:part name="Parameters" element="baseWsdl:getWSDLByNS_outParameters"/>
</wsdl:message>
<wsdl:message name="getWSDLByNSIn">
<wsdl:part name="Parameters" element="baseWsdl:getWSDLByNS"/>
</wsdl:message>
<!-- End Wsdl Messages -->
<wsdl:portType name="BaseProfile">
<wsdl:operation name="getCapabilityNSList">
<wsdl:input name="getCapabilityNSListInput" message="baseWsdl:getCapabilityNSListIn"/>
<wsdl:output name="getCapabilityNSListOutput" message="baseWsdl:getCapabilityNSListOut"/>
</wsdl:operation>
<wsdl:operation name="getWSDLByNS">
<wsdl:input name="getWSDLByNSInput" message="baseWsdl:getWSDLByNSIn"/>
<wsdl:output name="getWSDLByNSOutput" message="baseWsdl:getWSDLByNSOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="BaseProfileSOAPBinding" type="baseWsdl:BaseProfile">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getCapabilityNSList">
<soap:operation soapAction="urn:epc:specification:interchange:EPCIS:BaseProfile:xml:wsdl:1/getCapabilityNSList" style="document"/>
<wsdl:input name="getCapabilityNSListInput">
<soap:header message="baseWsdl:authenticationMessage" part="AuthInfo" use="literal"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getCapabilityNSListOutput">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getWSDLByNS">
<soap:operation soapAction="urn:epc:specification:interchange:EPCIS:BaseProfile:xml:wsdl:1/getWSDLByNS" style="document"/>
<wsdl:input name="getWSDLByNSInput">
<soap:header message="baseWsdl:authenticationMessage" part="AuthInfo" use="literal"/>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getWSDLByNSOutput">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<service name="BaseProfile">
<port name="BaseProfileSOAPPort" binding="baseWsdl:BaseProfileSOAPBinding">
<soap:address location="http://development.verisignepctest.com/epcis/base/BaseProfile"/>
</port> </service> </wsdl:definitions>
C:\j2sdk1.4.2_04\bin\javaw.exe -classpath C:\j2sdk1.4.2_04\jre\lib\charsets.jar;C:\j2sdk1.4.2_04\jre\lib\jce.jar;C:\j2sdk1.4.2_04\jre\lib\jsse.jar;C:\j2sdk1.4.2_04\jre\lib\plugin.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sdk1.4.2_04\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_04\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.2_04\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2_04\jre\lib\ext\localedata.jar;C:\j2sdk1.4.2_04\jre\lib\ext\sunjce_provider.jar;C:\projects\epc;C:\axis\axis-1_1\lib\axis.jar;C:\axis\axis-1_1\lib\jaxrpc.jar;C:\axis\axis-1_1\lib\commons-discovery.jar;C:\axis\axis-1_1\lib\commons-logging.jar;C:\axis\axis-1_1\lib\saaj.jar;C:\axis\axis-1_1\lib\wsdl4j.jar;C:\axis\axis-1_1\lib\xercesImpl.jar;C:\axis\axis-1_1\lib\xmlParserAPIs.jar _1.wsdl.xml.BaseProfile.EPCIS.interchange.specification.epc.BaseProfileTester ns1.onstest.com onstest.com urn:epc:id:sgtin:15025.43.1
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.util.NoSuchElementException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.util.NoSuchElementException
faultActor:
faultNode:
faultDetail:
java.util.NoSuchElementException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at _1.wsdl.xml.BaseProfile.EPCIS.interchange.specification.epc.BaseProfileSOAPBindingStub.getCapabilityNSList(BaseProfileSOAPBindingStub.java:168)
at _1.wsdl.xml.BaseProfile.EPCIS.interchange.specification.epc.BaseProfileTester.main(BaseProfileTester.java:29)
java.util.NoSuchElementException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1015)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at _1.wsdl.xml.BaseProfile.EPCIS.interchange.specification.epc.BaseProfileSOAPBindingStub.getCapabilityNSList(BaseProfileSOAPBindingStub.java:168)
at _1.wsdl.xml.BaseProfile.EPCIS.interchange.specification.epc.BaseProfileTester.main(BaseProfileTester.java:29)
Process terminated with exit code 0
