axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anjaneya Swamy Varada" <svar...@digitalimpact.com>
Subject RE: Document Style web service bug
Date Wed, 11 Jun 2003 20:34:08 GMT
Hi Bhanu,

Were you able to create a "message" style service using the below signature:

org.w3c.dom.Document parseData(org.w3c.dom.Document doc){
	// logic processed
	return doc;
}

When I am trying to invoke the server I get the following error:

java.io.IOException: No serializer found for class org.apache.xerces.dom.DeferredDocumentImpl
in registry org.apache.axis.encoding.TypeMappingImpl@5f8b99
        at org.apache.axis.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:1273)
        at org.apache.axis.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:787)
        at org.apache.axis.encoding.SerializationContextImpl.outputMultiRefs(SerializationContextImpl.java:858)
        at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:155)
        at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:413)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:779)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:270)
        at org.apache.axis.SOAPPart.getAsString(SOAPPart.java:483)
        at org.apache.axis.SOAPPart.getAsBytes(SOAPPart.java:375)
        at org.apache.axis.Message.getContentType(Message.java:400)
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:341)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:122)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2526)
        at org.apache.axis.client.Call.invoke(Call.java:2515)
        at org.apache.axis.client.Call.invoke(Call.java:2210)
        at org.apache.axis.client.Call.invoke(Call.java:2133)
        at org.apache.axis.client.Call.invoke(Call.java:1656)
        at messages.TestLogMsgWithDocument.doit(TestLogMsgWithDocument.java:49)
        at messages.TestLogMsgWithDocument.main(TestLogMsgWithDocument.java:62)

Any ideas?

Thanks
Swamy


-----Original Message-----
From: Bhanu Pabreja [mailto:pabreja@infigroup.com]
Sent: Monday, May 05, 2003 7:43 PM
To: axis-user@ws.apache.org
Subject: RE: Document Style web service bug


Great idea I will try to implement it tommorow but I hope it will process to
do this method ...

org.w3c.dom.Document parseData(org.w3c.dom.Document doc){
	// logic processed
	return doc;
}

-----Original Message-----
From: Rajal Shah [mailto:rashah@cisco.com]
Sent: Monday, May 05, 2003 6:44 PM
To: axis-user@ws.apache.org
Subject: RE: Document Style web service bug


Dumdum (BP)

You don't really need to create a WSDL, (look at my sample I provided you)..
The service in my example code it good enough to be deployed as is.. You can
deploy it and get the WSDL definition directly using the ?WSDL query on your
service.

--
Rajal


-----Original Message-----
From: dumdum 420 [mailto:dumdum420@hotmail.com]
Sent: Monday, May 05, 2003 3:14 PM
To: axis-user@ws.apache.org
Subject: Document Style web service bug


I have generated a wsdl file using Java2WSDL utility :

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:firmTaxonomy"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="urn:firmTaxonomy" xmlns:intf="urn:firmTaxonomy"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
  <schema targetNamespace="" xmlns="http://www.w3.org/2001/XMLSchema">
   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
   <element name="in0" type="xsd:string"/>
   <element
name="fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermIDReturn"
type="xsd:string"/>
   <element name="in0" type="xsd:string"/>
   <element name="fetchTaxonomyPreferredTermOnBasisOfPreferredTermIDReturn"
type="xsd:string"/>
   <element name="in0" type="xsd:string"/>
   <element name="in1" type="xsd:string"/>
   <element name="fetchTaxonomyPreferredTermBranchReturn"
type="xsd:string"/>
   <element name="in0" type="xsd:string"/>
   <element name="in1" type="xsd:string"/>
   <element name="fetchTaxonomyPreferredTermReturn" type="xsd:string"/>
   <element name="fetchFirmTaxonomyReturn" type="xsd:string"/>
  </schema>
</wsdl:types>

   <wsdl:message name="fetchTaxonomyPreferredTermBranchResponse">

      <wsdl:part element="fetchTaxonomyPreferredTermBranchReturn"
name="fetchTaxonomyPreferredTermBranchReturn"/>

   </wsdl:message>

   <wsdl:message
name="fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermIDRequest">

      <wsdl:part element="in0" name="in0"/>

   </wsdl:message>

   <wsdl:message name="fetchFirmTaxonomyRequest">

   </wsdl:message>

   <wsdl:message name="fetchTaxonomyPreferredTermResponse">

      <wsdl:part element="fetchTaxonomyPreferredTermReturn"
name="fetchTaxonomyPreferredTermReturn"/>

   </wsdl:message>

   <wsdl:message
name="fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermIDResponse">

      <wsdl:part
element="fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermIDReturn"
name="fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermIDReturn"/>

   </wsdl:message>

   <wsdl:message name="fetchFirmTaxonomyResponse">

      <wsdl:part element="fetchFirmTaxonomyReturn"
name="fetchFirmTaxonomyReturn"/>

   </wsdl:message>

   <wsdl:message
name="fetchTaxonomyPreferredTermOnBasisOfPreferredTermIDRequest">

      <wsdl:part element="in0" name="in0"/>

   </wsdl:message>

   <wsdl:message
name="fetchTaxonomyPreferredTermOnBasisOfPreferredTermIDResponse">

      <wsdl:part
element="fetchTaxonomyPreferredTermOnBasisOfPreferredTermIDReturn"
name="fetchTaxonomyPreferredTermOnBasisOfPreferredTermIDReturn"/>

   </wsdl:message>

   <wsdl:message name="fetchTaxonomyPreferredTermBranchRequest">

      <wsdl:part element="in0" name="in0"/>

      <wsdl:part element="in1" name="in1"/>

   </wsdl:message>

   <wsdl:message name="fetchTaxonomyPreferredTermRequest">

      <wsdl:part element="in0" name="in0"/>

      <wsdl:part element="in1" name="in1"/>

   </wsdl:message>

   <wsdl:portType name="FirmTaxonomyModel">

      <wsdl:operation
