QUSIR / staff

Automatically exported from code.google.com/p/staff
Apache License 2.0
0 stars 0 forks source link

XML tag confusion #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
# on a linux platform with g++
1. cd equiv
2. sh build.sh

What is the expected output? What do you see instead?
If I then send the "equiv_ws" service the following XML:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
   <soap:Header/>
   <soap:Body>
      <eep:get_any_entry xmlns:eep="http://localhost/equiv_ws/"/>
   </soap:Body>
</soap:Envelope>

I expect it to return:

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Body>
      <eep:entry_response xmlns:eep="http://localhost/equiv_ws/">
         <equiv1s>
            <equiv1>anything</equiv1>
         </equiv1s>
         <equiv2s>
            <equiv2>anything</equiv2>
         </equiv2s>
      </eep:entry_response>
   </soapenv:Body>
</soapenv:Envelope>

Instead I receive:

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Body>
      <eep:entry_response xmlns:eep="http://localhost/equiv_ws/">
         <equiv1s>
            <wrong>anything</wrong>
         </equiv1s>
         <equiv2s>
            <wrong>anything</wrong>
         </equiv2s>
      </eep:entry_response>
   </soapenv:Body>
</soapenv:Envelope>

Note that the tag "wrong" is taken from an schema type unrelated to 
"entry_response", defined but unused in the WSDL.

What version of the product are you using? On what operating system?

staff-2.0.0-tp6-r523 compiled with g++ 4.6.1 under linux x86_64

Please provide any additional information below.

Original issue reported on code.google.com by stephen....@gmail.com on 29 Sep 2011 at 11:06

Attachments:

GoogleCodeExporter commented 9 years ago
This issue seems to be already fixed. Please use latest revision: 
http://code.google.com/p/staff/source/checkout

I have checked this under r525 and r541 (latest at this moment).
Under r541 response seems to be correct:

<ns:entry_response 
xmlns:ns="http://localhost/equiv_ws/"><equiv1s><equiv1>anything</equiv1></equiv1
s><equiv2s><equiv2>anything</equiv2></equiv2s></ns:entry_response>

under r523 response was definitely wrong:
<ns:entry_response 
xmlns:ns="http://localhost/equiv_ws/"><equiv1s><wrong>anything</wrong></equiv1s>
<equiv2s><wrong>anything</wrong></equiv2s></ns:entry_response>

P.S.: service location in WSDL seems to be invalid:
http://localhost:9090/axis/services/equiv  (this is a Axis 1 and invalid svc 
name?)
it should be
http://localhost:9090/axis2/services/equiv_ws (this is a Axis 2 and correct svc 
name)

Original comment by loentar on 30 Sep 2011 at 7:28