• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

no result in soap response  RSS feed

 
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
Boost this thread!