You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Manuel Luis <ma...@gmail.com> on 2006/11/20 18:13:58 UTC

AXIS 1.4 - Connecting to a Oracle Web Service

Hello,

I am trying to connect a axis client to a web service created using Oracle
WS. All the methods receive as parameter a org.w3c.dom.Element and return a
org.w3c.dom.Element. Using the WSDL defined by Jdeveloper 10g i am getting
the following error:
WSDLException (at /definitions/types/ns0:schema): faultCode=INVALID_WSDL:
Encountered illegal extension element '{
http://schemas.xmlsoap.org/wsdl/}schema' in the context of a '
javax.wsdl.Types'. Extension elements must be in a namespace other than
WSDL's.

Removing the part at bold in the example i will get the following error:
java.io.IOException: Element {http://www.w3.org/2001/XMLSchema}any is
referenced but not defined.


Does anyone knows what the problem is? What i can do to solve\workaround
this problem?

Thanks

Manuel Luis
Example of the WSDL:

<definitions
   name="SGPWebService"
   targetNamespace="http://pt/iptm/sgp/service/server/SGPWebServiceImpl.wsdl
"
   xmlns="http://schemas.xmlsoap.org/wsdl/"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
   xmlns:tns="http://pt/iptm/sgp/service/server/SGPWebServiceImpl.wsdl"
   xmlns:ns1="http://pt.iptm.sgp.service.server/SGPWebService.xsd">
   <types>
      <ns0:schema
         targetNamespace="
http://pt.iptm.sgp.service.server/SGPWebService.xsd"
         xmlns="http://www.w3.org/2001/XMLSchema"
         xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="http://schemas.xmlsoap.org/wsdl/"/>
   </types>
   <message name="SGP2BDNNMEscalaNot0Request">
      <part name="xml" element="xsd:any"/>
   </message>
   <message name="SGP2BDNNMEscalaNot0Response">
      <part name="return" element="xsd:any"/>
   </message>
      <portType name="SGPWebServiceImplPortType">
      <operation name="SGP2BDNNMEscalaNot">
         <input name="SGP2BDNNMEscalaNot0Request"
message="tns:SGP2BDNNMEscalaNot0Request"/>
         <output name="SGP2BDNNMEscalaNot0Response"
message="tns:SGP2BDNNMEscalaNot0Response"/>
      </operation>
   </portType>
   <binding name="SGPWebServiceImplBinding"
type="tns:SGPWebServiceImplPortType">
      <soap:binding style="rpc" transport="
http://schemas.xmlsoap.org/soap/http"/>
      <operation name="SGP2BDNNMEscalaNot">
         <soap:operation soapAction="" style="rpc"/>
         <input name="SGP2BDNNMEscalaNot0Request">
            <soap:body use="literal" namespace="SGPWebService"/>
         </input>
         <output name="SGP2BDNNMEscalaNot0Response">
            <soap:body use="literal" namespace="SGPWebService"/>
         </output>
      </operation>
   </binding>
   <service name="SGPWebService">
      <port name="SGPWebServiceImplPort"
binding="tns:SGPWebServiceImplBinding">
         <soap:address location="
http://localhost/work-SGP-context-root/SGPWebService"/>
      </port>
   </service>
</definitions>