Announcement Announcement Module
Collapse
No announcement yet.
jpetstore's client access problem Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • jpetstore's client access problem

    Hi:
    i am using the spring's jpetstore sample,and i deploy it in jboss3.2.6.
    It is normal when i using the web access,but when i using the client.bat to access axis's webservice,i get the exception:
    Code:
    Calling OrderService 'jaxRpcProxy' with order ID 1000
    2005-3-4 16:19:40 org.apache.axis.client.Call invoke
    严重: Exception:
    org.xml.sax.SAXException: Found character data inside an array element while deserializing
            at org.apache.axis.encoding.ser.ArrayDeserializer.characters(ArrayDeserializer.java:518)
            at org.apache.axis.encoding.DeserializationContextImpl.characters(DeserializationContextImpl.java:894)
            at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:210)
            at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
            at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:404)
            at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:976)
            at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
            at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
            at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:404)
            at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:976)
            at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
            at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
            at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:404)
            at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:976)
            at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
            at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
            at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:404)
            at org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:165)
            at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:976)
            at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
            at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
            at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
            at org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
            at org.apache.axis.client.Call.invoke(Call.java:2272)
            at org.apache.axis.client.Call.invoke(Call.java:2171)
    But i am using "jpetstore/axis/OrderService?method=getOrder&arg=1000" to get the normal information like this:
    Code:
    -
    	<soapenv&#58;Envelope>
    -
    	<soapenv&#58;Body>
    -
    	<getOrderResponse soapenv&#58;encodingStyle="http&#58;//schemas.xmlsoap.org/soap/encoding/">
    <getOrderReturn href="#id0"/>
    </getOrderResponse>
    -
    	<multiRef id="id0" soapenc&#58;root="0" soapenv&#58;encodingStyle="http&#58;//schemas.xmlsoap.org/soap/encoding/" xsi&#58;type="ns1&#58;Order">
    <billAddress1 xsi&#58;type="soapenc&#58;string">901 San Antonio Road</billAddress1>
    <billAddress2 xsi&#58;type="soapenc&#58;string">MS UCUP02-206</billAddress2>
    <billCity xsi&#58;type="soapenc&#58;string">Palo Alto</billCity>
    <billCountry xsi&#58;type="soapenc&#58;string">USA</billCountry>
    <billState xsi&#58;type="soapenc&#58;string">CA</billState>
    <billToFirstName xsi&#58;type="soapenc&#58;string">ABC</billToFirstName>
    <billToLastName xsi&#58;type="soapenc&#58;string">XYX</billToLastName>
    <billZip xsi&#58;type="soapenc&#58;string">94303</billZip>
    <cardType xsi&#58;type="soapenc&#58;string">MasterCard</cardType>
    <courier xsi&#58;type="soapenc&#58;string">UPS</courier>
    <creditCard xsi&#58;type="soapenc&#58;string">999 9999 9999 9999</creditCard>
    <expiryDate xsi&#58;type="soapenc&#58;string">12/03</expiryDate>
    <lineItems href="#id1"/>
    <locale xsi&#58;type="soapenc&#58;string">CA</locale>
Working...
X