2 Replies Latest reply: Mar 21, 2011 4:40 AM by 848917 RSS

    Migrating a application from bea 8.1.6 to Weblogic 10.3.0

    848917
      Hi All,

      I'm migrating a web servcies (JAX-RPC 1.1) from developed from the servicegen ( weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask ) bea weblogic 8.1.6 to weblogic 10.3.0.The WSDL generated in WL 10.3.0 has the <element name="CreditCheckRequest" type="*java:CreditCheckRequest*" >
      where as the WSDL generated in bea 8.1.6 has <element name="CreditCheckRequest" type="*stns:CreditCheckRequest*">.

      _My problem is i dont want this element type java: instead element type="stns:". The segment of the WSDL are given below for more clarity_*
      I have used the below servicegen scripts to generate the WSLD for the 8.1.6 and for 10.3.0 jwsc script which follows next to it. Since 10.3.0 is based on java 1.6 I'm using annotations The annotated services and java bean class can also be found next to jwsc script,

      The Bottom-Up appraoch is being followed.

      If any body can help me with this, please reply with your suggestion/solution
      your help will be appriciated.

      Thanks



      SCRIPT FOR BEA 8.1.6*

      ++ <servicegen forcewsicompliance="true"+
      +               destEar="${deploy.dir}/CreditCheckService.ear" contextURI="/cdtibws"+
      +               classpath="${wls.lib}/webserviceclient.jar;.">+
      +               <service javaClassComponents="credit.sfa.ws.CreditCheckService"+
      +                    targetNamespace="http://www.qwest.com/webservices/CDT"+
      +                    generateTypes="false" style="document" expandMethods="True"+
      +                    serviceName="CreditCheckService" serviceURI="CreditCheckService" />+
      +          </servicegen>++

      SCRIPT FOR WL 10.3.0*

      +<jwsc srcdir="src" destdir="${ear-dir}" keepgenerated="false" defaultexcludes="false"               +
      +               classpathref="lib.path">+

      +               <jws file="credit/sfa/ws/CreditCheckService.java" type="JAXRPC">+

      +                    <WLHttpTransport contextPath="cdtibws" serviceUri="CreditCheckService" portName="CreditCheckServicePort" />+
      +               </jws>+
      +               +
      +          </jwsc>+

      Annoatated Services Class Script*

      +@WebMethod(operationName = "processRequest")+
      +     @WebResult(name = "CreditCheckResponse",partName="CreditCheckResponse",targetNamespace = "http://www.qwest.com/webservices/CDT")+
      +public CreditCheckResponse processRequest(@WebParam(name="CreditCheckRequest",targetNamespace="http://www.qwest.com/webservices/CDT")credit.sfa.beans.CreditCheckRequest creditCheckRequest) {+
      +     //EventLog.write(1, "**CreditCheckService**", "inside the processRequest()");+
      +          +


      Annotated java bean class*

      +@XmlRootElement(name = "CreditCheckRequest", namespace = "http://www.qwest.com/webservices/CDT")+
      +//@XmlType(name = "CreditCheckRequest", namespace = "http://www.qwest.com/webservices/CDT")+
      +//@XmlAccessorType(XmlAccessType.NONE)+

      +public class CreditCheckRequest implements Serializable {+
      +     @XmlElement(name = "SrcSystem", namespace = "http://www.qwest.com/webservices/CDT" )+
      +     +

      +     private String SrcSystem = null;+
      +     @XmlElement(name = "UserId", namespace = "http://www.qwest.com/webservices/CDT" )+
      +     private String UserId;+
      +     @XmlElement(name = "RequestCd", namespace = "http://www.qwest.com/webservices/CDT" )+
      +     private int RequestCd;+


      The WSDL generated from the bea 8.1.6*

      ++ <definitions xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.qwest.com/webservices/CDT" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://www.qwest.com/webservices/CDT">+
      - <types xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:tns="http://www.qwest.com/webservices/CDT" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
      - <xsd:schema xmlns:stns="http://www.qwest.com/webservices/CDT" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" targetNamespace="http://www.qwest.com/webservices/CDT" elementFormDefault="qualified">
      <xsd:element nillable="true" name="processRequest" type="*stns:CreditCheckReques*" />

      <xsd:element nillable="true" name="processRequestResponse" type="*stns:CreditCheckResponse*" />

      - <xsd:complexType name="CreditCheckRequest">
      - <xsd:sequence>
      +++


      WSDL Generated in wl 10.3*

      ++ <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.qwest.com/webservices/CDT" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://www.qwest.com/webservices/CDT" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema">+
      +<xs:import namespace="java:credit.sfa.beans" />+

      +<xs:element name="CreditCheckResponse" type="*java:CreditCheckResponse*" xmlns:java="java:credit.sfa.beans" />+

      +<xs:element name="CreditCheckRequest" type="*java:CreditCheckRequest*" xmlns:java="java:credit.sfa.beans" />+

      +</xs:schema>+
      - <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="java:credit.sfa.beans" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://www.qwest.com/webservices/CDT" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      - <xs:complexType name="CreditCheckResponse">
      +++