[ 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