Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 28987 invoked from network); 31 Mar 2006 07:39:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Mar 2006 07:39:54 -0000 Received: (qmail 36997 invoked by uid 500); 31 Mar 2006 07:39:50 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 36965 invoked by uid 500); 31 Mar 2006 07:39:50 -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 36954 invoked by uid 99); 31 Mar 2006 07:39:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Mar 2006 23:39:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Mar 2006 23:39:49 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 5277E6ACB6 for ; Fri, 31 Mar 2006 08:39:28 +0100 (BST) Message-ID: <1556048827.1143790768334.JavaMail.jira@ajax> Date: Fri, 31 Mar 2006 08:39:28 +0100 (BST) From: "Alexander Vaagan (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS-2449) Axis does not supply correct namespace in SOAP message In-Reply-To: <896428513.1143531036820.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS-2449?page=3Dall ] Alexander Vaagan updated AXIS-2449: ----------------------------------- Attachment: SampleWS.wsdl Hi. Thanks for looking in to this problem. It's a real showstopper for me sinse= a lot of the consumers of the services I write are .NET. The WSDL file I attached is not the exact same one that I used in my previo= us post, but it has the same problem. As far as I can see, unless the WebService and the data objects are in the same namespace, Axis = will always get this wrong. I downloaded the latest CVS snapshot and it has the same problem. /alex > Axis does not supply correct namespace in SOAP message > ------------------------------------------------------ > > Key: AXIS-2449 > URL: http://issues.apache.org/jira/browse/AXIS-2449 > Project: Apache Axis > Type: Bug > Components: Basic Architecture, Serialization/Deserialization > Environment: Windows XP, JBoss 4.0.3 > Reporter: Alexander Vaagan > Attachments: SampleWS.wsdl > > Hi. > I have a WebService running on axis and are trying to consume it from a .= NET (C#) client, but all I get back is NULL values. > I have search both this mailing list and others and I can see that I am n= ot the only one having this problem, but I can't seem to find a real fix to= the problem. > Some people says I should manually edit the wsdl file and some mean I sho= uld manualy edit the .NET proxy, but I don't like either solution sinse it = fixes the > symptom not the real problem.=20 > The service takes a complex type and an int as input and returns =C3=A5 c= omplex type. > In the .wsdd file I have adden a beanMapping that looks like this: > =09=09 =09=09=09xmlns:bedriftws=3D"http://data.foo.bar.company" > =09=09=09qname=3D"companyws:FoobarDO"=20 > =09=09=09languageSpecificType=3D"java:company.bar.foo.data.FoobarDO" > =09=09/> > which puts the type in the http://data.foo.bar.company namespace.=20 > The default namespace is http://foo.bar.company namespace. > The wsdl file is automatically generated from axis like this: http://host= name/webapp/services/FoobarWS?wsdl > The schema definition of the returned object in the wsdl looks like this:= (The extension base i found in the "http://framework.company" namespace) > = =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 > To me it looks like it's located in the correkt namespace as defines in t= he beanMapping in the wsdd file. > The problem is that axis does not send the response in the correkt namesp= ace: > Eg. Soap response from axis: > > > > > > > Viskom testing testing testing > > > > > Here the .NET client clearly is trying to find objects and values in the = wrong namespace. The wsdl says it's in http://data.foo.bar.company and axis= sends it in http://foo.bar.company > I have deployed the same app on a Websphere server (without axis) and thi= s works fine. The return message from Websphere looks like this: > > > > > > > > Viskom te= sting testing testing > > > > > Here the correkt namespace is supplied and the .NET client can read and d= eserialize it correctly. > Axis version: Implementation-Version: 1.3 2244 October 5 2005 > Java version: java full version "1.4.2_08-b03" --=20 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