RE: Peculiar Issue while testing a service

2007-10-15 Thread Gudla, Natraj (GE Money, consultant)
Thanks for the response. But i made sure to delete the complete services.aar 
file and then regenerated it to make sure. On the other hand, as soon as i 
place these simple types into their own complex type, things work fine. 

-Original Message-
From: Jon Hanshew [mailto:[EMAIL PROTECTED]
Sent: 15 October 2007 16:54
To: axis-user@ws.apache.org
Subject: Re: Peculiar Issue while testing a service



Whenever this has happened to me, it was because I somehow failed to update
the server side with the new WSDL.  Either an unreplaced or unregenerated
jar or ...


Gudla, Natraj (GE Money, consultant) wrote:
> 
> Hi,
> 
> I am reporting a peculiar issue which i am facing since yesterday working
> with AXIS2 1.2. Addition of an extra simple element to an existing complex
> type of an xsd throws an "Un Expected Element" error. Following is the
> brief.
> 
> The current set up : Working Fine.
> 
> The complext type part of my xsd 
>   
>   
>type="GEM_Ln_LoanPreference"/>
>type="GEM_Ln_CustomerDetails"/>
>type="GEM_Ln_CustomerAddr"/>
>type="GEM_Ln_EmployerDetails"/>
>type="GEM_Ln_CustomerFinances"/>
>type="GEM_Ln_CardDetails"
> minOccurs="0"/>
>type="GEM_Ln_LoanDetails"
> minOccurs="0"/>
>   
>   
> 
> I used a wsdl, generated binding ( ADB ) classes using WSDL to Java tool
> on Axis2 1.2. Using the build.xml, running the jar.server task i created
> the services.aar and deployed on tomcat. Created a sample java class,
> which reads a sample loan request xml ( formed using IDE based on the xsd
> ) and submits a request to the service. 
> Every thing works fine, i get the response as i coded within the skeleton
> method. This looks fine end to end.
> 
> Change to the existing schema: : Not Working
> 
>   
>   
>   
>type="GEM_Ln_LoanPreference"/>
>type="GEM_Ln_CustomerDetails"/>
>type="GEM_Ln_CustomerAddr"/>
>type="GEM_Ln_EmployerDetails"/>
>type="GEM_Ln_CustomerFinances"/>
>type="GEM_Ln_CardDetails"
> minOccurs="0"/>
>type="GEM_Ln_LoanDetails"
> minOccurs="0"/>
>   
>   
> 
> I have a need to add new field to hold a product id. after this, i
> generated the binding classes again ( to make sure, i deleted all the
> existing classes, and re generated every thing ). Then did the same
> procedure as above to generated the services.aar, then created the sample
> java class callling the stub. Changed the sample xml file to add a product
> id tag and then executed the program. This time un expectedley i get the
> "Un expected sub element Product Id" error repeatedly.
> 
> Not sure what is the problem, this looks to be simple. I tried various
> combinations adding a test tag, then making product id a simple type etc
> etc. Any idea why this occurs. I made sure, i replaced the correct
> services.aar on the server. The new resource folder generated second time,
> properly refers to the product id which was included.
> 
> Just as a work around, i tested with some sample test and test simple
> tags, observed the xml input on TCP Monitor. For your reference attached
> is the request and response xmls from the monitory. Observe for the "test"
> and "testsimple" tags. The actual loan request xml read by my program is
> also attached for reference.
> 
>  <>  <>  <> 
> 
> Cheers
> -Natraj.
> 
> 
> 
> 
> 
> HTTP/1.1 500 Internal Server Error
> 
> Content-Type: text/xml;charset=UTF-8
> 
> Transfer-Encoding: chunked
> 
> Date: Tue, 09 Oct 2007 08:55:18 GMT
> 
> Server: Apache-Coyote/1.1
> 
> Connection: close
> 
> 
> 
> 147
> 
> 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>   
>  
> soapenv:Client
> java.lang.RuntimeException: Unexpected subelement
> testsimple
> 
>  
>   
>
> 0
> 
> 
> 
> POST /axis/services/LoanOriginationService HTTP/1.1
> 
> Content-Type: text/xml; charset=UTF-8
> 
> SOAPAction: "LoanOrigination"
> 
> User-Agent: Axis2
> 
> Host: 127.0.0.1:

Re: Peculiar Issue while testing a service

2007-10-15 Thread Jon Hanshew

Whenever this has happened to me, it was because I somehow failed to update
the server side with the new WSDL.  Either an unreplaced or unregenerated
jar or ...


Gudla, Natraj (GE Money, consultant) wrote:
> 
> Hi,
> 
> I am reporting a peculiar issue which i am facing since yesterday working
> with AXIS2 1.2. Addition of an extra simple element to an existing complex
> type of an xsd throws an "Un Expected Element" error. Following is the
> brief.
> 
> The current set up : Working Fine.
> 
> The complext type part of my xsd 
>   
>   
>type="GEM_Ln_LoanPreference"/>
>type="GEM_Ln_CustomerDetails"/>
>type="GEM_Ln_CustomerAddr"/>
>type="GEM_Ln_EmployerDetails"/>
>type="GEM_Ln_CustomerFinances"/>
>type="GEM_Ln_CardDetails"
> minOccurs="0"/>
>type="GEM_Ln_LoanDetails"
> minOccurs="0"/>
>   
>   
> 
> I used a wsdl, generated binding ( ADB ) classes using WSDL to Java tool
> on Axis2 1.2. Using the build.xml, running the jar.server task i created
> the services.aar and deployed on tomcat. Created a sample java class,
> which reads a sample loan request xml ( formed using IDE based on the xsd
> ) and submits a request to the service. 
> Every thing works fine, i get the response as i coded within the skeleton
> method. This looks fine end to end.
> 
> Change to the existing schema: : Not Working
> 
>   
>   
>   
>type="GEM_Ln_LoanPreference"/>
>type="GEM_Ln_CustomerDetails"/>
>type="GEM_Ln_CustomerAddr"/>
>type="GEM_Ln_EmployerDetails"/>
>type="GEM_Ln_CustomerFinances"/>
>type="GEM_Ln_CardDetails"
> minOccurs="0"/>
>type="GEM_Ln_LoanDetails"
> minOccurs="0"/>
>   
>   
> 
> I have a need to add new field to hold a product id. after this, i
> generated the binding classes again ( to make sure, i deleted all the
> existing classes, and re generated every thing ). Then did the same
> procedure as above to generated the services.aar, then created the sample
> java class callling the stub. Changed the sample xml file to add a product
> id tag and then executed the program. This time un expectedley i get the
> "Un expected sub element Product Id" error repeatedly.
> 
> Not sure what is the problem, this looks to be simple. I tried various
> combinations adding a test tag, then making product id a simple type etc
> etc. Any idea why this occurs. I made sure, i replaced the correct
> services.aar on the server. The new resource folder generated second time,
> properly refers to the product id which was included.
> 
> Just as a work around, i tested with some sample test and test simple
> tags, observed the xml input on TCP Monitor. For your reference attached
> is the request and response xmls from the monitory. Observe for the "test"
> and "testsimple" tags. The actual loan request xml read by my program is
> also attached for reference.
> 
>  <>  <>  <> 
> 
> Cheers
> -Natraj.
> 
> 
> 
> 
> 
> HTTP/1.1 500 Internal Server Error
> 
> Content-Type: text/xml;charset=UTF-8
> 
> Transfer-Encoding: chunked
> 
> Date: Tue, 09 Oct 2007 08:55:18 GMT
> 
> Server: Apache-Coyote/1.1
> 
> Connection: close
> 
> 
> 
> 147
> 
> 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>   
>  
> soapenv:Client
> java.lang.RuntimeException: Unexpected subelement
> testsimple
> 
>  
>   
>
> 0
> 
> 
> 
> POST /axis/services/LoanOriginationService HTTP/1.1
> 
> Content-Type: text/xml; charset=UTF-8
> 
> SOAPAction: "LoanOrigination"
> 
> User-Agent: Axis2
> 
> Host: 127.0.0.1:
> 
> Transfer-Encoding: chunked
> 
> 
> 
> bce
> 
> 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>   
>  
> 
>
>   User-Agent
>   IE/5.0 libwww/2.17b3
>
>
>   Date
>   Tue, Aug 21 2007 15:46:00 GMT
>
>
>   ClientIP
>   3.22.234.12
>
> 
> 
>Client1234
>ABCXYZ
>PASWDXYZ
> 
> 
>Test Simple
>Test
>
>   34546.78
>   1
>   02
>   0
>   01
>
>
>   Mr
>   John
>   M
>   S
>   2001-01-01Z
>   M
>   2
>
>
>   U
>   011321897

RE: Peculiar Issue while testing a service

2007-10-12 Thread Gudla, Natraj (GE Money, consultant)
Hi Amila,
 
The message has bounced saying your mail box is full. I am just sending you the 
text, pl let me know if i can send you the attachements as well. The attachment 
is of size 109KB. 
 
Cheers
Natraj.

-Original Message-
From: Gudla, Natraj (GE Money, consultant) 
Sent: 12 October 2007 11:09
To: 'axis-user@ws.apache.org'
Subject: RE: Peculiar Issue while testing a service


Hi Amila, 
 
I have broken up the files into different zips for better understanding. I am 
using AXIS2 1.2 version. 
 
The xsds and wsdl.zip - has the complete set of my xsds and the LnReq.wsdl 
which was used in wsdltojava to generate classes. The "GEM_Ln_XMLInterface.xsd" 
contains a complex structure "GEM_Ln_LoanRequestDetails" where i am trying to 
add extra simple type elements.  This folder also has the sample xml 
"LnReq.xml" which was used for submission using the first approach.
 
Testharness.zip : This has classes which read the excel and then put them into 
the axis mapping classes. Pl refer to the "XMLTests.java", then 
"HSSF_BindingStubs.java", and "MaptoAxisClasses.java". Map to axis classes 
inserts the data into the axis classes, then calls the stub.  This is the 
second approach of testing which i spoke about.
 
stubs_skeleons.zip : I have given you the skeleton, stub and the 
"LoanReqClient" classes in this. The "LoanReqClient" class is the one which 
read the LnReq.xml for submission by the first approach. 
 
Following is the wsdl to java i used "-uri 
C:\workspaces\XFactorValidation\GEM_XMLI_ServiceProj\gexmlixsd\LnReq.wsdl -ss 
-sd -s -p com.gemoney.xml.javabinding -o 
C:\workspaces\XFactorValidation\GEM_XMLI_ServiceProj -g".
 
You may have to generate the binding classes yourself ( as they are huge i did 
not attach ) and replace my skeleton class just for verification purposes.
 
Let me know if you are looking for any more information. Thanks for your help.
 
Cheers
Natraj.
 
 
 
 
 

-Original Message-
From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]
Sent: 12 October 2007 10:36
To: axis-user@ws.apache.org
Subject: Re: Peculiar Issue while testing a service


ok can you send me your code. (please send only the relavent things to 
reproduce the bug). and 
tell me the steps to produce your error.

Amila.


On 10/12/07, Gudla, Natraj (GE Money, consultant) < [EMAIL PROTECTED]> wrote: 

Hi Amila,
 
Both the ways have been tested. With product Id and with test elements. We have 
built a test harness which reads all data from an excel sheet, forms a custom 
domain object set. There is a mapper class which individually maps the object 
elements from this domain onto axis generated class, finally passing the top 
level object to the stub. This way too, every thing works fine before including 
the new simple types. Once these come into picture it starts giving errors.
 
if you had noted by code below, the same piece of parsing mechanism going fine 
at client side, but the same parsing at server side is throwing the un expected 
element. 

-Original Message-
From: Amila Suriarachchi [mailto: [EMAIL PROTECTED]

Sent: 12 October 2007 10:20
To: axis-user@ws.apache.org
Subject: Re: Peculiar Issue while testing a service


with out generating the xml from anther IDE. generated it with the generated 
client code.

try to remove those test elements and add productionID and see.

Amila.


On 10/11/07, Gudla, Natraj (GE Money, consultant) < [EMAIL PROTECTED]> wrote: 

Hi Amila, 
 
Anything on this? 
 
Cheers
Natraj.

-Original Message-
From: Gudla, Natraj (GE Money, consultant) 
Sent: 10 October 2007 11:27
To: ' axis-user@ws.apache.org'

Subject: RE: Peculiar Issue while testing a service



Yes i do. and i run the wsdl2java on the wsdl which refers to this xsd. I have 
just been doing some debuggin and see how the reader.getName() differs on the 
client side and the server side.
 
The class GEM_Ln_LoanRequestDetails which was generated by axis, returns as 
"test" ( test is the simple element i added for testing ). The same code at 
server side returns a "{GEMoney:XMLI}test", GEMoney:XMLI is the name space in 
which the complext type having "test" is defined. 
 
Why is this difference in reading the name of the reader from the same piece of 
code at client and server. Further i understand the condition below fails at 
server and not in client call.
 


if (reader.isStartElement() 

&& 

new javax.xml.namespace.QName("", "test") 

.equals(reader.getName())) {

The QName conditions is false at server side and hence it jumps to the 
excpetion loop to create the error. Does this give some clue?
 
Thanks
Natraj.

[Gudta, Natraj (GE Money, consultant)]  -Original Message-
From: Antonio Manuel Muñiz Martín [mailto: [EMAIL PROTECTED] ]
Sent: 10 October 2007 11:18
To: axis-user@ws.apache.org
Subject: Re: Pe

Re: Peculiar Issue while testing a service

2007-10-12 Thread Amila Suriarachchi
ok can you send me your code. (please send only the relavent things to
reproduce the bug). and
tell me the steps to produce your error.

Amila.

On 10/12/07, Gudla, Natraj (GE Money, consultant) <[EMAIL PROTECTED]>
wrote:
>
>  Hi Amila,
>
> Both the ways have been tested. With product Id and with test elements. We
> have built a test harness which reads all data from an excel sheet, forms a
> custom domain object set. There is a mapper class which individually maps
> the object elements from this domain onto axis generated class, finally
> passing the top level object to the stub. This way too, every thing works
> fine before including the new simple types. Once these come into picture it
> starts giving errors.
>
> if you had noted by code below, the same piece of parsing mechanism going
> fine at client side, but the same parsing at server side is throwing the un
> expected element.
>
> -Original Message-
> *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED]
> *Sent:* 12 October 2007 10:20
> *To:* axis-user@ws.apache.org
> *Subject:* Re: Peculiar Issue while testing a service
>
> with out generating the xml from anther IDE. generated it with the
> generated client code.
>
> try to remove those test elements and add productionID and see.
>
> Amila.
>
> On 10/11/07, Gudla, Natraj (GE Money, consultant) <[EMAIL PROTECTED]>
> wrote:
> >
> >  Hi Amila,
> >
> > Anything on this?
> >
> > Cheers
> > Natraj.
> >
> > -Original Message-----
> > *From:* Gudla, Natraj (GE Money, consultant)
> > *Sent:* 10 October 2007 11:27
> > *To:* 'axis-user@ws.apache.org'
> > *Subject:* RE: Peculiar Issue while testing a service
> >
> >  Yes i do. and i run the wsdl2java on the wsdl which refers to this xsd.
> > I have just been doing some debuggin and see how the reader.getName()
> > differs on the client side and the server side.
> >
> > The class GEM_Ln_LoanRequestDetails which was generated by axis, returns
> > as "test" ( test is the simple element i added for testing ). The same code
> > at server side returns a "{GEMoney:XMLI}test", GEMoney:XMLI is the name
> > space in which the complext type having "test" is defined.
> >
> > Why is this difference in reading the name of the reader from the same
> > piece of code at client and server. Further i understand the condition below
> > fails at server and not in client call.
> >
> >
> > *if* (reader.isStartElement()
> >
> > &&
> > *new* javax.xml.namespace.QName("", "test")
> >
> > .equals(reader.getName())) {
> > The QName conditions is false at server side and hence it jumps to the
> > excpetion loop to create the error. Does this give some clue?
> >
> > Thanks
> > Natraj.
> >
> > [Gudta, Natraj (GE Money, consultant)]  -Original Message-
> > *From:* Antonio Manuel Muñiz Martín [mailto:[EMAIL PROTECTED]
> > ]
> > *Sent:* 10 October 2007 11:18
> > *To:* axis-user@ws.apache.org
> > *Subject:* Re: Peculiar Issue while testing a service
> >
> > Do you modify the xsd in the correct place? Perhaps you are modifying
> > the xsd and on deploy time the xsd used is other.
> >
> > 2007/10/10, Gudla, Natraj (GE Money, consultant) < [EMAIL PROTECTED]>:
> > >
> > >  First i generate a sample xml file using the Eclipse IDE, using the
> > > xsd, then use the parse method of axis generated wrapper class for my
> > > request, passing it the XMLStreamReader created from the sample xml. This
> > > worked fine end to end earlier. Sample class, calling stub passing the
> > > request object, server responding properly with expected response.
> > >
> > > Only after i include a simple type element into one of the existing
> > > complex types within the xsd, it fails saying unexpected element. Just
> > > another peice of information, when i place this new simple type into its 
> > > own
> > > complex type, it works fine again. Seems like only when i add it as a
> > > simple type it refuses to parse at the server side.
> > >
> > > In the intial case, i had debugged the axis client side parsing the
> > > tags, and the new simple type tag conditions pass through properly and it
> > > recognizes it. Why is it only at the server i get this error.
> > >
> > > I lieterally need some help on this. I can give the full file set if
> > > you need more information.
> > >
> > >
> > > -Original Message-
>

RE: Peculiar Issue while testing a service

2007-10-12 Thread Gudla, Natraj (GE Money, consultant)
Hi Amila,
 
Both the ways have been tested. With product Id and with test elements. We have 
built a test harness which reads all data from an excel sheet, forms a custom 
domain object set. There is a mapper class which individually maps the object 
elements from this domain onto axis generated class, finally passing the top 
level object to the stub. This way too, every thing works fine before including 
the new simple types. Once these come into picture it starts giving errors.
 
if you had noted by code below, the same piece of parsing mechanism going fine 
at client side, but the same parsing at server side is throwing the un expected 
element. 

-Original Message-
From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]
Sent: 12 October 2007 10:20
To: axis-user@ws.apache.org
Subject: Re: Peculiar Issue while testing a service


with out generating the xml from anther IDE. generated it with the generated 
client code.

try to remove those test elements and add productionID and see.

Amila.


On 10/11/07, Gudla, Natraj (GE Money, consultant) < [EMAIL PROTECTED]> wrote: 

Hi Amila, 
 
Anything on this? 
 
Cheers
Natraj.

-Original Message-
From: Gudla, Natraj (GE Money, consultant) 
Sent: 10 October 2007 11:27
To: ' axis-user@ws.apache.org'

Subject: RE: Peculiar Issue while testing a service



Yes i do. and i run the wsdl2java on the wsdl which refers to this xsd. I have 
just been doing some debuggin and see how the reader.getName() differs on the 
client side and the server side.
 
The class GEM_Ln_LoanRequestDetails which was generated by axis, returns as 
"test" ( test is the simple element i added for testing ). The same code at 
server side returns a "{GEMoney:XMLI}test", GEMoney:XMLI is the name space in 
which the complext type having "test" is defined. 
 
Why is this difference in reading the name of the reader from the same piece of 
code at client and server. Further i understand the condition below fails at 
server and not in client call.
 


if (reader.isStartElement() 

&& 

new javax.xml.namespace.QName("", "test") 

.equals(reader.getName())) {

The QName conditions is false at server side and hence it jumps to the 
excpetion loop to create the error. Does this give some clue?
 
Thanks
Natraj.

[Gudta, Natraj (GE Money, consultant)]  -Original Message-
From: Antonio Manuel Muñiz Martín [mailto: [EMAIL PROTECTED]
Sent: 10 October 2007 11:18
To: axis-user@ws.apache.org
Subject: Re: Peculiar Issue while testing a service



Do you modify the xsd in the correct place? Perhaps you are modifying the xsd 
and on deploy time the xsd used is other.


2007/10/10, Gudla, Natraj (GE Money, consultant) <  <mailto:[EMAIL PROTECTED]> 
[EMAIL PROTECTED]>: 

First i generate a sample xml file using the Eclipse IDE, using the xsd, then 
use the parse method of axis generated wrapper class for my request, passing it 
the XMLStreamReader created from the sample xml. This worked fine end to end 
earlier. Sample class, calling stub passing the request object, server 
responding properly with expected response.
 
Only after i include a simple type element into one of the existing complex 
types within the xsd, it fails saying unexpected element. Just another peice of 
information, when i place this new simple type into its own complex type, it 
works fine again. Seems like only when i add it as a simple type it refuses to 
parse at the server side. 
 
In the intial case, i had debugged the axis client side parsing the tags, and 
the new simple type tag conditions pass through properly and it recognizes it. 
Why is it only at the server i get this error. 
 
I lieterally need some help on this. I can give the full file set if you need 
more information. 
 

-Original Message-
From: Amila Suriarachchi [mailto: [EMAIL PROTECTED]
Sent: 10 October 2007 10:39
To: axis-user@ws.apache.org

Subject: Re: Peculiar Issue while testing a service





On 10/10/07, Gudla, Natraj (GE Money, consultant) <  <mailto:[EMAIL PROTECTED]> 
[EMAIL PROTECTED]> wrote: 

Hi,

Any ideas on this?


how do you generate this request?  some problem there. 



Cheers
Natraj

>  -Original Message-
> From: Gudla, Natraj (GE Money, consultant)
> Sent: 09 October 2007 10:01
> To:   ' axis-user@ws.apache.org  <mailto:axis-user@ws.apache.org> '
> Subject:  Peculiar Issue while testing a service
>
> Hi,
>
> I am reporting a peculiar issue which i am facing since yesterday working 
> with AXIS2 1.2. Addition of an extra simple element to an existing complex 
> type of an xsd throws an "Un Expected Element" error. Following is the brief. 
>
> The current set up : Working Fine.
>
> The complext type part of my xsd
>   
>
>type="GEM_Ln_LoanPreference"/>
>

Re: Peculiar Issue while testing a service

2007-10-12 Thread Amila Suriarachchi
with out generating the xml from anther IDE. generated it with the generated
client code.

try to remove those test elements and add productionID and see.

Amila.

On 10/11/07, Gudla, Natraj (GE Money, consultant) <[EMAIL PROTECTED]>
wrote:
>
>  Hi Amila,
>
> Anything on this?
>
> Cheers
> Natraj.
>
> -Original Message-
> *From:* Gudla, Natraj (GE Money, consultant)
> *Sent:* 10 October 2007 11:27
> *To:* 'axis-user@ws.apache.org'
> *Subject:* RE: Peculiar Issue while testing a service
>
> Yes i do. and i run the wsdl2java on the wsdl which refers to this xsd. I
> have just been doing some debuggin and see how the reader.getName()
> differs on the client side and the server side.
>
> The class GEM_Ln_LoanRequestDetails which was generated by axis, returns
> as "test" ( test is the simple element i added for testing ). The same code
> at server side returns a "{GEMoney:XMLI}test", GEMoney:XMLI is the name
> space in which the complext type having "test" is defined.
>
> Why is this difference in reading the name of the reader from the same
> piece of code at client and server. Further i understand the condition below
> fails at server and not in client call.
>
>
> *if* (reader.isStartElement()
>
> &&
> *new* javax.xml.namespace.QName("", "test")
>
> .equals(reader.getName())) {
> The QName conditions is false at server side and hence it jumps to the
> excpetion loop to create the error. Does this give some clue?
>
> Thanks
> Natraj.
>
> [Gudta, Natraj (GE Money, consultant)]  -----Original Message-
> *From:* Antonio Manuel Muñiz Martín [mailto:[EMAIL PROTECTED]
> *Sent:* 10 October 2007 11:18
> *To:* axis-user@ws.apache.org
> *Subject:* Re: Peculiar Issue while testing a service
>
> Do you modify the xsd in the correct place? Perhaps you are modifying the
> xsd and on deploy time the xsd used is other.
>
> 2007/10/10, Gudla, Natraj (GE Money, consultant) < [EMAIL PROTECTED]>:
> >
> >  First i generate a sample xml file using the Eclipse IDE, using the
> > xsd, then use the parse method of axis generated wrapper class for my
> > request, passing it the XMLStreamReader created from the sample xml. This
> > worked fine end to end earlier. Sample class, calling stub passing the
> > request object, server responding properly with expected response.
> >
> > Only after i include a simple type element into one of the existing
> > complex types within the xsd, it fails saying unexpected element. Just
> > another peice of information, when i place this new simple type into its own
> > complex type, it works fine again. Seems like only when i add it as a
> > simple type it refuses to parse at the server side.
> >
> > In the intial case, i had debugged the axis client side parsing the
> > tags, and the new simple type tag conditions pass through properly and it
> > recognizes it. Why is it only at the server i get this error.
> >
> > I lieterally need some help on this. I can give the full file set if you
> > need more information.
> >
> >
> > -Original Message-
> > *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED]
> > *Sent:* 10 October 2007 10:39
> > *To:* axis-user@ws.apache.org
> > *Subject:* Re: Peculiar Issue while testing a service
> >
> >
> >
> > On 10/10/07, Gudla, Natraj (GE Money, consultant) <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > Hi,
> > >
> > > Any ideas on this?
> >
> >
> > how do you generate this request?  some problem there.
> >
> > Cheers
> > > Natraj
> > >
> > > >  -Original Message-
> > > > From: Gudla, Natraj (GE Money, consultant)
> > > > Sent: 09 October 2007 10:01
> > > > To:   'axis-user@ws.apache.org '
> > > > Subject:  Peculiar Issue while testing a service
> > > >
> > > > Hi,
> > > >
> > > > I am reporting a peculiar issue which i am facing since yesterday
> > > working with AXIS2 1.2. Addition of an extra simple element to an
> > > existing complex type of an xsd throws an "Un Expected Element" error.
> > > Following is the brief.
> > > >
> > > > The current set up : Working Fine.
> > > >
> > > > The complext type part of my xsd
> > > >   
> > > >   
> > > >> > type="GEM_Ln_LoanPreference"/>
> > > >> > type=&qu

RE: Peculiar Issue while testing a service

2007-10-11 Thread Gudla, Natraj (GE Money, consultant)
Hi Amila, 
 
Anything on this? 
 
Cheers
Natraj.

-Original Message-
From: Gudla, Natraj (GE Money, consultant) 
Sent: 10 October 2007 11:27
To: 'axis-user@ws.apache.org'
Subject: RE: Peculiar Issue while testing a service


Yes i do. and i run the wsdl2java on the wsdl which refers to this xsd. I have 
just been doing some debuggin and see how the reader.getName() differs on the 
client side and the server side.
 
The class GEM_Ln_LoanRequestDetails which was generated by axis, returns as 
"test" ( test is the simple element i added for testing ). The same code at 
server side returns a "{GEMoney:XMLI}test", GEMoney:XMLI is the name space in 
which the complext type having "test" is defined. 
 
Why is this difference in reading the name of the reader from the same piece of 
code at client and server. Further i understand the condition below fails at 
server and not in client call.
 
if (reader.isStartElement()

&& new javax.xml.namespace.QName("", "test")

.equals(reader.getName())) {

The QName conditions is false at server side and hence it jumps to the 
excpetion loop to create the error. Does this give some clue?
 
Thanks
Natraj.

[Gudta, Natraj (GE Money, consultant)]  -Original Message-
From: Antonio Manuel Muñiz Martín [mailto:[EMAIL PROTECTED]
Sent: 10 October 2007 11:18
To: axis-user@ws.apache.org
Subject: Re: Peculiar Issue while testing a service



Do you modify the xsd in the correct place? Perhaps you are modifying the xsd 
and on deploy time the xsd used is other.


2007/10/10, Gudla, Natraj (GE Money, consultant) <  <mailto:[EMAIL PROTECTED]> 
[EMAIL PROTECTED]>: 

First i generate a sample xml file using the Eclipse IDE, using the xsd, then 
use the parse method of axis generated wrapper class for my request, passing it 
the XMLStreamReader created from the sample xml. This worked fine end to end 
earlier. Sample class, calling stub passing the request object, server 
responding properly with expected response.
 
Only after i include a simple type element into one of the existing complex 
types within the xsd, it fails saying unexpected element. Just another peice of 
information, when i place this new simple type into its own complex type, it 
works fine again. Seems like only when i add it as a simple type it refuses to 
parse at the server side. 
 
In the intial case, i had debugged the axis client side parsing the tags, and 
the new simple type tag conditions pass through properly and it recognizes it. 
Why is it only at the server i get this error. 
 
I lieterally need some help on this. I can give the full file set if you need 
more information. 
 

-Original Message-
From: Amila Suriarachchi [mailto: [EMAIL PROTECTED]
Sent: 10 October 2007 10:39
To: axis-user@ws.apache.org

Subject: Re: Peculiar Issue while testing a service





On 10/10/07, Gudla, Natraj (GE Money, consultant) < [EMAIL PROTECTED]> wrote: 

Hi,

Any ideas on this?


how do you generate this request?  some problem there. 



Cheers
Natraj

>  -Original Message-
> From: Gudla, Natraj (GE Money, consultant)
> Sent: 09 October 2007 10:01
> To:   ' axis-user@ws.apache.org  <mailto:axis-user@ws.apache.org> '
> Subject:  Peculiar Issue while testing a service
>
> Hi,
>
> I am reporting a peculiar issue which i am facing since yesterday working 
> with AXIS2 1.2. Addition of an extra simple element to an existing complex 
> type of an xsd throws an "Un Expected Element" error. Following is the brief. 
>
> The current set up : Working Fine.
>
> The complext type part of my xsd
>   
>
>type="GEM_Ln_LoanPreference"/>
>type="GEM_Ln_CustomerDetails"/> 
>type="GEM_Ln_CustomerAddr"/>
>type="GEM_Ln_EmployerDetails"/> 
>type="GEM_Ln_CustomerFinances"/>
>type="GEM_Ln_CardDetails" minOccurs="0"/> 
>type="GEM_Ln_LoanDetails" minOccurs="0"/>
>   
>
>
> I used a wsdl, generated binding ( ADB ) classes using WSDL to Java tool on 
> Axis2 1.2. Using the build.xml, running the jar.server task i created the 
> services.aar and deployed on tomcat. Created a sample java class, which reads 
> a sample loan request xml ( formed using IDE based on the xsd ) and submits a 
> request to the service. 
> Every thing works fine, i get the response as i coded within the skeleton 
> method. This looks fine end to end.
>
> Change to the existing schema: : Not Working
>
>
>   
>   
>type="

RE: Peculiar Issue while testing a service

2007-10-10 Thread Gudla, Natraj (GE Money, consultant)
Yes i do. and i run the wsdl2java on the wsdl which refers to this xsd. I have 
just been doing some debuggin and see how the reader.getName() differs on the 
client side and the server side.
 
The class GEM_Ln_LoanRequestDetails which was generated by axis, returns as 
"test" ( test is the simple element i added for testing ). The same code at 
server side returns a "{GEMoney:XMLI}test", GEMoney:XMLI is the name space in 
which the complext type having "test" is defined. 
 
Why is this difference in reading the name of the reader from the same piece of 
code at client and server. Further i understand the condition below fails at 
server and not in client call.
 
if (reader.isStartElement()

&& new javax.xml.namespace.QName("", "test")

.equals(reader.getName())) {

The QName conditions is false at server side and hence it jumps to the 
excpetion loop to create the error. Does this give some clue?
 
Thanks
Natraj.

[Gudta, Natraj (GE Money, consultant)]  -Original Message-
From: Antonio Manuel Muñiz Martín [mailto:[EMAIL PROTECTED]
Sent: 10 October 2007 11:18
To: axis-user@ws.apache.org
Subject: Re: Peculiar Issue while testing a service



Do you modify the xsd in the correct place? Perhaps you are modifying the xsd 
and on deploy time the xsd used is other.


2007/10/10, Gudla, Natraj (GE Money, consultant) <  <mailto:[EMAIL PROTECTED]> 
[EMAIL PROTECTED]>: 

First i generate a sample xml file using the Eclipse IDE, using the xsd, then 
use the parse method of axis generated wrapper class for my request, passing it 
the XMLStreamReader created from the sample xml. This worked fine end to end 
earlier. Sample class, calling stub passing the request object, server 
responding properly with expected response.
 
Only after i include a simple type element into one of the existing complex 
types within the xsd, it fails saying unexpected element. Just another peice of 
information, when i place this new simple type into its own complex type, it 
works fine again. Seems like only when i add it as a simple type it refuses to 
parse at the server side. 
 
In the intial case, i had debugged the axis client side parsing the tags, and 
the new simple type tag conditions pass through properly and it recognizes it. 
Why is it only at the server i get this error. 
 
I lieterally need some help on this. I can give the full file set if you need 
more information. 
 

-Original Message-
From: Amila Suriarachchi [mailto: [EMAIL PROTECTED]
Sent: 10 October 2007 10:39
To: axis-user@ws.apache.org

Subject: Re: Peculiar Issue while testing a service





On 10/10/07, Gudla, Natraj (GE Money, consultant) < [EMAIL PROTECTED]> wrote: 

Hi,

Any ideas on this?


how do you generate this request?  some problem there. 



Cheers
Natraj

>  -Original Message-
> From: Gudla, Natraj (GE Money, consultant)
> Sent: 09 October 2007 10:01
> To:   ' axis-user@ws.apache.org  <mailto:axis-user@ws.apache.org> '
> Subject:  Peculiar Issue while testing a service
>
> Hi,
>
> I am reporting a peculiar issue which i am facing since yesterday working 
> with AXIS2 1.2. Addition of an extra simple element to an existing complex 
> type of an xsd throws an "Un Expected Element" error. Following is the brief. 
>
> The current set up : Working Fine.
>
> The complext type part of my xsd
>   
>
>type="GEM_Ln_LoanPreference"/>
>type="GEM_Ln_CustomerDetails"/> 
>type="GEM_Ln_CustomerAddr"/>
>type="GEM_Ln_EmployerDetails"/> 
>type="GEM_Ln_CustomerFinances"/>
>type="GEM_Ln_CardDetails" minOccurs="0"/> 
>type="GEM_Ln_LoanDetails" minOccurs="0"/>
>   
>
>
> I used a wsdl, generated binding ( ADB ) classes using WSDL to Java tool on 
> Axis2 1.2. Using the build.xml, running the jar.server task i created the 
> services.aar and deployed on tomcat. Created a sample java class, which reads 
> a sample loan request xml ( formed using IDE based on the xsd ) and submits a 
> request to the service. 
> Every thing works fine, i get the response as i coded within the skeleton 
> method. This looks fine end to end.
>
> Change to the existing schema: : Not Working
>
>
>   
>   
>type="GEM_Ln_LoanPreference"/> 
>type="GEM_Ln_CustomerDetails"/>
>type="GEM_Ln_CustomerAddr"/> 
>type="GEM_Ln_EmployerDetails"

Re: Peculiar Issue while testing a service

2007-10-10 Thread Antonio Manuel Muñiz Martín
Do you modify the xsd in the correct place? Perhaps you are modifying the
xsd and on deploy time the xsd used is other.

2007/10/10, Gudla, Natraj (GE Money, consultant) <[EMAIL PROTECTED]>:
>
>  First i generate a sample xml file using the Eclipse IDE, using the xsd,
> then use the parse method of axis generated wrapper class for my request,
> passing it the XMLStreamReader created from the sample xml. This worked fine
> end to end earlier. Sample class, calling stub passing the request object,
> server responding properly with expected response.
>
> Only after i include a simple type element into one of the existing
> complex types within the xsd, it fails saying unexpected element. Just
> another peice of information, when i place this new simple type into its own
> complex type, it works fine again. Seems like only when i add it as a
> simple type it refuses to parse at the server side.
>
> In the intial case, i had debugged the axis client side parsing the tags,
> and the new simple type tag conditions pass through properly and it
> recognizes it. Why is it only at the server i get this error.
>
> I lieterally need some help on this. I can give the full file set if you
> need more information.
>
>
> -Original Message-
> *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED]
> *Sent:* 10 October 2007 10:39
> *To:* axis-user@ws.apache.org
> *Subject:* Re: Peculiar Issue while testing a service
>
>
>
> On 10/10/07, Gudla, Natraj (GE Money, consultant) <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi,
> >
> > Any ideas on this?
>
>
> how do you generate this request?  some problem there.
>
> Cheers
> > Natraj
> >
> > >  -Original Message-
> > > From: Gudla, Natraj (GE Money, consultant)
> > > Sent: 09 October 2007 10:01
> > > To:   'axis-user@ws.apache.org '
> > > Subject:  Peculiar Issue while testing a service
> > >
> > > Hi,
> > >
> > > I am reporting a peculiar issue which i am facing since yesterday
> > working with AXIS2 1.2. Addition of an extra simple element to an
> > existing complex type of an xsd throws an "Un Expected Element" error.
> > Following is the brief.
> > >
> > > The current set up : Working Fine.
> > >
> > > The complext type part of my xsd
> > >   
> > >   
> > >> type="GEM_Ln_LoanPreference"/>
> > >> type="GEM_Ln_CustomerDetails"/>
> > >> type="GEM_Ln_CustomerAddr"/>
> > >> type="GEM_Ln_EmployerDetails"/>
> > >> type="GEM_Ln_CustomerFinances"/>
> > >> type="GEM_Ln_CardDetails" minOccurs="0"/>
> > >> type="GEM_Ln_LoanDetails" minOccurs="0"/>
> > >   
> > >   
> > >
> > > I used a wsdl, generated binding ( ADB ) classes using WSDL to Java
> > tool on Axis2 1.2. Using the build.xml, running the jar.server task i
> > created the services.aar and deployed on tomcat. Created a sample java
> > class, which reads a sample loan request xml ( formed using IDE based on the
> > xsd ) and submits a request to the service.
> > > Every thing works fine, i get the response as i coded within the
> > skeleton method. This looks fine end to end.
> > >
> > > Change to the existing schema: : Not Working
> > >
> > >   
> > >   
> > >> type="xsd:string"/>
> > >> type="GEM_Ln_LoanPreference"/>
> > >> type="GEM_Ln_CustomerDetails"/>
> > >> type="GEM_Ln_CustomerAddr"/>
> > >> type="GEM_Ln_EmployerDetails"/>
> > >> type="GEM_Ln_CustomerFinances"/>
> > >> type="GEM_Ln_CardDetails" minOccurs="0"/>
> > >> type="GEM_Ln_LoanDetails" minOccurs="0"/>
> > >   
> > >   
> > >
> > > I have a need to add new field to hold a product id. after this, i
> > generated the binding classes again ( to make sure, i deleted all the
> > existing classes, and re generated every thing ). Then did

RE: Peculiar Issue while testing a service

2007-10-10 Thread Gudla, Natraj (GE Money, consultant)
First i generate a sample xml file using the Eclipse IDE, using the xsd, then 
use the parse method of axis generated wrapper class for my request, passing it 
the XMLStreamReader created from the sample xml. This worked fine end to end 
earlier. Sample class, calling stub passing the request object, server 
responding properly with expected response.
 
Only after i include a simple type element into one of the existing complex 
types within the xsd, it fails saying unexpected element. Just another peice of 
information, when i place this new simple type into its own complex type, it 
works fine again. Seems like only when i add it as a simple type it refuses to 
parse at the server side. 
 
In the intial case, i had debugged the axis client side parsing the tags, and 
the new simple type tag conditions pass through properly and it recognizes it. 
Why is it only at the server i get this error. 
 
I lieterally need some help on this. I can give the full file set if you need 
more information. 
 

-Original Message-
From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]
Sent: 10 October 2007 10:39
To: axis-user@ws.apache.org
Subject: Re: Peculiar Issue while testing a service




On 10/10/07, Gudla, Natraj (GE Money, consultant) < [EMAIL PROTECTED]> wrote: 

Hi,

Any ideas on this?


how do you generate this request?  some problem there. 



Cheers
Natraj

>  -Original Message-
> From: Gudla, Natraj (GE Money, consultant)
> Sent: 09 October 2007 10:01
> To:   ' axis-user@ws.apache.org  <mailto:axis-user@ws.apache.org> '
> Subject:  Peculiar Issue while testing a service
>
> Hi,
>
> I am reporting a peculiar issue which i am facing since yesterday working 
> with AXIS2 1.2. Addition of an extra simple element to an existing complex 
> type of an xsd throws an "Un Expected Element" error. Following is the brief. 
>
> The current set up : Working Fine.
>
> The complext type part of my xsd
>   
>
>type="GEM_Ln_LoanPreference"/>
>type="GEM_Ln_CustomerDetails"/> 
>type="GEM_Ln_CustomerAddr"/>
>type="GEM_Ln_EmployerDetails"/> 
>type="GEM_Ln_CustomerFinances"/>
>type="GEM_Ln_CardDetails" minOccurs="0"/> 
>type="GEM_Ln_LoanDetails" minOccurs="0"/>
>   
>
>
> I used a wsdl, generated binding ( ADB ) classes using WSDL to Java tool on 
> Axis2 1.2. Using the build.xml, running the jar.server task i created the 
> services.aar and deployed on tomcat. Created a sample java class, which reads 
> a sample loan request xml ( formed using IDE based on the xsd ) and submits a 
> request to the service. 
> Every thing works fine, i get the response as i coded within the skeleton 
> method. This looks fine end to end.
>
> Change to the existing schema: : Not Working
>
>
>   
>   
>type="GEM_Ln_LoanPreference"/> 
>type="GEM_Ln_CustomerDetails"/>
>type="GEM_Ln_CustomerAddr"/> 
>type="GEM_Ln_EmployerDetails"/>
>type="GEM_Ln_CustomerFinances"/> 
>type="GEM_Ln_CardDetails" minOccurs="0"/>
>type="GEM_Ln_LoanDetails" minOccurs="0"/> 
>   
>   
>
> I have a need to add new field to hold a product id. after this, i generated 
> the binding classes again ( to make sure, i deleted all the existing classes, 
> and re generated every thing ). Then did the same procedure as above to 
> generated the services.aar, then created the sample java class callling the 
> stub. Changed the sample xml file to add a product id tag and then executed 
> the program. This time un expectedley i get the "Un expected sub element 
> Product Id" error repeatedly. 
>
> Not sure what is the problem, this looks to be simple. I tried various 
> combinations adding a test tag, then making product id a simple type etc etc. 
> Any idea why this occurs. I made sure, i replaced the correct services.aar on 
> the server. The new resource folder generated second time, properly refers to 
> the product id which was included.
>
> Just as a work around, i tested with some sample test and test simple tags, 
> observed the xml input on TCP Monitor. For your reference attached is the 
> request and response xmls from the monitory. Observe for the "test" and 
> "testsimple" tags. The actual loan request xml read by my program is also 
> attached for reference. 
>
>  << File: Response.txt >>  << File: Request.txt >>  << File: LnRq.xml >>
>
> Cheers
> -Natraj.
>
>
>
>

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






-- 
Amila Suriarachchi,
WSO2 Inc. 



Re: Peculiar Issue while testing a service

2007-10-10 Thread Amila Suriarachchi
On 10/10/07, Gudla, Natraj (GE Money, consultant) <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> Any ideas on this?


how do you generate this request?  some problem there.

Cheers
> Natraj
>
> >  -Original Message-
> > From: Gudla, Natraj (GE Money, consultant)
> > Sent: 09 October 2007 10:01
> > To:   'axis-user@ws.apache.org'
> > Subject:  Peculiar Issue while testing a service
> >
> > Hi,
> >
> > I am reporting a peculiar issue which i am facing since yesterday
> working with AXIS2 1.2. Addition of an extra simple element to an existing
> complex type of an xsd throws an "Un Expected Element" error. Following is
> the brief.
> >
> > The current set up : Working Fine.
> >
> > The complext type part of my xsd
> >   
> >   
> >type="GEM_Ln_LoanPreference"/>
> >type="GEM_Ln_CustomerDetails"/>
> >type="GEM_Ln_CustomerAddr"/>
> >type="GEM_Ln_EmployerDetails"/>
> >type="GEM_Ln_CustomerFinances"/>
> >type="GEM_Ln_CardDetails" minOccurs="0"/>
> >type="GEM_Ln_LoanDetails" minOccurs="0"/>
> >   
> >   
> >
> > I used a wsdl, generated binding ( ADB ) classes using WSDL to Java tool
> on Axis2 1.2. Using the build.xml, running the jar.server task i created
> the services.aar and deployed on tomcat. Created a sample java class,
> which reads a sample loan request xml ( formed using IDE based on the xsd )
> and submits a request to the service.
> > Every thing works fine, i get the response as i coded within the
> skeleton method. This looks fine end to end.
> >
> > Change to the existing schema: : Not Working
> >
> >   
> >   
> >   
> >type="GEM_Ln_LoanPreference"/>
> >type="GEM_Ln_CustomerDetails"/>
> >type="GEM_Ln_CustomerAddr"/>
> >type="GEM_Ln_EmployerDetails"/>
> >type="GEM_Ln_CustomerFinances"/>
> >type="GEM_Ln_CardDetails" minOccurs="0"/>
> >type="GEM_Ln_LoanDetails" minOccurs="0"/>
> >   
> >   
> >
> > I have a need to add new field to hold a product id. after this, i
> generated the binding classes again ( to make sure, i deleted all the
> existing classes, and re generated every thing ). Then did the same
> procedure as above to generated the services.aar, then created the sample
> java class callling the stub. Changed the sample xml file to add a product
> id tag and then executed the program. This time un expectedley i get the "Un
> expected sub element Product Id" error repeatedly.
> >
> > Not sure what is the problem, this looks to be simple. I tried various
> combinations adding a test tag, then making product id a simple type etc
> etc. Any idea why this occurs. I made sure, i replaced the correct
> services.aar on the server. The new resource folder generated second time,
> properly refers to the product id which was included.
> >
> > Just as a work around, i tested with some sample test and test simple
> tags, observed the xml input on TCP Monitor. For your reference attached is
> the request and response xmls from the monitory. Observe for the "test" and
> "testsimple" tags. The actual loan request xml read by my program is also
> attached for reference.
> >
> >  << File: Response.txt >>  << File: Request.txt >>  << File: LnRq.xml >>
> >
> > Cheers
> > -Natraj.
> >
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.


RE: Peculiar Issue while testing a service

2007-10-10 Thread Gudla, Natraj (GE Money, consultant)
Hi,

Any ideas on this?

Cheers
Natraj

>  -Original Message-
> From: Gudla, Natraj (GE Money, consultant)  
> Sent: 09 October 2007 10:01
> To:   'axis-user@ws.apache.org'
> Subject:  Peculiar Issue while testing a service
> 
> Hi,
> 
> I am reporting a peculiar issue which i am facing since yesterday working 
> with AXIS2 1.2. Addition of an extra simple element to an existing complex 
> type of an xsd throws an "Un Expected Element" error. Following is the brief.
> 
> The current set up : Working Fine.
> 
> The complext type part of my xsd 
>   
>   
>type="GEM_Ln_LoanPreference"/>
>type="GEM_Ln_CustomerDetails"/>
>type="GEM_Ln_CustomerAddr"/>
>type="GEM_Ln_EmployerDetails"/>
>type="GEM_Ln_CustomerFinances"/>
>type="GEM_Ln_CardDetails" minOccurs="0"/>
>type="GEM_Ln_LoanDetails" minOccurs="0"/>
>   
>   
> 
> I used a wsdl, generated binding ( ADB ) classes using WSDL to Java tool on 
> Axis2 1.2. Using the build.xml, running the jar.server task i created the 
> services.aar and deployed on tomcat. Created a sample java class, which reads 
> a sample loan request xml ( formed using IDE based on the xsd ) and submits a 
> request to the service. 
> Every thing works fine, i get the response as i coded within the skeleton 
> method. This looks fine end to end.
> 
> Change to the existing schema: : Not Working
> 
>   
>   
>   
>type="GEM_Ln_LoanPreference"/>
>type="GEM_Ln_CustomerDetails"/>
>type="GEM_Ln_CustomerAddr"/>
>type="GEM_Ln_EmployerDetails"/>
>type="GEM_Ln_CustomerFinances"/>
>type="GEM_Ln_CardDetails" minOccurs="0"/>
>type="GEM_Ln_LoanDetails" minOccurs="0"/>
>   
>   
> 
> I have a need to add new field to hold a product id. after this, i generated 
> the binding classes again ( to make sure, i deleted all the existing classes, 
> and re generated every thing ). Then did the same procedure as above to 
> generated the services.aar, then created the sample java class callling the 
> stub. Changed the sample xml file to add a product id tag and then executed 
> the program. This time un expectedley i get the "Un expected sub element 
> Product Id" error repeatedly.
> 
> Not sure what is the problem, this looks to be simple. I tried various 
> combinations adding a test tag, then making product id a simple type etc etc. 
> Any idea why this occurs. I made sure, i replaced the correct services.aar on 
> the server. The new resource folder generated second time, properly refers to 
> the product id which was included.
> 
> Just as a work around, i tested with some sample test and test simple tags, 
> observed the xml input on TCP Monitor. For your reference attached is the 
> request and response xmls from the monitory. Observe for the "test" and 
> "testsimple" tags. The actual loan request xml read by my program is also 
> attached for reference.
> 
>  << File: Response.txt >>  << File: Request.txt >>  << File: LnRq.xml >> 
> 
> Cheers
> -Natraj.
> 
> 
> 
> 

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



Re: Peculiar Issue while testing a service

2007-10-09 Thread Amila Suriarachchi
this request does not have any productID (the new manadatory field you have
added)

it has

Test Simple
   Test
   
  34546.78
  1
  02
  0
  01
   

I guess this testsimple and test elements are wrong elements.

Can you test with Axis2 1.3 and send the whole stack trace?

Amila.



On 10/9/07, Gudla, Natraj (GE Money, consultant) <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> I am reporting a peculiar issue which i am facing since yesterday working
> with AXIS2 1.2. Addition of an extra simple element to an existing complex
> type of an xsd throws an "Un Expected Element" error. Following is the
> brief.
>
> The current set up : Working Fine.
>
> The complext type part of my xsd
> 
> 
>  type="GEM_Ln_LoanPreference"/>
>  type="GEM_Ln_CustomerDetails"/>
>  type="GEM_Ln_CustomerAddr"/>
>  type="GEM_Ln_EmployerDetails"/>
>  type="GEM_Ln_CustomerFinances"/>
>  type="GEM_Ln_CardDetails" minOccurs="0"/>
>  type="GEM_Ln_LoanDetails" minOccurs="0"/>
> 
> 
>
> I used a wsdl, generated binding ( ADB ) classes using WSDL to Java tool
> on Axis2 1.2. Using the build.xml, running the jar.server task i created
> the services.aar and deployed on tomcat. Created a sample java class,
> which reads a sample loan request xml ( formed using IDE based on the xsd )
> and submits a request to the service.
> Every thing works fine, i get the response as i coded within the skeleton
> method. This looks fine end to end.
>
> Change to the existing schema: : Not Working
>
> 
> 
> 
>  type="GEM_Ln_LoanPreference"/>
>  type="GEM_Ln_CustomerDetails"/>
>  type="GEM_Ln_CustomerAddr"/>
>  type="GEM_Ln_EmployerDetails"/>
>  type="GEM_Ln_CustomerFinances"/>
>  type="GEM_Ln_CardDetails" minOccurs="0"/>
>  type="GEM_Ln_LoanDetails" minOccurs="0"/>
> 
> 
>
> I have a need to add new field to hold a product id. after this, i
> generated the binding classes again ( to make sure, i deleted all the
> existing classes, and re generated every thing ). Then did the same
> procedure as above to generated the services.aar, then created the sample
> java class callling the stub. Changed the sample xml file to add a product
> id tag and then executed the program. This time un expectedley i get the "Un
> expected sub element Product Id" error repeatedly.
>
> Not sure what is the problem, this looks to be simple. I tried various
> combinations adding a test tag, then making product id a simple type etc
> etc. Any idea why this occurs. I made sure, i replaced the correct
> services.aar on the server. The new resource folder generated second time,
> properly refers to the product id which was included.
>
> Just as a work around, i tested with some sample test and test simple
> tags, observed the xml input on TCP Monitor. For your reference attached is
> the request and response xmls from the monitory. Observe for the "test" and
> "testsimple" tags. The actual loan request xml read by my program is also
> attached for reference.
>
> <>  <>  <>
>
> Cheers
> -Natraj.
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.