You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Michael Woinoski (JIRA)" <ax...@ws.apache.org> on 2004/11/05 00:08:34 UTC
[jira] Created: (AXIS-1646) "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
"Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
----------------------------------------------------------------------------------
Key: AXIS-1646
URL: http://nagoya.apache.org/jira/browse/AXIS-1646
Project: Axis
Type: Bug
Components: WSDL processing
Versions: 1.2RC1
Environment: Win2K Pro
Reporter: Michael Woinoski
For a parameter of type byte[], running Java2WSDL with --style="wrapped" and --use="literal" generates a schema with a sequence of elements of type xsd:byte instead of a single element of type xsd:base64Binary. For example, given the following method:
public byte[] updatePdf(byte[] pdfDoc, String newValues)
the generated schema contains the following definition:
<element name="updatePdf">
<complexType>
<sequence>
<element maxOccurs="unbounded" name="pdfDoc" type="xsd:byte"/>
<element name="newValues" type="xsd:string"/>
</sequence>
</complexType>
Stubs generated with WSDL2Java create the following SOAP message:
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<updatePdf xmlns="http://www.ltree.com/wsdl/template">
<pdfDoc>111</pdfDoc>
<pdfDoc>114</pdfDoc>
<pdfDoc>105</pdfDoc>
<pdfDoc>103</pdfDoc>
<pdfDoc>105</pdfDoc>
<pdfDoc>110</pdfDoc>
<pdfDoc>97</pdfDoc>
<pdfDoc>108</pdfDoc>
<pdfDoc>32</pdfDoc>
<pdfDoc>115</pdfDoc>
<pdfDoc>116</pdfDoc>
<pdfDoc>114</pdfDoc>
<pdfDoc>105</pdfDoc>
<pdfDoc>110</pdfDoc>
<pdfDoc>103</pdfDoc>
<newValues>update values</newValues>
</updatePdf>
</soapenv:Body></soapenv:Envelope>
The pdfDoc element should be defined as:
<element name="pdfDoc" type="xsd:base64Binary"/>
Running Java2WSDL with --style="document" produces the correct output.
--
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] Assigned: (AXIS-1646) "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
Posted by "Tom Jordahl (JIRA)" <ax...@ws.apache.org>.
[ http://nagoya.apache.org/jira/browse/AXIS-1646?page=history ]
Tom Jordahl reassigned AXIS-1646:
---------------------------------
Assign To: Tom Jordahl
> "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
> ----------------------------------------------------------------------------------
>
> Key: AXIS-1646
> URL: http://nagoya.apache.org/jira/browse/AXIS-1646
> Project: Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.2RC1
> Environment: Win2K Pro
> Reporter: Michael Woinoski
> Assignee: Tom Jordahl
> Attachments: AxisBug1646.zip
>
> For a parameter of type byte[], running Java2WSDL with --style="wrapped" and --use="literal" generates a schema with a sequence of elements of type xsd:byte instead of a single element of type xsd:base64Binary. For example, given the following method:
> public byte[] updatePdf(byte[] pdfDoc, String newValues)
>
> the generated schema contains the following definition:
> <element name="updatePdf">
> <complexType>
> <sequence>
> <element maxOccurs="unbounded" name="pdfDoc" type="xsd:byte"/>
> <element name="newValues" type="xsd:string"/>
> </sequence>
> </complexType>
> Stubs generated with WSDL2Java create the following SOAP message:
> soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <updatePdf xmlns="http://www.ltree.com/wsdl/template">
> <pdfDoc>111</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>97</pdfDoc>
> <pdfDoc>108</pdfDoc>
> <pdfDoc>32</pdfDoc>
> <pdfDoc>115</pdfDoc>
> <pdfDoc>116</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <newValues>update values</newValues>
> </updatePdf>
> </soapenv:Body></soapenv:Envelope>
> The pdfDoc element should be defined as:
> <element name="pdfDoc" type="xsd:base64Binary"/>
>
> Running Java2WSDL with --style="document" produces the correct output.
--
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] Commented: (AXIS-1646) "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
Posted by "Michael Woinoski (JIRA)" <ax...@ws.apache.org>.
[ http://nagoya.apache.org/jira/browse/AXIS-1646?page=comments#action_55097 ]
Michael Woinoski commented on AXIS-1646:
----------------------------------------
Sorry for the duplicate.
> "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
> ----------------------------------------------------------------------------------
>
> Key: AXIS-1646
> URL: http://nagoya.apache.org/jira/browse/AXIS-1646
> Project: Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.2RC1
> Environment: Win2K Pro
> Reporter: Michael Woinoski
>
> For a parameter of type byte[], running Java2WSDL with --style="wrapped" and --use="literal" generates a schema with a sequence of elements of type xsd:byte instead of a single element of type xsd:base64Binary. For example, given the following method:
> public byte[] updatePdf(byte[] pdfDoc, String newValues)
>
> the generated schema contains the following definition:
> <element name="updatePdf">
> <complexType>
> <sequence>
> <element maxOccurs="unbounded" name="pdfDoc" type="xsd:byte"/>
> <element name="newValues" type="xsd:string"/>
> </sequence>
> </complexType>
> Stubs generated with WSDL2Java create the following SOAP message:
> soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <updatePdf xmlns="http://www.ltree.com/wsdl/template">
> <pdfDoc>111</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>97</pdfDoc>
> <pdfDoc>108</pdfDoc>
> <pdfDoc>32</pdfDoc>
> <pdfDoc>115</pdfDoc>
> <pdfDoc>116</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <newValues>update values</newValues>
> </updatePdf>
> </soapenv:Body></soapenv:Envelope>
> The pdfDoc element should be defined as:
> <element name="pdfDoc" type="xsd:base64Binary"/>
>
> Running Java2WSDL with --style="document" produces the correct output.
--
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] Commented: (AXIS-1646) "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
Posted by "Tom Jordahl (JIRA)" <ax...@ws.apache.org>.
[ http://nagoya.apache.org/jira/browse/AXIS-1646?page=comments#action_55367 ]
Tom Jordahl commented on AXIS-1646:
-----------------------------------
I am having the same issue.
I expect to work on this today and tomorrow so we should be able to get this fixed. I expect the WSDL generator is not using the type mapping to find the XML Schema type for the byte[] array.
> "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
> ----------------------------------------------------------------------------------
>
> Key: AXIS-1646
> URL: http://nagoya.apache.org/jira/browse/AXIS-1646
> Project: Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.2RC1
> Environment: Win2K Pro
> Reporter: Michael Woinoski
> Attachments: AxisBug1646.zip
>
> For a parameter of type byte[], running Java2WSDL with --style="wrapped" and --use="literal" generates a schema with a sequence of elements of type xsd:byte instead of a single element of type xsd:base64Binary. For example, given the following method:
> public byte[] updatePdf(byte[] pdfDoc, String newValues)
>
> the generated schema contains the following definition:
> <element name="updatePdf">
> <complexType>
> <sequence>
> <element maxOccurs="unbounded" name="pdfDoc" type="xsd:byte"/>
> <element name="newValues" type="xsd:string"/>
> </sequence>
> </complexType>
> Stubs generated with WSDL2Java create the following SOAP message:
> soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <updatePdf xmlns="http://www.ltree.com/wsdl/template">
> <pdfDoc>111</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>97</pdfDoc>
> <pdfDoc>108</pdfDoc>
> <pdfDoc>32</pdfDoc>
> <pdfDoc>115</pdfDoc>
> <pdfDoc>116</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <newValues>update values</newValues>
> </updatePdf>
> </soapenv:Body></soapenv:Envelope>
> The pdfDoc element should be defined as:
> <element name="pdfDoc" type="xsd:base64Binary"/>
>
> Running Java2WSDL with --style="document" produces the correct output.
--
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] Commented: (AXIS-1646) "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
Posted by "Jayachandra Sekhara Rao Sunkara (JIRA)" <ax...@ws.apache.org>.
[ http://nagoya.apache.org/jira/browse/AXIS-1646?page=comments#action_55279 ]
Jayachandra Sekhara Rao Sunkara commented on AXIS-1646:
-------------------------------------------------------
Hi Michael!
can you post your client and or server side code at the earliest. I wish to reproduce the problem and do a step by step analysis.
Thank you,
Jayachandra
> "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
> ----------------------------------------------------------------------------------
>
> Key: AXIS-1646
> URL: http://nagoya.apache.org/jira/browse/AXIS-1646
> Project: Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.2RC1
> Environment: Win2K Pro
> Reporter: Michael Woinoski
>
> For a parameter of type byte[], running Java2WSDL with --style="wrapped" and --use="literal" generates a schema with a sequence of elements of type xsd:byte instead of a single element of type xsd:base64Binary. For example, given the following method:
> public byte[] updatePdf(byte[] pdfDoc, String newValues)
>
> the generated schema contains the following definition:
> <element name="updatePdf">
> <complexType>
> <sequence>
> <element maxOccurs="unbounded" name="pdfDoc" type="xsd:byte"/>
> <element name="newValues" type="xsd:string"/>
> </sequence>
> </complexType>
> Stubs generated with WSDL2Java create the following SOAP message:
> soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <updatePdf xmlns="http://www.ltree.com/wsdl/template">
> <pdfDoc>111</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>97</pdfDoc>
> <pdfDoc>108</pdfDoc>
> <pdfDoc>32</pdfDoc>
> <pdfDoc>115</pdfDoc>
> <pdfDoc>116</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <newValues>update values</newValues>
> </updatePdf>
> </soapenv:Body></soapenv:Envelope>
> The pdfDoc element should be defined as:
> <element name="pdfDoc" type="xsd:base64Binary"/>
>
> Running Java2WSDL with --style="document" produces the correct output.
--
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: (AXIS-1646) "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
Posted by "Tom Jordahl (JIRA)" <ax...@ws.apache.org>.
[ http://nagoya.apache.org/jira/browse/AXIS-1646?page=history ]
Tom Jordahl closed AXIS-1646:
-----------------------------
Resolution: Fixed
Fix Version: 1.2RC2
I have fixed the WSDL emitter to special case the byte array to map to Base64Binary per JAX-RPC 1.1. This fixes my test case. Please try yours and verify.
> "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
> ----------------------------------------------------------------------------------
>
> Key: AXIS-1646
> URL: http://nagoya.apache.org/jira/browse/AXIS-1646
> Project: Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.2RC1
> Environment: Win2K Pro
> Reporter: Michael Woinoski
> Assignee: Tom Jordahl
> Fix For: 1.2RC2
> Attachments: AxisBug1646.zip
>
> For a parameter of type byte[], running Java2WSDL with --style="wrapped" and --use="literal" generates a schema with a sequence of elements of type xsd:byte instead of a single element of type xsd:base64Binary. For example, given the following method:
> public byte[] updatePdf(byte[] pdfDoc, String newValues)
>
> the generated schema contains the following definition:
> <element name="updatePdf">
> <complexType>
> <sequence>
> <element maxOccurs="unbounded" name="pdfDoc" type="xsd:byte"/>
> <element name="newValues" type="xsd:string"/>
> </sequence>
> </complexType>
> Stubs generated with WSDL2Java create the following SOAP message:
> soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <updatePdf xmlns="http://www.ltree.com/wsdl/template">
> <pdfDoc>111</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>97</pdfDoc>
> <pdfDoc>108</pdfDoc>
> <pdfDoc>32</pdfDoc>
> <pdfDoc>115</pdfDoc>
> <pdfDoc>116</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <newValues>update values</newValues>
> </updatePdf>
> </soapenv:Body></soapenv:Envelope>
> The pdfDoc element should be defined as:
> <element name="pdfDoc" type="xsd:base64Binary"/>
>
> Running Java2WSDL with --style="document" produces the correct output.
--
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: (AXIS-1646) "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
Posted by "Michael Woinoski (JIRA)" <ax...@ws.apache.org>.
[ http://nagoya.apache.org/jira/browse/AXIS-1646?page=history ]
Michael Woinoski updated AXIS-1646:
-----------------------------------
Attachment: AxisBug1646.zip
The attached zip file has a service that demonstrates the bug and a sample client. The client write the message to tcpmon at port 7777. Run "ant build run" to deploy on localhost:8080 and run the client.
> "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
> ----------------------------------------------------------------------------------
>
> Key: AXIS-1646
> URL: http://nagoya.apache.org/jira/browse/AXIS-1646
> Project: Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.2RC1
> Environment: Win2K Pro
> Reporter: Michael Woinoski
> Attachments: AxisBug1646.zip
>
> For a parameter of type byte[], running Java2WSDL with --style="wrapped" and --use="literal" generates a schema with a sequence of elements of type xsd:byte instead of a single element of type xsd:base64Binary. For example, given the following method:
> public byte[] updatePdf(byte[] pdfDoc, String newValues)
>
> the generated schema contains the following definition:
> <element name="updatePdf">
> <complexType>
> <sequence>
> <element maxOccurs="unbounded" name="pdfDoc" type="xsd:byte"/>
> <element name="newValues" type="xsd:string"/>
> </sequence>
> </complexType>
> Stubs generated with WSDL2Java create the following SOAP message:
> soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <updatePdf xmlns="http://www.ltree.com/wsdl/template">
> <pdfDoc>111</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>97</pdfDoc>
> <pdfDoc>108</pdfDoc>
> <pdfDoc>32</pdfDoc>
> <pdfDoc>115</pdfDoc>
> <pdfDoc>116</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <newValues>update values</newValues>
> </updatePdf>
> </soapenv:Body></soapenv:Envelope>
> The pdfDoc element should be defined as:
> <element name="pdfDoc" type="xsd:base64Binary"/>
>
> Running Java2WSDL with --style="document" produces the correct output.
--
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] Commented: (AXIS-1646) "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
Posted by "Michael Woinoski (JIRA)" <ax...@ws.apache.org>.
[ http://nagoya.apache.org/jira/browse/AXIS-1646?page=comments#action_55406 ]
Michael Woinoski commented on AXIS-1646:
----------------------------------------
Looks good. Thanks.
> "Java2WSDL -y wrapped -u literal" generates incorrect schema for byte[] parameters
> ----------------------------------------------------------------------------------
>
> Key: AXIS-1646
> URL: http://nagoya.apache.org/jira/browse/AXIS-1646
> Project: Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.2RC1
> Environment: Win2K Pro
> Reporter: Michael Woinoski
> Assignee: Tom Jordahl
> Fix For: 1.2RC2
> Attachments: AxisBug1646.zip
>
> For a parameter of type byte[], running Java2WSDL with --style="wrapped" and --use="literal" generates a schema with a sequence of elements of type xsd:byte instead of a single element of type xsd:base64Binary. For example, given the following method:
> public byte[] updatePdf(byte[] pdfDoc, String newValues)
>
> the generated schema contains the following definition:
> <element name="updatePdf">
> <complexType>
> <sequence>
> <element maxOccurs="unbounded" name="pdfDoc" type="xsd:byte"/>
> <element name="newValues" type="xsd:string"/>
> </sequence>
> </complexType>
> Stubs generated with WSDL2Java create the following SOAP message:
> soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <updatePdf xmlns="http://www.ltree.com/wsdl/template">
> <pdfDoc>111</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>97</pdfDoc>
> <pdfDoc>108</pdfDoc>
> <pdfDoc>32</pdfDoc>
> <pdfDoc>115</pdfDoc>
> <pdfDoc>116</pdfDoc>
> <pdfDoc>114</pdfDoc>
> <pdfDoc>105</pdfDoc>
> <pdfDoc>110</pdfDoc>
> <pdfDoc>103</pdfDoc>
> <newValues>update values</newValues>
> </updatePdf>
> </soapenv:Body></soapenv:Envelope>
> The pdfDoc element should be defined as:
> <element name="pdfDoc" type="xsd:base64Binary"/>
>
> Running Java2WSDL with --style="document" produces the correct output.
--
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