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 "Nikunj Trivedi (JIRA)" <ax...@ws.apache.org> on 2006/02/16 14:38:01 UTC
[jira] Created: (AXIS-2408) When returning array of complex type:
hot deployment does not work
When returning array of complex type: hot deployment does not work
------------------------------------------------------------------
Key: AXIS-2408
URL: http://issues.apache.org/jira/browse/AXIS-2408
Project: Apache Axis
Type: Bug
Components: Deployment / Registries
Versions: 1.3
Environment: Windows XP,Tomcat 5.5.15 or Tomcat 4.1
Reporter: Nikunj Trivedi
Hi All,
When I deploy a service on Axis1.3-Tomcat5.5.15 and try to access it by any Java client(axis or weblogic) it sends wrong SOAP response message.
1) However after restarting the server it works fine. Again redeploying will give above problem.
2) Pls note that it generates identical server-config.wsdd in both cases.
3) This also happens with Tomcat 4.1 server and any Java Client.
4) This happens only when the return type is array of Complex Type.
Here I am simply returing array of MyBean. The style is Document-wrapped.
----------------It should return following response---------------
<testResponse xmlns="http://nickstrivedi.com/MyService">
<testReturn xsi:type="ns1:MyBean" xmlns:ns1=" http://nickstrivedi.com/MyService">
<ns1:a>a</ns1:a>
<ns1:b>b</ns1:b>
<ns1:c>10</ns1:c>
</testReturn>
<testReturn xsi:type="ns2:MyBean" xmlns:ns2=" http://nickstrivedi.com/MyService">
<ns2:a>a</ns2:a>
<ns2:b>b</ns2:b>
<ns2:c>10</ns2:c>
</testReturn>
.....
---------------- But it returns following ------------------------
Wrapps testReturn with one more testReturn element.
<testResponse xmlns="http://nickstrivedi.com/MyService">
<testReturn>
<testReturn>
<a>a</a>
<b>b</b>
<c>10</c>
</testReturn>
<testReturn>
<a>a</a>
<b>b</b>
<c>10</c>
</testReturn>
.......
--------------------- Here is the WSDD file:------------------------------
<deployment
xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="MyService" provider="java:RPC" style="wrapped" use="literal">
<parameter name="wsdlTargetNamespace" value="http://nickstrivedi.com/MyService"/>
<parameter name="wsdlServiceElement" value="MyServiceService"/>
<parameter name="schemaQualified" value="http://nickstrivedi.com/MyService"/>
<parameter name="wsdlServicePort" value="MyService"/>
<parameter name="className" value="server.MyService"/>
<parameter name="wsdlPortType" value="MyService"/>
<parameter name="typeMappingVersion" value="1.2"/>
<operation name="test" qname="operNS:test" xmlns:operNS="http://nickstrivedi.com/MyService"
returnQName="retNS:testReturn" xmlns:retNS="http://nickstrivedi.com/MyService"
returnType="rtns:ListOfMyBean" xmlns:rtns="http://nickstrivedi.com/MyService"
soapAction="" >
</operation>
<parameter name="allowedMethods" value="test"/>
<parameter name="scope" value="Request"/>
<arrayMapping
xmlns:ns="http://nickstrivedi.com/MyService"
qname="ns:ListOfMyBean"
type="java:server.MyBean[]"
languageSpecificType="java:server.MyBean[]"
innerType="ns:MyBean"
encodingStyle=""
/>
<typeMapping
xmlns:ns="http://nickstrivedi.com/MyService"
qname="ns:MyBean"
type="java:server.MyBean"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
</service>
</deployment>
--------------Here is the generated WSDL--------------------
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://nickstrivedi.com/MyService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://nickstrivedi.com/MyService" xmlns:intf="http://nickstrivedi.com/MyService" xmlns:tns1="urn:http://nickstrivedi.com/MyService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)-->
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://nickstrivedi.com/MyService" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="urn:http://nickstrivedi.com/MyService"/>
<element name="test">
<complexType/>
</element>
<element name="testResponse">
<complexType>
<sequence>
<element maxOccurs="unbounded" name="testReturn" type="tns1:MyBean"/>
</sequence>
</complexType>
</element>
</schema>
<schema elementFormDefault="qualified" targetNamespace="urn:http://nickstrivedi.com/MyService" xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="MyBean">
<sequence>
<element name="a" nillable="true" type="xsd:string"/>
<element name="b" nillable="true" type="xsd:string"/>
<element name="c" type="xsd:int"/>
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="testRequest">
<wsdl:part element="impl:test" name="parameters"/>
</wsdl:message>
<wsdl:message name="testResponse">
<wsdl:part element="impl:testResponse" name="parameters"/>
</wsdl:message>
<wsdl:portType name="MyService">
<wsdl:operation name="test">
<wsdl:input message="impl:testRequest" name="testRequest"/>
<wsdl:output message="impl:testResponse" name="testResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="MyServiceSoapBinding" type="impl:MyService">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="test">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="testRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="testResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MyServiceService">
<wsdl:port binding="impl:MyServiceSoapBinding" name="MyService">
<wsdlsoap:address location="http://localhost:8080/axis/services/MyService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Regards
Nikunj
--
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-2408) When returning array of complex type:
hot deployment does not work
Posted by "Nikunj Trivedi (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2408?page=all ]
Nikunj Trivedi updated AXIS-2408:
---------------------------------
Attachment: soap_after_restart.txt
soap_before_restart.txt
SOAP Messages
> When returning array of complex type: hot deployment does not work
> ------------------------------------------------------------------
>
> Key: AXIS-2408
> URL: http://issues.apache.org/jira/browse/AXIS-2408
> Project: Apache Axis
> Type: Bug
> Components: Deployment / Registries
> Versions: 1.3
> Environment: Windows XP,Tomcat 5.5.15 or Tomcat 4.1
> Reporter: Nikunj Trivedi
> Attachments: client_bin.zip, client_src.zip, conf.zip, server_bin.zip, server_src.zip, soap_after_restart.txt, soap_before_restart.txt
>
> Hi All,
>
> When I deploy a service on Axis1.3-Tomcat5.5.15 and try to access it by any Java client(axis or weblogic) it sends wrong SOAP response message.
> 1) However after restarting the server it works fine. Again redeploying will give above problem.
> 2) Pls note that it generates identical server-config.wsdd in both cases.
> 3) This also happens with Tomcat 4.1 server and any Java Client.
> 4) This happens only when the return type is array of Complex Type.
>
> Here I am simply returing array of MyBean. The style is Document-wrapped.
>
> ----------------It should return following response---------------
> <testResponse xmlns="http://nickstrivedi.com/MyService">
> <testReturn xsi:type="ns1:MyBean" xmlns:ns1=" http://nickstrivedi.com/MyService">
> <ns1:a>a</ns1:a>
> <ns1:b>b</ns1:b>
> <ns1:c>10</ns1:c>
> </testReturn>
> <testReturn xsi:type="ns2:MyBean" xmlns:ns2=" http://nickstrivedi.com/MyService">
> <ns2:a>a</ns2:a>
> <ns2:b>b</ns2:b>
> <ns2:c>10</ns2:c>
> </testReturn>
> .....
> ---------------- But it returns following ------------------------
> Wrapps testReturn with one more testReturn element.
> <testResponse xmlns="http://nickstrivedi.com/MyService">
> <testReturn>
> <testReturn>
> <a>a</a>
> <b>b</b>
> <c>10</c>
> </testReturn>
> <testReturn>
> <a>a</a>
> <b>b</b>
> <c>10</c>
> </testReturn>
> .......
>
> --------------------- Here is the WSDD file:------------------------------
> <deployment
> xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> <service name="MyService" provider="java:RPC" style="wrapped" use="literal">
> <parameter name="wsdlTargetNamespace" value="http://nickstrivedi.com/MyService"/>
> <parameter name="wsdlServiceElement" value="MyServiceService"/>
> <parameter name="schemaQualified" value="http://nickstrivedi.com/MyService"/>
> <parameter name="wsdlServicePort" value="MyService"/>
> <parameter name="className" value="server.MyService"/>
> <parameter name="wsdlPortType" value="MyService"/>
> <parameter name="typeMappingVersion" value="1.2"/>
> <operation name="test" qname="operNS:test" xmlns:operNS="http://nickstrivedi.com/MyService"
> returnQName="retNS:testReturn" xmlns:retNS="http://nickstrivedi.com/MyService"
> returnType="rtns:ListOfMyBean" xmlns:rtns="http://nickstrivedi.com/MyService"
> soapAction="" >
> </operation>
> <parameter name="allowedMethods" value="test"/>
> <parameter name="scope" value="Request"/>
> <arrayMapping
> xmlns:ns="http://nickstrivedi.com/MyService"
> qname="ns:ListOfMyBean"
> type="java:server.MyBean[]"
> languageSpecificType="java:server.MyBean[]"
> innerType="ns:MyBean"
> encodingStyle=""
> />
> <typeMapping
> xmlns:ns="http://nickstrivedi.com/MyService"
> qname="ns:MyBean"
> type="java:server.MyBean"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle=""
> />
> </service>
> </deployment>
> --------------Here is the generated WSDL--------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://nickstrivedi.com/MyService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://nickstrivedi.com/MyService" xmlns:intf="http://nickstrivedi.com/MyService" xmlns:tns1="urn:http://nickstrivedi.com/MyService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.3
> Built on Oct 05, 2005 (05:23:37 EDT)-->
> <wsdl:types>
> <schema elementFormDefault="qualified" targetNamespace="http://nickstrivedi.com/MyService" xmlns="http://www.w3.org/2001/XMLSchema">
> <import namespace="urn:http://nickstrivedi.com/MyService"/>
> <element name="test">
> <complexType/>
> </element>
> <element name="testResponse">
> <complexType>
> <sequence>
> <element maxOccurs="unbounded" name="testReturn" type="tns1:MyBean"/>
> </sequence>
> </complexType>
> </element>
> </schema>
> <schema elementFormDefault="qualified" targetNamespace="urn:http://nickstrivedi.com/MyService" xmlns="http://www.w3.org/2001/XMLSchema">
> <complexType name="MyBean">
> <sequence>
> <element name="a" nillable="true" type="xsd:string"/>
> <element name="b" nillable="true" type="xsd:string"/>
> <element name="c" type="xsd:int"/>
> </sequence>
> </complexType>
> </schema>
> </wsdl:types>
> <wsdl:message name="testRequest">
> <wsdl:part element="impl:test" name="parameters"/>
> </wsdl:message>
> <wsdl:message name="testResponse">
> <wsdl:part element="impl:testResponse" name="parameters"/>
> </wsdl:message>
> <wsdl:portType name="MyService">
> <wsdl:operation name="test">
> <wsdl:input message="impl:testRequest" name="testRequest"/>
> <wsdl:output message="impl:testResponse" name="testResponse"/>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="MyServiceSoapBinding" type="impl:MyService">
> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="test">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="testRequest">
> <wsdlsoap:body use="literal"/>
> </wsdl:input>
> <wsdl:output name="testResponse">
> <wsdlsoap:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="MyServiceService">
> <wsdl:port binding="impl:MyServiceSoapBinding" name="MyService">
> <wsdlsoap:address location="http://localhost:8080/axis/services/MyService"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
> Regards
> Nikunj
--
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-2408) When returning array of complex type:
hot deployment does not work
Posted by "Nikunj Trivedi (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2408?page=all ]
Nikunj Trivedi updated AXIS-2408:
---------------------------------
Attachment: server_bin.zip
Server Classes
> When returning array of complex type: hot deployment does not work
> ------------------------------------------------------------------
>
> Key: AXIS-2408
> URL: http://issues.apache.org/jira/browse/AXIS-2408
> Project: Apache Axis
> Type: Bug
> Components: Deployment / Registries
> Versions: 1.3
> Environment: Windows XP,Tomcat 5.5.15 or Tomcat 4.1
> Reporter: Nikunj Trivedi
> Attachments: server_bin.zip, server_src.zip
>
> Hi All,
>
> When I deploy a service on Axis1.3-Tomcat5.5.15 and try to access it by any Java client(axis or weblogic) it sends wrong SOAP response message.
> 1) However after restarting the server it works fine. Again redeploying will give above problem.
> 2) Pls note that it generates identical server-config.wsdd in both cases.
> 3) This also happens with Tomcat 4.1 server and any Java Client.
> 4) This happens only when the return type is array of Complex Type.
>
> Here I am simply returing array of MyBean. The style is Document-wrapped.
>
> ----------------It should return following response---------------
> <testResponse xmlns="http://nickstrivedi.com/MyService">
> <testReturn xsi:type="ns1:MyBean" xmlns:ns1=" http://nickstrivedi.com/MyService">
> <ns1:a>a</ns1:a>
> <ns1:b>b</ns1:b>
> <ns1:c>10</ns1:c>
> </testReturn>
> <testReturn xsi:type="ns2:MyBean" xmlns:ns2=" http://nickstrivedi.com/MyService">
> <ns2:a>a</ns2:a>
> <ns2:b>b</ns2:b>
> <ns2:c>10</ns2:c>
> </testReturn>
> .....
> ---------------- But it returns following ------------------------
> Wrapps testReturn with one more testReturn element.
> <testResponse xmlns="http://nickstrivedi.com/MyService">
> <testReturn>
> <testReturn>
> <a>a</a>
> <b>b</b>
> <c>10</c>
> </testReturn>
> <testReturn>
> <a>a</a>
> <b>b</b>
> <c>10</c>
> </testReturn>
> .......
>
> --------------------- Here is the WSDD file:------------------------------
> <deployment
> xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> <service name="MyService" provider="java:RPC" style="wrapped" use="literal">
> <parameter name="wsdlTargetNamespace" value="http://nickstrivedi.com/MyService"/>
> <parameter name="wsdlServiceElement" value="MyServiceService"/>
> <parameter name="schemaQualified" value="http://nickstrivedi.com/MyService"/>
> <parameter name="wsdlServicePort" value="MyService"/>
> <parameter name="className" value="server.MyService"/>
> <parameter name="wsdlPortType" value="MyService"/>
> <parameter name="typeMappingVersion" value="1.2"/>
> <operation name="test" qname="operNS:test" xmlns:operNS="http://nickstrivedi.com/MyService"
> returnQName="retNS:testReturn" xmlns:retNS="http://nickstrivedi.com/MyService"
> returnType="rtns:ListOfMyBean" xmlns:rtns="http://nickstrivedi.com/MyService"
> soapAction="" >
> </operation>
> <parameter name="allowedMethods" value="test"/>
> <parameter name="scope" value="Request"/>
> <arrayMapping
> xmlns:ns="http://nickstrivedi.com/MyService"
> qname="ns:ListOfMyBean"
> type="java:server.MyBean[]"
> languageSpecificType="java:server.MyBean[]"
> innerType="ns:MyBean"
> encodingStyle=""
> />
> <typeMapping
> xmlns:ns="http://nickstrivedi.com/MyService"
> qname="ns:MyBean"
> type="java:server.MyBean"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle=""
> />
> </service>
> </deployment>
> --------------Here is the generated WSDL--------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://nickstrivedi.com/MyService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://nickstrivedi.com/MyService" xmlns:intf="http://nickstrivedi.com/MyService" xmlns:tns1="urn:http://nickstrivedi.com/MyService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.3
> Built on Oct 05, 2005 (05:23:37 EDT)-->
> <wsdl:types>
> <schema elementFormDefault="qualified" targetNamespace="http://nickstrivedi.com/MyService" xmlns="http://www.w3.org/2001/XMLSchema">
> <import namespace="urn:http://nickstrivedi.com/MyService"/>
> <element name="test">
> <complexType/>
> </element>
> <element name="testResponse">
> <complexType>
> <sequence>
> <element maxOccurs="unbounded" name="testReturn" type="tns1:MyBean"/>
> </sequence>
> </complexType>
> </element>
> </schema>
> <schema elementFormDefault="qualified" targetNamespace="urn:http://nickstrivedi.com/MyService" xmlns="http://www.w3.org/2001/XMLSchema">
> <complexType name="MyBean">
> <sequence>
> <element name="a" nillable="true" type="xsd:string"/>
> <element name="b" nillable="true" type="xsd:string"/>
> <element name="c" type="xsd:int"/>
> </sequence>
> </complexType>
> </schema>
> </wsdl:types>
> <wsdl:message name="testRequest">
> <wsdl:part element="impl:test" name="parameters"/>
> </wsdl:message>
> <wsdl:message name="testResponse">
> <wsdl:part element="impl:testResponse" name="parameters"/>
> </wsdl:message>
> <wsdl:portType name="MyService">
> <wsdl:operation name="test">
> <wsdl:input message="impl:testRequest" name="testRequest"/>
> <wsdl:output message="impl:testResponse" name="testResponse"/>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="MyServiceSoapBinding" type="impl:MyService">
> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="test">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="testRequest">
> <wsdlsoap:body use="literal"/>
> </wsdl:input>
> <wsdl:output name="testResponse">
> <wsdlsoap:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="MyServiceService">
> <wsdl:port binding="impl:MyServiceSoapBinding" name="MyService">
> <wsdlsoap:address location="http://localhost:8080/axis/services/MyService"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
> Regards
> Nikunj
--
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-2408) When returning array of complex type:
hot deployment does not work
Posted by "Nikunj Trivedi (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2408?page=all ]
Nikunj Trivedi updated AXIS-2408:
---------------------------------
Attachment: client_bin.zip
client_src.zip
Client Files
> When returning array of complex type: hot deployment does not work
> ------------------------------------------------------------------
>
> Key: AXIS-2408
> URL: http://issues.apache.org/jira/browse/AXIS-2408
> Project: Apache Axis
> Type: Bug
> Components: Deployment / Registries
> Versions: 1.3
> Environment: Windows XP,Tomcat 5.5.15 or Tomcat 4.1
> Reporter: Nikunj Trivedi
> Attachments: client_bin.zip, client_src.zip, conf.zip, server_bin.zip, server_src.zip
>
> Hi All,
>
> When I deploy a service on Axis1.3-Tomcat5.5.15 and try to access it by any Java client(axis or weblogic) it sends wrong SOAP response message.
> 1) However after restarting the server it works fine. Again redeploying will give above problem.
> 2) Pls note that it generates identical server-config.wsdd in both cases.
> 3) This also happens with Tomcat 4.1 server and any Java Client.
> 4) This happens only when the return type is array of Complex Type.
>
> Here I am simply returing array of MyBean. The style is Document-wrapped.
>
> ----------------It should return following response---------------
> <testResponse xmlns="http://nickstrivedi.com/MyService">
> <testReturn xsi:type="ns1:MyBean" xmlns:ns1=" http://nickstrivedi.com/MyService">
> <ns1:a>a</ns1:a>
> <ns1:b>b</ns1:b>
> <ns1:c>10</ns1:c>
> </testReturn>
> <testReturn xsi:type="ns2:MyBean" xmlns:ns2=" http://nickstrivedi.com/MyService">
> <ns2:a>a</ns2:a>
> <ns2:b>b</ns2:b>
> <ns2:c>10</ns2:c>
> </testReturn>
> .....
> ---------------- But it returns following ------------------------
> Wrapps testReturn with one more testReturn element.
> <testResponse xmlns="http://nickstrivedi.com/MyService">
> <testReturn>
> <testReturn>
> <a>a</a>
> <b>b</b>
> <c>10</c>
> </testReturn>
> <testReturn>
> <a>a</a>
> <b>b</b>
> <c>10</c>
> </testReturn>
> .......
>
> --------------------- Here is the WSDD file:------------------------------
> <deployment
> xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> <service name="MyService" provider="java:RPC" style="wrapped" use="literal">
> <parameter name="wsdlTargetNamespace" value="http://nickstrivedi.com/MyService"/>
> <parameter name="wsdlServiceElement" value="MyServiceService"/>
> <parameter name="schemaQualified" value="http://nickstrivedi.com/MyService"/>
> <parameter name="wsdlServicePort" value="MyService"/>
> <parameter name="className" value="server.MyService"/>
> <parameter name="wsdlPortType" value="MyService"/>
> <parameter name="typeMappingVersion" value="1.2"/>
> <operation name="test" qname="operNS:test" xmlns:operNS="http://nickstrivedi.com/MyService"
> returnQName="retNS:testReturn" xmlns:retNS="http://nickstrivedi.com/MyService"
> returnType="rtns:ListOfMyBean" xmlns:rtns="http://nickstrivedi.com/MyService"
> soapAction="" >
> </operation>
> <parameter name="allowedMethods" value="test"/>
> <parameter name="scope" value="Request"/>
> <arrayMapping
> xmlns:ns="http://nickstrivedi.com/MyService"
> qname="ns:ListOfMyBean"
> type="java:server.MyBean[]"
> languageSpecificType="java:server.MyBean[]"
> innerType="ns:MyBean"
> encodingStyle=""
> />
> <typeMapping
> xmlns:ns="http://nickstrivedi.com/MyService"
> qname="ns:MyBean"
> type="java:server.MyBean"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle=""
> />
> </service>
> </deployment>
> --------------Here is the generated WSDL--------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://nickstrivedi.com/MyService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://nickstrivedi.com/MyService" xmlns:intf="http://nickstrivedi.com/MyService" xmlns:tns1="urn:http://nickstrivedi.com/MyService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.3
> Built on Oct 05, 2005 (05:23:37 EDT)-->
> <wsdl:types>
> <schema elementFormDefault="qualified" targetNamespace="http://nickstrivedi.com/MyService" xmlns="http://www.w3.org/2001/XMLSchema">
> <import namespace="urn:http://nickstrivedi.com/MyService"/>
> <element name="test">
> <complexType/>
> </element>
> <element name="testResponse">
> <complexType>
> <sequence>
> <element maxOccurs="unbounded" name="testReturn" type="tns1:MyBean"/>
> </sequence>
> </complexType>
> </element>
> </schema>
> <schema elementFormDefault="qualified" targetNamespace="urn:http://nickstrivedi.com/MyService" xmlns="http://www.w3.org/2001/XMLSchema">
> <complexType name="MyBean">
> <sequence>
> <element name="a" nillable="true" type="xsd:string"/>
> <element name="b" nillable="true" type="xsd:string"/>
> <element name="c" type="xsd:int"/>
> </sequence>
> </complexType>
> </schema>
> </wsdl:types>
> <wsdl:message name="testRequest">
> <wsdl:part element="impl:test" name="parameters"/>
> </wsdl:message>
> <wsdl:message name="testResponse">
> <wsdl:part element="impl:testResponse" name="parameters"/>
> </wsdl:message>
> <wsdl:portType name="MyService">
> <wsdl:operation name="test">
> <wsdl:input message="impl:testRequest" name="testRequest"/>
> <wsdl:output message="impl:testResponse" name="testResponse"/>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="MyServiceSoapBinding" type="impl:MyService">
> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="test">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="testRequest">
> <wsdlsoap:body use="literal"/>
> </wsdl:input>
> <wsdl:output name="testResponse">
> <wsdlsoap:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="MyServiceService">
> <wsdl:port binding="impl:MyServiceSoapBinding" name="MyService">
> <wsdlsoap:address location="http://localhost:8080/axis/services/MyService"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
> Regards
> Nikunj
--
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-2408) When returning array of complex type:
hot deployment does not work
Posted by "Nikunj Trivedi (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2408?page=all ]
Nikunj Trivedi updated AXIS-2408:
---------------------------------
Attachment: conf.zip
WSDD and WSDL
> When returning array of complex type: hot deployment does not work
> ------------------------------------------------------------------
>
> Key: AXIS-2408
> URL: http://issues.apache.org/jira/browse/AXIS-2408
> Project: Apache Axis
> Type: Bug
> Components: Deployment / Registries
> Versions: 1.3
> Environment: Windows XP,Tomcat 5.5.15 or Tomcat 4.1
> Reporter: Nikunj Trivedi
> Attachments: client_bin.zip, client_src.zip, conf.zip, server_bin.zip, server_src.zip
>
> Hi All,
>
> When I deploy a service on Axis1.3-Tomcat5.5.15 and try to access it by any Java client(axis or weblogic) it sends wrong SOAP response message.
> 1) However after restarting the server it works fine. Again redeploying will give above problem.
> 2) Pls note that it generates identical server-config.wsdd in both cases.
> 3) This also happens with Tomcat 4.1 server and any Java Client.
> 4) This happens only when the return type is array of Complex Type.
>
> Here I am simply returing array of MyBean. The style is Document-wrapped.
>
> ----------------It should return following response---------------
> <testResponse xmlns="http://nickstrivedi.com/MyService">
> <testReturn xsi:type="ns1:MyBean" xmlns:ns1=" http://nickstrivedi.com/MyService">
> <ns1:a>a</ns1:a>
> <ns1:b>b</ns1:b>
> <ns1:c>10</ns1:c>
> </testReturn>
> <testReturn xsi:type="ns2:MyBean" xmlns:ns2=" http://nickstrivedi.com/MyService">
> <ns2:a>a</ns2:a>
> <ns2:b>b</ns2:b>
> <ns2:c>10</ns2:c>
> </testReturn>
> .....
> ---------------- But it returns following ------------------------
> Wrapps testReturn with one more testReturn element.
> <testResponse xmlns="http://nickstrivedi.com/MyService">
> <testReturn>
> <testReturn>
> <a>a</a>
> <b>b</b>
> <c>10</c>
> </testReturn>
> <testReturn>
> <a>a</a>
> <b>b</b>
> <c>10</c>
> </testReturn>
> .......
>
> --------------------- Here is the WSDD file:------------------------------
> <deployment
> xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> <service name="MyService" provider="java:RPC" style="wrapped" use="literal">
> <parameter name="wsdlTargetNamespace" value="http://nickstrivedi.com/MyService"/>
> <parameter name="wsdlServiceElement" value="MyServiceService"/>
> <parameter name="schemaQualified" value="http://nickstrivedi.com/MyService"/>
> <parameter name="wsdlServicePort" value="MyService"/>
> <parameter name="className" value="server.MyService"/>
> <parameter name="wsdlPortType" value="MyService"/>
> <parameter name="typeMappingVersion" value="1.2"/>
> <operation name="test" qname="operNS:test" xmlns:operNS="http://nickstrivedi.com/MyService"
> returnQName="retNS:testReturn" xmlns:retNS="http://nickstrivedi.com/MyService"
> returnType="rtns:ListOfMyBean" xmlns:rtns="http://nickstrivedi.com/MyService"
> soapAction="" >
> </operation>
> <parameter name="allowedMethods" value="test"/>
> <parameter name="scope" value="Request"/>
> <arrayMapping
> xmlns:ns="http://nickstrivedi.com/MyService"
> qname="ns:ListOfMyBean"
> type="java:server.MyBean[]"
> languageSpecificType="java:server.MyBean[]"
> innerType="ns:MyBean"
> encodingStyle=""
> />
> <typeMapping
> xmlns:ns="http://nickstrivedi.com/MyService"
> qname="ns:MyBean"
> type="java:server.MyBean"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle=""
> />
> </service>
> </deployment>
> --------------Here is the generated WSDL--------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://nickstrivedi.com/MyService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://nickstrivedi.com/MyService" xmlns:intf="http://nickstrivedi.com/MyService" xmlns:tns1="urn:http://nickstrivedi.com/MyService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.3
> Built on Oct 05, 2005 (05:23:37 EDT)-->
> <wsdl:types>
> <schema elementFormDefault="qualified" targetNamespace="http://nickstrivedi.com/MyService" xmlns="http://www.w3.org/2001/XMLSchema">
> <import namespace="urn:http://nickstrivedi.com/MyService"/>
> <element name="test">
> <complexType/>
> </element>
> <element name="testResponse">
> <complexType>
> <sequence>
> <element maxOccurs="unbounded" name="testReturn" type="tns1:MyBean"/>
> </sequence>
> </complexType>
> </element>
> </schema>
> <schema elementFormDefault="qualified" targetNamespace="urn:http://nickstrivedi.com/MyService" xmlns="http://www.w3.org/2001/XMLSchema">
> <complexType name="MyBean">
> <sequence>
> <element name="a" nillable="true" type="xsd:string"/>
> <element name="b" nillable="true" type="xsd:string"/>
> <element name="c" type="xsd:int"/>
> </sequence>
> </complexType>
> </schema>
> </wsdl:types>
> <wsdl:message name="testRequest">
> <wsdl:part element="impl:test" name="parameters"/>
> </wsdl:message>
> <wsdl:message name="testResponse">
> <wsdl:part element="impl:testResponse" name="parameters"/>
> </wsdl:message>
> <wsdl:portType name="MyService">
> <wsdl:operation name="test">
> <wsdl:input message="impl:testRequest" name="testRequest"/>
> <wsdl:output message="impl:testResponse" name="testResponse"/>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="MyServiceSoapBinding" type="impl:MyService">
> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="test">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="testRequest">
> <wsdlsoap:body use="literal"/>
> </wsdl:input>
> <wsdl:output name="testResponse">
> <wsdlsoap:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="MyServiceService">
> <wsdl:port binding="impl:MyServiceSoapBinding" name="MyService">
> <wsdlsoap:address location="http://localhost:8080/axis/services/MyService"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
> Regards
> Nikunj
--
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-2408) When returning array of complex type:
hot deployment does not work
Posted by "Nikunj Trivedi (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2408?page=all ]
Nikunj Trivedi updated AXIS-2408:
---------------------------------
Attachment: server_src.zip
Server Source Java Files
> When returning array of complex type: hot deployment does not work
> ------------------------------------------------------------------
>
> Key: AXIS-2408
> URL: http://issues.apache.org/jira/browse/AXIS-2408
> Project: Apache Axis
> Type: Bug
> Components: Deployment / Registries
> Versions: 1.3
> Environment: Windows XP,Tomcat 5.5.15 or Tomcat 4.1
> Reporter: Nikunj Trivedi
> Attachments: server_bin.zip, server_src.zip
>
> Hi All,
>
> When I deploy a service on Axis1.3-Tomcat5.5.15 and try to access it by any Java client(axis or weblogic) it sends wrong SOAP response message.
> 1) However after restarting the server it works fine. Again redeploying will give above problem.
> 2) Pls note that it generates identical server-config.wsdd in both cases.
> 3) This also happens with Tomcat 4.1 server and any Java Client.
> 4) This happens only when the return type is array of Complex Type.
>
> Here I am simply returing array of MyBean. The style is Document-wrapped.
>
> ----------------It should return following response---------------
> <testResponse xmlns="http://nickstrivedi.com/MyService">
> <testReturn xsi:type="ns1:MyBean" xmlns:ns1=" http://nickstrivedi.com/MyService">
> <ns1:a>a</ns1:a>
> <ns1:b>b</ns1:b>
> <ns1:c>10</ns1:c>
> </testReturn>
> <testReturn xsi:type="ns2:MyBean" xmlns:ns2=" http://nickstrivedi.com/MyService">
> <ns2:a>a</ns2:a>
> <ns2:b>b</ns2:b>
> <ns2:c>10</ns2:c>
> </testReturn>
> .....
> ---------------- But it returns following ------------------------
> Wrapps testReturn with one more testReturn element.
> <testResponse xmlns="http://nickstrivedi.com/MyService">
> <testReturn>
> <testReturn>
> <a>a</a>
> <b>b</b>
> <c>10</c>
> </testReturn>
> <testReturn>
> <a>a</a>
> <b>b</b>
> <c>10</c>
> </testReturn>
> .......
>
> --------------------- Here is the WSDD file:------------------------------
> <deployment
> xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
> <service name="MyService" provider="java:RPC" style="wrapped" use="literal">
> <parameter name="wsdlTargetNamespace" value="http://nickstrivedi.com/MyService"/>
> <parameter name="wsdlServiceElement" value="MyServiceService"/>
> <parameter name="schemaQualified" value="http://nickstrivedi.com/MyService"/>
> <parameter name="wsdlServicePort" value="MyService"/>
> <parameter name="className" value="server.MyService"/>
> <parameter name="wsdlPortType" value="MyService"/>
> <parameter name="typeMappingVersion" value="1.2"/>
> <operation name="test" qname="operNS:test" xmlns:operNS="http://nickstrivedi.com/MyService"
> returnQName="retNS:testReturn" xmlns:retNS="http://nickstrivedi.com/MyService"
> returnType="rtns:ListOfMyBean" xmlns:rtns="http://nickstrivedi.com/MyService"
> soapAction="" >
> </operation>
> <parameter name="allowedMethods" value="test"/>
> <parameter name="scope" value="Request"/>
> <arrayMapping
> xmlns:ns="http://nickstrivedi.com/MyService"
> qname="ns:ListOfMyBean"
> type="java:server.MyBean[]"
> languageSpecificType="java:server.MyBean[]"
> innerType="ns:MyBean"
> encodingStyle=""
> />
> <typeMapping
> xmlns:ns="http://nickstrivedi.com/MyService"
> qname="ns:MyBean"
> type="java:server.MyBean"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle=""
> />
> </service>
> </deployment>
> --------------Here is the generated WSDL--------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://nickstrivedi.com/MyService" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://nickstrivedi.com/MyService" xmlns:intf="http://nickstrivedi.com/MyService" xmlns:tns1="urn:http://nickstrivedi.com/MyService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <!--WSDL created by Apache Axis version: 1.3
> Built on Oct 05, 2005 (05:23:37 EDT)-->
> <wsdl:types>
> <schema elementFormDefault="qualified" targetNamespace="http://nickstrivedi.com/MyService" xmlns="http://www.w3.org/2001/XMLSchema">
> <import namespace="urn:http://nickstrivedi.com/MyService"/>
> <element name="test">
> <complexType/>
> </element>
> <element name="testResponse">
> <complexType>
> <sequence>
> <element maxOccurs="unbounded" name="testReturn" type="tns1:MyBean"/>
> </sequence>
> </complexType>
> </element>
> </schema>
> <schema elementFormDefault="qualified" targetNamespace="urn:http://nickstrivedi.com/MyService" xmlns="http://www.w3.org/2001/XMLSchema">
> <complexType name="MyBean">
> <sequence>
> <element name="a" nillable="true" type="xsd:string"/>
> <element name="b" nillable="true" type="xsd:string"/>
> <element name="c" type="xsd:int"/>
> </sequence>
> </complexType>
> </schema>
> </wsdl:types>
> <wsdl:message name="testRequest">
> <wsdl:part element="impl:test" name="parameters"/>
> </wsdl:message>
> <wsdl:message name="testResponse">
> <wsdl:part element="impl:testResponse" name="parameters"/>
> </wsdl:message>
> <wsdl:portType name="MyService">
> <wsdl:operation name="test">
> <wsdl:input message="impl:testRequest" name="testRequest"/>
> <wsdl:output message="impl:testResponse" name="testResponse"/>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="MyServiceSoapBinding" type="impl:MyService">
> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="test">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="testRequest">
> <wsdlsoap:body use="literal"/>
> </wsdl:input>
> <wsdl:output name="testResponse">
> <wsdlsoap:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="MyServiceService">
> <wsdl:port binding="impl:MyServiceSoapBinding" name="MyService">
> <wsdlsoap:address location="http://localhost:8080/axis/services/MyService"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
> Regards
> Nikunj
--
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