File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes XSD Schema Error in WSAD Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "XSD Schema Error in WSAD" Watch "XSD Schema Error in WSAD" New topic
Author

XSD Schema Error in WSAD

jayaram raja
Greenhorn

Joined: Dec 22, 2003
Posts: 1
Hi,
I am using WSAD 5.0.I am trying to test a Web service.This webservice is based on the Literal XML Encoding.This service returns an objest with attribute array of String.
I made use of the following XSD File.
<?xml version="1.0" encoding="UTF-8"?>
<schema attributeFormDefault="qualified"
elementFormDefault="unqualified" targetNamespace="http:///"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>
<complexType name="twsDocResponseBean">
<sequence>
<element name="result" nillable="true" type="string"/>
<element name="duration" type="int"/>
</sequence>
</complexType>

<complexType name="ArrayOfstring">
<complexContent>
<restriction base="Array">
<attribute ref="arrayType" wsdl:arrayType="string[]" />
</restriction>
</complexContent>
</complexType>
</schema>

But this throws an error stating that the namespace http://schemas.xmlsoap.org/soap/encoding/ cannot be referenced from the above XSD file.Is that because XSD file cannot refer a different file.
Please reply.
Raja
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XSD Schema Error in WSAD
 
Similar Threads
simple array in WSAD 5.0 web service. is it possible?
java.io.IOException: Type {http://lang.java}Exception is referenced but not defined.
Problem with WSDL publishing
Problem with arrays of primitive types
string[] definiton error in xsd file generated with WSAD