axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Quinn" <Patrick.Qu...@evolving.com>
Subject Can a classcast exception be caused by a malformed WSDL?
Date Tue, 21 Jun 2005 16:40:52 GMT
Hi 

I'm receiving a java.lang.ClassCastException as an exception when
attempting a 'wrapped' style service call.

Could this be a WSDL problem, or is it more likely to be down to other
factors?

Any help gratefully received again - as I am dealing with a customer's
WSDL, and am not that familiar with AXIS, it is very difficult to spot
what is wrong.

Thanks previously to Anne for fixing the last WSDL - much appreciated.

The WSDL looks like this:

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions
xmlns:s1="http://ProvidentConnector.ProvidentResponseToOrch"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XML
Schema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://namespace.accent.com/
" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
 targetNamespace="http://namespace.accent.com/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified"
targetNamespace="http://namespace.accent.com/">
      <s:import
namespace="http://ProvidentConnector.ProvidentResponseToOrch" />
      <s:element name="SOPResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1"
ref="s1:ProvidentResponse" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="SOPResponseResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="part"
type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
    <s:schema elementFormDefault="qualified"
targetNamespace="http://ProvidentConnector.ProvidentResponseToOrch">
      <s:element name="ProvidentResponse" type="s1:ProvidentResponse" />
      <s:complexType name="ProvidentResponse">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" form="unqualified"
name="REQUESTID" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" form="unqualified"
name="SO_RESULT_CODE" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" form="unqualified"
name="SO_PROV_DATE" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" form="unqualified"
name="SO_ERR_DESC" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" form="unqualified"
name="XML_SORESULT" type="s:string" />
        </s:sequence>
      </s:complexType>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="SOPResponseSoapIn">
    <wsdl:part name="parameters" element="tns:SOPResponse" />
  </wsdl:message>
  <wsdl:message name="SOPResponseSoapOut">
    <wsdl:part name="parameters" element="tns:SOPResponseResponse" />
  </wsdl:message>
  <wsdl:portType
name="ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap">
    <wsdl:operation name="SOPResponse">
      <wsdl:input message="tns:SOPResponseSoapIn" />
      <wsdl:output message="tns:SOPResponseSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding
name="ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"
type="tns:ProvidentConnector
_ProvidentReceiver_ProvidentWSPortSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
    <wsdl:operation name="SOPResponse">
      <soap:operation
soapAction="http://namespace.accenture.com/ProvidentConnector_ProvidentR
eceiver_ProvidentWSPort/SOPResponse" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service
name="ProvidentConnector_ProvidentReceiver_ProvidentWSPort">
    <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">BizTalk
assembly "ProvidentConnector, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=ae7c9e263f196bff" published web service.</documentation>
    <wsdl:port
name="ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap"
binding="tns:ProvidentConnector_ProvidentReceiver_ProvidentWSPortSoap">
      <soap:address
location="http://localhost/ProvidentConnector/ProvidentWSPort.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Mime
View raw message