This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes no result in soap response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "no result in soap response" Watch "no result in soap response" New topic
Author

no result in soap response

shankar vembu
Ranch Hand

Joined: May 10, 2001
Posts: 309
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

Joined: May 10, 2001
Posts: 309
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: no result in soap response
 
Similar Threads
weblogic axis soap response problem
Need some help with BPEl invoking another service (define and pass the data from one to the other)
AxisFault Exception... was it a valid wsdd descriptor
Soap Logging in Axis Tool
Help with soapenc:string vs. xsd:string