I want to use third party web service provided by the vendor.
When the i run the WSDL2Java command ,i am getting the following error which i could not configure. where as the same wsdl file is working in .net framework
I have included all the jar files required for it. i.e axis.jar,commons-discovery-0.2.jar,commons-logging-1.0.4.jar,jaxrpc.jar,log4j-1.2.8.jar,saaj.jar,wsdl4j-1.5.1.jar.
error is ------------------------------
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ws-axis>java org.apache.axis.wsdl.WSDL2Java https://wsvar.paymentech.net/PaymentechGateway/wsdl/PaymentechGateway.wsdl WSDLException (at /definitions/message/part): faultCode=UNBOUND_PREFIX: Unabl e to determine namespace of 'ns:NewOrder'.: at com.ibm.wsdl.util.xml.DOMUtils.getQName(Unknown Source) at com.ibm.wsdl.util.xml.DOMUtils.getQualifiedAttributeValue(Unknown Sou rce) at com.ibm.wsdl.xml.WSDLReaderImpl.getQualifiedAttributeValue(Unknown So urce) at com.ibm.wsdl.xml.WSDLReaderImpl.parsePart(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.parseMessage(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav a:516) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav a:495) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) at java.lang.Thread.run(Thread.java:595)
Originally posted by sreenivas jeenor: where as the same wsdl file is working in .net framework
The WSDL isn't correct just because one tool can successfully consume the WSDL. It may be that that particular WSDL code generator is perfectly happy to differentiate elements by their prefix - but it doesn't verify that the namespace prefix actually has a URI assigned (which becomes important once you import or include outside XML schemas).
Basically it is saying that in the <part> element of the first <message> element in the WSDL "ns:NewOrder" is being used and that the namespace prefix "ns" hasn't been assigned a namespace URI. So its saying the something like