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 "Meghan Pietila (JIRA)" <ax...@ws.apache.org> on 2005/08/11 16:44:55 UTC
[jira] Created: (AXIS-2177) encodingStyle atttribute not set on SOAP envelope
encodingStyle atttribute not set on SOAP envelope
-------------------------------------------------
Key: AXIS-2177
URL: http://issues.apache.org/jira/browse/AXIS-2177
Project: Apache Axis
Type: Bug
Components: Serialization/Deserialization
Versions: 1.2.1
Reporter: Meghan Pietila
In the Call.invoke(RPCElement) method, there is a code snippet with a comment: "Set both the envelope and the RPCElement encoding styles". However, the code then proceeds to set only the RPCElement encoding style. Later, this results in the encodingStyle attribute being set only on the first element in the SOAP body (if the entire message is the same encoding style)--see example below.
This is causing a problem for me in an RPC/encoded service call to a SOAP service hosted by Siebel. Our developer tells me that their parser expects to find the encodingStyle attribute in the SOAP Envelope or SOAP Body elements, and cries when it can't find the attribute there.
I believe all that is necessary is to add the following line, immediately after the comment and start of try { block:
reqEnv.setEncodingStyle(getEncodingStyle());
Example of current Axis output:
<?xml version="1.0" encoding="UTF-8"?>
<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>
<ns1:GetOffersByCustomer soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="some.namespace">
<CustomerType xsi:type="xsd:string">Consumer</CustomerType>
<LPID xsi:type="xsd:string">1234567</LPID>
</ns1:GetOffersByCustomer>
</soapenv:Body>
</soapenv: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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (AXIS-2177) encodingStyle atttribute not set on
SOAP envelope
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXIS-2177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS-2177:
-----------------------------------
Assignee: (was: Davanum Srinivas)
> encodingStyle atttribute not set on SOAP envelope
> -------------------------------------------------
>
> Key: AXIS-2177
> URL: https://issues.apache.org/jira/browse/AXIS-2177
> Project: Axis
> Issue Type: Bug
> Components: Serialization/Deserialization
> Affects Versions: 1.2.1
> Reporter: Meghan Pietila
>
> In the Call.invoke(RPCElement) method, there is a code snippet with a comment: "Set both the envelope and the RPCElement encoding styles". However, the code then proceeds to set only the RPCElement encoding style. Later, this results in the encodingStyle attribute being set only on the first element in the SOAP body (if the entire message is the same encoding style)--see example below.
> This is causing a problem for me in an RPC/encoded service call to a SOAP service hosted by Siebel. Our developer tells me that their parser expects to find the encodingStyle attribute in the SOAP Envelope or SOAP Body elements, and cries when it can't find the attribute there.
> I believe all that is necessary is to add the following line, immediately after the comment and start of try { block:
> reqEnv.setEncodingStyle(getEncodingStyle());
> Example of current Axis output:
> <?xml version="1.0" encoding="UTF-8"?>
> <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>
> <ns1:GetOffersByCustomer soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="some.namespace">
> <CustomerType xsi:type="xsd:string">Consumer</CustomerType>
> <LPID xsi:type="xsd:string">1234567</LPID>
> </ns1:GetOffersByCustomer>
> </soapenv:Body>
> </soapenv:Envelope>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS-2177) encodingStyle atttribute not set on SOAP envelope
Posted by "Meghan Pietila (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2177?page=comments#action_12318680 ]
Meghan Pietila commented on AXIS-2177:
--------------------------------------
I found a similar, although not identical, JIRA in AXIS-535, although it appears that a patch was never committed. Anyone have an update?
> encodingStyle atttribute not set on SOAP envelope
> -------------------------------------------------
>
> Key: AXIS-2177
> URL: http://issues.apache.org/jira/browse/AXIS-2177
> Project: Apache Axis
> Type: Bug
> Components: Serialization/Deserialization
> Versions: 1.2.1
> Reporter: Meghan Pietila
>
> In the Call.invoke(RPCElement) method, there is a code snippet with a comment: "Set both the envelope and the RPCElement encoding styles". However, the code then proceeds to set only the RPCElement encoding style. Later, this results in the encodingStyle attribute being set only on the first element in the SOAP body (if the entire message is the same encoding style)--see example below.
> This is causing a problem for me in an RPC/encoded service call to a SOAP service hosted by Siebel. Our developer tells me that their parser expects to find the encodingStyle attribute in the SOAP Envelope or SOAP Body elements, and cries when it can't find the attribute there.
> I believe all that is necessary is to add the following line, immediately after the comment and start of try { block:
> reqEnv.setEncodingStyle(getEncodingStyle());
> Example of current Axis output:
> <?xml version="1.0" encoding="UTF-8"?>
> <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>
> <ns1:GetOffersByCustomer soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="some.namespace">
> <CustomerType xsi:type="xsd:string">Consumer</CustomerType>
> <LPID xsi:type="xsd:string">1234567</LPID>
> </ns1:GetOffersByCustomer>
> </soapenv:Body>
> </soapenv: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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Assigned: (AXIS-2177) encodingStyle atttribute not set on SOAP envelope
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2177?page=all ]
Davanum Srinivas reassigned AXIS-2177:
--------------------------------------
Assign To: Davanum Srinivas
> encodingStyle atttribute not set on SOAP envelope
> -------------------------------------------------
>
> Key: AXIS-2177
> URL: http://issues.apache.org/jira/browse/AXIS-2177
> Project: Apache Axis
> Type: Bug
> Components: Serialization/Deserialization
> Versions: 1.2.1
> Reporter: Meghan Pietila
> Assignee: Davanum Srinivas
>
> In the Call.invoke(RPCElement) method, there is a code snippet with a comment: "Set both the envelope and the RPCElement encoding styles". However, the code then proceeds to set only the RPCElement encoding style. Later, this results in the encodingStyle attribute being set only on the first element in the SOAP body (if the entire message is the same encoding style)--see example below.
> This is causing a problem for me in an RPC/encoded service call to a SOAP service hosted by Siebel. Our developer tells me that their parser expects to find the encodingStyle attribute in the SOAP Envelope or SOAP Body elements, and cries when it can't find the attribute there.
> I believe all that is necessary is to add the following line, immediately after the comment and start of try { block:
> reqEnv.setEncodingStyle(getEncodingStyle());
> Example of current Axis output:
> <?xml version="1.0" encoding="UTF-8"?>
> <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>
> <ns1:GetOffersByCustomer soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="some.namespace">
> <CustomerType xsi:type="xsd:string">Consumer</CustomerType>
> <LPID xsi:type="xsd:string">1234567</LPID>
> </ns1:GetOffersByCustomer>
> </soapenv:Body>
> </soapenv: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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira