Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 24602 invoked from network); 5 Nov 2006 19:11:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Nov 2006 19:11:46 -0000 Received: (qmail 94075 invoked by uid 500); 5 Nov 2006 19:11:51 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 94028 invoked by uid 500); 5 Nov 2006 19:11:51 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 94017 invoked by uid 99); 5 Nov 2006 19:11:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Nov 2006 11:11:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Nov 2006 11:11:39 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1C0147142CE for ; Sun, 5 Nov 2006 11:11:17 -0800 (PST) Message-ID: <25731551.1162753877097.JavaMail.root@brutus> Date: Sun, 5 Nov 2006 11:11:17 -0800 (PST) From: "Robert Staerk (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-1606) RPCMessageReceiver creates array response in wrong XML namespace In-Reply-To: <20779520.1162725256500.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/AXIS2-1606?page=comments#action_12447310 ] Robert Staerk commented on AXIS2-1606: -------------------------------------- The problem occurs when I deploy the "Hello.wsdl" in webapps/axis2/WEB-INF/services/Hello/META-INF. Otherwise, with "services.xml" only in META-INF, the response is correct. > RPCMessageReceiver creates array response in wrong XML namespace > ---------------------------------------------------------------- > > Key: AXIS2-1606 > URL: http://issues.apache.org/jira/browse/AXIS2-1606 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: nightly > Environment: all environments > Reporter: Robert Staerk > Assigned To: Deepal Jayasinghe > Priority: Blocker > Attachments: Hello.java, Hello.wsdl, MyObject.java, services.xml, SoapResponse.xml > > > I get a SOAP response with the wrong XML namespace "http://org.apache.axis2/xsd" for a method that returns an array of objects. The namespace "http://org.apache.axis2/xsd", however is neither used in the project nor mentioned in the WSDL. In the example below, the namespace should be "http://service.mydomain.com/xsd". I am using org.apache.axis2.rpc.receivers.RPCMessageReceiver. > SOAP response: > > > > > > > Hello, > > > World! > > > > > Server.xml config: > > > The Hello web service. > > > > class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" /> > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" /> > > > > com.mydomain.service.Hello > > > Java classes: > package com.mydomain.service; > import java.rmi.RemoteException; > import com.mydomain.data.MyObject; > public class Hello { > > public MyObject[] sayHello() throws RemoteException { > return new MyObject[] { > new MyObject("Hello,"), > new MyObject("World!") > }; > } > > } > package com.mydomain.data; > public class MyObject { > private String text; > > public MyObject() { > // empty > } > > public MyObject(String text) { > super(); > this.text = text; > } > public String getText() { > return text; > } > public void setText(String text) { > this.text = text; > } > > > } > WSDL generated by org.apache.ws.java2wsdl.Java2WSDL: > xmlns:axis2 = "http://service.mydomain.com" > xmlns:soap12 = "http://schemas.xmlsoap.org/wsdl/soap12/" > xmlns:http = "http://schemas.xmlsoap.org/wsdl/http/" > xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/" > xmlns:ns = "http://service.mydomain.com/xsd" > xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/" > targetNamespace = "http://service.mydomain.com"> > > xmlns:xs = "http://www.w3.org/2001/XMLSchema" > xmlns:ax21 = "http://data.mydomain.com/xsd" > attributeFormDefault = "qualified" > elementFormDefault = "qualified" > targetNamespace = "http://data.mydomain.com/xsd"> > > > > name = "text" > nillable = "true" > type = "xs:string"/> > > > > xmlns:xs = "http://www.w3.org/2001/XMLSchema" > xmlns:ns0 = "http://data.mydomain.com/xsd" > attributeFormDefault = "qualified" > elementFormDefault = "qualified" > targetNamespace = "http://service.mydomain.com/xsd"> > > > > > > > > > > > maxOccurs = "unbounded" > name = "return" > nillable = "true" > type = "ns0:MyObject"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org