• Post Reply Bookmark Topic Watch Topic
  • New Topic

string[] definiton error in xsd file generated with WSAD

 
white hansen
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, I'm trying to create a web service in WSAD 5.0.
WSAD generates an xsd file:
<?xml version="1.0" encoding="UTF-8"?>
<schema attributeFormDefault="qualified"
elementFormDefault="unqualified" targetNamespace="http://myFoo/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd1="http://myFoo/">
<import namespace="http://schemas.xmlsoap.org/wsdl/" schemaLocation="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOfString">
<complexContent>
<restriction base="soapenc:Array">
<sequence/>
<attribute ref="soapenc:arrayType" wsdl:arrayType="string[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
for this file i get three errors:
1. src-import.0: Failed to read imported schema document 'http://schemas.xmlsoap.org/wsdl/'. Foo.xsd FooWeb/Web Content/wsdl/myFoo line 7
2. src-import.0: Failed to read imported schema document 'http://schemas.xmlsoap.org/soap/encoding/'. Foo.xsd FooWeb/Web Content/wsdl/myFoo line 8
3. src-resolve: Cannot resolve the name 'soapenc:Array' to a(n) type definition component. Foo.xsd FooWeb/Web Content/wsdl/myFoo line 11

it seems to me that for some odd reason WSAD doesn't recognize the schams (warnings 1+2) and there for has an erro (3).
Does any body know how to fix the problem?
I have tried to add the string[] definition in the WSDL file
but ,I got another error ,it said it can't find the schema desciription
in types.
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://myFoo/"
xmlns:tns="http://myFoo/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"
schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOfstring">
<complexContent>
<restriction base="soap-enc:Array">
<attribute ref="soap-enc:arrayType" wsdl:arrayType="string[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
</types>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!