• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

wscompile error using ArrayList parameter

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic