axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Basil Hosmer <>
Subject RE: newbie question (access to response message as DOM)
Date Mon, 23 Sep 2002 23:18:47 GMT
Sorry, here's the WSDL:
<?xml version="1.0" encoding="utf-8"?>
<definitions name="getCAWeather"
 targetNamespace=" <>
 xmlns:tns=" <>
 xmlns:xsd1=" <>
       xmlns:xsd=" <>
 xmlns:soap=" <>
       xmlns=" <> ">
 <schema targetNamespace=" <>
            xmlns=" <>
        <complexType name="weather">
            <element name="city" type="xsd:string"/>
            <element name="sky" type="xsd:string"/>
            <element name="tmp" type="xsd:int"/>
            <element name="dp" type="xsd:int"/>
            <element name="rh" type="xsd:int"/>
            <element name="wind" type="xsd:string"/>
            <element name="pres" type="xsd:string"/>
  <message name="getCAWeather">
    <part name="find" type="xsd:string"/>
  <message name="getCAWeatherResponse">
    <part name="ret" type="xsd1:weather"/>
  <portType name="getCAWeatherPortType">
    <operation name="getCAWeather">
      <input message="tns:getCAWeather"/>
      <output message="tns:getCAWeatherResponse"/>
  <binding name="getCAWeatherBinding" type="tns:getCAWeatherPortType">
    <soap:binding style="rpc" transport=""/ <>
    <operation name="getCAWeather">
 <soap:operation soapAction=""/ <>
 <soap:body use="encoded" namespace=" <>
            encodingStyle=""/ <>
 <soap:body use="encoded" namespace=" <>
            encodingStyle=""/ <>
  <service name="getCAWeatherService">
    <documentation> Generated by mod_soap </documentation>
    <port name="getCAWeatherPort" binding="tns:getCAWeatherBinding">
 <soap:address location=""/ <>

-----Original Message-----
From: Basil Hosmer [] 
Sent: Monday, September 23, 2002 4:17 PM
To: ''
Subject: newbie question (access to response message as DOM)

Somebody please give me a shove in the right direction: I'm using Axis to make a call to a
web service that returns a fairly simple <complexType> (wsdl attached). I've successfully
deserialized using a generated bean, but what I'd really like is to simply access a DOM representation
of the response. 
Naively I tried call.setOperationStyle("document") (also "message") - no luck - I get an Axis
fault that appears to be generated while trying to create another axis fault (yipes). 
Tried also registering a type mapping that used ElementDeserializer, thinking it would give
me the entire subtree underneath the top "element". Nope - at least, not without some setup
I wasn't doing... I imagine that I could leave operation style set to "rpc" (as specified
by the binding in the WSDL) and hand-write a subclass of ElementDeserializer - or DeserializerImpl
- that would give back a DOM, but I'm really hoping that isn't necessary.) 
What basic thing am I missing? Or is this not a normal thing to be doing with Axis? 
Any guidance appreciated.

View raw message