org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT

2008-10-15 Thread Audino, Jeremy
I'm receiving the following exception when attempting to connect from my Axis2 
based client to a Axis 2/SimpleHTTPServer based server.

org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxParsingException: Expected a 
text token, got START_ELEMENT.
 at [row,col {unknown-source}]: [1,252]
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at com.philips.cirs.calculator.CalculatorStub.fromOM(Unknown Source)
at com.philips.cirs.calculator.CalculatorStub.add(Unknown Source)
at com.philips.cirs.calculator.CalculatorClient.main(Unknown Source)
Caused by: org.apache.axiom.om.impl.exception.OMStreamingException: 
com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.
 at [row,col {unknown-source}]: [1,252]
at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.getElementText(OMStAXWrapper.java:901)
at com.philips.cirs.calculator.IntReturn$Factory.parse(Unknown Source)
... 3 more
Caused by: com.ctc.wstx.exc.WstxParsingException: Expected a text token, got 
START_ELEMENT.
 at [row,col {unknown-source}]: [1,252]
at 
com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:605)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
at 
com.ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java:677)
at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.getElementText(OMStAXWrapper.java:899)
... 4 more

A gSoap server based from the sample WSDL works great with both the C++ and 
Java clients.

Any clue what might be happening? Do I have any errors in my WSDL?



Jeremy F. Audino
Senior Software Development Engineer
Philips Healthcare -- Nuclear Medicine
Tel: 440-483-7444
E-mail: [EMAIL PROTECTED]



The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.


calculator.wsdl
Description: calculator.wsdl


CalculatorServer.java
Description: CalculatorServer.java


CalculatorServer_SimpleAxisServer.java
Description: CalculatorServer_SimpleAxisServer.java


CalculatorClient.java
Description: CalculatorClient.java
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

ADBException: Unexpected subelement return

2008-10-14 Thread Audino, Jeremy
I've got a Java Client and Server using the Calculator.wsdl supplies with the 
original Axis (not Axis2). I've
generated Axis2 bindings using WSDL2Java. I also have a client and server 
written in C++ using gSoap.
I have no issue with both the Java and C++ clients communicating with the C++ 
Server. I am however
having an issue with the Java Client and the Java Server (using 
SimpleHTTPServer). I'm getting the
following exception from the Client. The C++ client works fine with the Java 
Server.

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: 
Unexpected subelement return
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at localhost.axis.calculator.CalculatorStub.fromOM(Unknown Source)
at localhost.axis.calculator.CalculatorStub.add(Unknown Source)
at localhost.axis.calculator.CalculatorClient.main(Unknown Source)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: 
Unexpected subelement return
at localhost.axis.calculator.AddResponse$Factory.parse(Unknown Source)
... 3 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement 
return
... 4 more

I've attached the WSDL and Java Source
Any help would be great.

Best Regards,
Jeremy



Jeremy F. Audino
Senior Software Development Engineer
Philips Healthcare -- Nuclear Medicine
Tel: 440-483-7444
E-mail: [EMAIL PROTECTED]



The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.


calculator.wsdl
Description: calculator.wsdl


CalculatorServer_SimpleAxisServer.java
Description: CalculatorServer_SimpleAxisServer.java


CalculatorClient.java
Description: CalculatorClient.java


CalculatorServer.java
Description: CalculatorServer.java
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]