Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 49888 invoked from network); 17 Dec 2006 19:41:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Dec 2006 19:41:28 -0000 Received: (qmail 76975 invoked by uid 500); 17 Dec 2006 19:41:27 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 75897 invoked by uid 500); 17 Dec 2006 19:41:24 -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 75886 invoked by uid 99); 17 Dec 2006 19:41:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Dec 2006 11:41:24 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=PLING_QUERY,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of atmanes@gmail.com designates 66.249.92.169 as permitted sender) Received: from [66.249.92.169] (HELO ug-out-1314.google.com) (66.249.92.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Dec 2006 11:41:14 -0800 Received: by ug-out-1314.google.com with SMTP id j40so1253155ugd for ; Sun, 17 Dec 2006 11:40:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BITYV0LdsUN46s3c9q85Zn33+6TQ/COAfkWXM3cVzBSwRGHmqu93awMQqpij9dG1xBScx/ggALTBHPzxwHsUV2JU30U5vxPJeDF7KA9lFNSvCplEBmdmP95y88HDqsEfvZ7A1j9NpNx2rI4JH5RLbYVSlyN+s+By2m+JCt7ZynQ= Received: by 10.82.153.5 with SMTP id a5mr417761bue.1166384452955; Sun, 17 Dec 2006 11:40:52 -0800 (PST) Received: by 10.82.117.17 with HTTP; Sun, 17 Dec 2006 11:40:52 -0800 (PST) Message-ID: Date: Sun, 17 Dec 2006 14:40:52 -0500 From: "Anne Thomas Manes" To: axis-user@ws.apache.org Subject: Re: Targetnamespace confusion with autogenerated WSDL!? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Whatever sources you are referencing are in error. The WSDL defines what the document in the message on the wire looks like, but that doesn't mean that elements in the document on the wire must be in the WSDL targetNamespace. The WSDL defines a set of elements (e.g., messages, portTypes, operations, bindings, services, and ports). All of these defined elements are in the WSDL targetNamespace. A definition defines the contents of a message on the wire. In your case: indicates that the should contain an element called "ns0:echo", as defined in the schema in the section, for example: some string NOTE: This is a document/literal interface, which means that the message on the wire should conform to the schema that defines the message contents. The schema for ns0:echo does not define any attributes, therefore the message that you've created, which contains "id="o0" c:root="1"", is not valid. These attributes should only be used when using RPC/encoded. If you were using an RPC style service, then there is no explicit definition of the message schema, but you can infer the schema definition from the message, operation, and binding definitions. It works like this: The local name of the child element of the is the taken from the operation name in the definition. The qualifying namespace for the operation name comes from the namespace attribute in the definition in the . The child elements of the operation element must be unqualified, and they take their local names from the names of the elements in the . Hope this helps. Anne On 12/17/06, Robert Ayzma wrote: > I have made a very simple web service on an Axis2 Tomcat driven server. > Axis generates the wsdl fine heres a snippet. > > > > SimpleService > − > > − > elementFormDefault="qualified" > targetNamespace="http://ws.apache.org/axis2/xsd"> > − > > − > > − > > > > > > − > > − > > − > > > > > > > > − > > > > − > > > > − > > − > > > > > > − > type="axis2:SimpleServicePortType"> > style="document"/> > − > > ......snippet ends > > I have also made a client that can communicate with the echo service > but ONLY if I use the targetnamespace of the schema and not the one for > wsdl definitions, and I have absolutely no idea why. > > The request for the client request looks like this: > xmlns:d="http://www.w3.org/2001/XMLSchema" > xmlns:c=" http://schemas.xmlsoap.org/soap/encoding/" > xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"> /> xmlns:n0="http://ws.apache.org/axis2/xsd"> i:type="d:string">Test af Soap > Webservice > > The response looks like this: > xmlns:soapenv=" > http://schemas.xmlsoap.org/soap/envelope/"> /> xmlns:ns="http://ws.apache.org/axis2/xsd">echo > value is: Test af Soap > Webservice > > And all is fine, but if I change the namespace to: "xmlns:ns=" > http://ws.apache.org/axis2" instead, then I get a faultcode with unknown > method echo. > > According to all sorts of books and ressources on the net, the WSDL > definitions namespace address ALL the elements in the document, so why > is it that if I change the namespace to the defintions namespace then > my client gets a faultcode saying that the echo method is not known? I > am missing out on something here I know so please point me in the right > direction. > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org