This week's giveaway is in the Java in General forum.
We're giving away four copies of Java Challengers and have Rafael del Nero on-line!
See this thread for details.
Win a copy of Java Challengers this week in the Java in General forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

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.

 
My cellmate was this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic