1 Reply Latest reply: Jul 24, 2014 10:36 AM by Vijaya Moderator -Oracle RSS

    Weblogic server 10.3.3/10.3.6

    919869

      I have developed a webservice using a wsdl (generated by Weblogic jwsc) , If in my webservie I enabled the @SchemaValidation, I ma getting below error..  If I remove the schema valdiation everything working fine.

       

      Caused by: org.xml.sax.SAXParseException: s4s-att-not-allowed: Attribute 'xmlns:WL5G3N0' cannot appear in element 'schema'.

              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)

              at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131),,

      below is my wsdl.

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Oracle JAX-WS 2.1.5. -->

      <WL5G3N0:definitions xmlns="" xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/" xmlns:WL5G3N1="http://nps.comcast.com/npsbackoffice/backofficeservice" xmlns:WL5G3N2="http://schemas.xmlsoap.org/wsdl/soap/" name="NPSBackOfficeService" targetNamespace="http://nps.comcast.com/npsbackoffice/backofficeservice">

        <WL5G3N0:types>

        <xsd:schema xmlns:WL5G3N0="http://schemas.xmlsoap.org/wsdl/" xmlns:WL5G3N1="http://nps.comcast.com/npsbackoffice/backofficeservice" xmlns:WL5G3N2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://nps.comcast.com/npsbackoffice/backofficeservice" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

        <xsd:import namespace="http://nps.comcast.com/npsbackoffice/backofficeservice" schemaLocation="NPSBackOfficeService.xsd"/>

        </xsd:schema>

        </WL5G3N0:types>

        <WL5G3N0:message name="provisioningEvent">

        <WL5G3N0:part name="parameters" element="WL5G3N1:provisioningEvent"/>

        </WL5G3N0:message>

        <WL5G3N0:message name="provisioningEventResponse">

        <WL5G3N0:part name="parameters" element="WL5G3N1:provisioningEventResponse"/>

        </WL5G3N0:message>

        <WL5G3N0:message name="SOAPException">

        <WL5G3N0:part name="fault" element="WL5G3N1:SOAPException"/>

        </WL5G3N0:message>

        <WL5G3N0:message name="provisioningNetworkEvent">

        <WL5G3N0:part name="parameters" element="WL5G3N1:provisioningNetworkEvent"/>

        </WL5G3N0:message>

        <WL5G3N0:message name="provisioningNetworkEventResponse">

        <WL5G3N0:part name="parameters" element="WL5G3N1:provisioningNetworkEventResponse"/>

        </WL5G3N0:message>

        <WL5G3N0:message name="logAuditHistory">

        <WL5G3N0:part name="parameters" element="WL5G3N1:logAuditHistory"/>

        </WL5G3N0:message>

        <WL5G3N0:message name="logAuditHistoryResponse">

        <WL5G3N0:part name="parameters" element="WL5G3N1:logAuditHistoryResponse"/>

        </WL5G3N0:message>

        <WL5G3N0:portType name="NPSBackOfficeService">

        <WL5G3N0:operation name="provisioningEvent">

        <WL5G3N0:input message="WL5G3N1:provisioningEvent"/>

        <WL5G3N0:output message="WL5G3N1:provisioningEventResponse"/>

        <WL5G3N0:fault name="SOAPException" message="WL5G3N1:SOAPException"/>

        </WL5G3N0:operation>

        <WL5G3N0:operation name="provisioningNetworkEvent">

        <WL5G3N0:input message="WL5G3N1:provisioningNetworkEvent"/>

        <WL5G3N0:output message="WL5G3N1:provisioningNetworkEventResponse"/>

        </WL5G3N0:operation>

        <WL5G3N0:operation name="logAuditHistory">

        <WL5G3N0:input message="WL5G3N1:logAuditHistory"/>

        <WL5G3N0:output message="WL5G3N1:logAuditHistoryResponse"/>

        </WL5G3N0:operation>

        </WL5G3N0:portType>

        <WL5G3N0:binding name="NPSBackOfficeServicePortBinding" type="WL5G3N1:NPSBackOfficeService">

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

        <WL5G3N0:operation name="provisioningEvent">

        <WL5G3N2:operation/>

        <WL5G3N0:input>

        <WL5G3N2:body use="literal"/>

        </WL5G3N0:input>

        <WL5G3N0:output>

        <WL5G3N2:body use="literal"/>

        </WL5G3N0:output>

        <WL5G3N0:fault name="SOAPException">

        <WL5G3N2:fault name="SOAPException" use="literal"/>

        </WL5G3N0:fault>

        </WL5G3N0:operation>

        <WL5G3N0:operation name="provisioningNetworkEvent">

        <WL5G3N2:operation/>

        <WL5G3N0:input>

        <WL5G3N2:body use="literal"/>

        </WL5G3N0:input>

        <WL5G3N0:output>

        <WL5G3N2:body use="literal"/>

        </WL5G3N0:output>

        </WL5G3N0:operation>

        <WL5G3N0:operation name="logAuditHistory">

        <WL5G3N2:operation/>

        <WL5G3N0:input>

        <WL5G3N2:body use="literal"/>

        </WL5G3N0:input>

        <WL5G3N0:output>

        <WL5G3N2:body use="literal"/>

        </WL5G3N0:output>

        </WL5G3N0:operation>

        </WL5G3N0:binding>

        <WL5G3N0:service name="NPSBackOfficeService">

        <WL5G3N0:port name="NPSBackOfficeServicePort" binding="WL5G3N1:NPSBackOfficeServicePortBinding">

        <WL5G3N2:address location="http://10.168.194.71:7001/NPSBackOfficeService/NPSBackOfficeService"/>

        </WL5G3N0:port>

        </WL5G3N0:service>

      </WL5G3N0:definitions>

        • 1. Re: Weblogic server 10.3.3/10.3.6
          Vijaya Moderator -Oracle

          Was this WSDL built with the XML Editor? or is this WSDL file generated in IDE tools like eclipse, jdeveloper etc...

           

          A WSDL should always adhere to the Schema Definitions defined in the XSD file.

           

          The error you are seeing is thrown by the SAX Parser when loading the WSDL document.

           

          Please check if the WSDL is well formed according to XSD definition.

           

          or

           

          Try creating the WSDL file from the IDE tools rather than manually creating it...

           

           

          regards,

          Vijaya