[jira] Updated: (AXIS2-1129) Doubled wrapper elements around XMLBeans-generated XML

2006-09-11 Thread Davanum Srinivas (JIRA)
 [ http://issues.apache.org/jira/browse/AXIS2-1129?page=all ]

Davanum Srinivas updated AXIS2-1129:


Priority: Blocker  (was: Major)

this is indeed a blocker.

> Doubled wrapper elements around XMLBeans-generated XML
> --
>
> Key: AXIS2-1129
> URL: http://issues.apache.org/jira/browse/AXIS2-1129
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Bug
>  Components: core, om, wsdl, client-api, databinding
>Affects Versions: 1.0
>Reporter: Derek Foster
>Priority: Blocker
>
> I recently noticed a big problem in how Axis2 generates XML for  XMLBeans 
> objects. It appears to be creating the wrapper element around
> an XMLBean twice, thus generating erroneous XML for a SOAP message. This 
> appears to be a big problem that would affect a lot of web services, and is 
> making it impossible for my company to use Axis2 to talk to our server.
> This error was found in the latest nightly build (September 8), but has 
> apparently been around for some time.
> I have a particular WSDL, as follows:
> 
> targetNamespace="http://www.c-corp.com/wsdl/2004-10-01/F";
>xmlns:tns="http://www.c-corp.com/wsdl/2004-10-01/F";
>xmlns:c="http://www.c-corp.com/wsdl/2004-10-01/c";
>xmlns:F="http://www.dummy-temp-address";
>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>xmlns:xs="http://www.w3.org/2001/XMLSchema";
>xmlns="http://schemas.xmlsoap.org/wsdl/";>
>
>   http://www.c-corp.com/wsdl/2004-10-01/F";>
>  http://www.dummy-temp-address"; 
> schemaLocation="F.xsd"/>
>  
>  
>   
>   http://www.c-corp.com/wsdl/2004-10-01/c";>
>  
>  
>   
>
>
>   
>
>
>   
>
>
>   
>
>
>   
>
>
>   
>
>
>   F Port Type
>   
>  
>  
>  
>   
>
>
>   F Soap Binding
>transport="http://schemas.xmlsoap.org/soap/http"/>
>   
>  
>  
> 
>  use="literal"/>
> 
>  
>  
> 
>  
>  
> 
>  
>   
>
>
>   F Web Service
>   
>   location="http://localhost:8080/axis/services/FService"/>
>   
>
> 
> My WSDL references the following XML schema:
> 
> http://www.dummy-temp-address";
>xmlns="http://www.dummy-temp-address";
>xmlns:xs="http://www.w3.org/2001/XMLSchema";
>xmlns:c="http://www.c-corp.com/schemas/c/schema_annotation";
>elementFormDefault="unqualified"
>attributeFormDefault="unqualified"
>version="DRAFT">
>
>
>   
>  
>  
>  
>   
>
>
>   
>  
>   
>
>
>   
>  
>  
>  
>   
>
> 
> After running WSDL2Java to generate the appropriate classes, I am using the 
> following code to generate and transmit a client message to my SOAP server:
>protected ReturnDocument executeTest (
>   final String targetEndpoint,
>   final CLoginDocument login,
>   final CPasswordDocument password )
>   throws Exception
>{
>   final FServiceStub service = new FServiceStub( null, targetEndpoint );
>   final Options options = service._getServiceClient().getOptions();
>   options.setProperty( 
> org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE );
>   service._getServiceClient().setOptions( options );
>   final FullDocument full = Full.Factory.newInstance();
>   full.setFull( getSituation() );
>   return service.acceptFEvent( full, login, password );
>}
>private Full getSituation ()
>   throws XmlException
>{
>   return Full.Factory.parse(
>  "   http://www.dummy-temp-address\";>\n" +
> "  \n" +
> ... and so forth: see output for the rest of this string ...
> "  \n" +
> "   \n" );
>}
> When I execute the above code, I get the following message sent to my server:
> POST /axis2/services/FService HTTP/1.1
> SOAPAction: acceptFEventAction
> User-Agent: Axis2
> Host: 127.0.0.1
> Content-Length: 8785
> Content-Type: text/xml; charset=UTF-8
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>  
> xmlns="http://www.c-corp.com/wsdl/2004-10-01/c";>admin  xmlns="http://www.dummy-temp-address";>
>   
>  
> QSenderOrganizationID
> QSenderCenterID
>  
>  1
>  435
>  
> 20040625
> 201225
> -0400
>  
>  
> 20040625
> 221222
> -0400
>  
>   
>   
>  1234
>  1
>   
>   
>  
>   

[jira] Updated: (AXIS2-1129) Doubled wrapper elements around XMLBeans-generated XML

2006-09-11 Thread Eran Chinthaka (JIRA)
 [ http://issues.apache.org/jira/browse/AXIS2-1129?page=all ]

Eran Chinthaka updated AXIS2-1129:
--

Priority: Major  (was: Blocker)

Reducing the priority of this issue as Ajith had given an answer on this. 

BTW, since we are getting ready for the next release please make sure you mark 
the priorities of the issues sensibly. We have a policy to fix all the blockers 
before a release, but that doesn't mean everyone should make the JIRA issues 
which they have an interest on as blockers. A kind and humble request and hope 
everyone will act with a responsibility. 

> Doubled wrapper elements around XMLBeans-generated XML
> --
>
> Key: AXIS2-1129
> URL: http://issues.apache.org/jira/browse/AXIS2-1129
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Bug
>  Components: om, core, databinding, client-api, wsdl
>Affects Versions: 1.0
>Reporter: Derek Foster
>
> I recently noticed a big problem in how Axis2 generates XML for  XMLBeans 
> objects. It appears to be creating the wrapper element around
> an XMLBean twice, thus generating erroneous XML for a SOAP message. This 
> appears to be a big problem that would affect a lot of web services, and is 
> making it impossible for my company to use Axis2 to talk to our server.
> This error was found in the latest nightly build (September 8), but has 
> apparently been around for some time.
> I have a particular WSDL, as follows:
> 
> targetNamespace="http://www.c-corp.com/wsdl/2004-10-01/F";
>xmlns:tns="http://www.c-corp.com/wsdl/2004-10-01/F";
>xmlns:c="http://www.c-corp.com/wsdl/2004-10-01/c";
>xmlns:F="http://www.dummy-temp-address";
>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>xmlns:xs="http://www.w3.org/2001/XMLSchema";
>xmlns="http://schemas.xmlsoap.org/wsdl/";>
>
>   http://www.c-corp.com/wsdl/2004-10-01/F";>
>  http://www.dummy-temp-address"; 
> schemaLocation="F.xsd"/>
>  
>  
>   
>   http://www.c-corp.com/wsdl/2004-10-01/c";>
>  
>  
>   
>
>
>   
>
>
>   
>
>
>   
>
>
>   
>
>
>   
>
>
>   F Port Type
>   
>  
>  
>  
>   
>
>
>   F Soap Binding
>transport="http://schemas.xmlsoap.org/soap/http"/>
>   
>  
>  
> 
>  use="literal"/>
> 
>  
>  
> 
>  
>  
> 
>  
>   
>
>
>   F Web Service
>   
>   location="http://localhost:8080/axis/services/FService"/>
>   
>
> 
> My WSDL references the following XML schema:
> 
> http://www.dummy-temp-address";
>xmlns="http://www.dummy-temp-address";
>xmlns:xs="http://www.w3.org/2001/XMLSchema";
>xmlns:c="http://www.c-corp.com/schemas/c/schema_annotation";
>elementFormDefault="unqualified"
>attributeFormDefault="unqualified"
>version="DRAFT">
>
>
>   
>  
>  
>  
>   
>
>
>   
>  
>   
>
>
>   
>  
>  
>  
>   
>
> 
> After running WSDL2Java to generate the appropriate classes, I am using the 
> following code to generate and transmit a client message to my SOAP server:
>protected ReturnDocument executeTest (
>   final String targetEndpoint,
>   final CLoginDocument login,
>   final CPasswordDocument password )
>   throws Exception
>{
>   final FServiceStub service = new FServiceStub( null, targetEndpoint );
>   final Options options = service._getServiceClient().getOptions();
>   options.setProperty( 
> org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE );
>   service._getServiceClient().setOptions( options );
>   final FullDocument full = Full.Factory.newInstance();
>   full.setFull( getSituation() );
>   return service.acceptFEvent( full, login, password );
>}
>private Full getSituation ()
>   throws XmlException
>{
>   return Full.Factory.parse(
>  "   http://www.dummy-temp-address\";>\n" +
> "  \n" +
> ... and so forth: see output for the rest of this string ...
> "  \n" +
> "   \n" );
>}
> When I execute the above code, I get the following message sent to my server:
> POST /axis2/services/FService HTTP/1.1
> SOAPAction: acceptFEventAction
> User-Agent: Axis2
> Host: 127.0.0.1
> Content-Length: 8785
> Content-Type: text/xml; charset=UTF-8
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>  
> xmlns="http://www.c-corp.com/wsdl/2004-10-01/c";>admin  xmlns="http://www.dummy-temp-address";>
>   
>  

[jira] Updated: (AXIS2-1129) Doubled wrapper elements around XMLBeans-generated XML

2006-09-08 Thread Davanum Srinivas (JIRA)
 [ http://issues.apache.org/jira/browse/AXIS2-1129?page=all ]

Davanum Srinivas updated AXIS2-1129:


Priority: Blocker  (was: Critical)

> Doubled wrapper elements around XMLBeans-generated XML
> --
>
> Key: AXIS2-1129
> URL: http://issues.apache.org/jira/browse/AXIS2-1129
> Project: Apache Axis 2.0 (Axis2)
>  Issue Type: Bug
>  Components: core, om, wsdl, client-api, databinding
>Affects Versions: 1.0
>Reporter: Derek Foster
>Priority: Blocker
>
> I recently noticed a big problem in how Axis2 generates XML for  XMLBeans 
> objects. It appears to be creating the wrapper element around
> an XMLBean twice, thus generating erroneous XML for a SOAP message. This 
> appears to be a big problem that would affect a lot of web services, and is 
> making it impossible for my company to use Axis2 to talk to our server.
> This error was found in the latest nightly build (September 8), but has 
> apparently been around for some time.
> I have a particular WSDL, as follows:
> 
> targetNamespace="http://www.c-corp.com/wsdl/2004-10-01/F";
>xmlns:tns="http://www.c-corp.com/wsdl/2004-10-01/F";
>xmlns:c="http://www.c-corp.com/wsdl/2004-10-01/c";
>xmlns:F="http://www.dummy-temp-address";
>xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>xmlns:xs="http://www.w3.org/2001/XMLSchema";
>xmlns="http://schemas.xmlsoap.org/wsdl/";>
>
>   http://www.c-corp.com/wsdl/2004-10-01/F";>
>  http://www.dummy-temp-address"; 
> schemaLocation="F.xsd"/>
>  
>  
>   
>   http://www.c-corp.com/wsdl/2004-10-01/c";>
>  
>  
>   
>
>
>   
>
>
>   
>
>
>   
>
>
>   
>
>
>   
>
>
>   F Port Type
>   
>  
>  
>  
>   
>
>
>   F Soap Binding
>transport="http://schemas.xmlsoap.org/soap/http"/>
>   
>  
>  
> 
>  use="literal"/>
> 
>  
>  
> 
>  
>  
> 
>  
>   
>
>
>   F Web Service
>   
>   location="http://localhost:8080/axis/services/FService"/>
>   
>
> 
> My WSDL references the following XML schema:
> 
> http://www.dummy-temp-address";
>xmlns="http://www.dummy-temp-address";
>xmlns:xs="http://www.w3.org/2001/XMLSchema";
>xmlns:c="http://www.c-corp.com/schemas/c/schema_annotation";
>elementFormDefault="unqualified"
>attributeFormDefault="unqualified"
>version="DRAFT">
>
>
>   
>  
>  
>  
>   
>
>
>   
>  
>   
>
>
>   
>  
>  
>  
>   
>
> 
> After running WSDL2Java to generate the appropriate classes, I am using the 
> following code to generate and transmit a client message to my SOAP server:
>protected ReturnDocument executeTest (
>   final String targetEndpoint,
>   final CLoginDocument login,
>   final CPasswordDocument password )
>   throws Exception
>{
>   final FServiceStub service = new FServiceStub( null, targetEndpoint );
>   final Options options = service._getServiceClient().getOptions();
>   options.setProperty( 
> org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE );
>   service._getServiceClient().setOptions( options );
>   final FullDocument full = Full.Factory.newInstance();
>   full.setFull( getSituation() );
>   return service.acceptFEvent( full, login, password );
>}
>private Full getSituation ()
>   throws XmlException
>{
>   return Full.Factory.parse(
>  "   http://www.dummy-temp-address\";>\n" +
> "  \n" +
> ... and so forth: see output for the rest of this string ...
> "  \n" +
> "   \n" );
>}
> When I execute the above code, I get the following message sent to my server:
> POST /axis2/services/FService HTTP/1.1
> SOAPAction: acceptFEventAction
> User-Agent: Axis2
> Host: 127.0.0.1
> Content-Length: 8785
> Content-Type: text/xml; charset=UTF-8
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>  
> xmlns="http://www.c-corp.com/wsdl/2004-10-01/c";>admin  xmlns="http://www.dummy-temp-address";>
>   
>  
> QSenderOrganizationID
> QSenderCenterID
>  
>  1
>  435
>  
> 20040625
> 201225
> -0400
>  
>  
> 20040625
> 221222
> -0400
>  
>   
>   
>  1234
>  1
>   
>   
>  
> 4
>  
>