wood burning stoves 2.0*
The moose likes Web Services and the fly likes Issue with generation of document/literal type WSDL using Axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Issue with generation of document/literal type WSDL using Axis " Watch "Issue with generation of document/literal type WSDL using Axis " New topic
Author

Issue with generation of document/literal type WSDL using Axis

Scott Riffon
Greenhorn

Joined: Jul 26, 2011
Posts: 1
Hi All,

I am trying to convert some Java code into WSDL using Axis 1.2 framework. I used Document/Literal style for binding.

One of the methods in my Java code returns an array. This array is described in Axis generated WSDL as follows:

<complexType name="ArrayOfThings">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="impl:Things[]"/>
</restriction>
</complexContent>
</complexType>

But the end user(client for the web service I am hosting) says " .NET won't allow him to consume my webservice (or generate the proper reference classes) for types that derive from encoded types".

So my question is "Would it be possible to change the webservice so that it doesn’t use that(soapenc) implementation of the array?"

The end user is expecting something more like this:

<s:complexType name="ArrayOfThings">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="Things" nillable="true" type="tns:Things" />
</s:sequence>
</s:complexType>

I am new to Web Services. So any help or guidance would be greatly appreciated.

Thanks,
Scott.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue with generation of document/literal type WSDL using Axis
 
Similar Threads
access to .net web service
deserialization of complex types with array as attribute
Empty target namespace with axis1.2
XSD Schema Error in WSAD
java.io.IOException: Type {http://lang.java}Exception is referenced but not defined.