activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kevin.Zh" <ph_softw...@yahoo.com.cn>
Subject after axis to generate the stub, we got the exception when we call webservice
Date Wed, 10 Sep 2008 00:05:47 GMT

My wsdl schema is following:

- <xs:complexType name="VeridQuestions">
- <xs:sequence>
  <xs:element name="VeridQuestionSetId" type="xs:string" minOccurs="0" /> 
  <xs:element name="VeridQuestion" type="tns:VeridQuestion"
maxOccurs="unbounded" minOccurs="0" /> 
  </xs:sequence>
  </xs:complexType>
- <xs:complexType name="VeridQuestion">
- <xs:sequence>
  <xs:element name="VeridQuestionType" type="tns:VeridQuestionType"
maxOccurs="unbounded" /> 
  </xs:sequence>
  </xs:complexType>
- <xs:complexType name="VeridQuestionType">
- <xs:sequence>
  <xs:element name="VeridTrxQuestionidId" type="xs:string" minOccurs="0" /> 
  <xs:element name="VeridAnswerType" type="xs:string" minOccurs="0" /> 
  <xs:element name="VeridText" type="xs:string" minOccurs="0" /> 
  <xs:element name="VeridChoice" type="tns:VeridChoice"
maxOccurs="unbounded" minOccurs="0" /> 
  <xs:element name="VeridHelpText" type="xs:string" minOccurs="0" /> 
  </xs:sequence>
  </xs:complexType>
- <xs:complexType name="VeridChoice">
- <xs:sequence>
  <xs:element name="VeridChoiceType" type="tns:VeridChoiceType"
maxOccurs="unbounded" /> 
  </xs:sequence>
  </xs:complexType>
- <xs:complexType name="VeridChoiceType">
- <xs:sequence>
  <xs:element name="VeridChoiceId" type="xs:string" minOccurs="0" /> 
  <xs:element name="VeridText" type="xs:string" minOccurs="0" /> 
  </xs:sequence>
  </xs:complexType>

After I generate the stub by axis, the snippet of stub class is following:

public class VeridQuestions  implements java.io.Serializable {
    private java.lang.String veridQuestionSetId;

    private
com.cashedge.common.cewebservices.client.RiskWebService.VeridQuestionType[][]
veridQuestion;
.
.
.
}

When I run the webservice for this stub, I got the following exception:

org.apache.axis.encoding.ser.BeanPropertyTarget 2008-09-08 19:23:05,052 --
ERROR:135 -- Could not convert
[Lcom.cashedge.common.cewebservices.client.BatchWebService.VeridChoiceType;
to bean field 'veridChoice', type
[Lcom.cashedge.common.cewebservices.client.BatchWebService.VeridChoiceType;

 org.apache.axis.utils.NSStack 2008-09-08 19:23:05,052 -- DEBUG:119 -- NSPop
(32)

 org.apache.axis.encoding.DeserializationContext 2008-09-08 19:23:05,052 --
DEBUG:1106 -- Popped element stack to
org.apache.axis.message.MessageElement:VeridQuestionType

 org.apache.axis.encoding.DeserializationContext 2008-09-08 19:23:05,052 --
DEBUG:1107 -- Exit: DeserializationContext::endElement()

 org.apache.axis.i18n.ProjectResourceBundle 2008-09-08 19:23:05,052 --
DEBUG:72 -- org.apache.axis.i18n.resource::handleGetObject(exception00)

 org.apache.axis.client.Call 2008-09-08 19:23:05,052 -- ERROR:2469 --
Exception:

 java.lang.IllegalArgumentException: argument type mismatch

            at
org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:157)

            at
org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249)

            at
org.apache.axis.encoding.ser.ArrayDeserializer.valueComplete(ArrayDeserializer.java:583)

            at
org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509)

            at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

            at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)

            at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)

            at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)

            at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)

            at org.apache.axis.client.Call.invoke(Call.java:2467)

            at org.apache.axis.client.Call.invoke(Call.java:2366)

            at org.apache.axis.client.Call.invoke(Call.java:1812)

            at
com.cashedge.common.cewebservices.client.BatchWebService.BatchWebService_PortTypePortBindingStub.batchService(BatchWebService_PortTypePortBindingStub.java:2477)

Can anyone help me to find the clue for this issue ? Thanks


-- 
View this message in context: http://www.nabble.com/after-axis-to-generate-the-stub%2C-we-got-the-exception-when-we-call-webservice-tp19403877p19403877.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message