By the way, I was wondering on which platform you generated the Java files ?

I'm asking because I was using Windows, but decided to try Linux (Fedora),
with the same Snapshot distribution, and I got a bunch of warnings and
exceptions...

Here's the log with the -u option :


./wsdl2java.sh -or -u -uri http://api.betdaq.com/v2.0/API.wsdl
 Using AXIS2_HOME:   /home/jacques/axis2-SNAPSHOT
 Using JAVA_HOME:       /usr/lib/jvm/java-1.5.0-gcj-1.5.0.0
Retrieving document at 'http://api.betdaq.com/v2.0/API.wsdl'.
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ChangeHeartbeatRegistrationRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListBootstrapOrdersResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListAccountPostingsResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}GetPricesResponse
missing!
[WARN] Type {http://www.GlobalBettingExchange.com/ExternalAPI/}PulseResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListMarketWithdrawalHistoryResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListMarketWithdrawalHistoryResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}UpdateOrdersNoReceiptResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}PlaceOrdersNoReceiptResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListSelectionsChangedSinceResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListTopLevelEventsRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}CancelAllOrdersOnMarketRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}RegisterHeartbeatRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}CancelOrdersResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}GetMarketInformationRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}PlaceOrdersWithReceiptRequestItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}PlaceOrdersWithReceiptRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListOrdersChangedSinceResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}CancelAllOrdersResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}SuspendOrdersRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}UnsuspendFromTradingResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}GetCurrentSelectionSequenceNumberRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}SuspendAllOrdersOnMarketResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}GetEventSubTreeWithSelectionsResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}SuspendAllOrdersOnMarketRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListTopLevelEventsResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListSelectionsChangedSinceRequest
missing!
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
   at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
   at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
   at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
   at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53)
   at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
   ...2 more
Caused by: java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Method.invoke(libgcj.so.8rh)
   at
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
   ...3 more
Caused by: org.apache.axis2.schema.SchemaCompilationException:
java.lang.NullPointerException
   at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:289)
   at
org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:103)
   at java.lang.reflect.Method.invoke(libgcj.so.8rh)
   ...4 more
Caused by: java.lang.NullPointerException
   at
org.apache.axis2.schema.SchemaCompiler.writeElement(SchemaCompiler.java:522)
   at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:381)
   at
org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:280)
   ...6 more


And here's the log without the -u option:


 Using AXIS2_HOME:   /home/jacques/axis2-SNAPSHOT
 Using JAVA_HOME:       /usr/lib/jvm/java-1.5.0-gcj-1.5.0.0
Retrieving document at 'http://api.betdaq.com/v2.0/API.wsdl'.
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}SuspendFromTradingRequest
missing!
[WARN] Type {http://www.GlobalBettingExchange.com/ExternalAPI/}MarketType
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}SuspendAllOrdersRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListBootstrapOrdersResponse
missing!
[WARN] Type {http://www.GlobalBettingExchange.com/ExternalAPI/}MarketType
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListAccountPostingsResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}SelectionTypeWithPrices
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}GetPricesResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}SuspendOrdersResponseItem
missing!
[WARN] Type {http://www.GlobalBettingExchange.com/ExternalAPI/}PulseResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}UpdateOrdersNoReceiptRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListMarketWithdrawalHistoryResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListMarketWithdrawalHistoryResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}UpdateOrdersNoReceiptResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}PlaceOrdersNoReceiptResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}PlaceOrdersNoReceiptResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}SuspendOrdersResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}SuspendOrdersResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListSelectionsChangedSinceResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListSelectionsChangedSinceResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListTopLevelEventsRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}CancelAllOrdersOnMarketRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}RegisterHeartbeatRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}CancelOrdersResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}GetMarketInformationRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}PlaceOrdersWithReceiptRequestItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}ListOrdersChangedSinceResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}CancelAllOrdersResponseItem
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}CancelAllOrdersResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}RegisterHeartbeatResponse
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}SuspendOrdersRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}GetCurrentSelectionSequenceNumberRequest
missing!
[WARN] Type
{http://www.GlobalBettingExchange.com/ExternalAPI/}SuspendOrdersResponseItem
missing!
./axis2.sh: line 56:  3260 Segmentation fault      "$JAVA_HOME"/bin/java
-classpath "$AXIS2_CLASSPATH" -Daxis2.xml="$AXIS2_HOME/conf/axis2.xml"
-Daxis2.repo="$AXIS2_HOME/repository" $USER_COMMANDS




I tried generating the code again with the wsdl2java utility.

With the -u option, the receiveResultGetPrices (and, I'm sure other methods
as well) is missing from the ReadOnlyServiceCallbackHandler.java file.

If I remove the -u option, then the method is there, but of course, instead
of getting hundreds of java files, I only get 4, 2 of them being huge... 
small annoyance, the important thing is I can now talk to Betdaq.




-- 
View this message in context: 
http://www.nabble.com/Just-a-small-client-sample-would-really-be-great-%21-tp16532618p16627888.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to