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 ax...@ws.apache.org on 2004/10/07 04:25:52 UTC
[jira] Created: (AXIS-1591) Migration from Axis 1.1 (or 1.2Beta)
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1591
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1591
Summary: Migration from Axis 1.1 (or 1.2Beta)
Type: Bug
Status: Unassigned
Priority: Major
Project: Axis
Assignee:
Reporter: Reiner Kappenberger
Created: Wed, 6 Oct 2004 7:24 PM
Updated: Wed, 6 Oct 2004 7:24 PM
Environment: JDK 1.4.2_04, Windows XP, JBoss
Description:
I'm trying to migrate to AXIS 1.2RC1 and the application which worked perfectly under 1.1 and 1.2Beta3 is suddenly not working any more.
The fragment in question is shown below:
response = fac.createMessage();
SOAPPart part = response.getSOAPPart();
SOAPEnvelope envelope = part.getEnvelope();
envelope.addNamespaceDeclaration("cwmp", uri);
SOAPBody body = envelope.getBody();
SOAPHeader header = envelope.getHeader();
response = createHeader(response);
// Create SOAPBodyElement request
Name bodyName =
envelope.createName("InformResponse", "cwmp", uri);
SOAPBodyElement informResponseElement = body.addBodyElement(bodyName);
SOAPElement maxEnvelopesElement = informResponseElement.addChildElement(maxEnvelopesName);
maxEnvelopesElement.addTextNode("1");
response.saveChanges();
The message assembled before was:
<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" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
<soapenv:Header>
<cwmp:ID soapenv:mustUnderstand="1">1234</cwmp:ID>
</soapenv:Header>
<soapenv:Body>
<cwmp:InformResponse xmlns:cwmp......>
<MaxEnvelopes xmlns="">1</MaxEnvelopes>
</soapenv:Body>
</soapenv:Envelope>
Now it comes up as:
<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" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
<soapenv:Header>
<cwmp:ID soapenv:mustUnderstand="1">1234</cwmp:ID>
</soapenv:Header>
<soapenv:Body/>
</soapenv:Envelope>
---------------------------------------------------------------------
JIRA INFORMATION:
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: (AXIS-1591) Migration from Axis 1.1 (or 1.2Beta)
Posted by ax...@ws.apache.org.
The following comment has been added to this issue:
Author: Ashutosh Shahi
Created: Wed, 6 Oct 2004 10:37 PM
Body:
Reiner,
You just need to add the statement:
((org.apache.axis.SOAPPart)part).setSOAPEnvelope((org.apache.axis.message.SOAPEnvelope)soapEnvelope);
before u call saveChanges() for the second time.
This happends because Each time soapMessage.saveChanges() is called (it's also called automatically when u call soapMessage.writeTo()) the form of soapEnvelope is changed from FORM_SOAPENVELOPE to FORM_OPTIMIZED. This change avoids the changes u made to soap message from reflecting in subsequent calls to saveChanges() (or writeTo()).
You can find the related issue at: AXIS-1469.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/AXIS-1591?page=comments#action_53795
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1591
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1591
Summary: Migration from Axis 1.1 (or 1.2Beta)
Type: Bug
Status: Unassigned
Priority: Major
Project: Axis
Assignee:
Reporter: Reiner Kappenberger
Created: Wed, 6 Oct 2004 7:24 PM
Updated: Wed, 6 Oct 2004 10:37 PM
Environment: JDK 1.4.2_04, Windows XP, JBoss
Description:
I'm trying to migrate to AXIS 1.2RC1 and the application which worked perfectly under 1.1 and 1.2Beta3 is suddenly not working any more.
The fragment in question is shown below:
response = fac.createMessage();
SOAPPart part = response.getSOAPPart();
SOAPEnvelope envelope = part.getEnvelope();
envelope.addNamespaceDeclaration("cwmp", uri);
SOAPBody body = envelope.getBody();
SOAPHeader header = envelope.getHeader();
response = createHeader(response);
// Create SOAPBodyElement request
Name bodyName =
envelope.createName("InformResponse", "cwmp", uri);
SOAPBodyElement informResponseElement = body.addBodyElement(bodyName);
SOAPElement maxEnvelopesElement = informResponseElement.addChildElement(maxEnvelopesName);
maxEnvelopesElement.addTextNode("1");
response.saveChanges();
The message assembled before was:
<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" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
<soapenv:Header>
<cwmp:ID soapenv:mustUnderstand="1">1234</cwmp:ID>
</soapenv:Header>
<soapenv:Body>
<cwmp:InformResponse xmlns:cwmp......>
<MaxEnvelopes xmlns="">1</MaxEnvelopes>
</soapenv:Body>
</soapenv:Envelope>
Now it comes up as:
<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" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
<soapenv:Header>
<cwmp:ID soapenv:mustUnderstand="1">1234</cwmp:ID>
</soapenv:Header>
<soapenv:Body/>
</soapenv:Envelope>
---------------------------------------------------------------------
JIRA INFORMATION:
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: (AXIS-1591) Migration from Axis 1.1 (or 1.2Beta)
Posted by ax...@ws.apache.org.
The following comment has been added to this issue:
Author: Reiner Kappenberger
Created: Wed, 6 Oct 2004 8:09 PM
Body:
Just found one thing about this issue:
I'm calling saveChanges twice on the message. Changes after the first saveChanges aren't saved.
Reiner
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/AXIS-1591?page=comments#action_53790
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1591
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1591
Summary: Migration from Axis 1.1 (or 1.2Beta)
Type: Bug
Status: Unassigned
Priority: Major
Project: Axis
Assignee:
Reporter: Reiner Kappenberger
Created: Wed, 6 Oct 2004 7:24 PM
Updated: Wed, 6 Oct 2004 8:09 PM
Environment: JDK 1.4.2_04, Windows XP, JBoss
Description:
I'm trying to migrate to AXIS 1.2RC1 and the application which worked perfectly under 1.1 and 1.2Beta3 is suddenly not working any more.
The fragment in question is shown below:
response = fac.createMessage();
SOAPPart part = response.getSOAPPart();
SOAPEnvelope envelope = part.getEnvelope();
envelope.addNamespaceDeclaration("cwmp", uri);
SOAPBody body = envelope.getBody();
SOAPHeader header = envelope.getHeader();
response = createHeader(response);
// Create SOAPBodyElement request
Name bodyName =
envelope.createName("InformResponse", "cwmp", uri);
SOAPBodyElement informResponseElement = body.addBodyElement(bodyName);
SOAPElement maxEnvelopesElement = informResponseElement.addChildElement(maxEnvelopesName);
maxEnvelopesElement.addTextNode("1");
response.saveChanges();
The message assembled before was:
<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" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
<soapenv:Header>
<cwmp:ID soapenv:mustUnderstand="1">1234</cwmp:ID>
</soapenv:Header>
<soapenv:Body>
<cwmp:InformResponse xmlns:cwmp......>
<MaxEnvelopes xmlns="">1</MaxEnvelopes>
</soapenv:Body>
</soapenv:Envelope>
Now it comes up as:
<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" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
<soapenv:Header>
<cwmp:ID soapenv:mustUnderstand="1">1234</cwmp:ID>
</soapenv:Header>
<soapenv:Body/>
</soapenv:Envelope>
---------------------------------------------------------------------
JIRA INFORMATION:
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] Resolved: (AXIS-1591) Migration from Axis 1.1 (or 1.2Beta)
Posted by "Venkat Reddy (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1591?page=all ]
Venkat Reddy resolved AXIS-1591:
--------------------------------
Resolution: Fixed
This should be fixed now after the patch for AXIS-1960.
> Migration from Axis 1.1 (or 1.2Beta)
> ------------------------------------
>
> Key: AXIS-1591
> URL: http://issues.apache.org/jira/browse/AXIS-1591
> Project: Axis
> Type: Bug
> Environment: JDK 1.4.2_04, Windows XP, JBoss
> Reporter: Reiner Kappenberger
>
> I'm trying to migrate to AXIS 1.2RC1 and the application which worked perfectly under 1.1 and 1.2Beta3 is suddenly not working any more.
> The fragment in question is shown below:
> response = fac.createMessage();
> SOAPPart part = response.getSOAPPart();
> SOAPEnvelope envelope = part.getEnvelope();
> envelope.addNamespaceDeclaration("cwmp", uri);
> SOAPBody body = envelope.getBody();
> SOAPHeader header = envelope.getHeader();
> response = createHeader(response);
>
> // Create SOAPBodyElement request
> Name bodyName =
> envelope.createName("InformResponse", "cwmp", uri);
> SOAPBodyElement informResponseElement = body.addBodyElement(bodyName);
> SOAPElement maxEnvelopesElement = informResponseElement.addChildElement(maxEnvelopesName);
> maxEnvelopesElement.addTextNode("1");
> response.saveChanges();
> The message assembled before was:
> <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" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
> <soapenv:Header>
> <cwmp:ID soapenv:mustUnderstand="1">1234</cwmp:ID>
> </soapenv:Header>
> <soapenv:Body>
> <cwmp:InformResponse xmlns:cwmp......>
> <MaxEnvelopes xmlns="">1</MaxEnvelopes>
> </soapenv:Body>
> </soapenv:Envelope>
> Now it comes up as:
> <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" xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
> <soapenv:Header>
> <cwmp:ID soapenv:mustUnderstand="1">1234</cwmp:ID>
> </soapenv:Header>
> <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