aspose file tools
The moose likes Web Services and the fly likes soap encoding missing for array type Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "soap encoding missing for array type" Watch "soap encoding missing for array type" New topic
Author

soap encoding missing for array type

Nir Tal
Greenhorn

Joined: Aug 31, 2010
Posts: 12
Hi,

I am trying to invoke a webmethod through stubs generated through axis. The problem I am having over here is that one of the element I need to pass is an Array of some Complex type. It requires me to create the request as

<m:getPendingServiceIDs xmlns:m="http://www.zeal.com/eventsService">
<serviceIDLists xmlns:n1="java:com.zeal.central.jep.eventsservices.ejb" soapenc:arrayType="n1:ServiceIDList[1]">
<ServiceIDList xsi:type="n1:ServiceIDList">
<serviceID xsi:type="xsd:string">CLD-12326</serviceID>
<serviceIDType xsi:type="xsd:string">Q_SVC_ID</serviceIDType>
</ServiceIDList>
</serviceIDLists>
</m:getPendingServiceIDs>

However, my stubs are creating only the below request which is actually throwing an error as a response:

<getPendingServiceIDs xmlns="http://www.zeal.com/eventsService" xmlns:java="java:com.zeal.central.jep.eventsservices.ejb">
<serviceIDLists xmlns ="">
<java:serviceID>18228065</java:serviceID>
<java:serviceIDType>Q_SVC_ID</java:serviceIDType>
</serviceIDLists>
</getPendingServiceIDs>

Could someone please suggest me some solution so that I can have the namespaces and soapenc:arrayType appear in the required positions?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: soap encoding missing for array type
 
Similar Threads
problem with String [] in axis 1.3 and .net client
WSAD 5.1.1 SOAP RPC return type of Object[]
Support string array in wsdl
Exception: java.lang.illegal Argument Exception
Axis 1.4 -Serialization of array of Strings