Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 4955 invoked from network); 3 Jul 2007 13:05:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2007 13:05:35 -0000 Received: (qmail 72337 invoked by uid 500); 3 Jul 2007 13:05:27 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 72320 invoked by uid 500); 3 Jul 2007 13:05:27 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 72309 invoked by uid 99); 3 Jul 2007 13:05:27 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 06:05:27 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of nakories@gmail.com designates 64.233.184.236 as permitted sender) Received: from [64.233.184.236] (HELO wr-out-0506.google.com) (64.233.184.236) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 06:05:24 -0700 Received: by wr-out-0506.google.com with SMTP id i22so1193662wra for ; Tue, 03 Jul 2007 06:05:03 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=htZtNxjtZnrsDiETKNdIgavNQKLil8Sr2XdjrRiWD8ZLh+YfTZ9hXK5mVuAHl9Q/4gb+KgZl83sw+gQBfZdtOOoRdExHzRXkd7gyFbIV3L+tI6kSO/h5ilHLjEZ5Qsq6Y1aOqVAB0/06Lf37ZuWD5X33bwFXibd1ljeM845CY4g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=PV59QvLIBmztyhFyTF0KlK7q6LUEu0c372BLTg15bi2hdmVME71s3qy6sBjcrs3VIt5NK9EsTFcPUtDCalT5bBY/UQkO94gxpHdLTfzzFjRLkayjyzMcJEgi9JmXnYA9DMADbiHuSzMeIybUTxNfw3cP+3ilopdK3ejyWTFwStc= Received: by 10.90.120.13 with SMTP id s13mr5997447agc.1183467902822; Tue, 03 Jul 2007 06:05:02 -0700 (PDT) Received: by 10.90.97.19 with HTTP; Tue, 3 Jul 2007 06:05:02 -0700 (PDT) Message-ID: <52b1c2ed0707030605i1042eaew6231350a0e1ab15a@mail.gmail.com> Date: Tue, 3 Jul 2007 14:05:02 +0100 From: "Alex Craddock" To: axis-user@ws.apache.org Subject: [Axis2] Problems with addinf prefix's to attributes, or removing them from headers MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_85110_23853709.1183467902804" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_85110_23853709.1183467902804 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, In the following xml that I am sending using axis2, the lowest child elements eg, TAID should have the prefix ns2, as if it doesn't then i am unable to connect and use a web service provided by a third party company, I am using the below to create the serializer for the bean that i am using, QName envelopeQN = new QName("http://api.content.tripadvisor.com ","HotelOptions",""); QName hotelOptionsQN = new QName("http://api.content.tripadvisor.com ","HotelOptions"); call.registerTypeMapping(HotelOptions.class, hotelOptionsQN, new org.apache.axis.encoding.ser.BeanSerializerFactory(HotelOptions.class, envelopeQN), new org.apache.axis.encoding.ser.BeanDeserializerFactory(HotelOptions.class, envelopeQN)); 85380 832924179B0DACCAA58338B6D9A03F78 com 5 5 0 0 0 0 Does anyone have any ideas as to why i am not getting the prefix's on the child elements? Regards Alex. ------=_Part_85110_23853709.1183467902804 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,

In the following xml that I am sending using axis2, the lowest child elements eg, TAID should have the prefix ns2, as if it doesn't then i am unable to connect and use a web service provided by a third party company, I am using the below to create the serializer for the bean that i am using,

        QName envelopeQN = new QName("http://api.content.tripadvisor.com","HotelOptions","");
        QName hotelOptionsQN = new QName(" http://api.content.tripadvisor.com","HotelOptions");


call.registerTypeMapping(HotelOptions.class,
                                    hotelOptionsQN,
                                    new org.apache.axis.encoding.ser.BeanSerializerFactory(HotelOptions.class, envelopeQN),
                                    new org.apache.axis.encoding.ser.BeanDeserializerFactory (HotelOptions.class, envelopeQN));



<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ">
      <soapenv:Body>
         <ns1:getHotel soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="con:getHotel">
            <ns2:HotelOptions xmlns:ns2="http://api.content.tripadvisor.com">
               <TAID>85380</TAID>
               <clientID xsi:nil="true"/>
               <clientLoginID>832924179B0DACCAA58338B6D9A03F78</clientLoginID>
               <domain>com</domain>
               <maxUserReviewSummaries>5</maxUserReviewSummaries>
               <maxUserReviews>5</maxUserReviews>
               <startUserReviewID>0</startUserReviewID>
               <userReviewOffset>0</userReviewOffset>
               <userReviewSortOrder>0</userReviewSortOrder>
               <userReviewSummaryOffset>0</userReviewSummaryOffset>
            </ns2:HotelOptions>
         </ns1:getHotel>
      </soapenv:Body>
   </soapenv:Envelope>

Does anyone have any ideas as to why i am not getting the prefix's on the child elements?

Regards

Alex.

------=_Part_85110_23853709.1183467902804--