users@jax-rpc.java.net

Re: can not compile Tie class: variable _headerObj not found

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Thu, 18 Nov 2004 13:21:10 -0800

It's a bug. Can you file a bug for tracking purposes.

Thanks,
Jitu

Alessio Cervellin wrote:
> attached is the wsdl i'm using, and here is the command line used to generate server classes:
>
> wscompile -gen:server -d build\classes -s build\src
> -keep -f:explicitcontext -httpproxy:myproxyhost:8080 -verbose testcase.xml
>
> where testcase.xml is:
>
> <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
> <wsdl
> location="./testcase.wsdl"
> packageName="testcase"/>
> </configuration>
>
> the output is:
>
> [CustomClassGenerator: generating JavaClass for: ComplexElement1]
> [CustomClassGenerator: generating JavaClass for: ComplexElement2]
> [LiteralObjectSerializerGenerator: writing serializer/deserializer for: Complex
> Element2]
> [LiteralObjectSerializerGenerator: writing serializer/deserializer for: Complex
> Element1]
> [SerializerRegistryGenerator: creating serializer registry: testcase.Testcase_Se
> rializerRegistry]
> TestcasePortType_Tie.java:60: can not resolve symbol
> symbol : variable _headerObj
> location: class testcase.TestcasePortType_Tie
> _headerObj = (testcase.ComplexElement2)curHeader.getValue();
> ^
> ..
>
> what's wrong?
> (the wsdl should be fine, since it's parsed both by wscompile and CapleClear5)
> I'm using wscompile 1.1.2 build R23 and jdk 1.5.0-rc-b63
>
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <wsdl:definitions
>
> name="testcase"
>
> targetNamespace="http://www.your-company.com/testcase.wsdl"
>
> xmlns:import1="http://test/"
>
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>
> xmlns:tns="http://www.your-company.com/testcase.wsdl"
>
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
> <wsdl:types>
>
> <xsd:schema
>
> attributeFormDefault="unqualified"
>
> elementFormDefault="qualified"
>
> targetNamespace="http://test/"
>
> xmlns="http://test/"
>
> xmlns:myns="http://test/"
>
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
> <xsd:import
>
> namespace="http://schemas.xmlsoap.org/soap/envelope/"
>
> schemaLocation="http://schemas.xmlsoap.org/soap/envelope/"/>
>
> <xsd:element name="ComplexElement1">
>
> <xsd:complexType>
>
> <xsd:sequence>
>
> <xsd:element ref="ComplexElement2"/>
>
> </xsd:sequence>
>
> </xsd:complexType>
>
> </xsd:element>
>
> <xsd:element name="ComplexElement2">
>
> <xsd:complexType>
>
> <xsd:attribute name="href" type="xsd:anyURI" use="required"/>
>
> <xsd:attribute name="role" type="xsd:string" use="required"/>
>
> <xsd:attribute ref="id" use="required"/>
>
> </xsd:complexType>
>
> </xsd:element>
>
> <xsd:attribute name="id" type="xsd:ID"/>
>
> </xsd:schema>
>
> </wsdl:types>
>
> <wsdl:message name="NewMessageRequest">
>
> <wsdl:part element="import1:ComplexElement1" name="arg1"/>
>
> <wsdl:part element="import1:ComplexElement2" name="arg2"/>
>
> </wsdl:message>
>
> <wsdl:portType name="testcasePortType">
>
> <wsdl:operation name="NewOperation">
>
> <wsdl:input message="tns:NewMessageRequest"/>
>
> <wsdl:output message="tns:NewMessageRequest"/>
>
> </wsdl:operation>
>
> </wsdl:portType>
>
> <wsdl:binding name="testcaseBinding" type="tns:testcasePortType">
>
> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>
> <wsdl:operation name="NewOperation">
>
> <soap:operation style="document"/>
>
> <wsdl:input>
>
> <soap:body parts="arg1" use="literal"/>
>
> <soap:header message="tns:NewMessageRequest" part="arg2" use="literal">
>
> </soap:header>
>
> </wsdl:input>
>
> <wsdl:output>
>
> <soap:body parts="arg1" use="literal"/>
>
> <soap:header message="tns:NewMessageRequest" part="arg2" use="literal">
>
> </soap:header>
>
> </wsdl:output>
>
> </wsdl:operation>
>
> </wsdl:binding>
>
> <wsdl:service name="testcase">
>
> <wsdl:port binding="tns:testcaseBinding" name="testcasePort">
>
> <soap:address location="http://myhost/testcase"/>
>
> </wsdl:port>
>
> </wsdl:service>
>
> </wsdl:definitions>
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net