| Author |
Developing Web Services with Apache Axis
|
ravi janap
Ranch Hand
Joined: Nov 04, 2000
Posts: 389
|
|
Hi I have deployed a web service 'BizService'on Apache Tomcat. I launched the following page: http://localhost:8080/Axis/servlet/AxisServlet Clicked on # BizServiceSOAP (wsdl) link It gives me the following error messages: AXIS error Sorry, something seems to have gone wrong... here are the details: Fault - makeTypeElement() was told to create a type "{http://foo.com}>>productQuery>queryItem", with no containing element AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: makeTypeElement() was told to create a type "{http://foo.com}>>productQuery>queryItem", with no containing element faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:ABHINAV Is it a issue with the code? Here is the WSDL: Could you please let me know how to resolve the error? Thanks -- Ravi [ July 03, 2006: Message edited by: Ravindra Janapareddy ]
|
SCJP, SCJD, SCWCD, SCBCD, SCEA
|
 |
Constantine Alarc�n
Greenhorn
Joined: Jul 03, 2006
Posts: 3
|
|
Hello (My english is bad). I am not expert with Webservices deploy, but, this article is very usefull: http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 [ July 03, 2006: Message edited by: Constantine Alarc�n ]
|
Atte.<br />Constantino Alarc�n Mery<br />Analyst Programmer <br />Sun Certified Web Component Developer
|
 |
ravi janap
Ranch Hand
Joined: Nov 04, 2000
Posts: 389
|
|
Thanks Constantine. The problem has been resolved. This example is from Developing Web Services with Apache Axis by Kent Ka Iok Tong. The example has been successfully deployed and tested under the guidance from the author. Here is the reply from the author, copy and pasted here: This is a bug in Axis. You don't need to click the WSDL link at all as you are starting out from your own WSDL file. The clients and the service will work fine. To avoid this bug, you may use named schema types instead: <xsd:schema targetNamespace="http://foo.com" ...> <complexType name="queryItemType"> <attribute name="productId" type="string" /> <attribute name="qty" type="int" /> </complexType> <complexType name="productQueryType"> <sequence> <element name="queryItem" type="queryItemType" minOccurs="1" maxOccurs="unbounded"/> </sequence> </complexType> <element name="productQuery" type="productQueryType"/> ... </xsd:schema> [ July 08, 2006: Message edited by: Ravindra Janapareddy ] [ July 08, 2006: Message edited by: Ravindra Janapareddy ]
|
 |
 |
|
|
subject: Developing Web Services with Apache Axis
|
|
|