axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nigel Sim (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1837) xsi:type appears twice
Date Fri, 07 Oct 2005 08:51:50 GMT
    [ http://issues.apache.org/jira/browse/AXIS-1837?page=comments#action_12331569 ] 

Nigel Sim commented on AXIS-1837:
---------------------------------

I still have this issue with Axis 1.2.1.

Full SOAP conversation:

POST /axis/services/ExecutionAgent HTTP/1.1

Host: localhost:8686

Accept: text/xml

Accept: multipart/*

Content-Type: text/xml; charset=utf-8

SOAPAction: "urn:GridExecutionNetwork#getAgents"

Content-Length: 467



<?xml version='1.0' encoding='UTF-8'?>

<SOAP-ENV:Envelope

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"

xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/1999/XMLSchema"

SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<SOAP-ENV:Body>

<getAgents xmlns="urn:GridExecutionNetwork">
</getAgents>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>


HTTP/1.0 200 OK

Set-Cookie: 1

Set-Cookie2: 1

Content-Type: text/xml; charset=utf-8



<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getAgentsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:GridExecutionNetwork">
   <getAgentsReturn soapenc:arrayType="soapenc:string[0]" xsi:type="soapenc:Array" xsi:type="soapenc:Array"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
  </ns1:getAgentsResponse>
 </soapenv:Body>
</soapenv:Envelope>

> xsi:type appears twice
> ----------------------
>
>          Key: AXIS-1837
>          URL: http://issues.apache.org/jira/browse/AXIS-1837
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2RC3
>  Environment: MacOS X
> java full version "1.4.2_05-141.3"
> java version "1.4.2_05"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-141.3)
> Java HotSpot(TM) Client VM (build 1.4.2-38, mixed mode)
>     Reporter: Mickael Remars

>
> In case of an array serialization, if global parameter sendXsiType is set to true, xsi:type="soapenc:Array"
is present TWICE.
> My SOAP client is FireFox 1.0 and I got an error at deserialization saying that an attribute
can't be present multiple times.
> Here is the piece of the soap message captured with tcpmon:
> <descriptions soapenc:arrayType="ns1:StringBundle[1]"
> 	      xsi:type="soapenc:Array"
> 	      xsi:type="soapenc:Array"
> 	      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> 	      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>   <item xsi:type="ns1:StringBundle">
>     <localeId xsi:type="soapenc:string">fr</localeId>
>     <string xsi:type="soapenc:string">_ROOT_</string>
>   </item>
> </descriptions>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message