• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

no result in soap response

 
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic