You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by fee genyuan <fg...@gmail.com> on 2006/03/30 10:36:52 UTC

No Such Operation Error?

hi all,
Today I generated a webservice with axis1.3, it was published
successfully, but when I use Eclipse to generated the test client with
JSP, It threw out the Exception "No Such Operation messageDTO1", but
here "messageDTO1" is a element in my wsdl document(see below
content).

I know the situation is that element "messageDTO" and "messageDTO1"
referrenced the same complexType "MessageDTO"

and element "messageDTO" and "messageDTO1" are referrenced by message
"createMessageRequest" and "createMessageWithRTVRequest"

I tried out that if I remove anyone of the webservice methods
"createMessageWithRTV" and "createMessage" It runs well.

In another word, if the complexType "MessageDTO" was referrenced only
once, it runs well.

So in my opinion, the problem is happened in this part:
*********
	 <element name="messageDTO" type="impl:MessageDTO"/>
   <element name="messageDTO1" type="impl:MessageDTO"/>
*********

But I don't know why?

BTW: The Exception was threw out in the client server side, Not the
webservice server.

regards.

FeeGenyuan


Attach a part of my wsdl document:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://message.qqht.qel.com"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://message.qqht.qel.com"
xmlns:intf="http://message.qqht.qel.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)-->
 <wsdl:types>
  <schema elementFormDefault="qualified"
targetNamespace="http://message.qqht.qel.com"
xmlns="http://www.w3.org/2001/XMLSchema">
   <complexType name="MessageDTO">
    <sequence>
     .....
    </sequence>
   </complexType>
   <element name="messageDTO" type="impl:MessageDTO"/>
   <element name="messageDTO1" type="impl:MessageDTO"/>
   <element name="createMessageWithRTVReturn" type="xsd:string"/>
  </schema>
 </wsdl:types>
   <wsdl:message name="createMessageWithRTVRequest">
      <wsdl:part element="impl:messageDTO1" name="messageDTO"/>
   </wsdl:message>
   <wsdl:message name="createMessageResponse">
   </wsdl:message>
   <wsdl:message name="createMessageRequest">
      <wsdl:part element="impl:messageDTO" name="messageDTO"/>
   </wsdl:message>
   <wsdl:message name="createMessageWithRTVResponse">
      <wsdl:part element="impl:createMessageWithRTVReturn"
name="createMessageWithRTVReturn"/>
   </wsdl:message>
   <wsdl:portType name="MessageDelegate">
      <wsdl:operation name="createMessage" parameterOrder="messageDTO">
         <wsdl:input message="impl:createMessageRequest"
name="createMessageRequest"/>
         <wsdl:output message="impl:createMessageResponse"
name="createMessageResponse"/>
      </wsdl:operation>
      <wsdl:operation name="createMessageWithRTV" parameterOrder="messageDTO">
         <wsdl:input message="impl:createMessageWithRTVRequest"
name="createMessageWithRTVRequest"/>
         <wsdl:output message="impl:createMessageWithRTVResponse"
name="createMessageWithRTVResponse"/>
      </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="MessageDelegateSoapBinding" type="impl:MessageDelegate">
      <wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="createMessage">
         ....
      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="MessageDelegateService">
			....
   </wsdl:service>
</wsdl:definitions>


--
FeeGenyuan