Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/07/2005, 05:39
sanmi69
 
Fecha de Ingreso: septiembre-2004
Mensajes: 191
Antigüedad: 20 años, 5 meses
Puntos: 1
EJB-JAR.XML
Código PHP:
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

<ejb-jar >

   <description><![CDATA[No Description.]]></description>
   <display-name>Generated by XDoclet</display-name>

   <enterprise-beans>

      <!-- Session Beans -->
      <session >
         <description><![CDATA[<p>Título: H50WebServicesSesionBean</p> <p>Descripción: EJB que para publicar los web services de la aplicacion</p> <p>Copyright: Copyright (c) 2005</p> <p>Empresa: Eurohelp </p>]]></description>

         <ejb-name>H50WebServicesSesion</ejb-name>

         <home>h50webServicesSesionEJB.H50WebServicesSesionHome</home>
         <remote>h50webServicesSesionEJB.H50WebServicesSesion</remote>
         <local-home>h50webServicesSesionEJB.H50WebServicesSesionLocalHome</local-home>
         <local>h50webServicesSesionEJB.H50WebServicesSesionLocal</local>
         <ejb-class>h50webServicesSesionEJB.H50WebServicesSesionBean</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>

      </session>

     <!--
       To add session beans that you have deployment descriptor info for, add
       a file to your XDoclet merge directory called session-beans.xml that contains
       the <session></session> markup for those beans.
     -->

      <!-- Entity Beans -->
     <!--
       To add entity beans that you have deployment descriptor info for, add
       a file to your XDoclet merge directory called entity-beans.xml that contains
       the <entity></entity> markup for those beans.
     -->

      <!-- Message Driven Beans -->
     <!--
       To add message driven beans that you have deployment descriptor info for, add
       a file to your XDoclet merge directory called message-driven-beans.xml that contains
       the <message-driven></message-driven> markup for those beans.
     -->

   </enterprise-beans>

   <!-- Relationships -->

   <!-- Assembly Descriptor -->
     <!--
       To specify your own assembly descriptor info here, add a file to your
       XDoclet merge directory called assembly-descriptor.xml that contains
       the <assembly-descriptor></assembly-descriptor> markup.
     -->

   <assembly-descriptor >
     <!--
       To specify additional security-role elements, add a file in the merge
       directory called ejb-security-roles.xml that contains them.
     -->

   <!-- method permissions -->
     <!--
       To specify additional method-permission elements, add a file in the merge
       directory called ejb-method-permissions.ent that contains them.
     -->

   <!-- finder permissions -->

   <!-- transactions -->
     <!--
       To specify additional container-transaction elements, add a file in the merge
       directory called ejb-container-transaction.ent that contains them.
     -->

   <!-- finder transactions -->

     <!--
       To specify an exclude-list element, add a file in the merge directory
       called ejb-exclude-list.xml that contains it.
     -->
   </assembly-descriptor>

</ejb-jar>
jaxrpc-mapping.xml
Código PHP:
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE java-wsdl-mapping PUBLIC
  "-//IBM Corporation, Inc.//DTD J2EE JAX-RPC mapping 1.0//EN"
  "http://www.ibm.com/webservices/dtd/j2ee_jaxrpc_mapping_1_0.dtd">

<java-wsdl-mapping>
    <package-mapping>
      <package-type>h50webServicesSesionEJB</package-type>
      <namespaceURI>http://localhost:7001/h50WebServices</namespaceURI>
    </package-mapping>
    <!-- service interface mappings are still lacking -->
    <!-- service endpoint mappings are still lacking -->
</java-wsdl-mapping>
weblogic-ejb-jar.xml
Código PHP:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN" "http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd">
<!-- Generado automaticamente con XDoclet. No editar! -->
<weblogic-ejb-jar>
    <description><![CDATA[Generado con XDoclet]]></description>
    <weblogic-enterprise-bean>

        <ejb-name>H50WebServicesSesion</ejb-name>
        <transaction-descriptor>
            <trans-timeout-seconds>60</trans-timeout-seconds>
        </transaction-descriptor>
        <enable-call-by-reference>True</enable-call-by-reference>
        <jndi-name>h50.h50H50WebServicesSesionEJB</jndi-name>

    </weblogic-enterprise-bean>
    <!-- Transacciones -->

    <!-- Metodos idempotentes -->
    <idempotent-methods>

    </idempotent-methods>
</weblogic-ejb-jar>
webservices.xml
Código PHP:
<?xml version="1.0" encoding="UTF-8"?>

<webservices  
 xmlns="http://java.sun.com/xml/ns/j2ee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
 version="1.1">
    <webservice-description>
     <icon>
     </icon>     
     <webservice-description-name>h50WebService</webservice-description-name>
     <wsdl-file>wsdl/h50WebServices.wsdl</wsdl-file>
     <jaxrpc-mapping-file>jaxrpc-mapping.xml</jaxrpc-mapping-file>
     <port-component>
        <icon>
        </icon>
         <port-component-name>h50webServicesSesionEJB.H50WebServicesEndPoint</port-component-name>        
        <wsdl-port>h50webServicesSesionEJB.H50WebServicesEndPoint</wsdl-port>
        <service-endpoint-interface>h50webServicesSesionEJB.H50WebServicesEndPoint</service-endpoint-interface>
        <service-impl-bean>
            <ejb-link>H50WebServicesSesion</ejb-link>
        </service-impl-bean>
     </port-component>
    </webservice-description> 
</webservices>
h50WebServices.wsdl
Código PHP:
<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions
   targetNamespace="http://test.jboss.org/handler"
   xmlns:intf="http://test.jboss.org/handler"
   xmlns="http://schemas.xmlsoap.org/wsdl/"
   xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
   xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema">

   <wsdl:message name="testResponse">
   </wsdl:message>
   <wsdl:message name="testRequest">
   </wsdl:message>

   <wsdl:portType name="HandlerPort">
      <wsdl:operation name="test">
         <wsdl:input message="intf:testRequest"/>
         <wsdl:output message="intf:testResponse"/>
      </wsdl:operation>
   </wsdl:portType>

   <wsdl:binding name="HandlerBinding" type="intf:HandlerPort">
      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
      <wsdl:operation name="test">
         <wsdlsoap:operation soapAction=""/>
         <wsdl:input>
            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://test.jboss.org/handler" use="encoded"/>
         </wsdl:input>
         <wsdl:output>
            <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://test.jboss.org/handler" use="encoded"/>
         </wsdl:output>
      </wsdl:operation>
   </wsdl:binding>

   <wsdl:service name="Handler">
      <wsdl:port binding="intf:HandlerBinding" name="Handler">
         <wsdlsoap:address location="http://dummy_location"/>
      </wsdl:port>
   </wsdl:service>

</wsdl:definitions>
las clases generadas no tienen nigun misterio asik no pongo el codigo, si alguin lo necesita para ayudarme las pongo.

PD: Genere esto a partir de lo que encontre en internet, no se si estara bien

saludos y gracias