I re-created the problem by changing the input and output messages of
SalesRankNPrice.wsdl.

    <s:element name="GetAll">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="unbounded" name="ISBN" type
="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetAllResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="unbounded" name
="GetAllResult" type="s0:All" />
          </s:sequence>
        </s:complexType>

Here is a snippet of the stub:

    public com.PerfectXML.www.All[] getAll(java.lang.String[] ISBN) throws
java.rmi.RemoteException{
        if (super.cachedEndpoint == null) {
            throw new org.apache.axis.NoEndPointException();
        }
        org.apache.axis.client.Call call = createCall();
        javax.xml.rpc.namespace.QName p0QName = new
javax.xml.rpc.namespace.QName
("http://www.PerfectXML.com/NETWebSvcs/BookService";, "ISBN");
        call.addParameter(p0QName, new javax.xml.rpc.namespace.QName
("http://www.w3.org/2001/XMLSchema";, "string[unbounded]"), java.lang.String
[].class, javax.xml.rpc.ParameterMode.IN);
        call.setReturnType(new javax.xml.rpc.namespace.QName
("http://www.PerfectXML.com/NETWebSvcs/BookService";, "All[unbounded]"));
        call.setUseSOAPAction(true);

What should the JavaStubGenerator emit for the local part of the QName for
the literal case when maxOccurs="unbounded".  Obviously "string[unbounded]"
and "All[unbounded]" are not correct.

Thought one of you might want to give your input as the "literal" experts.


Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


                                                                                       
                                     
                      R J Scheuerle                                                    
                                     
                      Jr/Austin/IBM@IBM        To:       [EMAIL PROTECTED]      
                                     
                      US                       cc:                                     
                                     
                                               Subject:  Re: Has anyone tried 
maxOccurs="unbounded" in their WSDL..         
                      04/29/2002 04:08                                                 
                                     
                      PM                                                               
                                     
                      Please respond to                                                
                                     
                      axis-user                                                        
                                     
                                                                                       
                                     
                                                                                       
                                     



Shinde,

I will try and re-create this problem with the latest version of the code.


Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)



                      "Shinde, Uma"

                      <Uma.Shinde@divin        To:
<[EMAIL PROTECTED]>
                      e.com>                   cc:

                                               Subject:  Has anyone tried
maxOccurs="unbounded" in their WSDL..
                      04/26/2002 01:11

                      PM

                      Please respond to

                      axis-user






and got it to work? For the following lines in my schema definition,

                                     <s:element name="CS">
                                                 <s:complexType>
                                                             <s:sequence>

<s:element minOccurs="0" maxOccurs="unbounded" name="headlines" type
="s:string"/>
                                                             </s:sequence>
                                                 </s:complexType>
                                     </s:element>

What I get in the generated Stub using WSDL2Java is
        call.setReturnType(new javax.xml.rpc.namespace.QName("
http://www.w3.org/2001/XMLSchema";, "string[unbounded]"));

And obviously there is no deserializer for string[unbounded]. I changed
this to
        call.setReturnType(org.apache.axis.Constants.SOAP_ARRAY);
        call.setReturnClass(java.util.ArrayList.class);

But then I got an error about no deserializer for xsi:anyType because is
looks for a type mapping for headlines and defaults to anyType.






Reply via email to