You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Unai Uribarri (JIRA)" <ax...@ws.apache.org> on 2004/12/30 13:22:05 UTC

[jira] Created: (AXISCPP-346) Literal use of complex types in soap bindings with document style doesn't generate valid XML

Literal use of complex types in soap bindings with document style doesn't generate valid XML
--------------------------------------------------------------------------------------------

         Key: AXISCPP-346
         URL: http://nagoya.apache.org/jira/browse/AXISCPP-346
     Project: Axis-C++
        Type: Bug
  Components: WSDL processing  
    Versions: 1.4 Final    
 Environment: RedHat9
    Reporter: Unai Uribarri
 Attachments: provision.wsdl

If a soap binding with document style uses literal message parts, then the stubs generated by wsdl2ws generates an invalid XML document.

For example the stubs of the attached wsdl is generating this response. Look at <servicioSincronoReturn<Map ..., and <item<mapItem... First is the element name and then the type name separated by '<'

<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:servicioSincronoResponse xmlns:ns1="http://antispam.webservice.optenet.com">
<servicioSincronoReturn<Map xsi:type="ns2:Map" xmlns:ns2="http://xml.apache.org/xml-soap/"><item<mapItem><key>MENS-IN-TIPMEN</key>
<value>E</value>
</mapItem></item><item<mapItem><key>MENS-NU-MENSA</key>
<value>1041</value>
</mapItem></item><item<mapItem><key>MENS-NO-MENSA</key>
<value>Error en el gateway SOAP: falla la conexion con el gestor central</value>
</mapItem></item></Map></servicioSincronoReturn>
</ns1:servicioSincronoResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (AXISCPP-346) Literal use of complex types in soap bindings with document style doesn't generate valid XML

Posted by "John Hawkins (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-346?page=history ]
     
John Hawkins closed AXISCPP-346:
--------------------------------

    Resolution: Fixed

I think this means it's closed !

> Literal use of complex types in soap bindings with document style doesn't generate valid XML
> --------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-346
>          URL: http://issues.apache.org/jira/browse/AXISCPP-346
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.4 Final
>  Environment: RedHat9
>     Reporter: Unai Uribarri
>  Attachments: provision.wsdl
>
> If a soap binding with document style uses literal message parts, then the stubs generated by wsdl2ws generates an invalid XML document.
> For example the stubs of the attached wsdl is generating this response. Look at <servicioSincronoReturn<Map ..., and <item<mapItem... First is the element name and then the type name separated by '<'
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:servicioSincronoResponse xmlns:ns1="http://antispam.webservice.optenet.com">
> <servicioSincronoReturn<Map xsi:type="ns2:Map" xmlns:ns2="http://xml.apache.org/xml-soap/"><item<mapItem><key>MENS-IN-TIPMEN</key>
> <value>E</value>
> </mapItem></item><item<mapItem><key>MENS-NU-MENSA</key>
> <value>1041</value>
> </mapItem></item><item<mapItem><key>MENS-NO-MENSA</key>
> <value>Error en el gateway SOAP: falla la conexion con el gestor central</value>
> </mapItem></item></Map></servicioSincronoReturn>
> </ns1:servicioSincronoResponse>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXISCPP-346) Literal use of complex types in soap bindings with document style doesn't generate valid XML

Posted by "Unai Uribarri (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXISCPP-346?page=comments#action_57127 ]
     
Unai Uribarri commented on AXISCPP-346:
---------------------------------------

Forget this. I was compiling two wsdl in the same directory, mixing literal and encoded uses.


> Literal use of complex types in soap bindings with document style doesn't generate valid XML
> --------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-346
>          URL: http://nagoya.apache.org/jira/browse/AXISCPP-346
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.4 Final
>  Environment: RedHat9
>     Reporter: Unai Uribarri
>  Attachments: provision.wsdl
>
> If a soap binding with document style uses literal message parts, then the stubs generated by wsdl2ws generates an invalid XML document.
> For example the stubs of the attached wsdl is generating this response. Look at <servicioSincronoReturn<Map ..., and <item<mapItem... First is the element name and then the type name separated by '<'
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:servicioSincronoResponse xmlns:ns1="http://antispam.webservice.optenet.com">
> <servicioSincronoReturn<Map xsi:type="ns2:Map" xmlns:ns2="http://xml.apache.org/xml-soap/"><item<mapItem><key>MENS-IN-TIPMEN</key>
> <value>E</value>
> </mapItem></item><item<mapItem><key>MENS-NU-MENSA</key>
> <value>1041</value>
> </mapItem></item><item<mapItem><key>MENS-NO-MENSA</key>
> <value>Error en el gateway SOAP: falla la conexion con el gestor central</value>
> </mapItem></item></Map></servicioSincronoReturn>
> </ns1:servicioSincronoResponse>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXISCPP-346) Literal use of complex types in soap bindings with document style doesn't generate valid XML

Posted by "Unai Uribarri (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXISCPP-346?page=history ]

Unai Uribarri updated AXISCPP-346:
----------------------------------

    Attachment: provision.wsdl

example wsdl

> Literal use of complex types in soap bindings with document style doesn't generate valid XML
> --------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-346
>          URL: http://nagoya.apache.org/jira/browse/AXISCPP-346
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.4 Final
>  Environment: RedHat9
>     Reporter: Unai Uribarri
>  Attachments: provision.wsdl
>
> If a soap binding with document style uses literal message parts, then the stubs generated by wsdl2ws generates an invalid XML document.
> For example the stubs of the attached wsdl is generating this response. Look at <servicioSincronoReturn<Map ..., and <item<mapItem... First is the element name and then the type name separated by '<'
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:servicioSincronoResponse xmlns:ns1="http://antispam.webservice.optenet.com">
> <servicioSincronoReturn<Map xsi:type="ns2:Map" xmlns:ns2="http://xml.apache.org/xml-soap/"><item<mapItem><key>MENS-IN-TIPMEN</key>
> <value>E</value>
> </mapItem></item><item<mapItem><key>MENS-NU-MENSA</key>
> <value>1041</value>
> </mapItem></item><item<mapItem><key>MENS-NO-MENSA</key>
> <value>Error en el gateway SOAP: falla la conexion con el gestor central</value>
> </mapItem></item></Map></servicioSincronoReturn>
> </ns1:servicioSincronoResponse>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira