File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Developing Web Services with Apache Axis

 
ravi janap
Ranch Hand
Posts: 389
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Constantine Alarc�n
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
ravi janap
Ranch Hand
Posts: 389
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic