Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 58669 invoked from network); 25 Jan 2006 08:24:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jan 2006 08:24:33 -0000 Received: (qmail 67615 invoked by uid 500); 25 Jan 2006 08:24:22 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 67571 invoked by uid 500); 25 Jan 2006 08:24:22 -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 67560 invoked by uid 99); 25 Jan 2006 08:24:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2006 00:24:21 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=HTML_FONT_BIG,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.207.168.50] (HELO dns.archicoop.it) (193.207.168.50) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 25 Jan 2006 00:24:19 -0800 Received: from BRADIPO.archicoop.it (unverified [193.207.168.51]) by dns.archicoop.it (EMWAC SMTPRS 0.83) with SMTP id ; Wed, 25 Jan 2006 09:23:30 +0100 Message-Id: <6.2.3.4.0.20060125091240.05345d28@mailserver.archicoop.it> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Wed, 25 Jan 2006 09:20:52 +0100 To: axis-user@ws.apache.org From: Ivano Luberti Subject: Re: avoid xmlns="" in a Axis client call In-Reply-To: References: <6.2.3.4.0.20060124221707.050c9420@mailserver.archicoop.it> Mime-Version: 1.0 Content-Type: multipart/mixed; x-avg-checked=avg-ok-2FF96483; boundary="=======AVGMAIL-43D734F31A12=======" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=======AVGMAIL-43D734F31A12======= Content-Type: multipart/alternative; boundary="=====================_2070336==.ALT"; x-avg-checked=avg-ok-2FF96483 --=====================_2070336==.ALT Content-Type: text/plain; charset=us-ascii; format=flowed; x-avg-checked=avg-ok-2FF96483 Thanks Anne it worked out . Actually the effect has been this: oi no xmlns attribute at all , but the .NET serve understan it in the right way. Thanks again At 00.40 25/01/2006, Anne Thomas Manes wrote: >Modify the WSDL and add > >elementFormDefault="qualified" > >to the definition. > >This is caused by a bug in .NET. Per the XML Schema spec, the >default value is "unqualified", but .NET always assumes "qualified". > >Anne > >On 1/24/06, Ivano Luberti ><luberti@archicoop.it> wrote: >Hi to all. >Before sending thi post I hve searched the mailing listo for hours >but I couldn't find an answer, maybe beacuse I'm not an XML expert. > >I'm trying to consume a web service on a .NET server using an Axis Client. >I have downloaded the WSDL and built the client using wsdl2jave. >When I try to call a method I don't get the expected answer. >I have been able to diagnose that the web service is not getting the >parameter specificied in my call. > >I have used a proxy server to read the XML sent by the Axis client. >Here it is: > > >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"> > > >s > > > > >I have found a solution reading on the Internet: have to specify the >xmlns attribute in all the childs, like this. > > >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"> > > >s > > > > >Is there soemone who knows how to force the Client to fill all the >xmlns attributes ? >TIA > > >================================================== >Archimede Informatica NEWS! >================================================== > >Realizzato il Sistema Integrato per la biglietteria della Torre di Pisa: >prenotazione, vendita, pre-vendita ed emissione dei biglietti di ingresso >alla Torre sia online che presso le biglietterie dislocate sulla piazza: > >http://www.opapisa.it/boxoffice > >Partner del Progetto Ci-Tel "Front office Telematico per il cittadino" >Ente Coordinatore Comune di Pisa > >http://www.comune.pisa.it/doc/e-government.htm > > >================================================== >dott. Ivano Mario Luberti >Archimede Informatica societa' cooperativa a r. l. >Sede Operativa >Via Gereschi 36 - 56126- Pisa >tel.: +39-050- 580959 >tel/fax: +39-050-9711344 >e-mail: archimede@archicoop.it >web: http://www.archicoop.it > > > > > >No virus found in this outgoing message. >Checked by AVG Anti-Virus. >Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date: 19/01/2006 > > > > > > >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date: 19/01/2006 ================================================== Archimede Informatica NEWS! ================================================== Realizzato il Sistema Integrato per la biglietteria della Torre di Pisa: prenotazione, vendita, pre-vendita ed emissione dei biglietti di ingresso alla Torre sia online che presso le biglietterie dislocate sulla piazza: http://www.opapisa.it/boxoffice Partner del Progetto Ci-Tel "Front office Telematico per il cittadino" Ente Coordinatore Comune di Pisa http://www.comune.pisa.it/doc/e-government.htm ================================================== dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 e-mail: archimede@archicoop.it web: http://www.archicoop.it --=====================_2070336==.ALT Content-Type: text/html; charset=us-ascii; x-avg-checked=avg-ok-2FF96483 Thanks Anne it worked out .
Actually the effect has been this:

<?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>
<idprogetto xmlns=" http://localhost:8088/DocProviderWS/">
<valore>oi</valore>
</idprogetto></soapenv:Body>
</soapenv:Envelope>


no xmlns attribute at all , but the .NET serve understan it in the right way.

Thanks again




At 00.40 25/01/2006, Anne Thomas Manes wrote:

Modify the WSDL and add

elementFormDefault="qualified"

to the <schema> definition.

This is caused by a bug in .NET. Per the XML Schema spec, the default value is "unqualified", but .NET always assumes "qualified".

Anne

On 1/24/06, Ivano Luberti <luberti@archicoop.it> wrote:
Hi to all.
Before sending thi post I hve searched the mailing listo for hours but I couldn't  find an answer, maybe beacuse I'm not an XML expert.

I'm trying to consume a web service on a .NET server using an Axis Client.
I have downloaded the WSDL and built the client using wsdl2jave.
When I try to call a method I don't get the expected answer.
I have been able to diagnose that the web service is not getting the parameter specificied in my call.

I have used a proxy server to read the XML sent by the Axis client.
Here it is:

<?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>
<idprogetto xmlns=" http://localhost:8088/DocProviderWS/">
<valore xmlns="">s</valore>
</idprogetto>
</soapenv:Body>
</soapenv:Envelope>

I have found a solution reading on the Internet: have to specify the xmlns attribute in all the childs, like this.

<?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>
<idprogetto xmlns=" http://localhost:8088/DocProviderWS/">
<valore xmlns=" http://localhost:8088/DocProviderWS">s</valore>
</idprogetto>
</soapenv:Body>
</soapenv:Envelope>

Is there soemone who knows how to force the Client to fill all the xmlns attributes ?
TIA


==================================================
Archimede Informatica NEWS!
==================================================

Realizzato il Sistema Integrato per la biglietteria della Torre di Pisa:
prenotazione, vendita, pre-vendita ed emissione dei biglietti di ingresso
alla Torre sia online che presso le biglietterie dislocate sulla piazza:

http://www.opapisa.it/boxoffice

Partner del Progetto Ci-Tel "Front office Telematico per il cittadino"
Ente Coordinatore Comune di Pisa

http://www.comune.pisa.it/doc/e-government.htm


==================================================
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
e-mail: archimede@archicoop.it
web: http://www.archicoop.it





No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date: 19/01/2006






No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date: 19/01/2006

==================================================
Archimede Informatica NEWS!
==================================================

Realizzato il Sistema Integrato per la biglietteria della Torre di Pisa:
prenotazione, vendita, pre-vendita ed emissione dei biglietti di ingresso
alla Torre sia online che presso le biglietterie dislocate sulla piazza:

http://www.opapisa.it/boxoffice

Partner del Progetto Ci-Tel "Front office Telematico per il cittadino"
Ente Coordinatore Comune di Pisa

http://www.comune.pisa.it/doc/e-government.htm


==================================================
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
e-mail: archimede@archicoop.it
web: http://www.archicoop.it


--=====================_2070336==.ALT-- --=======AVGMAIL-43D734F31A12======= Content-Type: text/plain; x-avg=cert; charset=us-ascii; x-avg-checked=avg-ok-2FF96483 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Description: "AVG certification" No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.375 / Virus Database: 267.14.21/235 - Release Date: 19/01/2006 = --=======AVGMAIL-43D734F31A12=======--