Remember the issues that occur during the process of generating the WebService server with axis in eclipse

Source: Internet
Author: User
Tags wsdl

Question One,

Unable to find config file. Creating new servlet engine config file:/WEB-INF/SERVER-CONFIG.WSDD

Can't find this. WSDD configuration file, not automatically generated!

The reason is that the last step is not performed when using eclipse to automatically generate an axis server!

When you do this, you need to click on the button to start the service, then the Next button will be available, and the Next button will automatically generate this. wsdd file!

Question Two,

Axisfault
FaultCode: {http://schemas.xmlsoap.org/soap/envelope/}server.generalexception
Faultsubcode:
Faultstring:maketypeelement () was told to create a type ...

This is the error that occurs when you click the WSDL link to view the HTTP://127....?WSDL document after publishing the service, but not when you access it? WSDL is all right!

This error occurs because the parameter in the interface method is a complex type and there are complex types in the constructor of the parameter! eq

<xs:elementname= "OrderList"minOccurs= "0">                <Xs:complextype>                    <xs:sequence>                        <xs:elementname= "Order"type= "Tns:ordertype"minOccurs= "0"maxOccurs= "unbounded"/>                    </xs:sequence>                </Xs:complextype>            </xs:element>

In the above code, OrderList is a parameter in an interface method and is a complex type, and order is a complex type.

This issue does not affect the call of the server and client of axis, which is said to be a bug in axis, and does not seem to appear every time! Do not know when to appear, may also be related to the browser! ......

For normal display, you can also modify this, extract the complex type, and add the type parameter to OrderList. eg

<xs:elementname= "OrderList"minOccurs= "0"type= "Tns:orderlisttype"></xs:element><Xs:complextypename= "Orderlisttype">        <xs:sequence>            <xs:elementname= "Order"type= "Tns:ordertype"maxOccurs= "unbounded"/>        </xs:sequence>    </Xs:complextype>

2:) WSDL does not display normally the general call that affects CXF, because CXF's client is generated on a WSDL basis! The general invocation method is as follows:

  New Service (Wsdlurl, service_name);   = Ss.getport ();  Port.getinfo ();  

Where WSDL is the focus, the display of the WSDL affects the invocation.

To avoid this effect, the CXF client can adapt to another method when invoking the server: EQ:

New Jaxwsproxyfactorybean (); Factory.setserviceclass (PortType. class  = (PortType) factory.create ();

RPI

Question three,

Forget, think again.

Remember the issues that occur during the process of generating the WebService server with axis in eclipse

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.