Hi,

 

I am using AXIS 1.2 over Tomcat 5.5.9 appserver with jdk1.5.0_03. I have deployed my web services in both Linux and Windows. I found the problem in only linux.

 

The problem that I am facing is that the ?wsdl feature of the Axis is not generating the wsdl:types section correctly.

 

I have defined a dataHandler element as follows

 

     <typeMapping

                                    xmlns:apachesoap="http://xml.apache.org/xml-soap"

                                    qname="apachesoap:DataHandler"

                                    languageSpecificType="java:javax.activation.DataHandler"

                                    deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"

               serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"

               encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"

    />

 

And also I have added the xmlns:apachesoap in the deployment tag of my deploy.wsdd

 

My web service in the deploy.wsdd looks like this.

 

            <operation returnQName="uploadStatus"

                               returnType="xsd:boolean"

                               name="uploadMediaTitle"

                               xmlns:xsd="http://www.w3.org/2001/XMLSchema">

                                   

                        <parameter name="name" type="xsd:string"/>

                        <parameter name="description" type="xsd:string"/>

                        <parameter name="mediaTitleMimeTypeCode" type="xsd:string"/>

                        <parameter name="dataHandler" type="apachesoap:DataHandler" />

            </operation>

 

The problem is that the ?wsdl that generates the wsdl for my service does not generate the correct wsdl:type. It some times have and some times does not have the type declaration in the generated wsdl because of which the stubs generation throws the following error.

 

java.io.IOException: Type DataHandler is referenced but not defined.

        at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol

Table.java:663)

        at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543

)

        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav

a:516)

        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav

a:493)

        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)

        at java.lang.Thread.run(Thread.java:534)

 

Can some one tell me the reason for this?

 

Can some body tell me is this not the correct group that could help me or that I have to send the mail to developers list also? I hope somebody might have got the above problem.

 

Thanks and regards

 

Subir S

 

 


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

Reply via email to