name="fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermID"
parameterOrder="in0">

         <wsdl:input
message="intf:fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermIDReques
t"
name="fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermIDRequest"/>

         <wsdl:output
message="intf:fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermIDRespon
se"
name="fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermIDResponse"/>

      </wsdl:operation>

      <wsdl:operation
name="fetchTaxonomyPreferredTermOnBasisOfPreferredTermID"
parameterOrder="in0">

         <wsdl:input
message="intf:fetchTaxonomyPreferredTermOnBasisOfPreferredTermIDRequest"
name="fetchTaxonomyPreferredTermOnBasisOfPreferredTermIDRequest"/>

         <wsdl:output
message="intf:fetchTaxonomyPreferredTermOnBasisOfPreferredTermIDResponse"
name="fetchTaxonomyPreferredTermOnBasisOfPreferredTermIDResponse"/>

      </wsdl:operation>

      <wsdl:operation name="fetchTaxonomyPreferredTermBranch"
parameterOrder="in0 in1">

         <wsdl:input message="intf:fetchTaxonomyPreferredTermBranchRequest"
name="fetchTaxonomyPreferredTermBranchRequest"/>

         <wsdl:output
message="intf:fetchTaxonomyPreferredTermBranchResponse"
name="fetchTaxonomyPreferredTermBranchResponse"/>

      </wsdl:operation>

      <wsdl:operation name="fetchTaxonomyPreferredTerm" parameterOrder="in0
in1">

         <wsdl:input message="intf:fetchTaxonomyPreferredTermRequest"
name="fetchTaxonomyPreferredTermRequest"/>

         <wsdl:output message="intf:fetchTaxonomyPreferredTermResponse"
name="fetchTaxonomyPreferredTermResponse"/>

      </wsdl:operation>

      <wsdl:operation name="fetchFirmTaxonomy">

         <wsdl:input message="intf:fetchFirmTaxonomyRequest"
name="fetchFirmTaxonomyRequest"/>

         <wsdl:output message="intf:fetchFirmTaxonomyResponse"
name="fetchFirmTaxonomyResponse"/>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="firmTaxonomySoapBinding"
type="intf:FirmTaxonomyModel">

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

      <wsdl:operation
name="fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermID">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input
name="fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermIDRequest">

            <wsdlsoap:body namespace="urn:firmTaxonomy" use="literal"/>

         </wsdl:input>

         <wsdl:output
name="fetchTaxonomyPreferredTermBranchOnBasisOfPreferredTermIDResponse">

            <wsdlsoap:body namespace="urn:firmTaxonomy" use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation
name="fetchTaxonomyPreferredTermOnBasisOfPreferredTermID">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input
name="fetchTaxonomyPreferredTermOnBasisOfPreferredTermIDRequest">

            <wsdlsoap:body namespace="urn:firmTaxonomy" use="literal"/>

         </wsdl:input>

         <wsdl:output
name="fetchTaxonomyPreferredTermOnBasisOfPreferredTermIDResponse">

            <wsdlsoap:body namespace="urn:firmTaxonomy" use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="fetchTaxonomyPreferredTermBranch">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="fetchTaxonomyPreferredTermBranchRequest">

            <wsdlsoap:body namespace="urn:firmTaxonomy" use="literal"/>

         </wsdl:input>

         <wsdl:output name="fetchTaxonomyPreferredTermBranchResponse">

            <wsdlsoap:body namespace="urn:firmTaxonomy" use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="fetchTaxonomyPreferredTerm">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="fetchTaxonomyPreferredTermRequest">

            <wsdlsoap:body namespace="urn:firmTaxonomy" use="literal"/>

         </wsdl:input>

         <wsdl:output name="fetchTaxonomyPreferredTermResponse">

            <wsdlsoap:body namespace="urn:firmTaxonomy" use="literal"/>

         </wsdl:output>

      </wsdl:operation>

      <wsdl:operation name="fetchFirmTaxonomy">

         <wsdlsoap:operation soapAction=""/>

         <wsdl:input name="fetchFirmTaxonomyRequest">

            <wsdlsoap:body namespace="urn:firmTaxonomy" use="literal"/>

         </wsdl:input>

         <wsdl:output name="fetchFirmTaxonomyResponse">

            <wsdlsoap:body namespace="urn:firmTaxonomy" use="literal"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="FirmTaxonomyModelService">

      <wsdl:port binding="intf:firmTaxonomySoapBinding" name="firmTaxonomy">

         <wsdlsoap:address
location="http://localhost:8080/axis/services/firmTaxonomy"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>

Now when I try to generate server side code so that I can deploy the service
following exception comes when I use the WSDL2Java utility ...


Parsing XML file:  firmTaxonomy.wsdl
in0 already exists
in0 already exists
in0 already exists
in1 already exists
java.io.IOException: Element
{http://schemas.xmlsoap.org/wsdl/}fetchFirmTaxonomyReturn is referenced but
not defined.
	at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.j
ava:527)
	at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:422)
	at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:408)
	at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:393)
	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
	at java.lang.Thread.run(Thread.java:512)

I really cant go ahead in this situation please help me to locate why is
this bug coming ...

Thanx a ton ... in advance!!

Bhanu Pabreja






_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail




Mime
View raw message