Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 95347 invoked from network); 7 Feb 2007 10:29:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2007 10:29:29 -0000 Received: (qmail 94070 invoked by uid 500); 7 Feb 2007 10:29:35 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 93380 invoked by uid 500); 7 Feb 2007 10:29:33 -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 93369 invoked by uid 99); 7 Feb 2007 10:29:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2007 02:29:33 -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; Wed, 07 Feb 2007 02:29:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 928487142BF for ; Wed, 7 Feb 2007 02:29:05 -0800 (PST) Message-ID: <22228520.1170844145570.JavaMail.jira@brutus> Date: Wed, 7 Feb 2007 02:29:05 -0800 (PST) From: "Deepal Jayasinghe (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (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 [ https://issues.apache.org/jira/browse/AXIS2-1606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Deepal Jayasinghe resolved AXIS2-1606. -------------------------------------- Resolution: Fixed applied the patch. - pls chcek and confirm whether it works for you. > RPCMessageReceiver creates array response in wrong XML namespace > ---------------------------------------------------------------- > > Key: AXIS2-1606 > URL: https://issues.apache.org/jira/browse/AXIS2-1606 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: rpc > Affects Versions: nightly > Environment: all environments > Reporter: Robert Staerk > Assigned To: Deepal Jayasinghe > Attachments: AXIS2-1606.patch, Hello.aar, 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. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org