0 Replies Latest reply on Jun 27, 2012 2:25 AM by Sathish Kumar Subramanian

    Difference in generated WSDL between Weblogic 10.3.3 and JBoss 5.1

    Sathish Kumar Subramanian Newbie

      Hi all,

       

      We have developed an web service based application using JAX-WS with WS-Security enabled in it. We followed below link for the implementation of WS-Security,

       

      [http://www.ibm.com/developerworks/java/library/j-jws10/index.html]

       

      And we have deployed the application in JBoss 5.1, tested it using SOAP UI passing the request to the Core application. We got the expected result.

       

      When I try to deploy the application in weblogic 10.3.3, it is getting deployed and we are unable to pass the user credentials to it and hence the core application rejects the request since the username/password is not supplied.

       

      I want to know how the web service application with WS-Security enabled can be deploy in Weblogic 10.3.3? Any documentation would be a great help.

       

      And also we found that the creation of WSDL from JBoss 5.1 & Weblogic differ. We have used a WS-policy also into this, the WSDL generated by JBoss contains the information of the WS-policy we added.

       

      But the generated WSDL from Weblogic 10.3.3 is missing those information!

       

      Any help would be greatly appreciated. Thanks in advance.

       

      Only difference I see between the two generated WSDL is that,

       

      For Weblogic,  RI's version is Oracle JAX-WS 2.1.5.

       

      For JBoss 5.1, it is, RI's version is JAX-WS RI 2.2.3-b01-

      Will this have an impact on the generated WSDL?


      Generated WSDL from JBoss:

       

      <Changed the company name/product name>

       

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

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

      -->

      - <!--  Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.2.3-b01-.

      -->

      - <definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://company.com/WARName" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://company.com/WARName" name="ProductWebServicesImplService">

      - <wsp1_2:Policy xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" wsu:Id="UsernameToken">

      - <sp:SupportingTokens>

      - <wsp1_2:Policy>

      <sp:UsernameToken sp:IncludeToken=".../IncludeToken/AlwaysToRecipient" />

      </wsp1_2:Policy>

      </sp:SupportingTokens>

      </wsp1_2:Policy>

      - <types>

      - <xsd:schema>

      <xsd:import namespace="http://company.com/WARName" schemaLocation="http://localhost:8080/WARName/services?xsd=1" />

      </xsd:schema>

      - <xsd:schema>

      <xsd:import namespace="http://jaxb.dev.java.net/array" schemaLocation="http://localhost:8080/WARName/services?xsd=2" />

      </xsd:schema>

      </types>

      - <message name="CreateIndividualCustomer">

      <part name="parameters" element="tns:CreateIndividualCustomer" />

      </message>

      - <message name="CreateIndividualCustomerResponse">

      <part name="parameters" element="tns:CreateIndividualCustomerResponse" />

      </message>

      - <message name="CreateIndividualCustomer_Validate">

      <part name="parameters" element="tns:CreateIndividualCustomer_Validate" />

      </message>

      - <message name="CreateIndividualCustomer_ValidateResponse">

      <part name="parameters" element="tns:CreateIndividualCustomer_ValidateResponse" />

      </message>

      - <portType name="ProductWebServicesImpl">

      - <operation name="CreateIndividualCustomer">

      <input wsam:Action="http://company.com/WARName/ProductWebServicesImpl/CreateIndividualCustomerRequest" message="tns:CreateIndividualCustomer" />

      <output wsam:Action="http://company.com/WARName/ProductWebServicesImpl/CreateIndividualCustomerResponse" message="tns:CreateIndividualCustomerResponse" />

      </operation>

      - <operation name="CreateIndividualCustomer_Validate">

      <input wsam:Action="http://company.com/WARName/ProductWebServicesImpl/CreateIndividualCustomer_ValidateRequest" message="tns:CreateIndividualCustomer_Validate" />

      <output wsam:Action="http://company.com/WARName/ProductWebServicesImpl/CreateIndividualCustomer_ValidateResponse" message="tns:CreateIndividualCustomer_ValidateResponse" />

      </operation>

      </portType>

      - <binding name="ProductWebServicesImplPortBinding" type="tns:ProductWebServicesImpl">

      <wsp1_2:PolicyReference URI="#UsernameToken" />

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

      - <operation name="CreateIndividualCustomer">

      <soap:operation soapAction="" />

      - <input>

      <soap:body use="literal" />

      </input>

      - <output>

      <soap:body use="literal" />

      </output>

      </operation>

      - <operation name="CreateIndividualCustomer_Validate">

      <soap:operation soapAction="" />

      - <input>

      <soap:body use="literal" />

      </input>

      - <output>

      <soap:body use="literal" />

      </output>

      </operation>

      </binding>

      - <service name="ProductWebServicesImplService">

      - <port name="ProductWebServicesImplPort" binding="tns:ProductWebServicesImplPortBinding">

      <soap:address location="http://localhost:8080/WARName/services" />

      </port>

      </service>

      </definitions>

       

       


       

      WSDL generated by Weblogic

       

      <?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.

      -->

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

      -->

      - <definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://company.com/WARName" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://company.com/WARName" name="ProductWebServicesImplService">

      - <types>

      - <xsd:schema>

      <xsd:import namespace="http://company.com/WARName" schemaLocation="http://machineIP:6601/WARNameSO/services?xsd=1" />

      </xsd:schema>

      - <xsd:schema>

      <xsd:import namespace="http://jaxb.dev.java.net/array" schemaLocation="http://machineIP:6601/WARNameSO/services?xsd=2" />

      </xsd:schema>

      </types>

      - <message name="CreateIndividualCustomer">

      <part name="parameters" element="tns:CreateIndividualCustomer" />

      </message>

      - <message name="CreateIndividualCustomerResponse">

      <part name="parameters" element="tns:CreateIndividualCustomerResponse" />

      </message>

      - <message name="CreateIndividualCustomer_Validate">

      <part name="parameters" element="tns:CreateIndividualCustomer_Validate" />

      </message>

      - <message name="CreateIndividualCustomer_ValidateResponse">

      <part name="parameters" element="tns:CreateIndividualCustomer_ValidateResponse" />

      </message>

      - <portType name="ProductWebServicesImpl">

      - <operation name="CreateIndividualCustomer">

      <input message="tns:CreateIndividualCustomer" />

      <output message="tns:CreateIndividualCustomerResponse" />

      </operation>

      - <operation name="CreateIndividualCustomer_Validate">

      <input message="tns:CreateIndividualCustomer_Validate" />

      <output message="tns:CreateIndividualCustomer_ValidateResponse" />

      </operation>

      </portType>

      - <binding name="ProductWebServicesImplPortBinding" type="tns:ProductWebServicesImpl">

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

      - <operation name="CreateIndividualCustomer">

      <soap:operation soapAction="" />

      - <input>

      <soap:body use="literal" />

      </input>

      - <output>

      <soap:body use="literal" />

      </output>

      </operation>

      - <operation name="CreateIndividualCustomer_Validate">

      <soap:operation soapAction="" />

      - <input>

      <soap:body use="literal" />

      </input>

      - <output>

      <soap:body use="literal" />

      </output>

      </operation>

      </binding>

      - <service name="ProductWebServicesImplService">

      - <port name="ProductWebServicesImplPort" binding="tns:ProductWebServicesImplPortBinding">

      <soap:address location="http://machineIP:6601/WARNameSO/services" />

      </port>

      </service>

      </definitions>