PDA

View Full Version : (axis) Return object in WS, with style="wrapped" use="literal"


wakeup
17 Jul 2006, 07:50am
I can return objects in a web service with bean serializer (in wsdd file)

<service name="MyService" provider="java:RPC">
<!-- more things-->
<typeMapping deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
qname="ns1:MyClass"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
type="java:test.MyClass"
xmlns:ns1="http://test"/>



But I need too send soap header as
http://weblogs.asp.net/jdanforth/archive/2006/03/13/440116.aspx
I send soap headers sucessfull, but for it I have to add in <service> the parameters...


<service name="MyService" provider="java:RPC" style="wrapped" use="literal">



When I add these parameter, the return of my webservices is not a object in xml, It return only a 0 number.

Do you know how solve it?
Thanks

_________________
Hip Hop (http://www.hhdirecto.net)
Humor (http://www.dechiste.com)

lightnin
17 Jul 2006, 04:20pm
we need more info.

what version of axis?
can we see either the WSDL or the jws file?
can we see client code?

your client may not be sending the proper parameters to the service, or your service is either returning an improper object or an error of some sort.

by the way, i have a brief tutorial on how to set up jboss 4.x with ejb3 enpoints exposed as web services. it's much more flexible than axis. the example i give is for a document literal wrapped service, which is exacty what it looks like you are trying to make. i can post it here or pm you if you'd like.

lightnin
25 Jul 2006, 10:24pm
gotta love those hit-and-runs

airbornflght
26 Jul 2006, 12:08am
yup, looks like he posted two or three other places. (http://www.google.com/search?q=%28axis%29+Return+object+in+WS%2C+with+style%3D%22wrapped%22&ie=utf-8&oe=utf-8&rls=org.mozilla:en-US:unofficial&client=firefox-a)