Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Axis2 Method call on autogenerated WSDL uses schema targetnamespace !??

Thread Tools

Axis2 Method call on autogenerated WSDL uses schema targetnamespace !??

Posts: n/a
I have made a very simple web service on an Axis2 Tomcat driven server.
Axis generates the wsdl fine heres a snippet.

<wsdl:definitions targetNamespace="">


<xs:schema attributeFormDefault="qualified"

<xs:element name="echo">


<xs:element name="param0" nillable="true" type="xs:string"/>

<xs:element name="echoResponse">


<xs:element name="return" nillable="true" type="xs:string"/>

<wsdl:message name="echoMessage">
<wsdlart name="part1" element="ns0:echo"/>

<wsdl:message name="echoResponse">
<wsdlart name="part1" element="ns0:echoResponse"/>

<wsdlortType name="SimpleServicePortType">

<wsdlperation name="echo">
<wsdl:input message="axis2:echoMessage" wsaw:Action="urn:echo"/>
<wsdlutput message="axis2:echoResponse"/>

<wsdl:binding name="SimpleServiceSOAP11Binding"
<soap:binding transport=""

<wsdlperation name="echo">
.......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:
<v:Envelope xmlns:i=""
/><v:Body><n0:echo id="o0" c:root="1"
i:type="d:string">Test af Soap

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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"undefined method in 'targetnamespace='" in wsdl/import afterupgrading to Snow Leopard/1.8.7 Bill Ruby 0 11-11-2009 09:27 PM
Apache Axis2 - org.apache.axis2.AxisFault: Transaction not active Michael Post Java 5 08-22-2009 09:33 PM
webservices, wsdl & xsd (schema-2-wsdl) Dark Java 1 11-14-2008 07:58 PM
xsd:schema targetNamespace="nondomainstring" possible ? Markus Meckler XML 3 06-29-2004 01:39 AM
Re: transforming to an XML Schema - targetNamespace C. M. Sperberg-McQueen XML 0 07-29-2003 10:57 PM