I extracted a limited example, which reproduces the error. I have tested this one, and it works (well, does not, which is the point ;-) .
Thanks & greetings,
Axel.
========================================================================================
========================================================================================
WSDL:
========================================================================================
========================================================================================
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:card=" http://my.schema.url/crd_v1"
xmlns:ctor="http://my.schema.url/com_v1"
targetNamespace="http://my.schema.url/crd_v1 ">
<types>
<xs:schema>
<xs:import schemaLocation="CardService.xsd"
namespace="http://my.schema.url/crd_v1 " />
</xs:schema>
</types>
<message name="EjectCardRequestMessage">
<part name="parameter" element="card:EjectCard" />
</message>
<message name="EjectCardResponseMessage">
<part name="parameter" element="card:EjectCardResponse" />
</message>
<portType name="CardServicePortType">
<operation name="EjectCard">
<input message="card:EjectCardRequestMessage" />
<output message="card:EjectCardResponseMessage" />
</operation>
</portType>
<binding name="CardServiceBinding"
type="card:CardServicePortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="EjectCard">
<soap:operation
soapAction="http://my.schema.url/crd_v1#EjectCard" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<service name="CardService">
<port name="CardServicePort"
binding="card:CardServiceBinding">
<soap:address location="https://connector/cardservice/v1 " />
</port>
</service>
</definitions>
========================================================================================
========================================================================================
XSD:
========================================================================================
========================================================================================
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:con=" http://my.schema.url/com_v1"
targetNamespace="http://my.schema.url/crd_v1"
elementFormDefault="qualified" version="1.0"
xmlns:card=" http://my.schema.url/crd_v1">
<!-- <import namespace="http://my.schema.url/com_v1"
schemaLocation=" ConnectorCommon.xsd" /> -->
<annotation>
<documentation xml:lang='de'>
blah
</documentation>
</annotation>
<simpleType name="CardHandleType" >
<restriction base="string">
<maxLength value="64" />
</restriction>
</simpleType>
<element name="CardHandle" type="card:CardHandleType" />
<element name="CtId" type="card:CtIdType" />
<element name="SlotId" type="card:SlotIdType" />
<simpleType name="CtIdType">
<restriction base="string">
<minLength value="1" />
<maxLength value="64" />
</restriction>
</simpleType>
<simpleType name="SlotIdType">
<restriction base="positiveInteger" />
</simpleType>
<element name="Status" type="card:StatusType" />
<simpleType name="StatusType">
<restriction base="string">
<maxLength value="128" />
</restriction>
</simpleType>
<element name="EjectCard">
<complexType>
<choice>
<sequence>
<element ref="card:CardHandle" />
</sequence>
<sequence>
<element ref="card:CtId" />
<element ref="card:SlotId" />
</sequence>
</choice>
</complexType>
</element>
<element name="EjectCardResponse">
<complexType>
<sequence>
<element ref="card:Status" />
</sequence>
</complexType>
</element>
</schema>
========================================================================================
========================================================================================
That's it :-)
========================================================================================
========================================================================================
On 9/12/06, Anne Thomas Manes <[EMAIL PROTECTED]
> wrote:
Please post the WSDL, XSD, and WSDD files.
On 9/12/06, Axel Bock <[EMAIL PROTECTED] > wrote:
> hi all,
>
> I have a little problem with axis. I have a web service with some data
> elements. In one method call parameter there may be EITHER element A1, OR
> element B2 AND B3, according to the XSD definition. The definition says:
> CHOICE ( A1 , SEQUENCE ( B1, B2 ) ).
>
> But - alas - if I set only the element A1 axis will throw an exception and
> complain.
>
> basically what happens is that I call the param.setA1() method and try to
> fire the call. Then I will get an exception saying "ERROR: Non-nillable
> element B2 was not filled".
>
> Can anyone shed some light on that? :-)
>
>
> Greetings & thanks in advance,
> Axel.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
