WebService Xiao Kee

Source: Internet
Author: User

This problem to find a lot of places have no results, their own summary of it, is not the fundamental way to solve the problem, but it is also a way. At that time with Wsimport Wsdl2java Xfire have no solution, Daniel can solve the words, welcome message.

Project calls the third-party interface, through the Weibservice call, but this thing, is someone else with PHP out, there is a <xsd:element name= "factura" type= "Xsd:array"/> This label, Not supported in namespaces, Ecipse prompts as follows (

Src-resolve.4.2:error resolving component ' Xsd:array '. It was detected this ' Xsd:array ' is in the namespace ' Http://www.w3.org/2001/XMLSchema ', but the components from
This namespace is not a referenceable from the schema document ' FILE:///D:/WORKSPACE2/MPESO/SRC/MAIN/RESOURCES/MPESO_AP.WSDL '. If This is the incorrect namespace,
Perhaps the prefix of ' xsd:array ' needs to be changed. If this was the correct namespace, then an appropriate ' import ' tag should was added to ' file:///D:/workspace2/
Mpeso/src/main/resources/mpeso_ap.wsdl '.

Causes the client code to be generated when the error is always

iwab0399e Error in generating Java from WSDL:java.io.IOException:Type {Http://www.w3.org/2001/xmlschema}array are refere nced but not defined.
Java.io.IOException:Type {Http://www.w3.org/2001/xmlschema}array is referenced and not defined.
At org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined

My solution is to comment out this type, and then go through the clues, comment out the corresponding parameters and interfaces, it is plain that I do not use this interface (because my project does not have this interface)

This is no problem, but the generation of Java code, the proxy class implementation of the interface package name is wrong, try to try, their own manual change is good, in the proxy class to implement the corresponding method of the interface OK, (proxy mode only).

WebService Xiao Kee

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.