Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no result in soap response

 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am trying to call a web service(axis) which has a method that returns a complex type.From the TCPMonitor I see the soap request properly being sent and also the SOAP response, but the response tag is empty
<ns1:getAmazonArtistInfoResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://127.0.0.1:1234/axis/services/myservice">
<getAmazonArtistInfoReturn xsi:type="ns2:ArtistInfo" xsi:nil="true" xmlns:ns2="http://amazon.service.myservice.com"/>
</ns1:getAmazonArtistInfoResponse>

I am expecting a java object, its a java bean type.
I created the wsdl and java files from the tools Java2WSDL and WSDL2Java resp. which also created the wsdd file.
Do I need to specify the <beanMapping> in the wsdd file. Its not present in the wsdd file.
I somehow got stuck when passing/returning java objects.
Can anyone let me know what I am missing..
Thank you,
SHankar.
 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
forgot to mention that in the deploy.wsdd file the follwing entry is present
<typeMapping
xmlns:ns="http://amazon.service.myservice.com"
qname="ns:ArtistInfo"
type="java:com.myservice.service.amazon.ArtistInfo"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
/>
Originally posted by shankar vembu:
Hello,
I am trying to call a web service(axis) which has a method that returns a complex type.From the TCPMonitor I see the soap request properly being sent and also the SOAP response, but the response tag is empty

I am expecting a java object, its a java bean type.
I created the wsdl and java files from the tools Java2WSDL and WSDL2Java resp. which also created the wsdd file.
Do I need to specify the <beanMapping> in the wsdd file. Its not present in the wsdd file.
I somehow got stuck when passing/returning java objects.
Can anyone let me know what I am missing..
Thank you,
SHankar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic