Hi All,

I saw a problem when an axis web service returns a stringoutput array. The element getMyAnnouncementsReturn isn't qualified by xmlns:ns1="http://test.abc.com/test/api/2002/11/AnnouncementAPI". and the client I am using get

Cannot get Object part getMyAnnouncementsReturn. No parts are set on the message " error

. It stucked my for 3 days and I really don't know how to solve this problem. Does anyone have any ideas?

Thanks,

yang

Here is my wsdd and soap request and response

<service name="AnnouncementAPI" provider="java:RPC">
 <namespace>http://test.abc.com/test/api/2002/11/AnnouncementAPI</namespace>
 <parameter name="className" value="com.test.abc.api.service.AnnouncementAPIService"/>
   <parameter name="allowedMethods" value="*"/>
 <parameter name="scope" value="Session" />
</service>

 

<?xml version='1.0' encoding='UTF-8'?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<SOAP-ENV:Body>

<ns1:getMyAnnouncements xmlns:ns1="http://test.abc.com/test/api/2002/11/AnnouncementAPI"> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

</ns1:getMyAnnouncements>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>


<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getMyAnnouncementsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://test.abc.com/test/api/2002/11/AnnouncementAPI">
   <getMyAnnouncementsReturn xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[2]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <item>123</item>
    <item>234</item>
   </getMyAnnouncementsReturn>
  </ns1:getMyAnnouncementsResponse>
 </soapenv:Body>
</soapenv:Envelope>



Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

Reply via email to