Hi there,

I had exactly the same problem that Anil was referring to, and couldn't
find an answer after some use of google. However, I have since worked
out what the problem was, so thought I'd provide an answer for
posterity.

In my case, the problem was that my deploy.wsdd file did not match the
java class I was trying to point it at.

i.e.

<operation name="foo" ..>
            <parameter name="bar" type="tns:string" .../>
            <parameter name="baz" type="tns:int" ..../>
</operation>

when my method foo only had one parameter i.e. 
public void foo(String bar) 
not two.

Thus, my advice to anyone who gets this error is to check that the
parameters in deploy.wsdd match those in the java class you're pointing
axis at.

Regards,

Max

P.S. I would reply to his mail to keep it in the same thread, but it was
sent in 2003, and I only found it on mail-archive, so don't have the
relevant headers handy.

Hello Axis Users,

I searched for this before I posted. When I try to register a webservice
to
the Axis engine via
java  org.apache.axis.client.AdminClient -l<my_url> <my_wsdd_file>
I get the following error:
    Exception:: org.apache.axis.InternalException: java.lang.Exception:
The
OperationDesc for <method_name> was not synchronized to a method of
com.my.javaClass

Any suggestions? I use Jdk 1.4, Axis 1.1 Tomcat 4.1.24 on  Win 2000
machine
and sit facing east !

I tried deleting the server-config.wsdd file and restarting tomcat
without
much luck.
I also observed that when  I try to undeploy the service I get

Exception:: org.xml.sax.SAXException: SimpleDeserializer encountered a
child
element, which is NOT expected, in something it was trying to
deserialize.

To simplify things, I tried this with EchoAttachment examples that comes
with AXIS 1.1

Thanks once again,
--Anil
-- 
Maxwell Grender-Jones   <[EMAIL PROTECTED]> 


Reply via email to