Hi,
I had exactly the same problem as you and it took me quite a long time to solve
this with the help of this forum.
JBossWS does not support wrapped doc/lit messages, so you can implement only
methods with one parameter.
I did the following:
Using Sun's JWSDP I generated the skeletons and custom types from the provided
wsdl file:
| <target name="wscompile" depends="compile">
| <taskdef name="wscompile"
classname="com.sun.xml.rpc.tools.ant.Wscompile" classpathref="build.classpath"/>
| <wscompile
| import="true"
| fork="true"
| define="false"
| server="false"
| keep="true"
| base="${build.classes.dir}"
| sourceBase="${build.src.dir}"
| features="wsi,donotoverride"
| mapping="${build.resources.dir}/jaxrpc.xml"
| config="${resources.dir}/wsconfig.xml">
| <classpath>
| <path refid="build.classpath"/>
| <pathelement path="${build.classes.dir}"/>
| </classpath>
| </wscompile>
| </target>
|
Note the wsi feature, this will make wscompile generate a server skeleton, the
appropriate interfaces and a jaxrpc-mapping file for a unwrapped message.
2. move the generated foobar_Impl.java to your source tree and implement the
web service method(s). (They are in the generated code, but do nothing).
You need to write a webservice.xml and a web.xml and package all this (The
generated and implemented interfaces and classes, the generated jaxrpc-mapping
file, the webservice.xml, the web.xml and the provided wsdl-file) into a war
file and deploy it to JBoss.
This may or may not work (in my case it didn't).
3. If it doesn't work, you need to provide a custom mapping for your
complex types (included your generated parameter beans).
This goes into a file called (that is also put into the war file)
| <deployment
| xmlns='http://xml.apache.org/axis/wsdd/'
| xmlns:java='http://xml.apache.org/axis/wsdd/providers/java'
| xmlns:soap='http://schemas.xmlsoap.org/soap/encoding/'
| xmlns:xsi='http://www.w3.org/2000/10/XMLSchema-instance'
| xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
| ...
| <typeMapping
| qname='ns1:MyMethod' xmlns:ns1='http://foobar.com/Namespace/'
| type='java:com.foobar.MyMethod'
| serializer='org.apache.axis.encoding.ser.BeanSerializerFactory'
| deserializer='org.apache.axis.encoding.ser.BeanDeserializerFactory'
| encodingStyle=''>
| </typeMapping>
| ...
| </deployment>
|
4. Hopefully this will work. In my case it still didn't. For some reason the
generated wsdd-file in $JBOSS_ROOT/server/default/data/wsdl/foobar.war
contained only the return parameter as INOUT instead one IN parameter and a
return value, so I also had to provide -tags in my ws4ee-deployment.xml file.
Additionally it might help to set the loglevel in the log4j.xml config file to
DEBUG for org.apache.axis, this will make the server log (among others) the
transfered SOAP messages.
Stephan
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865094#3865094
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865094
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user