Re: Axis SOAP issue
Vladimir Puskas <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <[email protected]> |
Hello Luke you wrote: > Hello, > > I am having issues with the Axis SOAP implementation. Using tcptrace from > pocketsoap.com you can see I am passing in the following message: > > POST /axis/services/AdminService/services/Version HTTP/1.0 > User-Agent: Mozilla/4.0 (compatible; Cache;) > Connection: Close > Host: laptop0074:8080 > SOAPAction: > Content-Length: 406 > Content-Type: text/xml; charset=UTF-8 > > <?xml version="1.0" encoding="UTF-8" ?> > <SOAP-ENV:Envelope > xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' > xmlns:s='http://www.w3.org/2001/XMLSchema' > xmlns:types='http://xml.apache.org/axis/wsdd/'> > <SOAP-ENV:Body> > <types:AdminService><AdminService>getVersion</AdminService></types:AdminServ > ice> </SOAP-ENV:Body> > </SOAP-ENV:Envelope> > > And getting the following error: > > HTTP/1.0 500 Internal server error > Set-Cookie: 2 > Set-Cookie2: 2 > Content-Type: text/xml; charset=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><soapenv > :Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>org.a > pache.axis.deployment.wsdd.WSDDException: Invalid WSDD element > 'AdminService' (wanted 'deployment') > > org.apache.axis.deployment.wsdd.WSDDException: Invalid WSDD element > 'AdminService' (wanted 'deployment') > at > org.apache.axis.deployment.wsdd.WSDDElement.validateCandidateElement(WSDDEle > ment.java:74) > at > org.apache.axis.deployment.wsdd.WSDDElement.<init>(WSDDElement.java:54 > ) > at > org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.j > ava:183) > at > org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java: > 78) > at org.apache.axis.utils.Admin.processWSDD(Admin.java:110) > at org.apache.axis.utils.Admin.process(Admin.java:157) > at org.apache.axis.utils.Admin.AdminService(Admin.java:64) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider.java:1 > 26) > at > org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319) > at > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java: > 32) > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) > at > org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450) > at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285) > at > org.apache.axis.transport.http.SimpleAxisWorker.execute(SimpleAxisWorker.jav > a:428) > at > org.apache.axis.transport.http.SimpleAxisWorker.run(SimpleAxisWorker.java:15 > 5) > at > org.apache.axis.transport.http.SimpleAxisServer.run(SimpleAxisServer.java:24 > 5) > at > org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServer.java: > 296) > at > org.apache.axis.transport.http.SimpleAxisServer.start(SimpleAxisServer.java: > 304) > at > org.apache.axis.transport.http.SimpleAxisServer.main(SimpleAxisServer.java:3 > 85) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.enhydra.shark.wfxml.SharkServiceImpl.main(SharkServiceImpl.java:84) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:136) > at java.lang.Thread.run(Thread.java:534) > </faultstring><detail><ns1:stackTrace > xmlns:ns1="http://xml.apache.org/axis/">org.apache.axis.deployment.wsdd.WSDD > Exception: Invalid WSDD element 'AdminService' (wanted 'deployment') > ... We saw some problems with Axis, yet choose to ignore them, because they didn't really interfere with our services (registry, factory, instance and observer ;-) and Wf-XML interoperability with other vendors. Do you have same or similar problems with them too? You may already noticed that Shark follows >>Omnia mea mecum porto.<< philosophy. SimpleAxisServer fitted in nicely not enlarging the lot, but beware - its docs says: “This is a simple implementation of an HTTP server for processing SOAP requests via Apache's xml-axis. This is not intended for production use. Its intended uses are for demos, debugging, and performance profiling.” Then again, we're still using Axis1.2RC2 while v1.2.1 is available... regards -- Vlada
message.footer
(text/plain, 271 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws