File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes wscompile error using ArrayList parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "wscompile error using ArrayList parameter" Watch "wscompile error using ArrayList parameter" New topic
Author

wscompile error using ArrayList parameter

Haroldo Nascimento
Ranch Hand

Joined: Aug 14, 2003
Posts: 79
Hi

What I need to create a method with a ArrayList parameter using JAX-RPC ?
The wscompile tools is using the parameter -model "model-wsdl-rpcenc.xml.gz" (I get this file of the HelloWorld of jwsdp1.4).
The error is it:

"[wscompile] modeler error: invalid entity name: "ArrayList" (in namespace: "http://java.sun.com/xml/ns/jax-rpc/ri/model") ..."

and my wsdl is this:

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

<definitions name="Services"
targetNamespace="urn:Har"
xmlns:tns="urn:Har"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns1="http://java.sun.com/xml/ns/jax-rpc/ri/model"
xmlns:ns2="http://service_har.org/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns1="http://soapinterop.org/xsd"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<schema targetNamespace="http://service_har.org/types"
xmlns:tns="http://service_har.org/types"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://www.w3.org/2001/XMLSchema">

<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="TipoWrapper">
<sequence>
<element name="boolProperty" type="boolean"/>
<element name="integerProperty" type="soap11-enc:int"/>
<element name="stringProperty" type="string"/>
</sequence>
</complexType>
</schema>

<schema targetNamespace="http://soapinterop.org/xsd" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="java.util.ArrayList">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:anyType"/>
</sequence>
</complexType>
</schema>

</types>

<message name="ServicesIF_syncDB">
<part name="nameDB" type="xsd:string"/>
</message>
<message name="ServicesIF_syncDBResponse">
<part name="result" type="xsd:string"/>
</message>

<message name="ServicesIF_testar">
<part name="tWParam" type="ns2:TipoWrapper"/>
<part name="param2" type="ns1:java.util.ArrayList"/>
</message>
<message name="ServicesIF_testarResponse">
<part name="result" type="ns2:TipoWrapper"/>
</message>

<portType name="ServicesIF">
<operation name="syncDB" parameterOrder="nameDB">
<input message="tns:ServicesIF_syncDB"/>
<output message="tns:ServicesIF_syncDBResponse"/>
</operation>
<operation name="testar" parameterOrder="tWParam param2">
<input message="tns:ServicesIF_testar"/>
<output message="tns:ServicesIF_testarResponse"/>
</operation>
</portType>

<binding name="ServicesIFBinding" type="tns:ServicesIF">
<operation name="syncDB">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Har"/>
</input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Har"/>
</output>
<soap peration soapAction=""/>
</operation>

<operation name="testar">
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Har"/>
</input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Har"/>
</output>
<soap peration soapAction=""/>
</operation>

<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
</binding>

<service name="Services">
<port name="ServicesIFPort" binding="tns:ServicesIFBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/>
</port>
</service>

</definitions>

Where is the error ?

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wscompile error using ArrayList parameter
 
Similar Threads
Problem with WSDL publishing
dii client returning custom types
reading soap-envelop messages
Soap & attachments: encoded or literal??
Problem with arrays of primitive types