axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: axis2 - ADB , XMLBeans : service difference. Error while invoking different implementations of the same service
Date Wed, 18 Apr 2007 12:58:40 GMT
Good Morning

My question is how is the XML schema definition could be imported without 
ref'ng a valid XMLSchema from namespace attribute?
I would suggest looking at this example from 

//remember to import the namespace in your .wsdl via import statement e.g.
location="StockQuote.xsd" />

//In the wsdl we can import our own parameters based on the getStockQuote
<message name="getStockQuoteReq">
  <part name="parameters" element="types:getStockQuote" />

//Display of Contents of StockQuote.xsd
<?xml version="1.0" encoding="UTF-8"?>
 <xsd:element name="quote">
    <xsd:element name="symbol" type="xsd:string"/>
    <xsd:element name="volume" type="xsd:integer"/>
    <xsd:element name="lastTrade" type="lastTradeType"/>
    <xsd:element name="change" type="changeType"/>
 <xsd:complexType name="changeType">
   <xsd:element name="dollar" type="xsd:float"/>
   <xsd:element name="percent" type="xsd:float"/>
   <xsd:element name="positive" type="xsd:boolean"/>
 <xsd:complexType name="lastTradeType">
   <xsd:element name="price" type="xsd:float"/>
   <xsd:element name="date" type="xsd:long"/>

 <!-- Methods signatures -->
 <xsd:element name="getStockQuote">
    <xsd:element name="symbol" type="xsd:string"/>
 <xsd:element name="getStockQuoteResponse">
    <xsd:element ref="quote" />

I suggest using a Working (.xsd) example/ modify the xsd elements to suit 
your own requirements..once defined in the imported xsd / then reference 
those types in the wsdl

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "Sampige, Srinivas" <>
To: <>; "Martin Gainty" <>
Sent: Tuesday, April 17, 2007 9:29 PM
Subject: axis2 - ADB , XMLBeans : service difference. Error while invoking 
different implementations of the same service

I have implemented 2 versions of the same webservice; one using ADB and
the other using XMLBeans binding. Both services have the same exact
WSDL. I generated a client using xmlbeans binding which works fine
against the service using xmlbeans. But, the same client when pointed
against the service using ADB binding the, client fails with "
Unexpected subelement"

org.apache.axis2.AxisFault: java.lang.RuntimeException: Unexpected
subelement Time

>From my understanding, given a WSDL, when we generate a client it should
work regardless of how the service is implemented correct?(transparent
to the client hence the very purpose of the WSDL right?).

I am running Axis2-1.1.1 on Tomcat 5.5.23

I have attached 2 files=
   1) the wsdl itself  (scheduleService.wsdl)
   2) the request/response output from tcpmon in the 2 cases

I followed steps outlined in
element-value-t3489089.html but I cannot get to the stage where I can
see the response in the scenario when it fails.

Thanks in advance


> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail: 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message